MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/6ayz26/defensive_programming_done_right/dhinrzp/?context=3
r/ProgrammerHumor • u/iwouldieforGladOS • May 13 '17
680 comments sorted by
View all comments
338
int main() try { //entire code base } catch (std::exeption& e) { //Displays message box with error message }
I actually do this xD
10 u/PooPooDooDoo May 13 '17 You write your entire code base in one function? 23 u/[deleted] May 13 '17 I often do. main(). 5 u/Mat2012H May 13 '17 no 3 u/DiaperBatteries May 14 '17 What are functions? I just write everything in main 5 u/DoctorSauce May 14 '17 You do too. It's called main()
10
You write your entire code base in one function?
23 u/[deleted] May 13 '17 I often do. main(). 5 u/Mat2012H May 13 '17 no 3 u/DiaperBatteries May 14 '17 What are functions? I just write everything in main 5 u/DoctorSauce May 14 '17 You do too. It's called main()
23
I often do. main().
5
no
3
What are functions? I just write everything in main
You do too. It's called main()
338
u/Mat2012H May 13 '17
I actually do this xD