Show newer

@vaporeon_ depends! corru.observer/ was written entirely in JavaScript and it is cool as shit

anyway if you want to see how they made this terrible idea actually work then watch youtube.com/watch?v=p4upNgl1I2

Show thread

The PS4 doesn't allow just-in-time compilation so you don't get the performance a modern javascript engine normally guarantees so on what planet is this a good idea

Show thread

I think a lot about how Battlefield 1's menus were written in JavaScript so they could have their web developers build a videogame UI

@vaporeon_ i have no clue, ive never seen you hornypost so i don't know the severity of your perversion

@vaporeon_ I personally haven't run into an issue with operator precedence that wasn't also a readability issue

@vaporeon_ specifically in the case of javascript it's possible, and quite easy, to iterate over data without explicitly writing array boundaries at all. For example, the two snippets

for (let i = 0; i < arr.length; ++i) console.log(arr[i]);

and

arr.forEach((x) => console.log(x));

do the exact same thing

@vaporeon_ this 2018 book is very controversial. his 2008 book "JavaScript: The Good Parts" absolutely slaps though

@vaporeon_ continuing the quote:

"We got rid of pointer arithmetic, but we are still stuck with ++. Now it adds 1 to something. Why do we need a different syntactic form to add 1 than to add every other value? How does that make any sense?

The answer is: It does not make any sense.

Making matters worse, ++ has a pre-increment form and a post-increment form. It is very easy to get them reversed, and that can be very difficult to debug. And ++ has been implicated in buffer overrun errors and other security failures. We should discard features that are unnecessary and hazardous."

Show older
📟🐱 GlitchCat

A small, community‐oriented Mastodon‐compatible Fediverse (GlitchSoc) instance managed as a joint venture between the cat and KIBI families.