Hacker News new | past | comments | ask | show | jobs | submit login

What are you hoping to prove with the example? That folks that know and understand many of the idioms of programming can easily read this?

Not to mention it does invert many of the things that people coming to it will want.

Consider, you want to tell the computer to ask for something. Once it has an answer, put it in a spot.

    name = input("what's your name?")
That goes the other direction. You start with what you want to store, and then you turned the input into a function. Of course.

Contrast with the BASIC.

    INPUT "What's your name"; name$
You began with what you want the computer to do, input something. You did have to learn "input", but you had to learn that in both. So, it is a wash. There are the odd semicolons. I'd imagine that took some effort.

I'm not going to defend basic as a paragon of programming. But I don't think there is an easy answer. There are tradeoffs. BASIC was the answer in the past, as much because it was free and installed in a lot of default locations as anything else. There are alternatives now. None as widespread as Javascript, as much as the saddens me, personally. It is probably the best choice for people today.




Consider applying for YC's W25 batch! Applications are open till Nov 12.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: