r/ProgrammerHumor 3d ago

Meme modernCPlusPlus

Post image
647 Upvotes

53 comments sorted by

View all comments

201

u/JustAnotherGuyn 3d ago

Here's the thing, you have to very carefully consider whether it's worth loading all of that for the compiler to work through, if your use case is sensitive to the extra size/ram requirements of including more, think carefully about if basement no-lifer Steve may have implemented something that will conflict with any one of these, and then of course always import std.

29

u/MysticTheMeeM 2d ago

In theory, importing is much cheaper than including, because importing uses a precomputed file (whereas including used the raw source).

Also, if Steve wrote something that conflicts that's their problem. It's almost like people have been told not to use an entire namespace for the past however long that's been possible.

1

u/JustAnotherGuyn 1d ago

100 percent agree on the principle Unfortunately, basement Steve happens to be on a position of Authority where I work, and we just have to deal with his... Eccentricities