Featured Leanpub Book
Harness Engineering
Building Reliable Workflows Around Non-Deterministic Agents
This book teaches harness engineering as a discipline. Not magic prompts. Not vendor tricks. Engineering practice applied to a new substrate.
Kick off your book project in 2 hours, get started with GhostAI in 2 hours, or do both! Free live workshops, on Zoom. You’ll leave with a real book project and a clear plan to keep going. Saturday, June 27, 2026.
Harness Engineering
Building Reliable Workflows Around Non-Deterministic Agents
This book teaches harness engineering as a discipline. Not magic prompts. Not vendor tricks. Engineering practice applied to a new substrate.
Skip the black-box frameworks. Build a production-grade AI coding agent from scratch in pure Python - cloud or local, tested with pytest, all in a single file.
You’ll just need the Five Essential Elements of Learning Through five essential elements, you’ll gain the ability to learn anything deeply—no matter how complex the subject. These five pillars of effective learning will become lifelong tools, guiding you every time you set out to truly master new knowledge and retain it permanently. If you're ready to stop passively consuming information and start truly mastering it, this book is for you.
Reliable Generative AI bridges business use and technical architecture. It teaches the foundations of prompt design, RAG, agentic workflows, tool use, structured outputs, safety patterns, and evaluation without assuming the reader is a software engineer. The focus is practical: understanding how AI workflows fail, how to design around those failures, and how to build systems that professionals can trust.
A practical, project-driven manual for engineers who want to understand how modern language models are built — and where they fail — by writing every layer themselves. From a scalar autograd engine to RLHF to fused specialists, in 35 hands-on projects with deliberate sabotage experiments. Build it. Break it. Measure it.
1000 carefully designed C++ problems across 8 progressive volumes — from your very first line of code to advanced algorithms. Every single solution is compiled and tested on g++, with hints, complexity analysis, and a clear explanation for each. A complete, structured path from beginner to mastery.
Not just for mathematicians and detectives! Learn the basics of logic and its many applications, including advanced testing, constraint solving, function composition, and code proofs. Over 50 exercises and 20 sample programs are included. No prior math background required!
Input Chinese characters easily, even if you don't know their pronunciation.
You’ll find inside:- An atlas of system topologies.- A compendium of architectural patterns.- One of the largest and most cohesive pattern languages.
What makes a software engineer truly effective? Beyond writing code, effectiveness comes from ethics, sustainable practices, collaboration, and the courage to adapt. The Effective Software Engineer guides you from clean coding habits to organizational empowerment, bridging the gap between developers and leaders.
Modern cybersecurity is no longer just about firewalls and antivirus. It is about architecture, governance, secure software delivery, cloud resilience, Zero Trust, AI security, and operational discipline.The Master Guide to Cyber Security brings these domains together into one practical enterprise-focused reference designed for modern security professionals, architects, engineers, and technology leaders.Built around real-world frameworks, secure-by-design principles, and current threat realities, this guide provides a structured roadmap for building secure systems in cloud-native and enterprise environments.
Java has changed. Have your patterns kept up?The Gang of Four wrote their landmark patterns in 1994 — when Java didn't exist, generics were a decade away, and "concurrency" meant carefully managing a handful of platform threads. Thirty years later, Java 21 through 25 has transformed the language: records replace boilerplate classes, sealed interfaces model closed type hierarchies with compiler enforcement, pattern matching eliminates entire categories of unsafe casting, and virtual threads make a million concurrent tasks not just possible but routine.Modern Java Design Patterns bridges that gap. Every classic pattern is shown first in its original form, then systematically rebuilt with the language features that exist today. The result is code that is shorter, safer, more expressive, and immediately recognisable to any team working on a modern Java codebase.
Learn how to design embedded systems the sane way: on your Linux host, with modern C++, predictable timing, clean interfaces, and no unnecessary complexity.
Residuality Theory is a new way to think about the design of software systems that explains why we experience design the way we do, why certain things seem to work only sporadically, and why certain architects get it right so often regardless of which tools they use. A new, scientific approach is defined that fuses Software Engineering, Complexity Science, and Philosophy to produce an entirely new way to think about how to design software. The result is a theoretical base that allows architecture to finally become its own discipline.
Software and infrastructure only create value when they pull in the same direction as the business. This book shows IT leaders how to get there: from shaping IT strategy and the architecture roadmap to the daily discipline of IT and architecture governance, all built on a pattern-based approach that adapts to your organization rather than forcing it into a template.Grounded in established frameworks such as TOGAF, COBIT, and ITIL, it pairs solid fundamentals with numerous real-world examples — and gives growing weight to compliance and IT security, now central concerns of any IT management agenda.This English edition is based on the German standard work on the subject, fully revised in its 4th edition (late 2024). It is current with TOGAF 10 and reflects recent developments in business-oriented enterprise architecture — including the open-source tool EDGY and patterns for digital strategy — alongside the latest trends in IT risk management and cybersecurity architecture.
Uncover the fundamentals of GPU architecture and assembly programming with Advanced GPU Assembly Programming, a resource designed for enthusiasts and professionals who want to explore the intricate workings of modern GPUs. This book is not a step-by-step manual but a gateway to understanding GPU architecture and assembly programming at a foundational level. It’s ideal for readers who are ready to invest their own effort to experiment and grow their expertise.
The engineer's guide to RAG systems that survive a deploy.
Prepare for senior Go interviews, or for the jump from mid-level to senior, with a focus on AI platform engineering: LLM gateways, RAG, vector search, Kubernetes, observability, concurrency ownership, and production failure modes. Includes interview questions, senior-level answer rubrics, executable Go examples, and a production-oriented RAG service capstone you can run, test, break, and explain.
LEANPUB READER MEMBERSHIPS
Many books which regularly cost much more than $25 can be bought for just one credit, so a Reader Membership can save you money as well as getting you access to about 2000 books which are free with membership. So, the real question is: How many credits do you want?
This book takes you straight into the Compose compiler, runtime, and UI layer, all about Compose performance tuning, reading the source line by line and explaining the why behind every design decision, then connecting each internal mechanism back to the code you write every day. With four in-depth chapters, 40+ original diagrams, dozens of "In Practice" sections, and "Pro Tips for Mastery" sidebars, it turns Compose from a set of APIs you memorize into a system you can reason about from first principles, debug with confidence, and optimize with intent. The Course: Jetpack Compose Mechanisms

All new language and library features of C++23 (for those who know C++20 already). The book presents all new language and library features of C++23. Learn how this impacts day-to-day programming, to benefit in practice, to combine new features, and to avoid all new traps. Buy early, pay less, free updates. Current Content: www.cppstd23.com Other leanpub books by this author:C++20C++17C++ Move Semantics
Learn SysML v2 with the ultimate guide for all skill levels in MBSE. Authored by insiders, it's your key to unlocking the full potential of system modeling and a passport to mastering your MBSE.
Чому проєкт-цукерочка через рік перетворюється на непідтримуване пекло? Тому що вас ніколи не вчили базі. Ця книга — єдина система координат, яка нарешті збере ваші розрізнені знання про ООП, GRASP, SOLID та GoF в одну цілісну картину.
A complete foundation for Statistics, also serving as a foundation for Data Science. Leanpub revenue supports OpenIntro (US-based nonprofit) so we can provide free desk copies to teachers interested in using OpenIntro Statistics in the classroom and expand the project to support free textbooks in other subjects. More resources: openintro.org.
Linux is one of the best decisions you can make for your computer — but knowing where to start is the hard part. This guide walks you through everything: choosing a distribution, installing it, and using it confidently every day. It was written by Jay LaCroix of Learn Linux TV, for complete beginners. No prior experience required.
Developer platforms promise to rewrite the laws of IT physics: they boost innovation through standards; they speed up development while assuring compliance; and they reduce cognitive load without restricting choice. Building such an in-house platform, or even deploying one, is far from easy, though. This book condenses a decade of building and rolling out platforms into practical advice for platform teams and users.5300+ happy readers! Also as Paperback edition
A clear, illustrated guide to large language models, covering key concepts and practical applications. Ideal for projects, interviews, or personal learning.
LEANPUB ORGANIZATION MEMBERSHIPS
Book credits, course credits, and Free With Membership access for your team. Because Leanpub authors publish updates with one click, our AI, software, and business titles stay more current than print — so your team always learns from the latest material.

The Forecasting, CatBoost & Conformal Prediction Tetralogy
The following 4 books are included in this bundle...

The ultimate guide to cracking Android technical interviews, a dissection of what runs beneath every @Composable, and unlocking the 'How' and 'Why' behind Kotlin fundamentals and internal mechanisms.

Unlocking the 'How' and 'Why' behind Kotlin fundamentals and internal mechanisms, and a dissection of what runs beneath every @Composable.


These books will get you up to speed with Modern Java

Four volumes. 76 chapters. 2,000+ pages. The complete data-engineering arc from your first spark.read.csv to a production multi-agent system on Databricks, written for the engineer who gets paged when the pipeline breaks at 2 a.m.

This bundle includes the books “Residues: Time, Change and Uncertainty in Software Architecture” and “The Architect’s Paradox: Uncertainty and the Philosophy of Software Architecture” by Barry M O’Reilly. The books complement each other, with Residues giving a practical description of how to apply residuality theory and The Architect’s Paradox...

From architecture to implementation, determinism reduces complexity. Learn how to design predictable systems and preserve architectural intent through abstraction and deterministic code generation.

Docker and Kubernetes are taking the world by storm! These books will get you up-to-speed fast! Docker Deep Dive is over 400 pages long, and covers all objectives on the Docker Certified Associate exam.The Kubernetes Book includes everything you need to get up and running with Kubernetes!

A 7-book GPU collection covering architecture, CUDA, assembly, PTX, SASS, and parallel computing. Learn how to move from high-level programming to low-level execution and optimize performance across modern GPU systems.
Interviews with Leanpub authors and special guests
The Leanpub Podcast
The Leanpub Podcast 🎙 Feat. Serena Martino, Author of The Unwritten Job Description
Serena Martino - Len Epp interviews Serena Martino, executive coach and author of The Unwritten Job Description, about her journey from corporate roles at Google and in the travel industry to founding a coaching practice. She discusses the gap between achievement and alignment, the unwritten rules people live by, and her experience writing and publishing her book chapter by chapter on Leanpub.
Hands-on online course to learn all you need to know to get a Spring Boot application into production with AWS. Visit our landing page for a tour of the contents. Make sure to get familiar with all available bundle options before enrolling.
Master language models through mathematics, illustrations, and code―and build your own from scratch! This course includes nearly three hours of exclusive video interviews with the author, covering questions related to each of the six lessons included in the course.
Unlock the power of AI in your applications with this groundbreaking course on AI-driven application architecture. Discover practical patterns and principles for building intelligent, adaptive, and user-centric software systems that harness the potential of large language models. This course includes exclusive video interviews with the author.
This is a fast-paced, practical, and visual guide to the strange new world of Generative AI. It is like an extended version of Henrik's viral video with the same name.
Microservices are a great approach for building software at scale. But although the ideas at the root of microservices may sound simple, this is not a simple approach. There are several big traps along the way, and it's important to avoid them...
To ace your next Android developer job interview, focus on truly understanding the concepts, not just memorizing answers, and practicing how to apply them. With over 250 quiz questions, 370 practical and follow-up questions with full answers, and 60+ pro tips, this course helps you sharpen skills, understand the why, and prepare for real-world technical challenges. ISBN: 979-8285926436
Takes you from "how to use Kotlin" into "how Kotlin really works," revealing internal implementations, demystifying bytecode and compiler behavior, and uncovering the internals that shape the language. With hands-on Code Playgrounds for immediate practice and 158 interactive assessments to test and reinforce your understanding, this course doesn't just show you why everything is the way it is, it challenges you to prove you've mastered it. ISBN: 979-8243872744
This course gives you an intuitive understanding of the eight most important machine learning algorithms. It helps you get started using them in your own projects NOW -- in a single line of Python code. After finishing this course, you'll be able to select, understand, and implement the top 8 machine learning algorithms in your own projects.
This course is based on the 2025 edition of the best-selling Kubernetes book, that has been fully updated for the latest versions of Kubernetes and the latest industry trends. You won't find a better and more up-to-date book-based course on Kubernetes. Hand-crafted over the past 8 years by best-selling author Nigel Poulton.

Senior Android Developer Interview Prep Track
Senior Android interviews test real understanding, not memorized answers. This track goes beyond “how to use Kotlin” into how Kotlin and Android actually work under the hood, including compiler behavior and internal concepts. With hands-on playgrounds and 400+ quiz and interview-style questions, it helps you practice reasoning through problems and confidently tackle senior-level technical interviews.
This track includes the following 2 courses...

About the Track: AI Masterclass Artificial Intelligence is reshaping the way we live, work, and build technology. The AI Masterclass Track brings together three powerful courses from world-class experts to give you a comprehensive, practical, and hands-on education in the age of AI. Whether you want to understand the big picture, apply AI...

Taking this bundle, you'll get a comprehensive set of courses that cover almost the whole surface of the .NET framework.The big topics that are covered:WPFMVVMSpecFlow and SeleniumLINQMultithreading and Parallel ProgrammingC# in Depth: Puzzles and GotchasAlgorithms and Data Structures in C#VS and R#and engineering practices:Unit Testing with...

This is the complete track to learn about essential Kotlin features and get ready for working in Kotlin in daily basis. It starts from essentials, and on the way reaches advanced topics like efficient collection processing or DSL creation.

Senior Android interviews test real understanding, not memorized answers. This track goes beyond “how to use Kotlin” into how Kotlin and Android actually work under the hood, including compiler behavior and internal concepts. With hands-on playgrounds and 400+ quiz and interview-style questions, it helps you practice reasoning through problems and confidently tackle senior-level technical interviews.

"Shut up and code." Laughter in the audience. The hacker had just plugged in his notebook and started sharing his screen to present his super-smart Python script. "Shut up and code" The letters written in a white literal coding font on black background was the hackers' home screen background mantra. At the time, I was a first-year computer...

Learn Python the Practical Way - In this course you learn all the basics of the Python programming language. It contains exercises, explanatory videos, an example solution and a quiz. This will enable you to apply your skills to a wide range of real world problems.A collection of more Python exercises - Exercises with solutions to continue...

Senior Android developer interviews rarely test memorized answers. They test whether you truly understand how things work under the hood. This track takes you beyond “how to use” into “how Android, Compose, and Kotlin actually work,” exploring internal implementations, bytecode and compiler behavior, and the system-level concepts that shape modern Android development.

Python is the fastest-growing major programming language on the planet. This practical course set will teach you Python in a hands-on, highly practical way that guarantees your success. All you need to go from zero to completing your own Python projects in a relaxed, student-centric, and fun environment. Create yourself a new skill that'll bring...

Taking this course bundle, you'll learn:SOLID principles (SRP, OCP, ISP, LSP, DIP) in-depthMeta principles: DRY, KISS, YAGNI, SoC, CQS, Law of Demeter, PoLADependency Injection in Depth: IoC or DI containers, best practices, and anti-patternsFunctional Programming in C#: purity and side effects, functional C# features, immutability,...
Become a Leanpub author
Leanpub makes it easy to create, publish, and sell ebooks or online courses while earning industry-leading royalties. With 80% royalties on purchases of $7.99 or more (or 80% minus a small $0.50 fee for purchases under $7.99), your work earns what it deserves. For example, a $10 sale brings you $8, and selling 5,000 copies at $20 could mean $80,000 in your pocket!
Leanpub has already paid out $15,495,814.62 to authors. Whether you write in Markdown or upload PDF/EPUB files, Leanpub’s intuitive publishing tools simplify the process. Use our in-browser editor or sync with GitHub or Dropbox and publish your ebook with a single click. Plus, you decide when to release—during the writing process or upon completion.
Learn MoreAs an academic, I like Leanpub because it lets me write and get my ideas out there quickly. Leanpub is simply the best place for publishing my books.


LIVE 2-HOUR ZOOM WORKSHOP
Live 2-hour workshop on Zoom. You'll leave with a real book project, progress on your first chapter, and a clear plan to keep going.

LIVE 2-HOUR ZOOM WORKSHOP
Hands-on GhostAI Workshop with the team who built it. 2 hours, live on Zoom.

PRIVATE 1-ON-1 BOOK PROGRAM WITH PETER ARMSTRONG
Weekly 90-minute private sessions with Peter Armstrong, founder of Leanpub. Pick your tier — 4, 8, or 12 sessions. It doesn't matter whether your book is half done or if you're stuck at page two. Win your money back as a service credit that fully covers the matching GlobalAuthor tier when you finish.
We're authors too, and we built Leanpub to be the platform we would love to use. It turns out, we weren't alone...
As an academic, I like Leanpub because it lets me write and get my ideas out there quickly. Leanpub is simply the best place for publishing my books.

Leanpub's book-creation tools allowed me to focus on creating the types of books I wanted to write instead of worrying how to create my own book publishing toolchain. I have never regretted using Leanpub to publish my ebooks.

Leanpub takes the pain out of publishing. They provide the tools, you provide the books and then magic happens.

I love using Leanpub because I can write my book using simple Markdown notation. Leanpub let's me focus on my content and they handle the rest.

Leanpub is a game changer for independent authors, removing the hassles associated with formatting, book production, and electronic sales, freeing up the time to do what we do best: write.

Leanpub helped me achieve my goal of publishing a book. Its simple, easy to use interface got my book up and making money within weeks, I love Leanpub!

Leanpub helped me gauge interest in my book, get payments early on when it was only a few chapters, and has got me a bunch of sales just from people browsing around the site.

Leanpub helps me see my books as I write them. Even better, I can find readers early, to read my books and offer suggestions. I can pivot, if I see the need.

Leanpub made it simple for me to run with my book idea and build my reputation in the Ruby community. I went from first draft to first sale in days, not months or years.

Four years ago, I joined Leanpub to just give it a try. Today, over 28,000 book sales later, I cannot help but say that I'm the biggest Leanpub fan on this planet!

Leanpub makes publishing your own book super easy. The fact that you can release updates continually helps with the mindset of getting a minimum version out ASAP and then iterating to improve.

I earn more royalties from my books on Leanpub than I do with well established publishers or through Amazon (which I publish on thanks to Leanpub's mobi conversion).

Leanpub allows me focus on content, takes care everything else and offers an amazing author royalty. It’s a fantastic platform for writing and publishing books.

I love that Leanpub makes writing and publishing a beautiful book so simple. I no longer spin my wheels with layouts and formats - Leanpub gets out of the way when it's time to write, and then automates everything when it's time to publish.

With Leanpub, the first person who purchased my book for $9.99 almost two years ago (and only received a preface, and two short intro chapters) has had access to almost every bit of knowledge I've gained in those two years, and *that's* the value.

Simple and lean, forces me to focus on writing and marketing, and pays excellent royalties.

Leanpub forces you to focus on writing and gives you immediate feedback. Allowing Leanpub to take care of the curation and delivery helped me focus on shipping my book.

While most eBook exporter apps today can generate PDF files and many support ePub, there's one tool we recommend above all after trying 8 of the most popular: Leanpub.
