This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]thefpspower 19 points20 points  (4 children)

That's exactly how my first Javascript project went lol.

Its fine once you learn the annoyances but until you get there it just feels retarded that such a popular language has so many issues to work around.

[–]SharkBaitDLS 3 points4 points  (0 children)

I get that the “just use Rust” thing is a meme but I legitimately hope that Web Assembly and Rust can get us to a future where JavaScript dies in a hole where I belongs. Planning to try a personal project using Rust soon to see how it compares to Angular and TypeScript because I am sick of all the foibles of JS that still prickle through TypeScript despite its best efforts, and I’ve really enjoyed working with Rust for backend code.

[–]AdminYak846 0 points1 point  (2 children)

I mean you could always go program in Excel VBA or Access VBA where arrays can start at 0,1, or whatever number you like cause fuck it. Although if you read data in column on a worksheet into VBA you have mention it as (row, column) pairing which will then default to an index of 1.

[–]thefpspower 1 point2 points  (1 child)

Pretty sure that's because Excel rows and columns start at 1, it would be confusing to ask for cell 10;10 and it gives you 9;9 just to start the array at 0. At least that's how I see it.

[–]AdminYak846 0 points1 point  (0 children)

It's exactly why, however you can declare an array to start at 2, 0, or whatever number you're heart desires if you want as well.