Live refactoring a subscribers Next.js application, plus giving my opinions

  Рет қаралды 3,613

Web Dev Cody

Web Dev Cody

Күн бұрын

Пікірлер: 23
@elmalleable
@elmalleable 2 жыл бұрын
Pretty nice. Just a tip for the review videos. I think you should use ppls names or pseudonyms if you ask them and they say no. It makes the video more relatable than always saying *the person* or he or him. It creates an invisible wall. But having a name generates more interest. And regularly point out good things you see or something new you learned from their code and maybe you can score them against yourself. That would be real cool and in boost the interest level of your videos. Nice catching yourself about saying crap code and correcting it. I'd work with you any day
@WebDevCody
@WebDevCody 2 жыл бұрын
That’s a great idea actually, I’ll start asking these people if I can use their names or some type of handle to make it more personal. Love it! Yeah I didn’t mean to say crap, but I think editing it out might have left the video choppy at a strange sentence. I try to keep it positive, but sometimes this code is overwhelming lol
@yaseru
@yaseru 2 жыл бұрын
I absolutely love this format, keep them coming!
@stanimirdimitrov4913
@stanimirdimitrov4913 2 жыл бұрын
Amazing! I would have to take 2 days off work to watch all of your videos that I have missed 😆
@WebDevCody
@WebDevCody 2 жыл бұрын
Tap into that vacation time brother
@stanimirdimitrov4913
@stanimirdimitrov4913 2 жыл бұрын
@@WebDevCody Really good stuff, Cody. Thank you!
@ragnarlothbrok3228
@ragnarlothbrok3228 2 жыл бұрын
I love your content it’s so helpful
@SeibertSwirl
@SeibertSwirl 2 жыл бұрын
Good job babe! You’re doing so good!!
@marcusabukari697
@marcusabukari697 2 жыл бұрын
Keep up the good work. Yeah the companies could definitely just be a computed value. No need to update the state.
@NoFailer
@NoFailer 2 жыл бұрын
createStyle() is being called for every single company card component that is being rendered. I think it is much more efficient to create the style once and then passing it on to the cards.
@WebDevCody
@WebDevCody 2 жыл бұрын
Good catch, I’m not good at mantine or style components, so I wasn’t too sure what that was doing.
@LikeFunnyMovies
@LikeFunnyMovies 2 жыл бұрын
I think the value is cached by emotion anyways, so this shouldnt make a big difference
@markopolo2224
@markopolo2224 2 жыл бұрын
i love these videos so so much because they are so helpful !
@FelipeRodrigues-zh3gx
@FelipeRodrigues-zh3gx 2 жыл бұрын
Thanks for the video!
@sachinahya7502
@sachinahya7502 2 жыл бұрын
Barrel files are what they're called I think. The only time they're useful imo is when you're creating an npm package and you're declaring everything you're exposing publicly. Otherwise they're just one extra thing to maintain. They also look worse in ESM code when you have to add '/index.js' to the end of the path.
@ThanHtutZaw3
@ThanHtutZaw3 2 жыл бұрын
why my profilers dev tools didn't work. It says need react 18 but I am
@BjornBrasse
@BjornBrasse 2 жыл бұрын
Why fetching all data clientside? Feels like missing the purpose of using NextJs
@WebDevCody
@WebDevCody 2 жыл бұрын
There are still benefits because next will statically render the individual page and tree shake only the dependencies it needs I believe, So the initial page will load will be much smaller. Also, there is a trade off between SSR and CSR. When you access any SSR page your browser will sit there just loading, so if it takes 2 seconds for your database to send back data, users get no feedback. At least in CSR you can actually show some type of initial info and show a spinner while more data is fetched from the api. It’s all about use cases and trade offs.
@rohitkf8474
@rohitkf8474 2 жыл бұрын
His code looks way tooo overkill for something so simple. Correct me if I'm wrong
@WebDevCody
@WebDevCody 2 жыл бұрын
Yeah, I could see that. I think removing the callbacks and memos made it a bit simplier
@elmalleable
@elmalleable 2 жыл бұрын
Maybe he wanted to play with lots of features and just have a feel. Very good strategy. Is it over kill? He's computer didn't die so....
@vekaev
@vekaev 2 жыл бұрын
This architecture gives easy scaling))
@rohitkf8474
@rohitkf8474 2 жыл бұрын
@@elmalleable 🤣🤣🤣🤣
Live refactoring a subscriber's React code
32:32
Web Dev Cody
Рет қаралды 116 М.
This Folder Structure Makes Me 100% More Productive
24:36
Web Dev Simplified
Рет қаралды 53 М.
НИКИТА ПОДСТАВИЛ ДЖОНИ 😡
01:00
HOOOTDOGS
Рет қаралды 2,8 МЛН
Smart Sigma Kid #funny #sigma
00:14
CRAZY GREAPA
Рет қаралды 73 МЛН
I might be enjoying Remix more than Next
11:02
Web Dev Cody
Рет қаралды 37 М.
How web applications are secured
19:54
Web Dev Cody
Рет қаралды 7 М.
All 29 Next.js Mistakes Beginners Make
1:45:10
ByteGrad
Рет қаралды 140 М.
My top 5 most popular front-end tips
22:07
Kevin Powell
Рет қаралды 23 М.
I DONT USE NEXT JS
54:01
ThePrimeTime
Рет қаралды 370 М.
How To Setup Next.JS with TypeScript, Prettier, ESLint and Husky
10:03
Refactoring a React component - Design Patterns
15:19
Cosden Solutions
Рет қаралды 98 М.
I built the same app 10 times // Which JS Framework is best?
21:58
Fireship
Рет қаралды 2,5 МЛН
I loved solving this junior react interview challenge
26:02
Web Dev Cody
Рет қаралды 154 М.
Build any layout with tailwind | crash course
34:28
Hitesh Choudhary
Рет қаралды 88 М.
НИКИТА ПОДСТАВИЛ ДЖОНИ 😡
01:00
HOOOTDOGS
Рет қаралды 2,8 МЛН