@vaporeon_ i have no clue, ive never seen you hornypost so i don't know the severity of your perversion
@soft 🫵 soft
@vaporeon_ is it this you're talking about?
@vaporeon_ we have post search yes
@vaporeon_ I retract my claim lol
@vaporeon_ I personally haven't run into an issue with operator precedence that wasn't also a readability issue
@vaporeon_ the discussion here: https://softwareengineering.stackexchange.com/q/335050
on the topic is quite interesting i think
@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."
@vaporeon_ To quote Douglas Crockford in his 2018 book How JavaScript Works:
"I do not recommend use of the increment operators ++ or --. They were created in antiquity for doing pointer arithmetic. We have since discovered that pointer arithmetic is harmful, so modern languages no longer allow it. The last popular language to boast of having pointer arithmetic was C++, a language so bad that it was named after ++."
I don't agree with it but I also appreciate C++ slander so I will permit it.
@garbados@friend.camp @taq i agree that whales should be allowed to run a country
@garbados peopl. to the west of me (pacific whales) are perfectly capable of governance
@coriander @rockario he'd be teaching adults too but I have never seen that word before
lawful pure lawful pervert lawful gooner
neutral pure neutral pervert neutral gooner
chaotic pure chaotic pervert chaotic gooner
kept afloat by big ideas.
you can call me Caleb or Clodsire. i also go by clodboy and catwin. i am not picky about names (unless its one amy made up)
videogame enjoyer. mathematics hobbyist and recovering physicist. software engineer. professional wonk. prophet of The Truth. the walking embodiment of "not diagnosed, but somethings wrong". i like animals that wear cowboy hats.
number of fat cock awards received: 56
pfp is by @The_T
header is by @vaporeon_
"i regret ever allowing him here" ~aescling
"oh you're one of those weird movie likers" ~Ti
"i know your taste in movies well enough to discount your opinion" ~globin
"caleb is the only person on this websites who truly understands what the report button is for: 'i don't like this post'" ~holly
30+
straight
he/him