3 ms·
> Computer retailers stopped installing development environments by default This is true, but somewhat ignores web browsers. The big ones (Chrome, Firefox, IE
by dahart 9y ago
> Computer retailers stopped installing development environments by default
This is true, but somewhat ignores web browsers. The big ones (Chrome, Firefox, IE & Safari) all have complete and high quality dev environments.
The article is Python-centric, and so the best answer for that right now is: install Anaconda!
Otherwise, the general argument being made here is solved by JavaScript at the moment.
If you use JS to write code, there’s nothing to install, distribution is built in, it comes with the dev environment. All language and feature comparisons aside, this is the strongest reason to use JS, because it makes sharing programs with other people so insanely easy compared to any other language.
- DanBC 9y agoBASIC is easy to understand. Javascript is incomprehensible in comparison. https://news.ycombinator.com/item?id=11637866 https://news.ycombinator.com/item?id=11637866 var drawing = document.createElement('canvas'); document.body.appendChild(drawing); var ctx = drawing.getContext('2d'); ctx.beginPath(); ctx.moveTo(0, 0); ctx.lineTo(100, 100); ctx.stroke(); VS SCREEN 13 LINE (X1, Y1) - (X2, Y2), COLOUR I'm not claiming BASIC is a good language, or that it teaches good programming. But it is very easy to use.
- dahart 9y agoThat's true for drawing one straight line, sure! The question here wasn't whether the language is easy to use, the issue raised in the article was whether the language & dev environment are pre-installed, how hard they are to install, and then how hard the programs are to share after you're written them. No version of BASIC is being shipped with any OS today. You still have to download the language and a dev environment on a brand new (Windows) computer. And when you share a BASIC program, you either have to build an executable that will run on someone else's machine, or the recipient has to install BASIC on their own. (The article was about sharing code & learning to code, so a binary isn't ideal.) JavaScript and the dev environment, on the other hand, comes with every new computer, on every OS, because browsers are pre-installed. BTW, is this modern basic? That looks like what I remember from DOS 2.0 in 1980. :P To be fair, you're comparing HTML canvas API to BASIC's native line drawing, this example doesn't actually say much about the JavaScript or BASIC languages. And it doesn't compare BASIC's graphics to canvas's... with canvas you can draw curves and bitmaps and do transforms. I'm not familiar with whether BASIC can do that these days. In my experience, canvas is quite easy to use, even compared to BASIC. I know you were joking, but incomprehensible is what I'd use for, say, Vulkan or DX12. JS+canvas is very comprehensible and easy, at all times, in my opinion.