React Clean Code: Advanced Examples of SOLID Principles

  Рет қаралды 27,434

CoderOne

CoderOne

Күн бұрын

Пікірлер: 31
@ya4dang1
@ya4dang1 Жыл бұрын
Some useful VS Code extensions in this video : 1. indent-rainbow oderwat.indent-rainbow 2. Tailwind Fold stivo.tailwind-fold
@volodare
@volodare Жыл бұрын
indent-rainbow oderwat.indent-rainbow is obsolete. You can enable coloring in vs code settings, Editor > Bracket Pair Colorization
@davidhavl
@davidhavl Жыл бұрын
Finally! Thank you! It's amazing to see advanced concepts being taught the right way as well as having error handling included in your code! Most videos out there stay away from either of the subjects because it's hard (or they are not proficient in it), which gives junior devs a false image of how to develop real-life production-ready applications.
@sanjeebgochhayat6911
@sanjeebgochhayat6911 Жыл бұрын
Thank you from the bottom of my heart for teaching us Advance concepts
@rishiraj2548
@rishiraj2548 Жыл бұрын
CoderOne is... 🙂👍💯
@cntitv988
@cntitv988 9 ай бұрын
Great video! I'd glad watching a video talking about TDD, SOLID and Clean Arch
@fuyu848
@fuyu848 Жыл бұрын
Love these long and well explained videos
@johntrevithick5900
@johntrevithick5900 9 ай бұрын
Thanks, some very insightful examples here. That said... IMO, example of cleaning the validation code was confounded by the use of the external package. The main point to me was that the validation code could be extracted to a module-level function, instead of being in-line to the component. Likewise, use of a library to handle the form meant that the `InputField` component was tightly coupled to this library (via the `fieldRegister` property.)
@aymenbachiri-yh2hd
@aymenbachiri-yh2hd 7 ай бұрын
i'am glad you give this valuable informations
@billyfigueroa1617
@billyfigueroa1617 10 ай бұрын
Curious if you prefer react hook form and zod over formik and yup for a reason or it’s just a combination you have been using and don’t need anything else?
@FL4M3M4K3R
@FL4M3M4K3R Жыл бұрын
FYI, 4:10-4:40 same cut repeated. great video!
@mr.komp1004
@mr.komp1004 Жыл бұрын
What is the plugin, that collapse tailwindcss classes?
@kunalzing
@kunalzing 3 ай бұрын
Thanks for making this. Just one doubt in the ISP example. Does'nt the UserProfileGOOD violate OCP? Currently, every time we need to add a new notification type, we have to modify the UserProfileGOOD component to include the new notification component. This violates OCP because the component is not closed for modification.
@saidabedi2836
@saidabedi2836 Жыл бұрын
Great video! What is the extension that you have that hides the components props?
@augustinekirumba4304
@augustinekirumba4304 3 ай бұрын
I believe its the Tailwind Fold that hides the classes for readability
@pewds2935
@pewds2935 Жыл бұрын
can anyone please tell me how the SRP was being violated in the first example. I mean if we look from a feature perspective that single component was binding the login stuff and only login stuff. i mean where is the borderline. how to distinguish ?
@dinub8414
@dinub8414 Жыл бұрын
You're thinking is right mate. Few mature tech leads would have you perform the extraction into sub components in a case like this, I think. But for a form of 20 inputs, it would make sense. Not because of srp though. Just readability. IMO anyway
@oladayoagbolade3676
@oladayoagbolade3676 Жыл бұрын
In SRP, it’s advisable to separate the logic from the UI. That’s why the first example was BAD
@congdatt
@congdatt 8 ай бұрын
nice bro ơi. Keep it up nghen !!!
@miloman1995s
@miloman1995s Жыл бұрын
thank you... but what is the point of using CLASS in Dependency Inversion principle? i can handle it by usual arrow functions
@himanshukapoor5586
@himanshukapoor5586 10 ай бұрын
Love it!!
@mhho2336
@mhho2336 5 ай бұрын
What you didn't mention regarding the showcase of OCP is that the so-called compound components are gonna double or triple the size of code. I personally don't recommend use compound components everywhere.
@ductran1954
@ductran1954 Жыл бұрын
What ide are you using to code? it's so beautiful...
@sertunc-k5o
@sertunc-k5o Жыл бұрын
thank you
@gururajmoger8649
@gururajmoger8649 Жыл бұрын
Please explain the solid principle with Angular 17 🎉❤
@danielbarbu1513
@danielbarbu1513 Жыл бұрын
@oladayoagbolade3676 not quite. This separation is an opinionated practice, wrongly packaged as SRP-related. In SRP the responsibilities are defined in terms of the app functionality, not in terms of the programming mechanics. This is a common misunderstanding in web development.
@GurovDmitriy
@GurovDmitriy 8 ай бұрын
semantic violation useContext should use the result of createContext which in turn will be called contextDropdown he cannot use the provider))))
@mrlectus
@mrlectus 10 ай бұрын
Shit, so am doing solid all this while 😅 I guess my OCD has some advantages
@liftingisfun2350
@liftingisfun2350 Жыл бұрын
Why use tsx with barely any use of typescript?
@romansernato6526
@romansernato6526 Жыл бұрын
Oh boy, if && () BAD pattern, again ...
@martapfahl940
@martapfahl940 11 ай бұрын
I really like your videos on clean code and this one is very useful as well. For the React Days where I was participating I would have hoped for some kind of different content, you just recycled your youtube content unfortunately. React Days Ticket costs a lot of money.
Single Responsibility Principle in React (Design Patterns)
16:50
Cosden Solutions
Рет қаралды 51 М.
Support each other🤝
00:31
ISSEI / いっせい
Рет қаралды 81 МЛН
When you have a very capricious child 😂😘👍
00:16
Like Asiya
Рет қаралды 18 МЛН
黑天使被操控了#short #angel #clown
00:40
Super Beauty team
Рет қаралды 61 МЛН
Quando eu quero Sushi (sem desperdiçar) 🍣
00:26
Los Wagners
Рет қаралды 15 МЛН
This is the Only Right Way to Write React clean-code - SOLID
18:23
I Wish I knew This About Typescript & React Sooner
14:06
CoderOne
Рет қаралды 39 М.
Refactoring Junior React Code to Clean Code - SOLID
32:44
CoderOne
Рет қаралды 9 М.
Why I avoid useEffect For API Calls and use React Query instead
17:45
Stop Doing this as a React Developer
12:27
CoderOne
Рет қаралды 165 М.
Everything You Need to Know About React 19
21:42
CoderOne
Рет қаралды 18 М.
Refactoring a React component - Design Patterns
15:19
Cosden Solutions
Рет қаралды 100 М.
How To Debug React Apps Like A Senior Developer
21:07
Web Dev Simplified
Рет қаралды 182 М.
Support each other🤝
00:31
ISSEI / いっせい
Рет қаралды 81 МЛН