Thai Pangsakulyanont: Smells In React Apps - JSConf.Asia 2018

  Рет қаралды 19,299

JSConf

JSConf

Күн бұрын

Пікірлер: 23
@ChristianGenco
@ChristianGenco 6 жыл бұрын
Love it! My two takeaways of code smells to look for were: 1. watch for components that shouldn't know about other components (ex: your ButtonMenu's Button shouldn't know about a Menu) 2. watch for cross-cutting concerns that cause adding simple features to add code far apart. Aim for functional cohesion
@alamandrax
@alamandrax 6 жыл бұрын
This talk was excellent and very informative! Thank you for this.
@marshalslight
@marshalslight 6 жыл бұрын
Good talk! Practical and useful. Thanks for sharing.
@TheBlockUniverse
@TheBlockUniverse 6 жыл бұрын
Wow it's such an amazing yet simple to understand talk, good job
@quantran4704
@quantran4704 6 жыл бұрын
Thank you, good talk. Love Thai and Thai Land : ).
@fizzi7716
@fizzi7716 6 жыл бұрын
fun and informative talk!
@d3vilm4ster
@d3vilm4ster 4 жыл бұрын
Great talk bro! It would be great to see a talk from him right now that hooks exists.
@dtinth
@dtinth 4 жыл бұрын
Hello, thanks for the question. Thai here. No new talk about React yet, but I can say that I find most of this talk’s concepts are still relevant to me. But with hooks, how I write components have changed dramatically. If I were to do this talk in 2020 here would be the main differences: ・ 16:28 - I would’ve written everything as function props. I have not written a single class component for over a year now. ・ 18:39 - Even with hooks, the loss of cohesion can still occur. ・ 25:35 - I still use “data connector components” extensively. Now they’re implemented with `useSelector` and `useDispatch` hook. ・ 23:44 - I now have a convention of adding “-Connector” suffix to data connectors. So the `Auth` component I would call it `AuthConnector` in 2020. ・ 25:35 - I would also add that when the “data binding ceremony” happens at one place (i.e. at the data connector component), we can change the data binding implementation, without affecting any other parts of the app. I might show this by reimplementing the Auth component using Firebase Authentication (which has its on authentication storage, so Redux is not needed there), ・ I would have used TypeScript (or JSDoc annotation) instead of PropTypes. Cheers!
@Omega6APP
@Omega6APP 5 жыл бұрын
Definitely some good piece of advice!
@ViltsuV
@ViltsuV 6 жыл бұрын
Great talk!
@DisfigurmentOfUs
@DisfigurmentOfUs 6 жыл бұрын
Thanks for the talk, Thai
@xerxius5446
@xerxius5446 5 жыл бұрын
Damn. This is awesome
@Mnosuk
@Mnosuk 6 жыл бұрын
what is the difference between booleanAssignment && and booleanAssignment ? : null and why you love to use that first case kub?
@khuiification
@khuiification 6 жыл бұрын
It's a quirk kind of. Typing a && b is quicker than a && b : null. If a is falsy in "a && b" then false would be returned, causing react to not render anything. Same goes thing for the ternary expression, but you have to type more. It's a matter of preference.
@moveaxebx
@moveaxebx 6 жыл бұрын
It's easier to read: isAdmin && than: isAdmin ? : null The last expression contains just too much noise.
@AlexMost1989
@AlexMost1989 6 жыл бұрын
thanks for the useful talk!
@kbrnsr
@kbrnsr 4 жыл бұрын
Wow, can't remember if I have ever heard an argument against DRY
@user-zk4pm7tp2b
@user-zk4pm7tp2b 4 жыл бұрын
I have a button , I have a menu, aaah ;P
@Mercio2
@Mercio2 3 жыл бұрын
nice talk
@vjunloc1
@vjunloc1 6 жыл бұрын
Sounds like Jian Yang
Хасанның өзі эфирге шықты! “Қылмыстық топқа қатысым жоқ” дейді. Талғарда не болды? Халық сене ме?
09:25
Демократиялы Қазақстан / Демократический Казахстан
Рет қаралды 355 М.
Сюрприз для Златы на день рождения
00:10
Victoria Portfolio
Рет қаралды 2,7 МЛН
Я сделала самое маленькое в мире мороженое!
00:43
НАШЛА ДЕНЬГИ🙀@VERONIKAborsch
00:38
МишАня
Рет қаралды 3,2 МЛН
Pete Hunt: React: Rethinking best practices -- JSConf EU
29:32
Using useEffect Effectively - David Khourshid, React Advanced London 2022
24:24
React Conferences by GitNation
Рет қаралды 7 М.
The Art of Code - Dylan Beattie
1:00:49
NDC Conferences
Рет қаралды 4,7 МЛН
The mind behind Linux | Linus Torvalds | TED
21:31
TED
Рет қаралды 6 МЛН
A guide to our alphabet
20:08
RobWords
Рет қаралды 216 М.
So You Think You Know Git - FOSDEM 2024
47:00
GitButler
Рет қаралды 1,2 МЛН
Хасанның өзі эфирге шықты! “Қылмыстық топқа қатысым жоқ” дейді. Талғарда не болды? Халық сене ме?
09:25
Демократиялы Қазақстан / Демократический Казахстан
Рет қаралды 355 М.