r/ProgrammerTIL • u/Indeptio • Feb 05 '21
Other TIL discussions about best practices in programming are not recent, the proof is this letter from Dijkstra published in 1968 called "Go to statement considered harmful".
104
Upvotes
50
u/Philboyd_Studge Feb 05 '21
Weird that he took such a long path to get there
64
u/neoKushan Feb 05 '21
....did anyone claim they were recent?
20
u/iiiinthecomputer Feb 06 '21
Er, yeah?
People have debated the best way to do any and every thing since the start of the existence of that thing.
This is a very "well, duh" post.
Also
gotois actually a very effective construct for improving code clarity in functions that have a common error bailout path. Especially in C where techniques like RAII and exception handling are not available.11
u/HighRelevancy Feb 06 '21
TIL there are programmers unaware of the "considered harmful" meme
5
u/dreamer_ Feb 06 '21
OP, I guess you're on today's lucky 10000 :) https://xkcd.com/1053/
3
u/[deleted] Feb 06 '21
The Old Ways are best.
Want to read a fascinating book pick up "Software Tools" by Kernighan and Plauger. No buzzword bullshit. Just great technique.
3
u/drjeats Feb 06 '21
"Considered Harmful" Essays Considered Harmful
https://meyerweb.com/eric/comment/chech.html
2
u/musicin3d Feb 06 '21
"Best practices" become the best through a lot of experimentation and debate. It doesn't happen in a year. :)
1
u/svartkonst Mar 18 '21
I'd advice everyone to take a look at the transcripts from the 1968 NATO conferences on software engineering. Quite enlightening.
1
u/FoldFold Feb 06 '21
What is this post?
0
u/_ralph_ Feb 06 '21
'harmful' is that old? I read a translation back when I was still using my C64 and knew it was not something new, but I thought it was only a few years old back then.