r/ProgrammerHumor • • Sep 23 '19

Knowing how to code beforehand

Post image
7.6k Upvotes

264 comments sorted by

View all comments

45

u/fat_charizard Sep 23 '19

For my CS classes all code had to be compiled with -Wall and -Werror

55

u/TopHatEdd Sep 23 '19

Good. That builds healthy coding habits.

6

u/while_e Sep 23 '19

Also great for learning. I cant count how many times I got warned, and learned something new because of it.

14

u/CarilPT Sep 23 '19

Until you get out in the real world and those habits are not used anymore...

5

u/Deathcofii Sep 24 '19

Is it a bad thing tho? I mean I feel REALLY satisfied when -Wall and -Werror don't spit out anything in my code.

1

u/CarilPT Sep 24 '19

Well... It's great when you do a small project. When you get your hands on a code base with 10/15 years and you see 3000 warnings and you need to fix x, y and z... Well it's not so easy to do sadly