News for hackers. Stuff that matters.
Re:JavaScript debuggers are broken by flohofwoe on Monday April 22, 2019 @08:14AM (#19718271)
Sorry for moving the discussion a little bit off-topic, but I like the "Goto considered harmful" as example of cargo-culting, because Dijkstra wrote this when structured-programming wasn't common, and a goto at that time literally meant "jump anywhere in the entire program", like GOTO works in BASIC.

Meanwhile, goto has been tamed and has become a part of the structured-programming-toolset. In C you cannot jump out of the current function with a goto, it's just a slightly more flexible break/continue/return. The meaning of goto has changed completely, yet people still use the "Goto considered harmful" meme as if nothing had changed since Dijkstra wrote that ;)

Re:JavaScript debuggers are broken by rndgermandude on Monday April 22, 2019 @12:00PM (#19719971)
Well, even today it's not entirely useless as a mantra: I have seen a lot of "hardware" and "signals" people in university who when they first had to do something in C or C++ used goto instead of loops and if blocks, coming from an assembler mindset probably where you have to (conditionally) jump (aka goto) around. I had people come to me and ask me "how do you do goto in java" in a java class where I was kinda a TA-A. "Goto considered harmful* (*most of the time, in higher level languages)" still served as a good enough rule of thumb.
Re:JavaScript debuggers are broken by goto11 on Monday April 22, 2019 @06:32PM (#19723699)
But the actual argument Dijkstra makes against goto applies to any use of goto (and would also apply to break and continue and to multiple returns).