Ephera

joined 5 years ago
[–] Ephera@lemmy.ml 3 points 12 hours ago (1 children)

I also enjoy "one". There's just a random "w" in there when you pronounce it.

[–] Ephera@lemmy.ml 1 points 12 hours ago

We have a concept of word inflection, which can be used to replace a lot of words that English would use to denote something being a question, ownership markers, causes and effects etc.

I don't speak Finnish, but I believe a good example for such an inflection is how in English you can glue an -s to words to make them plural. In some other languages, you say "many word" instead, because they don't have such an inflection.

[–] Ephera@lemmy.ml 8 points 13 hours ago

Hab vor 'ner Weile im Laden "Ameisen-Buffet" gesehen und dachte, krass, hätte nicht gedacht, dass das schon im Mainstream angekommen ist, dass die Ameisen in Deutschland aktuell hart am Aussterben sind, so dass es genug Interesse an einem Produkt wie dem Bienenhotel nur eben für Ameisen gibt.

Ja, es war Gift.

[–] Ephera@lemmy.ml 7 points 22 hours ago

It's mainly horrid, because it means you have to code extremely defensively (or I guess, use a different API).
You can't rely on new Date("not a date") aborting execution of your function by throwing an error. Instead, you have to know that it can produce an Invalid Date object and check for that. Otherwise a random NaN shows up during execution, which is gonna be extremely fun to try to find the source of.

I understand that it's implemented like that partially for historical reasons, partially because it's often better to display "NaN" rather than nothing, but it's still the sort of behavior that puts me in a cold sweat, because I should be memorizing all kinds of Best Practices™ before trying to code JavaScript.

[–] Ephera@lemmy.ml 0 points 23 hours ago

(saying something more realistic like “2015” or whatever your inexperience or AI told you to)

User input is probably the big one where this API is gonna get stress-tested...

[–] Ephera@lemmy.ml 6 points 23 hours ago

Hmm, I can believe that it was based on java.util.Date, but I don't remember that being as unpredictable. I guess, a different API to begin with, would have avoided a lot of problems, though...

[–] Ephera@lemmy.ml 1 points 1 day ago
[–] Ephera@lemmy.ml 0 points 1 day ago

I'll let the hivemind know that we're supposed to have only one opinion.

[–] Ephera@lemmy.ml 23 points 1 day ago (7 children)

On a definitely related note, I've recently been thinking it's wild how we build foot paths out of rocks and then put on rubber socks for actually walking on them.

In other words, asphalt is a scam by Big Foot to sell more shoes.

[–] Ephera@lemmy.ml 6 points 1 day ago (2 children)

I imagine, they can still get inflamed gums or similar, if something gets stuck in there...

[–] Ephera@lemmy.ml 11 points 1 day ago (2 children)

I believe, you have to take turns pushing down individual teeth. By random chance, it will close the mouth when you do that. So, you lose when you get bitten.

[–] Ephera@lemmy.ml 8 points 1 day ago

I'm always amazed how badly companies understand the concept of human interaction. Showing appreciation requires putting in some amount of effort. If you just type some words into a box and an image comes out, that's not anything. Might as well use the first clipart that comes up in image search...

 

Falls es noch jemand interessiert, was das eigentlich ist: https://de.wikipedia.org/wiki/Modifizierte_St%C3%A4rke

 

Not sure why I get the impression...

🙃

 

Was looking for the logo of Perl in image search and this showed up...

 
 
 

Screenshot showing how the directory last-modified timestamp changes each time a file underneath it is added, renamed and then removed.

I'm currently working on a build tool, which does caching based on the last-modified timestamp of files. And yeah, man, I was prepared for a world of pain, where I'd have to store a list of all files, so I could tell when one of them disappears.
I probably would've also had to make up some non-existent last-modified timestamp to try to pretend I know when that file got deleted. I figured, there's no way to ask the deleted file when it got deleted, because it doesn't exist anymore.

Thank you, to whomever had that smart idea to design it like that. I can just take the directory last-modified timestamp now, if it's the highest value.
In fact, my implementation accidentally does this correct already. That's how I found out. 🫠

 

Keine Ahnung, was ich erwartet habe, aber jetzt überlege ich mir eine Jacke aus dem Zeug zuzulegen.

 
 
125
Argh chives (lemmy.ml)
 

Bought a pot of chives and every time I look away, it seems to grow multiple centimeters in size. I have to give it a haircut almost daily...

852
IEEE 754 (cdn.fosstodon.org)
 

~~Stolen~~ Cross-posted from here: https://fosstodon.org/@foo/113731569632505985

 
view more: next ›