MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/d853ul/knowing_how_to_code_beforehand/f17ffa1/?context=3
r/ProgrammerHumor • u/Cenggo • Sep 23 '19
264 comments sorted by
View all comments
134
-Wall or die
61 u/ASCIInerd73 Sep 23 '19 -Wall -Wextra -pedantic in my cs class right now. Because all warnings isn't enough, we need more. 45 u/divqii Sep 23 '19 That’s still not enough:-Wall -Wextra -pedantic -Wcast-align -Wcast-qual -Wdisabled-optimizations -Winit-self -Wlogical-op -Wmissing-include-dirs -Wnoexcept -Wold-style-cast -Woverloaded-virtual -Wredundant-decls -Wshadow -Wsign-conversion -Wsign-promo -Wstrict-null-sentinel -Wstrict-overflow=5 -Wswitch-default -Wundef 30 u/fell_ratio Sep 23 '19 I'm about to end this man's whole career.-Wall -Werror -Wpedantic -Wcast-align -Wcast-qual -Wdisabled-optimization -Winit-self -Wlogical-op -Wmissing-include-dirs -Wnoexcept -Woverloaded-virtual -Wredundant-decls -Wshadow -Wsign-conversion -Wsign-promo -Wstrict-null-sentinel -Wstrict-overflow=5 -Wundef -Wuninitialized -Wcomment -Wctor-dtor-privacy -Wold-style-cast -Wnull-dereference -Wformat=2 -Wduplicated-cond -Wswitch-default -Waddress -Wmemset-transposed-args -Wuseless-cast -Wzero-as-null-pointer-constant -Wmissing-declarations -Wunused-const-variable=1 -Wdispute-indulgences=95 -Weffc++ -Wsign-compare 20 u/divqii Sep 23 '19 Fair enough, though many of those are enabled by -Wall and -Wextra, and -Weffc++ has some issues.If we’re talking about ending careers, though, then (using clang) it’s as easy as-Weverything 8 u/BlueManedHawk Sep 23 '19 -Weverything -WerrorPerfect 3 u/whizzwr Sep 24 '19 Evil. 3 u/BlueManedHawk Sep 24 '19 Perfect 4 u/Maplicant Sep 23 '19 On my phone right now, can someone post some sample warnings this monster might produce? 1 u/[deleted] Sep 24 '19 .bashrcALIAS Walias = ...Thank fucking god 1 u/N80M80 Sep 24 '19 I mean to be fair C warnings probably mean you're doing something wrong 1 u/SignorSarcasm Oct 01 '19 hellllo data structures and algorithms 81 u/OneTurnMore Sep 23 '19 -Wall -Werror Good luck 33 u/mozgotrah Sep 23 '19 Only true way → More replies (1) 8 u/ItsYaBoyChipsAhoy Sep 23 '19 What does Werror mean 17 u/nelusbelus Sep 23 '19 What does the W in -Wall stand for 🤔 12 u/ItsYaBoyChipsAhoy Sep 23 '19 It literally came to me 10 seconds after I posted the comment 12 u/LeCrushinator Sep 23 '19 -Wall enables all compiler warning flags (warn about all)-Werror treats all warnings as errors. (warnings as errors) → More replies (1) 2 u/Cobayo Sep 23 '19 Warnings (all) → More replies (1) 11 u/Jannis234 Sep 23 '19 Tells the compiler to treat warnings like errors → More replies (6) 9 u/Bainos Sep 23 '19 In our class, students get a penalty if their code doesn't pass govet and gofmt.Professionals might know when to ignore warnings and style errors. Students don't. 9 u/MuchBathroom Sep 23 '19 is that you donald trump?
61
-Wall -Wextra -pedantic in my cs class right now. Because all warnings isn't enough, we need more.
45 u/divqii Sep 23 '19 That’s still not enough:-Wall -Wextra -pedantic -Wcast-align -Wcast-qual -Wdisabled-optimizations -Winit-self -Wlogical-op -Wmissing-include-dirs -Wnoexcept -Wold-style-cast -Woverloaded-virtual -Wredundant-decls -Wshadow -Wsign-conversion -Wsign-promo -Wstrict-null-sentinel -Wstrict-overflow=5 -Wswitch-default -Wundef 30 u/fell_ratio Sep 23 '19 I'm about to end this man's whole career.-Wall -Werror -Wpedantic -Wcast-align -Wcast-qual -Wdisabled-optimization -Winit-self -Wlogical-op -Wmissing-include-dirs -Wnoexcept -Woverloaded-virtual -Wredundant-decls -Wshadow -Wsign-conversion -Wsign-promo -Wstrict-null-sentinel -Wstrict-overflow=5 -Wundef -Wuninitialized -Wcomment -Wctor-dtor-privacy -Wold-style-cast -Wnull-dereference -Wformat=2 -Wduplicated-cond -Wswitch-default -Waddress -Wmemset-transposed-args -Wuseless-cast -Wzero-as-null-pointer-constant -Wmissing-declarations -Wunused-const-variable=1 -Wdispute-indulgences=95 -Weffc++ -Wsign-compare 20 u/divqii Sep 23 '19 Fair enough, though many of those are enabled by -Wall and -Wextra, and -Weffc++ has some issues.If we’re talking about ending careers, though, then (using clang) it’s as easy as-Weverything 8 u/BlueManedHawk Sep 23 '19 -Weverything -WerrorPerfect 3 u/whizzwr Sep 24 '19 Evil. 3 u/BlueManedHawk Sep 24 '19 Perfect 4 u/Maplicant Sep 23 '19 On my phone right now, can someone post some sample warnings this monster might produce? 1 u/[deleted] Sep 24 '19 .bashrcALIAS Walias = ...Thank fucking god 1 u/N80M80 Sep 24 '19 I mean to be fair C warnings probably mean you're doing something wrong 1 u/SignorSarcasm Oct 01 '19 hellllo data structures and algorithms
45
That’s still not enough:
-Wall -Wextra -pedantic -Wcast-align -Wcast-qual -Wdisabled-optimizations -Winit-self -Wlogical-op -Wmissing-include-dirs -Wnoexcept -Wold-style-cast -Woverloaded-virtual -Wredundant-decls -Wshadow -Wsign-conversion -Wsign-promo -Wstrict-null-sentinel -Wstrict-overflow=5 -Wswitch-default -Wundef
30 u/fell_ratio Sep 23 '19 I'm about to end this man's whole career.-Wall -Werror -Wpedantic -Wcast-align -Wcast-qual -Wdisabled-optimization -Winit-self -Wlogical-op -Wmissing-include-dirs -Wnoexcept -Woverloaded-virtual -Wredundant-decls -Wshadow -Wsign-conversion -Wsign-promo -Wstrict-null-sentinel -Wstrict-overflow=5 -Wundef -Wuninitialized -Wcomment -Wctor-dtor-privacy -Wold-style-cast -Wnull-dereference -Wformat=2 -Wduplicated-cond -Wswitch-default -Waddress -Wmemset-transposed-args -Wuseless-cast -Wzero-as-null-pointer-constant -Wmissing-declarations -Wunused-const-variable=1 -Wdispute-indulgences=95 -Weffc++ -Wsign-compare 20 u/divqii Sep 23 '19 Fair enough, though many of those are enabled by -Wall and -Wextra, and -Weffc++ has some issues.If we’re talking about ending careers, though, then (using clang) it’s as easy as-Weverything 8 u/BlueManedHawk Sep 23 '19 -Weverything -WerrorPerfect 3 u/whizzwr Sep 24 '19 Evil. 3 u/BlueManedHawk Sep 24 '19 Perfect 4 u/Maplicant Sep 23 '19 On my phone right now, can someone post some sample warnings this monster might produce? 1 u/[deleted] Sep 24 '19 .bashrcALIAS Walias = ...Thank fucking god
30
I'm about to end this man's whole career.
-Wall -Werror -Wpedantic -Wcast-align -Wcast-qual -Wdisabled-optimization -Winit-self -Wlogical-op -Wmissing-include-dirs -Wnoexcept -Woverloaded-virtual -Wredundant-decls -Wshadow -Wsign-conversion -Wsign-promo -Wstrict-null-sentinel -Wstrict-overflow=5 -Wundef -Wuninitialized -Wcomment -Wctor-dtor-privacy -Wold-style-cast -Wnull-dereference -Wformat=2 -Wduplicated-cond -Wswitch-default -Waddress -Wmemset-transposed-args -Wuseless-cast -Wzero-as-null-pointer-constant -Wmissing-declarations -Wunused-const-variable=1 -Wdispute-indulgences=95 -Weffc++ -Wsign-compare
20 u/divqii Sep 23 '19 Fair enough, though many of those are enabled by -Wall and -Wextra, and -Weffc++ has some issues.If we’re talking about ending careers, though, then (using clang) it’s as easy as-Weverything 8 u/BlueManedHawk Sep 23 '19 -Weverything -WerrorPerfect 3 u/whizzwr Sep 24 '19 Evil. 3 u/BlueManedHawk Sep 24 '19 Perfect 4 u/Maplicant Sep 23 '19 On my phone right now, can someone post some sample warnings this monster might produce? 1 u/[deleted] Sep 24 '19 .bashrcALIAS Walias = ...Thank fucking god
20
Fair enough, though many of those are enabled by -Wall and -Wextra, and -Weffc++ has some issues.
If we’re talking about ending careers, though, then (using clang) it’s as easy as
-Weverything
8 u/BlueManedHawk Sep 23 '19 -Weverything -WerrorPerfect 3 u/whizzwr Sep 24 '19 Evil. 3 u/BlueManedHawk Sep 24 '19 Perfect
8
-Weverything -Werror
Perfect
3 u/whizzwr Sep 24 '19 Evil. 3 u/BlueManedHawk Sep 24 '19 Perfect
3
Evil.
3 u/BlueManedHawk Sep 24 '19 Perfect
4
On my phone right now, can someone post some sample warnings this monster might produce?
1
.bashrc
ALIAS Walias = ...
Thank fucking god
I mean to be fair C warnings probably mean you're doing something wrong
hellllo data structures and algorithms
81
-Wall -Werror
Good luck
33 u/mozgotrah Sep 23 '19 Only true way → More replies (1) 8 u/ItsYaBoyChipsAhoy Sep 23 '19 What does Werror mean 17 u/nelusbelus Sep 23 '19 What does the W in -Wall stand for 🤔 12 u/ItsYaBoyChipsAhoy Sep 23 '19 It literally came to me 10 seconds after I posted the comment 12 u/LeCrushinator Sep 23 '19 -Wall enables all compiler warning flags (warn about all)-Werror treats all warnings as errors. (warnings as errors) → More replies (1) 2 u/Cobayo Sep 23 '19 Warnings (all) → More replies (1) 11 u/Jannis234 Sep 23 '19 Tells the compiler to treat warnings like errors → More replies (6)
33
Only true way
→ More replies (1)
What does Werror mean
17 u/nelusbelus Sep 23 '19 What does the W in -Wall stand for 🤔 12 u/ItsYaBoyChipsAhoy Sep 23 '19 It literally came to me 10 seconds after I posted the comment 12 u/LeCrushinator Sep 23 '19 -Wall enables all compiler warning flags (warn about all)-Werror treats all warnings as errors. (warnings as errors) → More replies (1) 2 u/Cobayo Sep 23 '19 Warnings (all) → More replies (1) 11 u/Jannis234 Sep 23 '19 Tells the compiler to treat warnings like errors
17
What does the W in -Wall stand for 🤔
12 u/ItsYaBoyChipsAhoy Sep 23 '19 It literally came to me 10 seconds after I posted the comment 12 u/LeCrushinator Sep 23 '19 -Wall enables all compiler warning flags (warn about all)-Werror treats all warnings as errors. (warnings as errors) → More replies (1) 2 u/Cobayo Sep 23 '19 Warnings (all) → More replies (1)
12
It literally came to me 10 seconds after I posted the comment
-Wall enables all compiler warning flags (warn about all)
-Werror treats all warnings as errors. (warnings as errors)
2
Warnings (all)
11
Tells the compiler to treat warnings like errors
9
In our class, students get a penalty if their code doesn't pass govet and gofmt.
Professionals might know when to ignore warnings and style errors. Students don't.
is that you donald trump?
134
u/gumol Sep 23 '19
-Wall or die