←back to thread

617 points EvgeniyZh | 1 comments | | HN request time: 0.001s | source
Show context
stkai ◴[] No.43576376[source]
The source code is such a fun read (for the comments). I found some source code for GW-BASIC, and here are two of my favorites:

  ;WE COULD NOT FIT THE NUMBER INTO THE BUFFER DESPITE OUR VALIENT
  ;EFFORTS WE MUST POP ALL THE CHARACTERS BACK OFF THE STACK AND
  ;POP OFF THE BEGINNING BUFFER PRINT LOCATION AND INPUT A "%" SIGN THERE

  ;CONSTANTS FOR THE RANDOM NUMBER GENERATOR FOLLOW
  ;DO NOT CHANGE THESE WITHOUT CONSULTING KNUTH VOL 2
  ;CHAPTER 3 FIRST
Edit: GW-BASIC, not QBASIC (https://github.com/microsoft/GW-BASIC)
replies(2): >>43576945 #>>43579555 #
deathtrader666 ◴[] No.43579555[source]
Shouldn't it be "valiant" ?
replies(2): >>43579805 #>>43584969 #
roryirvine ◴[] No.43579805[source]
Sure, but in those days spellcheckers were separate apps - the most popular at the time being CorrectStar from MicroPro.

They weren't integrated into programming-oriented editors, and it would have been unusual to run them against code.

replies(1): >>43581285 #
3836293648 ◴[] No.43581285[source]
I still haven't seen anyone using a spellchecker in code outside of IntelliJ
replies(7): >>43583379 #>>43585594 #>>43586083 #>>43586241 #>>43586335 #>>43586660 #>>43592318 #
1. mindcrime ◴[] No.43586335{4}[source]
Eclipse has had an integrated spell-checker, which I believe is on by default for most file types, for like approximately forever. Now maybe everybody turns it off, but I gotta imagine there are some people who like it and keep it on.