News for hackers. Stuff that matters.
Re:Ask HN: Refactoring a BASIC Blackjack Game from the 70s by JohnDeHope on Friday May 27, 2016 @07:22PM (#11789769)
Related question... Is early BASIC the best we could do with all of our modern programming experience? If we were teleported back in time, knowing everything we do now, what could we accomplish in the same hardware constraints, language design wise?
Re:Ask HN: Refactoring a BASIC Blackjack Game from the 70s by LarryMade2 on Friday May 27, 2016 @07:47PM (#11789873)
Some really basic concepts weren't even realized back then one big one is hypertext - its not really a complex thing when you think about it but undiscovered then.

At the time many folks were graduating from cassette/paper tape to floppy disk, so random text file usage was kind of a new thing to many micro owners, text files were there but mainly used to store program variable data. Other concepts like compression, graphics formats, remote updating, distributed data, etc. were in their infancy.

I would think someone going back there would have an advantage, they may have to learn the old languages then build a whole lot of tools, but they would know more advanced end results which is a lot better then trial and error to reach those points originally.

Re:Ask HN: Refactoring a BASIC Blackjack Game from the 70s by maxerickson on Friday May 27, 2016 @07:50PM (#11789890)
Hypertext was in the Mother of All Demos in 1968:

https://en.wikipedia.org/wiki/The_Mother_of_All_Demos

Re:Ask HN: Refactoring a BASIC Blackjack Game from the 70s by nobleach on Saturday May 28, 2016 @01:35AM (#11790712)
I think it would be difficult for anyone that currently develops software for the web to truly get that whole era. 4k of memory.... 4k. I have people telling me that I'm prematurely optimizing things all the time. "Memory is cheap". If they knew they had 4k, every step of the way would be an optimization. All variables would be named a letter. No garbage collection because we'd be mallocing every single byte and mfreeing it asap. I really am wracking my brain to think of a concept that we have that we could have had in the 80's. Most of the greatest things are because we had CPU cycles and memory to burn.
Re:Ask HN: Refactoring a BASIC Blackjack Game from the 70s by LarryMade2 on Saturday May 28, 2016 @09:38AM (#11791616)
Toys - a few years back some toy manufacturer was looking for some 6502 coders to work on a toy, had gobs of ROM storage (for code and audio) but only 256 bytes of RAM to work with.
Re:Ask HN: Refactoring a BASIC Blackjack Game from the 70s by pedasmith on Friday May 27, 2016 @09:08PM (#11790167)
Many of the early systems were made in a very short amount of time by a very small number of people who had remarkably bad tools.

I wrote code (pre-STL) for linked lists, sorted arrays, array lookups, and everything. And without modern languages (like C#!), I had to fight with not screwing up pointers.