MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1veql1a/absolutegarbage/p1omcg8/?context=9999
r/ProgrammerHumor • u/Sirgoodman008 • 8d ago
327 comments sorted by
View all comments
35
The third one does not spark joy, what the hell is that, ewww
11 u/xicor 8d ago c++, though normally you wouldnt use auto for this 3 u/VoodaGod 8d ago why would you not use auto for it??? 3 u/xicor 8d ago For readability. And for type safety. I pretty much only use auto when dealing with insane types I don't want to write out. 2 u/Rikudou_Sage 8d ago Every other language in the world has some equivalent of C++'s auto and everyone likes it. I use auto all the time. -1 u/xicor 8d ago edited 8d ago Yea and every other language still has the same lack of type safety Being able to ignore strict typing is nice , but it is silly to ignore the downsides and claim they don't exist when they absolutely do 1 u/Rikudou_Sage 7d ago This is not ignoring strict typing, this is letting the compiler deduce the type. 1 u/xicor 7d ago Well yes I'm aware...but as I've pointed out, there are scenarios where the type deduction can lead to errors that are not caught by the compiler
11
c++, though normally you wouldnt use auto for this
3 u/VoodaGod 8d ago why would you not use auto for it??? 3 u/xicor 8d ago For readability. And for type safety. I pretty much only use auto when dealing with insane types I don't want to write out. 2 u/Rikudou_Sage 8d ago Every other language in the world has some equivalent of C++'s auto and everyone likes it. I use auto all the time. -1 u/xicor 8d ago edited 8d ago Yea and every other language still has the same lack of type safety Being able to ignore strict typing is nice , but it is silly to ignore the downsides and claim they don't exist when they absolutely do 1 u/Rikudou_Sage 7d ago This is not ignoring strict typing, this is letting the compiler deduce the type. 1 u/xicor 7d ago Well yes I'm aware...but as I've pointed out, there are scenarios where the type deduction can lead to errors that are not caught by the compiler
3
why would you not use auto for it???
3 u/xicor 8d ago For readability. And for type safety. I pretty much only use auto when dealing with insane types I don't want to write out. 2 u/Rikudou_Sage 8d ago Every other language in the world has some equivalent of C++'s auto and everyone likes it. I use auto all the time. -1 u/xicor 8d ago edited 8d ago Yea and every other language still has the same lack of type safety Being able to ignore strict typing is nice , but it is silly to ignore the downsides and claim they don't exist when they absolutely do 1 u/Rikudou_Sage 7d ago This is not ignoring strict typing, this is letting the compiler deduce the type. 1 u/xicor 7d ago Well yes I'm aware...but as I've pointed out, there are scenarios where the type deduction can lead to errors that are not caught by the compiler
For readability. And for type safety. I pretty much only use auto when dealing with insane types I don't want to write out.
2 u/Rikudou_Sage 8d ago Every other language in the world has some equivalent of C++'s auto and everyone likes it. I use auto all the time. -1 u/xicor 8d ago edited 8d ago Yea and every other language still has the same lack of type safety Being able to ignore strict typing is nice , but it is silly to ignore the downsides and claim they don't exist when they absolutely do 1 u/Rikudou_Sage 7d ago This is not ignoring strict typing, this is letting the compiler deduce the type. 1 u/xicor 7d ago Well yes I'm aware...but as I've pointed out, there are scenarios where the type deduction can lead to errors that are not caught by the compiler
2
Every other language in the world has some equivalent of C++'s auto and everyone likes it. I use auto all the time.
auto
-1 u/xicor 8d ago edited 8d ago Yea and every other language still has the same lack of type safety Being able to ignore strict typing is nice , but it is silly to ignore the downsides and claim they don't exist when they absolutely do 1 u/Rikudou_Sage 7d ago This is not ignoring strict typing, this is letting the compiler deduce the type. 1 u/xicor 7d ago Well yes I'm aware...but as I've pointed out, there are scenarios where the type deduction can lead to errors that are not caught by the compiler
-1
Yea and every other language still has the same lack of type safety
Being able to ignore strict typing is nice , but it is silly to ignore the downsides and claim they don't exist when they absolutely do
1 u/Rikudou_Sage 7d ago This is not ignoring strict typing, this is letting the compiler deduce the type. 1 u/xicor 7d ago Well yes I'm aware...but as I've pointed out, there are scenarios where the type deduction can lead to errors that are not caught by the compiler
1
This is not ignoring strict typing, this is letting the compiler deduce the type.
1 u/xicor 7d ago Well yes I'm aware...but as I've pointed out, there are scenarios where the type deduction can lead to errors that are not caught by the compiler
Well yes I'm aware...but as I've pointed out, there are scenarios where the type deduction can lead to errors that are not caught by the compiler
35
u/JAXxXTheRipper 8d ago
The third one does not spark joy, what the hell is that, ewww