Hacker News new | past | comments | ask | show | jobs | submit login

Not to worry, there is a 278 page book about initialization in C++!

https://leanpub.com/cppinitbook

(I don't know whether it's good or not, I just find it fascinating that it exists)




Wow! Exhibit 1 for the prosecution.


C++ doesn't have initiation hazing rituals, but initialization hazing rituals. (One of which is that book.)


That's what I've been saying, every line of C++ is a book waiting to be written.


Well, authors are incentivized into writing long books. Having said that it obviously doesn't take away the fact that C++ init is indeed bonkers.


What would be the incentive for making this a long book? Couldn't be money.


It is actually. It's been shown that longer books make more sales as they are considered more trustworthy, so authors are incentivized to artificially drag them longer than they actually require


Ever written one? How much did you make?


The money isn't from book sales. The money is you can charge higher consultant fees because "you wrote the book". If you don't play the game of course you won't make money, but writing a book is one step. (the full game has lots of different paths, there are other ways to make a lot of money without writing a book)


right so no money in increased sales, which was obviously the point of the comment.


I imagine if I'd managed to actually memorize all of C++'s initialization rules, I'd probably have to write a book too just to get it all out, or I'd lose my sanity.


Then you can proudly put “C++ initialization consultant” on your resumé and get paid $1000 a day fixing class constructors at Fortune 500 companies.


There are no limits to how much of an specialized expert you can become in C++.

Knowing all of it just isn't possible from my experience.


Imagine you're in a world where magazines are dead, but books are still a thing, and stores won't stock a thin book.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: