News for hackers. Stuff that matters.
Re:The original source code of Microsoft GW-BASIC from 1983 by bluedino on Thursday May 21, 2020 @08:29PM (#23267363)
Well...remember it is 'just' a BASIC interpreter.

Woz wrote Apple integer BASIC in the evenings while working at HP in just a few months. Guys were writing crazy stuff at the time. The original version of DOS that Microsoft bought to license to IBM for the PC was written in 6 weeks.

Re:The original source code of Microsoft GW-BASIC from 1983 by Tehdasi on Thursday May 21, 2020 @09:09PM (#23267675)
Expectations of complexity were much less in those days. Like, a programming language that is limited to 40 character variable names would be considered amateur hour, but back in the day it was prolly considered luxuriant. Also given the memory constraints, it also limited the amount of complexity you could put in your code.
Re:The original source code of Microsoft GW-BASIC from 1983 by vidarh on Friday May 22, 2020 @04:17AM (#23269774)
More than luxuriant. Commodore BASIC (effectively 6502 Microsoft BASIC under license with tweaks) on the C64 only looked at the first two characters of variable names. It allowed them to be longer (don't remember how long), but would ignore subsequent letters.
Re:The original source code of Microsoft GW-BASIC from 1983 by guenthert on Friday May 22, 2020 @12:09PM (#23273603)
This is getting off-track, but while the pitfalls of two relevant characters out of potentially many are obvious and only excusable due to technical limitation of the platform, insisting on more than 40 relevant characters is likewise contraproductive. Who (which human) will readily distinguish two character strings more than 40 characters in length sharing the first 40?

I feel often the need to remind programmers, that they don't write code for the computer. The computer will make it obvious, whether it understands you or not. You write for the poor sod tasked to maintain your code three years from now, when you're at your next gig.

Re:The original source code of Microsoft GW-BASIC from 1983 by panzagl on Friday May 22, 2020 @01:20PM (#23274553)
Does namespacing count? com.mycompany.class.classfactory.factory.initializer.StaticGlobal

Sure you can usually use import/aliasing to narrow it, but sometimes you just need to grab some random global from somewhere.

Re:The original source code of Microsoft GW-BASIC from 1983 by KCUOJJQJ on Thursday May 21, 2020 @10:20PM (#23268089)
>The original version of DOS that Microsoft bought to license to IBM for the PC was written in 6 weeks.

Is this actually true? From https://en.wikipedia.org/wiki/Tim_Paterson

When a book appeared in 2004 claiming that 86-DOS was an unoriginal "rip-off" of CP/M,[6] Paterson sued the authors and publishers for defamation.[7][8] The judge found that Paterson failed to provide any evidence regarding "serious doubts" about the accuracy of the Gary Kildall chapter.

Re:The original source code of Microsoft GW-BASIC from 1983 by mrunkel on Friday May 22, 2020 @01:39AM (#23268971)
Even a "rip-off" takes time to write. I'm not sure what you're questioning.

It wasn't a direct copying of the code, but the API was largely similar to CP/M.

Re:The original source code of Microsoft GW-BASIC from 1983 by staycoolboy on Thursday May 21, 2020 @08:47PM (#23267505)
I try to gauge the complexity of a task like this with a period view. On the one hand, BASIC was quite simple, and the 8-bit CPU had an instruction set that could be easily memorized (days before protected mode and 64 bytes worth of potential extended instruction decode prefixes!). On the other hand, debugging, code entry and documentation was sparse. (And there was no Stack Overflow.) So when I think to myself: How hard was this task compared to my for-fun projects? I really don't know what to think in today's inflationary terms. Thoughts?
Re:The original source code of Microsoft GW-BASIC from 1983 by calccc on Friday May 22, 2020 @04:13AM (#23269747)
Also, Spinellis' obfuscated C contest winner (the dds entry with LANDER.BAS):

https://www.ioccc.org/years.html#1990