search
HomeWeb Front-endCSS TutorialSo you want to self-publish books and courses on programming

So you want to self-publish books and courses on programming

Recently, John Resig and I independently published our GraphQL book. While many resources detail how to self-publish books and online courses, guidance on the why and whether is scarce. This post shares my experiences, revenue data, and insights from others who've successfully self-published tech content, weighing the pros and cons of this approach.

Financial Returns

Let's address the elephant in the room: profitability. Initially, I pitched my book to traditional publishers. However, John and I ultimately chose self-publishing. His prior experience with two successful JavaScript books and a blog post critiquing traditional publishing for programming books influenced this decision. His post highlighted:

  • Low sales for programming books: Most rarely exceed 4,000 copies.
  • Modest earnings: He earned $7,500 from his first 4,000 copies, with a 10% royalty on print and 20% on digital sales.

Randall Kanna's perspective on traditional publishing revenue is blunt: "Nothing comes from a tech book. Just the credibility." While exceptions exist, they're rare. Martin Kleppmann's highly successful machine learning book (O'Reilly's second best-seller in 2019) generated $478,000 in its first three years (108,000 copies sold, 10% print royalty, 25% digital royalty).

The Pragmatic Bookshelf stands out with its 50% gross profit royalty structure. In their first decade, 42% of their authors earned over $50,000, and 12% exceeded $100,000.

Self-publishing offers significantly higher royalty rates:

  • Amazon: 70% (e-books); 60% minus printing costs (print books)
  • Leanpub: 80%
  • Gumroad: 96.5% ($10 monthly membership fee)
  • Personal Website: 97%

This potential for higher earnings is evident in successful examples. Discover Meteor generated approximately $500,000 (9,000 copies) between 2013 and 2018 (before becoming free). This success stemmed from significant marketing efforts (detailed in their Gumroad case study) and its status as the go-to resource within the Meteor community. Refactoring UI by Adam Wathan and Steve Schoger is another standout, reportedly surpassing $2 million in sales by 2020. Their success is attributed to effective marketing and addressing a widespread need among front-end developers.

Video courses present different avenues:

  • Publisher platforms (e.g., O'Reilly)
  • YouTube (e.g., Florin Pop's $4,500 first-year ad revenue from 1.6 million views and 74,000 subscribers)
  • Video course platforms (e.g., Egghead, Frontend Masters, Pluralsight, LinkedIn Learning, Udemy – Udemy offers a 97% royalty rate on referred customers and 37% on platform-referred customers)
  • Individual services (e.g., Wes Bos's WBaaS model)
  • Self-hosting (paywalled content on your own site)

Self-published courses also demonstrate substantial earning potential. While Level Up Tutorials, Kent C. Dodds, and Wes Bos don't publicly share revenue figures, their significant reach (Wes Bos, for example, has sold to over 140,000 individuals) suggests considerable income.

However, these are exceptional cases. Most self-published resources generate significantly less. Consider the comparatively lower earnings of other self-published GraphQL books.

The potential for high returns exists, but it's not guaranteed.

Advantages and Disadvantages of Self-Publishing

The pros and cons discussed below apply primarily to books, but are largely relevant to self-published courses as well, given the shared opportunities and challenges.

Book or Course?

Choosing between a book and a course is highly dependent on individual circumstances.

Reasons to Self-Publish:

  • Income Generation: Create a passive income stream.
  • Positive Impact: High leverage; a single creation benefits many learners.
  • Reputation Enhancement: Boosts credibility and career prospects.
  • Personal Learning: Deepens understanding of the subject matter.
  • Personal Fulfillment: Enjoyment of the creative process.

Factors Influencing the Decision:

  • Writing Proficiency: Clear, concise explanation of complex topics is crucial.
  • Marketing Commitment: Active promotion is essential.
  • Personal Value: Align the effort with personal motivations and goals.
  • Opportunity Cost: Consider alternative uses of time and resources.

My experience demonstrates that while writing the book involved an opportunity cost (lower income compared to consulting), it yielded positive impact, increased knowledge, reputational benefits, and personal satisfaction. The positive feedback from readers is incredibly rewarding.

Acknowledgements: Chris Coyier, Geoff Graham, Sacha Greif, Robin Wieruch, Mandi Wise, Sebastian Grebe, Julian Mayorga, and Rachel Lake provided valuable input for this article.

The above is the detailed content of So you want to self-publish books and courses on programming. For more information, please follow other related articles on the PHP Chinese website!

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
CSS Flexbox vs Grid: a comprehensive reviewCSS Flexbox vs Grid: a comprehensive reviewMay 12, 2025 am 12:01 AM

Choosing Flexbox or Grid depends on the layout requirements: 1) Flexbox is suitable for one-dimensional layouts, such as navigation bar; 2) Grid is suitable for two-dimensional layouts, such as magazine layouts. The two can be used in the project to improve the layout effect.

How to Include CSS Files: Methods and Best PracticesHow to Include CSS Files: Methods and Best PracticesMay 11, 2025 am 12:02 AM

The best way to include CSS files is to use tags to introduce external CSS files in the HTML part. 1. Use tags to introduce external CSS files, such as. 2. For small adjustments, inline CSS can be used, but should be used with caution. 3. Large projects can use CSS preprocessors such as Sass or Less to import other CSS files through @import. 4. For performance, CSS files should be merged and CDN should be used, and compressed using tools such as CSSNano.

Flexbox vs Grid: should I learn them both?Flexbox vs Grid: should I learn them both?May 10, 2025 am 12:01 AM

Yes,youshouldlearnbothFlexboxandGrid.1)Flexboxisidealforone-dimensional,flexiblelayoutslikenavigationmenus.2)Gridexcelsintwo-dimensional,complexdesignssuchasmagazinelayouts.3)Combiningbothenhanceslayoutflexibilityandresponsiveness,allowingforstructur

Orbital Mechanics (or How I Optimized a CSS Keyframes Animation)Orbital Mechanics (or How I Optimized a CSS Keyframes Animation)May 09, 2025 am 09:57 AM

What does it look like to refactor your own code? John Rhea picks apart an old CSS animation he wrote and walks through the thought process of optimizing it.

CSS Animations: Is it hard to create them?CSS Animations: Is it hard to create them?May 09, 2025 am 12:03 AM

CSSanimationsarenotinherentlyhardbutrequirepracticeandunderstandingofCSSpropertiesandtimingfunctions.1)Startwithsimpleanimationslikescalingabuttononhoverusingkeyframes.2)Useeasingfunctionslikecubic-bezierfornaturaleffects,suchasabounceanimation.3)For

@keyframes CSS: The most used tricks@keyframes CSS: The most used tricksMay 08, 2025 am 12:13 AM

@keyframesispopularduetoitsversatilityandpowerincreatingsmoothCSSanimations.Keytricksinclude:1)Definingsmoothtransitionsbetweenstates,2)Animatingmultiplepropertiessimultaneously,3)Usingvendorprefixesforbrowsercompatibility,4)CombiningwithJavaScriptfo

CSS Counters: A Comprehensive Guide to Automatic NumberingCSS Counters: A Comprehensive Guide to Automatic NumberingMay 07, 2025 pm 03:45 PM

CSSCountersareusedtomanageautomaticnumberinginwebdesigns.1)Theycanbeusedfortablesofcontents,listitems,andcustomnumbering.2)Advancedusesincludenestednumberingsystems.3)Challengesincludebrowsercompatibilityandperformanceissues.4)Creativeusesinvolvecust

Modern Scroll Shadows Using Scroll-Driven AnimationsModern Scroll Shadows Using Scroll-Driven AnimationsMay 07, 2025 am 10:34 AM

Using scroll shadows, especially for mobile devices, is a subtle bit of UX that Chris has covered before. Geoff covered a newer approach that uses the animation-timeline property. Here’s yet another way.

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

SecLists

SecLists

SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

MinGW - Minimalist GNU for Windows

MinGW - Minimalist GNU for Windows

This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

SublimeText3 English version

SublimeText3 English version

Recommended: Win version, supports code prompts!

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools