[-] bleistift2@sopuli.xyz 6 points 2 days ago

I’ve also never seen any piece of software that would treat a single leading zero as octal

I thought JavaScript did that, but it turns out it doesn’t. I thought Java did that, but it turns out it doesn’t. Python did it until version 2.7: https://docs.python.org/2.7/library/functions.html#int. C still does it: https://en.cppreference.com/w/c/string/byte/strtol

[-] bleistift2@sopuli.xyz 5 points 2 days ago

the rule is flagging a false negative

false positive?

[-] bleistift2@sopuli.xyz 6 points 2 days ago

Yes, I know the field isn’t nullable in the database. I’m asking you what you are sending me, jack——

(Directed at a colleague)

[-] bleistift2@sopuli.xyz 6 points 2 days ago

I refuse to validate data that comes from the backend I specifically develop against.

[-] bleistift2@sopuli.xyz 16 points 3 days ago

Or even funnier: It gets parsed in octal, which does yield a valid zip code. Good luck finding that.

[-] bleistift2@sopuli.xyz 7 points 3 days ago

I think that’s too short-sighted. I remember reading The Great Gatsby and I didn’t like it, because it was so hard to decipher. That leads to either reading it only superficially or not at all. How does that help teen literacy?

If you want to increase teen literacy, give them something to read that they actually enjoy or care about. High-society of (literally) a hundred years ago doesn’t help.

[-] bleistift2@sopuli.xyz 35 points 3 days ago

For those who don’t know:

Speaking at a software conference in 2009, Tony Hoare hyperbolically apologized for "inventing" the null reference:[26] [27]

I call it my billion-dollar mistake. It was the invention of the null reference in 1965. At that time, I was designing the first comprehensive type system for references in an object oriented language (ALGOL W). My goal was to ensure that all use of references should be absolutely safe, with checking performed automatically by the compiler. But I couldn't resist the temptation to put in a null reference, simply because it was so easy to implement. This has led to innumerable errors, vulnerabilities, and system crashes, which have probably caused a billion dollars of pain and damage in the last forty years.

https://en.wikipedia.org/wiki/Tony_Hoare

[-] bleistift2@sopuli.xyz 31 points 3 days ago

Sounds like any action move protagonist.

[-] bleistift2@sopuli.xyz 105 points 3 days ago* (last edited 3 days ago)

Hey, IT, I imported this data set twice, and now there are a lot of duplicates. Is there something wrong with the tool?

– Yes, that happened.

[-] bleistift2@sopuli.xyz 26 points 3 days ago* (last edited 3 days ago)
[-] bleistift2@sopuli.xyz 25 points 3 days ago

Indeed, and that turns out to be a problem if the JavaScript expects the key not to be there, but instead it is there. And then you try to tell the backend dev that the key shouldn’t be there, but he’ll try to convince you that it’s the same whether the key is not there or whether it’s assigned null and then you wonder if he’s messing with you, but actually he isn’t and then the only thing keeping you sane is bitching about it in meme form on lemmy.

[-] bleistift2@sopuli.xyz 59 points 3 days ago

In my experience it’s the other way around.

21

Meme transcription:

Panel 1: Bilbo Baggins ponders, “After all… why should I care about the difference between int and String?

Panel 2: Bilbo Baggins is revealed to be an API developer. He continues, “JSON is always String, anyways…”

232

Meme transcription:

Panel 1: Bilbo Baggins ponders, “After all… why should I care about the difference between int and String?

Panel 2: Bilbo Baggins is revealed to be an API developer. He continues, “JSON is always String, anyways…”

536

Meme transcription:

Panel 1: Bilbo Baggins ponders, “After all… why should I care about the difference between int and String?

Panel 2: Bilbo Baggins is revealed to be an API developer. He continues, “JSON is always String, anyways…”

141

Meme transcription: Panel 1. Two images of JSON, one is the empty object, one is an object in which the key name maps to the value null. Caption: “Corporate needs you to find the difference between this picture and this picture”

Panel 2. The Java backend dev answers, “They’re the same picture.”

270

Meme transcription: Panel 1. Two images of JSON, one is the empty object, one is an object in which the key name maps to the value null. Caption: “Corporate needs you to find the difference between this picture and this picture”

Panel 2. The Java backend dev answers, “They’re the same picture.”

142
ich🗳️iel (sopuli.xyz)
submitted 3 weeks ago by bleistift2@sopuli.xyz to c/ich_iel@feddit.de

Meme: Spongebob salutiert. Untertitel: „Dank an alle Wahlhelfer und Wahlhelferinnen”

view more: next ›

bleistift2

joined 1 month ago