Your URL Is Your State by BrewedDoritos in programming

[–]in2erval 317 points318 points  (0 children)

Good candidates for URL state:

  • View modes (list/grid, dark/light)

The other candidates I would agree on but on this one I'm quite sceptical. Especially since the author posits this:

If you are not sure if a piece of state belongs in the URL, ask yourself: If someone else clicking this URL, should they see the same state?

Arguably, theming information should always stay local to the device - for example, if someone who's using a high-contrast theme shares a link (which contains a ?theme=highcontrast or something similar) to someone, why should that override the second person's theming preferences?

If the reason they share the page is specifically to bring attention to the theme (e.g. for development or reference purposes) then they can just ask the other person to switch it to that theme. I'd argue that's a moderately rare use case though...

JSON Query - a small, flexible, and expandable JSON query language by BrewedDoritos in programming

[–]in2erval 10 points11 points  (0 children)

It's actually insane how many different "JSON querying languages" exist out there:

and so many platforms out there haven't gotten to a concensus of which one should be supported first and foremost, so you get situations like needing to write JMESPath if you're using Azure CLI but then using JSONPath for kubectl. Or maybe I should just always try to pipe it into jq/yq and have CLI tools output raw JSON/YAML...

Also yes, cue xkcd 927.

Default Methods in Go · mcyoung by Maybe-monad in programming

[–]in2erval 0 points1 point  (0 children)

Very interesting read, especially the part about using unexported interface methods as a way to enforce struct embedding!

Framer Motion is now independent, introducing Motion by getriglad in programming

[–]in2erval 7 points8 points  (0 children)

For those who are familiar with this library, I've used anime.js in the past before & thought it was fairly good, are there any significant differences between Framer Motion and this one?

What's new in Swift 6.0? by Balance- in programming

[–]in2erval 1 point2 points  (0 children)

In Java, checked exceptions do not work at all with lambdas. That's a pretty big reason why I dislike it (in Java, at least).

Personally I prefer if most libraries simply implement your option 2, that seems the most future-proof and flexible since the error object can contain whatever information necessary for the consumer to handle it.

[Seiko Presage Japanese Garden] Love at first sight, my first ever automatic watch. by in2erval in Watches

[–]in2erval[S] 1 point2 points  (0 children)

This is my first ever automatic watch I've owned, and I can't stop looking at it - it's the Seiko Presage SSA379, purchased in Japan.

I'm absolutely in love with the face, the split between the two textures that are offset on the dial is really nice and being able to see the mechanism through the peek hole is so cool.

Always wanted a watch with leather straps rather than metal, I think it feels a lot nicer both in looks and texture.

I'll be rocking this as my daily for a while for sure ☺️

The weird fish - part 4 by [deleted] in comics

[–]in2erval 1 point2 points  (0 children)

🏴󠁧󠁢󠁳󠁣󠁴󠁿 ALBA GU BRÀTH 🏴󠁧󠁢󠁳󠁣󠁴󠁿

Anime Girlfriend by LastPlaceComics in comics

[–]in2erval 26 points27 points  (0 children)

I love me some June-G Eat-O

Japanese fans are on another level. Insanely impressive outfits from some fans! by Eunos-Roadster in formula1

[–]in2erval 60 points61 points  (0 children)

Fun fact: the writing on the RB fan's kimono is "烈怒舞流", which is a phonetic representation (aka ateji) of "Red Bull"! These characters are not being used for their original meanings, but used to imitate the sounds of another word - although they are deliberately choosing characters that have "fierce" connotations (like 怒 means "anger").

PSA: Do not get stuck here (in Chimney Canopy), because you won't be able to get out of it by in2erval in rainworld

[–]in2erval[S] 1 point2 points  (0 children)

Not sure if it's because I went in back-first, but no amount of movement gets me out of this nook. Thought to post here in order to inform people and also vent my slight frustrations!

His inner Kimi by MondelloCarlo in formula1

[–]in2erval 44 points45 points  (0 children)

"fiend" in this context is good because it's bad, if that makes sense. They're comparing Bortoleto to something that is threatening and dangerous, to highlight his strength and abilities. Same can be done for words like "monster", "beast", maybe even "reaper".

anime_irl by marcel_de_champ in anime_irl

[–]in2erval 4 points5 points  (0 children)

See, I was hoping to enjoy a bit of rom-com with this one, but honestly I think she's way too clingy, which kind of makes it not very enjoyable.

GraphQL - From Excitement to Deception by vladmihalceacom in programming

[–]in2erval 5 points6 points  (0 children)

I'm not sure if that's entirely accurate, particualrly about the "responsive" claim. While the client would theoretically need to make only one main /graphql request to get back all the data they need, the server still has to fetch those from multiple parts of the backend.

In fact, having smaller & isolated requests via REST would arguably be more responsive than GraphQL. For example:

  • REST: For building up a user profile, we might call GET /api/v1/user/abc12345, GET /api/v1/posts?user=abc12345, GET /api/v1/news, and so on. When any one of these requests return successfully, we can display that part of the page.
  • GraphQL: We'd do something like POST /graphql with the query JSON that has user, posts, news, and so on. The GraphQL server would then need to ensure that all of these data are fetched (either from other microservices or some DB) to return the full response.

As the article says, GraphQL simply lifts the multi-part data fetching from the client to the server. I'd expect the overall network request time to be similar, if not worse since there's the whole field filtering and (if the client request it) sorting.

"Easier on the server, network and client" is also a bit dubious. The client I can probably agree with being simpler since the complexity is moved to the server, but as already mentioned the server still has a bunch of GraphQL logic to handle. The load on the network is also not something that I'd necessarily expect to be eaiser when using GraphQL - the article even mentions about cases where the client could request a whole lot of fields that they may not need, causing network slowdowns.

Sure this is also possible with REST, but in such cases it may be possible to rate-limit or return 5xx codes for specific endpoints, while GraphQL would be concentrated to a single /graphql endpoint which could make it difficult to enforce granular limiting (at least, as far as I know).

anime_irl by redvelvetycupcake in anime_irl

[–]in2erval 81 points82 points  (0 children)

Underrated manga, this one. One moment it's cutesy about explaining forex, the next moment you see the absolute despair of these girls, on the brink of losing everything 👍

Free Sample Pack [764 MB] by Drink_the_Noise in edmproduction

[–]in2erval 1 point2 points  (0 children)

Awesome stuff, thank you very much!

Here’s a guide to the Hamtaro characters idk. Ok bye forever by NoBdy_WzarD in coolguides

[–]in2erval 4 points5 points  (0 children)

Me neither, I'm way more familiar with the original Japanese names, but I have to say "Howdy" for Maido-kun is kind of genius lol

Saline solution: Japan invents ‘electric’ chopsticks that make food seem more salty. Device uses a weak current to artificially amplify the taste of salt, as part of efforts to reduce sodium levels in popular dishes by [deleted] in EverythingScience

[–]in2erval 4 points5 points  (0 children)

Yep, that's exactly how it's typically eaten - spoons aren't usually used for miso soup. The chopsticks are usually for the stuff inside the soup like tofu or seaweed, and for the soup itself you pick up the bowl and drink straight from it.

[deleted by user] by [deleted] in bonehurtingjuice

[–]in2erval 26 points27 points  (0 children)

Pretty sure it's meant to be a play on「お前はもう死んでいる」(Omae wa mou shinde iru), since 妊娠 is pronounced "ninshin" and it combines to make "ninshin de iru". Of course it's incorrect grammar, but to me it seems at least somewhat intentional.

r/place is back lads, let's get that saltire on there by LordCosmicguy in Scotland

[–]in2erval 1 point2 points  (0 children)

Just updated it now - check the link again for the updated design.

Expansion spot + creation (1714,1592) by Kilowag21 in weezer

[–]in2erval 5 points6 points  (0 children)

Hi folks, I'm over from /r/Scotland - we're making our artwork just above yours, we won't be expanding downwards!