4 ms·
> The hello world has never been easier to do. We also used to have BASIC pre-installed on a lot of different systems, and were able to write a GUI just by wri
by shakna 9y ago
> The hello world has never been easier to do.
We also used to have BASIC pre-installed on a lot of different systems, and were able to write a GUI just by writing to the frame buffer directly.
A helloworld was just:
10 PRINT "Hello, World!"
I learned to program in BASIC, with just the on-disk manuals. I can't say that it's easier today - I didn't need anything extra back then, and had a snake game up and running in a couple days from never knowing programming.
Today, we don't even have access to an unbuffered get_char by default, and you need to either modify how the shell is running or reach for a heavy library.
- mwcampbell 9y ago> were able to write a GUI just by writing to the frame buffer directly. And, among other problems, that GUI was inaccessible to people with disabilities, e.g. blind people or people who need to use an alternative input method. It probably wasn't internationalized or as good-looking as today's GUIs either. In the words of Billy Joel (in the song "Keeping the Faith"), "say goodbye to the oldies but goodies, cause the good old days weren't always good, and tomorrow ain't as bad as it seems."
- protomikron 9y agoI think while True: print('Hello, World!") is not that much worse. Granted you have to launch a shell first. Obviously the programming stack got more complex and users' expectations got higher (which is a good thing), so it is more work to make a program that is useful. But the things that have been simple then are still simple today - they are just not popular anymore or not installed by default.
- readams 9y agoexcept with BASIC you turned on the computer and literally the first thing you saw was a prompt where you could type your program. The whole point of this article is that downloading and installing python to the point where you can contemplate typing your program is a big barrier.
- fragmede 9y agoToday's modern and accessible example (in Chrome) is to hit ctrl-shift-i, then type out `console.log('Hello world!')`. Users these days browse the web, so having Chrome/Firefox/Edge isn't anything extra. It may take a bit longer to write snake though; games these days have user accounts, achievements, and multiplayer. Kids these days have something better than get_ch; a mouse! It's way easier today with all the free, spoon-fed resources available. It's also way easier to get distracted, with the Internet just a tab away. If we can manage to throw out preconceived notions about "serious" computing, that is. There are still language prejudiced corners that actually believe Python isn't "real" programming; that javascript is "just" a scripting language. Meanwhile, people are passing jsfiddle links around and learning to program. Glitch.com lets users build a whole apps (meaning frontend and backend) for free!
- shakna 9y ago> Kids these days have something better than get_ch; a mouse! Had that too. Had full GUIs from tracking mouse movement and writing to the framebuffer. Our software is more complex, so programming it is. Let's go with JS, as getting up to basic game design is still fairly simple in it. Scanning for keycodes is done by a callback, so you need to have a basic idea of scoping, objects, and functions before you can get started. Didn't need any of that in the past, because BASIC's procedural model was dead simple. Then to draw, you have to either learn about the DOM or the canvas, you can't just POKE and PEEK til it works. There's nothing wrong with using Python or JS or whatever, but the complexity to get going is much higher than my childhood. For good reasons, but still more complex.
- IshKebab 9y agoYeah but we only has BASIC. Want to do some real C++ GUI programming? That'll be £1000 for the compiler please.
- shakna 9y agoGuessing you never had access to Turbo C++, which was originally released for US$50.
- IshKebab 9y agoNo because I didn't have $50, or a credit card with which to buy it.
- shakna 9y agoSorry, didn't mean to come across as harsh. Just wanted to point out that C++ was in reach for a lot of people, thanks to Borland's compilers. They were considered cheap by most. Example, in my case. I had a TRS-80 200 computer, which cost US$600. About the same as most computers of that era. In the context of owning a computer, the $50 wasn't much more.
- snarfy 9y agoMy family got our first computer when I was 6 years old. It was a 4K ROM BASIC machine with cassette storage. It didn't come with any software. Instead it came with a book that taught some BASIC and then pages of program listings you were supposed to type in. That's all you could do with the early computers - program them. Now I have a career in software development.