Grégoire 🤠
greg0b.bsky.social
Grégoire 🤠
@greg0b.bsky.social
Ahahahah sorry kotlin mommy I just used the wrong language I guess 🥶🥶
November 29, 2024 at 6:48 PM
When you want to fetch a list of events, the people that partake, and the rooms it takes place in, it gets tricky. Because the query (that has two joins) will fetch a lot of duplicate rows.

So you have to dedupe it manually, by using sets.

That's where the magic brought by ORMs is handy imo 🥳
November 29, 2024 at 1:03 PM
Yes it was not a perfect example.

My "real case scenario" was an Event that took place in several rooms, and was organized by several people.
November 29, 2024 at 1:01 PM
But I'm not talking about storing lists in columns !!

For example, a customer has :
- several orders (order has a foreign key customerId)
- several adresses (foreign key blahblahblah)

How do you fetch both in one query ?

I had to tackle this one time and it's NOT fun
November 29, 2024 at 12:05 PM
How do you fetch an "entity" that have two lists without an ORM ? 🤓
November 29, 2024 at 9:45 AM
The language is so exciting, WHY do I have to install intelliJ, I BEG YOU JETBRAIN BUILD THIS LSP
November 27, 2024 at 6:14 PM
Sur mes projets angular d'ESN il arrivait que le build (d'une SPA hein) mette 1 minute. Le hot reload prenait environ 3-4s.

La préhistoire, quand j'ai travaillé avec vue j'avais oublié à quoi était sensé ressembler le web moderne
November 26, 2024 at 4:12 PM
Est ce qu'il lance ce genre d'appel régulièrement ? Je veux me lancer dans la contrib depuis longtemps, mais cette semaine précisément c'est le pire timing pour moi mdrr
November 26, 2024 at 1:04 PM
That fits on a smart watch
November 26, 2024 at 8:42 AM
Having a dog is such a big time investment. I'm afraid of wanting to change my lifestyle after adopting one
November 25, 2024 at 8:44 PM
Perso, même quand j'utilise un framework SSR, je le considère comme un front quand même, qui interagit avec une API, donc j'ai quand même besoin d'une solution pour rendre la communication typesafe
November 25, 2024 at 11:59 AM
C'est quoi tes préférences pour assurer la typesafety entre les différentes couches (front/back et back/db) ?
November 25, 2024 at 8:47 AM
Between 6 and 7 hours during the week and 10-12h at weekends (totally healthy btw, would recommend)
November 24, 2024 at 1:01 PM