[-] [email protected] 16 points 7 hours ago

Sounds like any action move protagonist.

[-] [email protected] 3 points 7 hours ago

To be fair, just because obj.foo is undefined, that doesn’t mean the key is missing. It could also be assigned the value undefined. const obj = { foo: undefined } vs const obj = {}

[-] [email protected] 9 points 7 hours ago

If an attribute is null, I would prefer to simply not serialize it.

That’s interesting. I’m on the opposite team. If a customer model defines an optional birthday, for instance, I’d rather have it serialized as a null value if it’s not available for a specific customer.

[-] [email protected] 14 points 7 hours 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.

89
submitted 7 hours ago by [email protected] to c/[email protected]

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…”

56
submitted 7 hours ago by [email protected] to c/[email protected]

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.”

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

Thanks, that’s enough details.

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

The Wall

The Berlin Wall? Pink Floyd’s The Wall? The US-Mexico border wall? More details, please.

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

I’m amazed that no-one has complained that the graph’s data points are on the borders between categories rather than inside the category bars.

With that out of the way: WTF is wrong with that graph?

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

Is an alternative spelling to extroversion and more close to the original Latin root.

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

I used to think that at least the parts that are Fairtrade wouldn’t be affected as much.

[-] [email protected] 150 points 6 days ago* (last edited 6 days ago)

Chocolate production is infested with slave labor, child labor and child slave labor.

https://www.youtube.com/watch?v=FwHMDjc7qJ8

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

For long hair it helps with combing. Just like the old silicone spray for ballpoint mice, it reduces friction with the comb.

[-] [email protected] 0 points 3 weeks ago

If I can control my fans and my GPU in Linux the way I can in Windows I will.

view more: next ›

bleistift2

joined 4 weeks ago