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.

@Lauchmelder@feddit.de
link
fedilink
Deutsch
67M

not saying it’s good design, I ditched C++ long ago. at least the C++20 modules API is gonna fix this, right guys?

Skull giver
link
fedilink
1
edit-2
7M

deleted by creator

Header files aren’t part of the C++ language at all.

Also mandatory “C++/C is not a language”

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

If C++/C were real languages for real programming they’d enforce unreadability in the compiler.

No sane language designer would say “It is imperative that you write the most unreadable code possible” then write a compiler that says “oh your code doesn’t triple dereference pointers? lol lmao that rocks”

They have played you all for fools.

Create a post

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.
  • 1 user online
  • 77 users / day
  • 211 users / week
  • 413 users / month
  • 2.92K users / 6 months
  • 1 subscriber
  • 1.53K Posts
  • 33.8K Comments
  • Modlog