Clem

6.2K posts

Clem

Clem

@Clemgbld_

Thion

Katılım Nisan 2015
350 Takip Edilen343 Takipçiler
Sabitlenmiş Tweet
Clem
Clem@Clemgbld_·
Skurt Cobain
Clem tweet mediaClem tweet media
Indonesia
1
6
61
0
Clem
Clem@Clemgbld_·
@ledevnovice On cherche des contributeurs sur le projet nodesecure github.com/NodeSecure C’est plutôt accessible et y’en à pour tout les goûts frontend, backend , low level(analyze de code) et securité 🙂
Français
0
0
1
26
Le Dev Novice
Le Dev Novice@ledevnovice·
Pas facile d'entrer dans le monde de l'open source. J'essaie de contribuer a un projet que j'affectionne, Tanstack Query, tout en continuant a approfondir ma compréhension d'un point de vue utilisateur et de la techno sous le capot.
Français
5
0
8
2.4K
Cory House
Cory House@housecor·
A bug I see in nearly every web app: Last in wins. Bug: If two users are editing the same record, the user who clicks save last “wins”. The last save overwrites the previous save. Two solutions to consider: 1. Notify. Notify me when another user starts editing the record I'm editing. “Warning: Bob is editing this record.” And notify me when I try to save a stale record. “Bob changed this record.” When this conflict occurs, I can copy my changes, reload, and integrate my changes into the latest version. Or, I can just paste my changes over the previous edit if mine should "win". 2. Lock the record. When someone starts an edit, disallow others from starting an edit. "Bob is editing this record." Time out the edit and remove the lock if it's not completed in x minutes. Anyone have a different approach?
English
112
23
349
94.6K
Clem
Clem@Clemgbld_·
@ledevnovice La plupart des gens le voit comme un state manager mais c’est plus secondaire finalement, redux à choisit d’être un state manager pour pouvoir faire de l’event-driven
Français
0
0
1
36
Clem
Clem@Clemgbld_·
@ledevnovice Bref le plus gros avantage reste le côté évent-driven tu peux te retrouver avec beaucoup moins de code , et du code plus maintenable que quand tu fais de l’impératif, si tu n’utilises pas redux comme ça ça vaut pas le coup je trouves
Français
1
0
1
34
Le Dev Novice
Le Dev Novice@ledevnovice·
C'est quoi les arguments qui vous font pencher vers les solutions comme Redux ou autre dans vos applications React les ami(e)s codeurs ? J'avoue moi je fais toujours sans pour l'instant mais je comprend peut être pas ce que je rate ? ... 👀
Français
4
0
1
2.1K
Clem
Clem@Clemgbld_·
@housecor I create a function that handles the backend business logic and call it in the react server component
English
0
0
1
106
Cory House
Cory House@housecor·
Scenario: You’re using React Server Components, so you can query the DB in a server component. Your app is the DB’s only consumer. Do you query the DB directly? Or do you still build an HTTP API in front of the DB?
English
108
13
280
165.3K
Clem
Clem@Clemgbld_·
@jamesqquick ORM for the write part and raw sql for the query part
English
0
0
0
42
James Q Quick
James Q Quick@jamesqquick·
What's your favorite way to work with a database? - raw sql? - ORM (prisma, drizzle, etc.)? - custom product SDK?
English
370
16
353
204.3K
Clem
Clem@Clemgbld_·
@ledevnovice Yes IDDD de Vaughn Vernon le « Red book » j’ai du le lire deux fois pour comprendre toutes les subtilités
Français
1
0
0
99
Le Dev Novice
Le Dev Novice@ledevnovice·
Vous aussi vous êtes du genre à relire plusieurs fois certains ouvrages ou lecture tech. Moi perso ca fait plusieurs fois que je me relis "Architectural Styles and the Design of Network-based Software Architectures" de Roy Fielding pour bien en comprendre les idées de REST.
Français
5
0
1
2.6K
Clem
Clem@Clemgbld_·
@opposablecrumbs @CFDevelop My entire unit test suites yes , not the integration and end2end ones. And yes I do it on every changes because my unit tests suites run under 1 second
English
0
0
0
28
Christian Findlay
Christian Findlay@CFDevelop·
Unpopular opinion: your tests should hit the database
English
169
39
465
122.1K
Danl
Danl@schmitteposter·
@Clemgbld_ @CFDevelop why would you possibly need to run the entire test suite every 60 seconds?
English
1
0
0
13
Clem
Clem@Clemgbld_·
@IsraelAlagbe @CFDevelop I test the logic of my db in integration tests in the repositories (secondary adapters in hexagonal architecture), my useCases (application layer in hexagonal architecture) don’t know and do not care if I use sql or mongo db or whatever db you want
English
0
0
1
53
Clem
Clem@Clemgbld_·
@sudokhanh @CFDevelop I write integration tests that interact with the real db on my repositories which are adapters in my architecture. The db is substitute in my useCases tests (where the business logic is )
English
0
0
1
55
Khanh Do
Khanh Do@sudokhanh·
@CFDevelop @Clemgbld_ Could write a toggler too to keep it as one test except for the DB interaction.
English
1
0
0
96
Clem
Clem@Clemgbld_·
@CFDevelop I write integration test for my repositories that interact with a real db so everything is covered , the db is a substitute in my usecase test (where the business logic is)
English
0
0
2
67
Christian Findlay
Christian Findlay@CFDevelop·
@Clemgbld_ Too slow isn't an argument because anything you don't test on your computer, you're kicking the can down the line to the QA team, and testing manually is 10x slower than running it on your computer
English
3
0
8
887
Clem
Clem@Clemgbld_·
@tannerlinsley If there is no SEO requirement I would probably stay dead simple and build a SPA with Vite and React and not bother with SSR. The advantage is that you will be able to reuse most of your code if you want to build a mobile app with RN (if you properly separate logic from UI code)
English
0
0
1
193
Tanner Linsley
Tanner Linsley@tannerlinsley·
If I were to start a full stack app today, I would most likely use Remix.
English
55
53
896
438.6K