this post was submitted on 18 Jul 2023
743 points (93.2% liked)
Programmer Humor
32479 readers
298 users here now
Post funny things about programming here! (Or just rant about your favourite programming language.)
Rules:
- Posts must be relevant to programming, programmers, or computer science.
- No NSFW content.
- Jokes must be in good taste. No hate speech, bigotry, etc.
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
When JavaScript was first released, it was a god-send. The alternative was vbscript and if you think JavaScript is bad...
All I remember about vbscript was that array indexes started at 1.
I just remembered
option base 0
:-)Wow, they found something even more confusing than 1-indexing (conditional 1-indexing)
option base 42
Sadly, per the syntax docs on O'Reilly it doesn't look like it can be anything but 0 or 1. That's not to say it's a good feature, but at least make it fun if it's gonna be bad.
That's such a perfect summary of VBScript. Starting array indexes at 1 was it's vibe.
VBScript would show up for it's first day as a construction worker in a white shirt and a tie. I loved VBScripts willingness to do messy work, but boy was it unprepared in many contexts.