Unit testing in JavaScript Part 1 - Why unit testing?

preview_player
Показать описание
Today, we are going to start exploring unit testing in JavaScript.

I think of Unit testing as a software development technique where you break your software up into small, isolated units and write automated tests that ensure that each unit works as expected.

My main motivation for doing unit testing is to keep complexity from overwhelming me. And that is what we're going to explore in this first video - we're going to look at how a new piece of code always starts out simple but very quickly gets too much to keep all in our heads.

🔗 Discuss this video on the Fun Fun Forum

🔗 Code snippets from the episode

🔗 Reduce video

💛 Follow on Twitch and support by becoming a Subscriber
We record the show live Mondays 7 AM PT

💛 Fun Fun Forum

💛 mpj on Twitter

💛 Wallaby (Show sponsor)

💛 CircleCI (Show sponsor)
Robust and sleek Docker-based Continuous Integration as a service. I used CircleCI prior to them becoming a sponsor and I love that their free tier is powerful enough for small personal projects, even if they are private. Use this link when you sign up to let them know you came from here:

💛 Quokka (Show sponsor)
Wonder how MPJ evaluates JavaScript inline his editor. Quokka is the answer - use this link when you buy to let them know you came from here:

💛 FUN FUN FUNCTION
Since 2015, Fun Fun Function (FFF) is one of the longest running weekly YouTube shows on programming 🏅 thanks to its consistency and quality reaching 200,000+ developers.

🤦‍♂️ The Failing Together concept is what makes FFF unique. Most coding content out there focus on step-by-step tutorials. We think tutorials are too far removed from what everyday development is like. Instead, FFF has created a completely new learning environment where we grow from failure, by solving problems while intensively interacting with a live audience.

Tutorials try to solve a problem. Failing Together makes you grow as a developer and coworker.

📹 Each show is recorded live on Twitch in a 2-hour livestream on Mondays. The host, assisted by the audience, is tasked to complete a programming challenge by an expert guest. Like in the real world, we often fail, and learn from it. This, of course, reflects what the audience identifies with, and is one of the most praised aspects of the show.

⏯ On Fridays, an edited version of the show is adapted for and published on YouTube.

Content Topics revolve around: JavaScript, Functional Programming, Software Architecture, Quality Processes, Developer Career and Health, Team Collaboration, Software Development, Project Management
Рекомендации по теме
Комментарии
Автор

"it's completely normal to be afraid of the new things but remember that new things become less scary the more you use them" ❤

theresao
Автор

Love this format !
It looks way more like a show, the new personas are a really nice asset.
Keep on rockin'

neooofish
Автор

The inner dialog between feelings, benefits, and the guy in the sunglasses in this episode is hilarious and insightful. This show rocks!

dostler
Автор

I love the characters thrown in about reduce, super fun! :)

iamislucky
Автор

”even with reduce, that I’m uncomfortable with - because it’s new” 🙄😂🤣
(Unfortunately a very realistic statement 😥)

david
Автор

The part on how you should think about when deciding if you should break a function in smaller ones is absolutely amazing (and it's no even the main topic!)

mutosui
Автор

Loved this one. I liked the emphasis on feelings and the argument about the way of thinking "a rockstar programmer could keep this function on their brain" not being scalable is so true and I never thought about it. Super helpful and epiphany inducing video. Big theater kid vibes haha ❤

Francisco-phbp
Автор

MPJ, you are the best author of video lessons I ever see.
Fun, short, motivated and very energetic videos.
You are AWESOME!

sergeyonufrienko
Автор

I've been wanting this series since I started watching! The multiple personalities is a nice touch. Thanks for all your hard work, mpj!

Powerslacker
Автор

This felt less like learning and more like a fun journey...
A fun fun journeeeey

amgdeg
Автор

The staging of the inner conversations in a developer is just brilliant. Helps validate the chaos often experienced. Tack! 😀

minademian
Автор

Fantastic episode. Loved the different characters arguing out their respective positions. Great work MPJ

bryanjhickey
Автор

This episode aims at fans who didn’t see all previous episodes. Diehard followers like myself learned nothing new, although I leave a like because I’m excited for part 2 and also because I missed you mpj! Have a great week!

jakubrpawlowski
Автор

"Doesn't this mean that I'm dumb?" Never a more relatable sentiment in this whole career change journey... Thank you for this!

scvkurt
Автор

Man that "doesn't that mean that I'm dumb" bit. This is so me. Really uplifting to hear you say that man! .. and yeah a great start to understanding unit testing :)

doubledoorsd
Автор

FunFunFunction motivates me to write unit testing in everyday development with prior test target setup with triangulation. Unit tests provide results, which provide immediate feedback to develop codes in flow(zen) modes. More than great lectures, FunFunFunction stimulates me to love coding passionately. Awesome work. Thanks.

ingyukoh
Автор

Example with joggling is just great! MPJ you are becoming better and better performancer, really nice actor skills :)

mmsikoras
Автор

Really enjoyed the dialog between all the abstracted selves. Keep that up!

CJaredMortenson
Автор

You're one of the best teachers i've ever encountered in my life

deveren
Автор

Seriously you nailed it the battle on the code reviewers. The different personalities you played.

MelaniesMemos
welcome to shbcf.ru