230
True Story
(lemmy.world)
Post funny things about programming here! (Or just rant about your favourite programming language.)
If C++/C were real languages for real programming they'd enforce this in the compiler.
No sane language designer would say "it is imperative that you do not implement your class in its header file" then write a compiler designer to say "oh you implemented your code in the header file? lol lmao that rocks"
They have played you all for fools.
I actually like how much freedom C++ gives you. As long as it is fed valid code, it does not give a fuck about how you choose to structure your project
That freedom becomes misery on the instant you have to start maintain the code from some other free spirit, whose style is totally different from yours.
Or the free spirit was actually you yourself but from three months ago