Turn Bad Code into Good Code (Javascript, TypeScript, Node, Jest, unit Testing)

Turn Bad Code into Good Code (Javascript, TypeScript, Node, Jest, unit Testing)

Web Dev Cody

2 года назад

31,897 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Bande Khoda
Bande Khoda - 16.10.2023 09:43

Wow it was a really helpful video, especially the testing part since i was always skeptical of testing and just trusted my eyes and the console logs😅. Could you please also make a video about file or folder structures? Whenever i visit an open source repo, they have folders like utils, lib etc. I know it differs based on each project but I think it would be helpful to have a middle ground on where we should put our files and why the folders are named as such.

Ответить
NuNa games
NuNa games - 05.10.2023 19:04

I have a question, when you removed the data to the test file, where did you get data to test the code after being removed?

Ответить
集中
集中 - 08.09.2023 06:20

nice video to motivate me to write clean code

Ответить
Ryan Woods
Ryan Woods - 10.08.2023 22:07

thank you!
how did you become so good at unit testing?
it seems there isn't a whole lot of content out there that goes beyond the basics.

Ответить
Siddhant Tripathi
Siddhant Tripathi - 01.08.2023 18:12

that was pretty interesting

Ответить
catnug ratya
catnug ratya - 02.04.2023 04:50

outdated..

Ответить
Jeremy
Jeremy - 20.12.2022 06:11

This is actually so helpful

Ответить
Federico Tomadin
Federico Tomadin - 21.11.2022 17:48

Great explanation !. What is the link from github repo ?

Ответить
Shawn Esquivel
Shawn Esquivel - 20.11.2022 08:58

Everyone keeps telling me to learn testing, so I’m super thankful for this vid :)

Ответить
Edgar Lopez
Edgar Lopez - 19.11.2022 10:16

what is vs code theme name?

Ответить
Josh Stanford
Josh Stanford - 18.11.2022 02:56

Dude, your videos are on fire! 🔥It almost makes me want to switch to full on TypeScript already over vanilla JS.

Ответить
Туран 141
Туран 141 - 04.11.2022 22:50

omg and testing and refactoring so much information , thank you

Ответить
ksisioO
ksisioO - 03.11.2022 00:22

I wish to see more videos like this from you. Nice job.

Ответить
partiid
partiid - 05.10.2022 23:19

This content is so great. I'm a mid node.js dev, i wish i knew this channel when i was getting started. Finally understood the purpose of testing :D

Ответить
Sapphiamur
Sapphiamur - 05.10.2022 18:19

Not all heroes wear capes ;)! No, but seriously I'm starting to binge on your videos and I feel like you're one of the few yt lecturers who is so practical and actually helpful. I'm at the stage of my learning, where I struggle precisely with writing more readable, maintainable code and proper tests and you manage to choose example(s) easy enough to follow, but complex enough to explain the issues. I always found the other yt tutorials lacking the comparisons between good and bad code/ good and bad practice. It always seemed like something you can only improve if you're getting some sort of feedback on your program irl. I look at my code and I am fully aware it looks kinda all over the place, some functions are way too long, but what do I do exactly,, that's the question. It's hard to keep track of all the things you need to do >in the first place<, when starting to write a more complex app, so you don't end up dreading the smallest refactor afterwards, because everything starts to get convoluted and messy, and just breaks x'd. So thank you so much, really, you're great!

Ответить
Ruy Vieira
Ruy Vieira - 18.09.2022 18:15

good and old null students, yeah. always the troublesome kind. null people.

Ответить
EPC
EPC - 04.09.2022 19:48

Really amazing video! Subscribed :)

Ответить
mumuste Mend
mumuste Mend - 26.08.2022 22:20

thank you so much this is the content i m looking for ♥

Ответить
Rdoze TV
Rdoze TV - 24.08.2022 17:28

Exactly what developers should watching

Ответить
Alessandro Spiridigliozzi
Alessandro Spiridigliozzi - 14.08.2022 01:04

this was supeeer helpful, thanks!!! Please keep doing more videos like this one!!!!

Ответить
nirrepluap
nirrepluap - 23.07.2022 18:10

The reason you shouldn't export a private function to test it is so you avoid making refactor a burden.
If you export "implementation details"; there's high change this function could just be reused in other places as a utility function for me, and it might be the case for your "getAverageCourseGrade", it could just have been less aware of it's context, and just have been "getAverage(numbers: number): number"

Ответить
nazaka
nazaka - 21.07.2022 22:10

It is sooo helpful, thank you

Ответить
RavenMK
RavenMK - 06.05.2022 15:37

Beautiful and helpful. You thought we were going to lose interest but we were impressed.

Ответить
Sebastien Morneau
Sebastien Morneau - 11.04.2022 05:29

Great video!

Ответить
Boris Kuznetsov
Boris Kuznetsov - 10.04.2022 20:11

That is actually really helpful. I'm a typescript noob, and you pointed all the problems i definitely still have in my code.

Ответить
Robiuzzaman Parvez
Robiuzzaman Parvez - 30.10.2021 21:19

never watched your video before, but this one made me surprised. A lot of important things in just one video. Subscribed!

Ответить
TomDoesTech
TomDoesTech - 18.10.2021 13:07

Great video! Testing is so important, I've been trying to include more testing in my videos.

Ответить
Sky
Sky - 17.10.2021 21:31

Helpful human being, missed you sir

Ответить
Tina Seibert
Tina Seibert - 17.10.2021 21:15

Good job babe!!!!!! What a coder!!!

Ответить