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:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] joel_anderson@lemmy.world 8 points 1 year ago (2 children)

All I remember about vbscript was that array indexes started at 1.

[–] MyNameIsRichard@lemmy.ml 11 points 1 year ago (2 children)

I just remembered option base 0 :-)

Wow, they found something even more confusing than 1-indexing (conditional 1-indexing)

[–] andrew@lemmy.stuart.fun 5 points 1 year ago* (last edited 1 year ago)

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.

[–] MajorHavoc@lemmy.world 1 points 1 year ago

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.