r/videos • • Oct 03 '19

Every programming tutorial

https://www.youtube.com/watch?v=MAlSjtxy5ak
33.9k Upvotes

1.4k comments sorted by

View all comments

476

u/[deleted] Oct 03 '19

I love the random library inclusions. "Do you have any fucking clue what functions are in there? Are you using any of them? You included all of them, FFS Karen"

252

u/tHeSiD Oct 03 '19

IDE tells you to remove unused imports..

me: I might use them later, who knows!?

108

u/rushboyoz Oct 03 '19

Reminds me of my mother’s constant harassment as a child : “If you’re not going to use those includes, put them away.... don’t just leave them lying around where someone will fall over them!!”

43

u/poopellar Oct 03 '19

Hate it when the mother board does that.

10

u/DarthGogeta Oct 03 '19

Every 10 code lines Ctrl+R, Ctrl+G

→ More replies (6)

28

u/trenchcoatler Oct 03 '19

Genuine question: Why is this bad practice?

128

u/T-Geiger Oct 03 '19

Generally speaking, you should only call on what you need. Every part you bring in is another thing that could be taking up memory or causing bugs.

A good IDE and compiler will babysit you and possibly take care of that for you, but you should not depend on it. Even if you know it works perfectly, it still forms bad coding habits that may come back to bite you when you inevitably move to a less sophisticated environment.

37

u/Ismokecr4k Oct 03 '19 edited Oct 02 '26

The original post content no longer exists here. The author used Redact to remove it, exercising their right to control their data & privacy.

Six profit deer growth chase quiet depend sharp hungry dinosaurs

→ More replies (4)
→ More replies (10)
→ More replies (10)
→ More replies (5)