News for hackers. Stuff that matters.
Re:Ask HN: Refactoring a BASIC Blackjack Game from the 70s by russellbeattie on Friday May 27, 2016 @08:13PM (#11789978)
I took a few minutes to see how difficult it would be just regexing a bunch of lines into something like JavaScript. At first it was pretty clear, but then wow... I forgot how insane GOTOs were! How anyone could follow a program like that amazes me.
Re:Ask HN: Refactoring a BASIC Blackjack Game from the 70s by LarryMade2 on Friday May 27, 2016 @10:26PM (#11790339)
If you look at it they are doing the job of extended if then/else or switch commands, just in reverse. What gets me is all the gosubs... :-D Seems like everyone was doing them to make the programs look smarter.