[-] [email protected] 1 points 2 hours ago* (last edited 2 hours ago)

That’s when they don’t want you to bother them with shit you could’ve read on their website (or a more restricted FAQ), but also care about not telling you bullshit. So rather than going full AI with hallucinations and what not, they give you predetermined answers in a “friendly” AI-ish way.

[-] [email protected] 0 points 3 hours ago
[-] [email protected] 1 points 3 days ago

PHP and Node definitely do.

Node doesn’t.

> parseInt('077')
77
  1. If the input string, with leading whitespace and possible +/- signs removed, begins with 0x or 0X (a zero, followed by lowercase or uppercase X), radix is assumed to be 16 and the rest of the string is parsed as a hexadecimal number.
  2. If the input string begins with any other value, the radix is 10 (decimal).

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/parseInt

[-] [email protected] 6 points 3 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

[-] [email protected] 6 points 3 days ago

Die Erklärung steht in der Pfosten-Beschreibung. Nach meinem initialen Schwall hat die Sache aber irgendwie ein Eigenleben entwickelt.

(Zangendeutsche jetzt wegsehen)

The explanation is in the post description. After my initial burst of memes, this topic seems to have taken on a life of its own…

[-] [email protected] 4 points 3 days ago

I’m not sure if you’re getting it, so I’ll explain just in case.

In computer science a few conventions have emerged on how numbers should be interpreted, depending on how they start:

  • decimal (the usual system with digits from 0 to 9): no prefix
  • binary (digits 0 and 1): prefix 0b, so 0b1001110
  • octal (digits 0 through 7): prefix 0, so 0116
  • hexadecimal (digits 0 through 9 and then A through E): prefix 0x, so 0x8E

If your zip code starts with 9, it won’t be interpreted as octal. You’re fine.

[-] [email protected] 2 points 3 days ago

Frankly that there isn’t a specific field signalling authorized/not-authorized

The instance I was bitching about was this: There’s a lot of region-specific data coming from the backend. But the user is only authorized for certain regions. So for instance the North-American guy gets this object: { "CA": [/* list of stuff */], "US": [/* list of stuff */], "MX": [ /* list of stuff */ ]}, while the US-only guy only gets {"US": [ /* list of stuff */] }. Are you suggesting that the response should also include flags isCaPresent, isUsPresent, isMxPresent for every country?

The issue with null vs not present surfaced because I, the frontend, checked if the returned object contained the key "CA" and then tried to iterate over the list of stuff, which happened to be null, which is hard to iterate over. I agree that I could’ve checked if the key was present and not null.

The meme, however, was lamenting that the backend developer, refuses to acknowledge that these two JSONs are different,since they only see their POJOs, where both map to CA: null, US: [], MX: null.

[-] [email protected] 3 points 3 days ago

they also pay 3000$/mo for a moldy apartment

[-] [email protected] 5 points 3 days ago

the rule is flagging a false negative

false positive?

[-] [email protected] 6 points 3 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)

59
ich🍕iel (sopuli.xyz)
submitted 3 days ago by [email protected] to c/[email protected]

Auf der Arbeit habe ich viele Pizza-Michmichs pfostiert. Deshalb hat mein Kollege dieses Michmich erstellt.

32
ich🍕iel (sopuli.xyz)
submitted 3 days ago by [email protected] to c/[email protected]

Auf der Arbeit habe ich viele Pizza-Michmichs pfostiert. Deshalb hat mein Kollege dieses Michmich erstellt.

30
ich🍕iel (sopuli.xyz)
submitted 3 days ago by [email protected] to c/[email protected]

Auf der Arbeit habe ich viele Pizza-Michmichs pfostiert. Deshalb hat mein Kollege dieses Michmich erstellt. (Er benutzte die Un-Sprache)

18
ich🍕iel (sopuli.xyz)
submitted 3 days ago by [email protected] to c/[email protected]

Auf der Arbeit ist der Pizzatag ausgefallen, also habe ich dieses Michmich erstellt.

37
ich🍕iel (sopuli.xyz)
submitted 3 days ago by [email protected] to c/[email protected]

Auf der Arbeit ist der Pizzatag ausgefallen, also habe ich dieses Michmich erstellt.

22
ich🍕iel (sopuli.xyz)
submitted 3 days ago by [email protected] to c/[email protected]

Auf der Arbeit ist der Pizzatag ausgefallen, also habe ich dieses Michmich erstellt.

57
ich🍕iel (sopuli.xyz)
submitted 4 days ago by [email protected] to c/[email protected]

Auf der Arbeit ist der Pizzatag ausgefallen, also habe ich dieses Michmich erstellt.

41
ich🍕iel (sopuli.xyz)
submitted 4 days ago by [email protected] to c/[email protected]

Auf der Arbeit ist der Pizzatag ausgefallen, also habe ich dieses Michmich erstellt.

50
ich🍕iel (sopuli.xyz)
submitted 4 days ago by [email protected] to c/[email protected]

Auf der Arbeit ist der Pizzatag ausgefallen, also habe ich dieses Michmich erstellt.

65
ich🍕iel (sopuli.xyz)
submitted 4 days ago by [email protected] to c/[email protected]

Auf der Arbeit ist der Pizzatag ausgefallen, also habe ich dieses Michmich erstellt.

32
ich🍕iel (sopuli.xyz)
submitted 4 days ago by [email protected] to c/[email protected]

Auf der Arbeit ist der Pizzatag ausgefallen, also habe ich dieses Michmich erstellt.

49
ich🍕iel (sopuli.xyz)
submitted 4 days ago by [email protected] to c/[email protected]

Auf der Arbeit ist der Pizzatag ausgefallen, also habe ich dieses Michmich erstellt.

view more: next ›

bleistift2

joined 1 month ago