5 ms·
Not to worry, there is a 278 page book about initialization in C++! https://leanpub.com/cppinitbook https://leanpub.com/cppinitbook (I don't know whether it's
by nlehuen 1y ago
Not to worry, there is a 278 page book about initialization in C++!
https://leanpub.com/cppinitbook https://leanpub.com/cppinitbook
(I don't know whether it's good or not, I just find it fascinating that it exists)
- nitrogen99 1y agoWell, authors are incentivized into writing long books. Having said that it obviously doesn't take away the fact that C++ init is indeed bonkers.
- harry8 1y agoWhat would be the incentive for making this a long book? Couldn't be money.
- Analemma_ 1y agoI 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.
- sph 1y agoThen you can proudly put “C++ initialization consultant” on your resumé and get paid $1000 a day fixing class constructors at Fortune 500 companies.
- codr7 1y agoThere 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.
- jcelerier 1y agoIt 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
- harry8 1y agoEver written one? How much did you make?
- bluGill 1y agoThe 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)
- harry8 1y agoright so no money in increased sales, which was obviously the point of the comment.
- nitwit005 1y agoImagine you're in a world where magazines are dead, but books are still a thing, and stores won't stock a thin book.
- bhk 1y agoWow! Exhibit 1 for the prosecution.
- kazinator 1y agoC++ doesn't have initiation hazing rituals, but initialization hazing rituals. (One of which is that book.)
- codr7 1y agoThat's what I've been saying, every line of C++ is a book waiting to be written.