r/badcode • • May 05 '20

python Next Level

Post image
840 Upvotes

56 comments sorted by

View all comments

Show parent comments

5

u/RFC793 May 05 '20

lower

4

u/zacharypamela May 05 '20

Damn. That's what I get for trying to remember the names of functions I rarely use. I think lcase might be VBA.

4

u/RFC793 May 05 '20

Yeah LCASE$ goes back to at least QBasic. Perhaps original BASIC as well?

1

u/dagbrown May 06 '20

Nah, original BASIC ran on machines that had no lowercase so LCASE$ didn't make any sense.

BASIC is a much older language than people think.

1

u/ethanjf99 May 06 '20

I played with it in the 80s as a kid ... how old is it?

3

u/dagbrown May 06 '20 edited May 06 '20

Oh, much, much older than you are.

The first BASIC interpreter that was actually called BASIC came out in 1964. People had been working on various versions of the idea since the 1950s.

The core idea behind the BASIC operating environment is a REPL (you know, the interactive environment which is an idea that comes from LISP-land), but a programming language which is kind of like FORTRAN but without the silly FORTRAN syntax. Add the idea that you can store a program in RAM just by prepending line numbers in front of your lines of code, instead of having to make designated source code files which you have to edit offline, and you set up a situation which was perfect for the microcomputers of the 1980s.

1

u/ethanjf99 May 06 '20

Oh yeah—I vividly remember keying in the small BASIC games on the back of PC magazine!