Yoni Goldberg - Node.js Quality

Yoni Goldberg - Node.js Quality

Share

Yoni Goldberg's thoughts on Node.JS best practices A Cherry-picked feed of Node.JS best practices

Photos 29/11/2021

The Node.js best practices guide has a new menu ๐ŸŽ‰.

Reading thousands of words demands a smarter navigation ๐Ÿ‘‡

1. All titles appear upfront
2. Tags: New visitors can read strategic items first. Returning visitors can focus on new content. Seniors can filter for advanced items

https://buff.ly/2LgiRWl

Did you like it?

Writing clean JavaScript tests with the BASIC principles 05/10/2021

"I get paid for code that works, not for tests, so my philosophy is to test as little as possible to reach a given level of confidence"

Said his majesty Kent Beck, "father of TDD"

Testing code is NOT production code, It must be 1000x times simpler and smaller. An average team can not afford maintaining another complex sub-system that is written using imperative code. There are even Jest/Mocha linters that warn when loops and conditions appear within tests.

Easier said than done, how do we escape that complexity when writing tests? With the BASIC principles of course! which are explained in my new blog post ๐Ÿ‘‡

https://yonigoldberg.medium.com/fighting-javascript-tests-complexity-with-the-basic-principles-87b7622eac9a

p.s. If interested in learning and practicing modern and advanced Node.js testing, I'll hold a workshop soon in two conferences: Both Nodeconf and Node.TLV. Visit the conference workshop page

Writing clean JavaScript tests with the BASIC principles Applying 5 key principles to shorten, clean, and simplify JavaScript and Node.js testing

01/10/2021

Any time an API route is invoked, regardless of the response, a series of other publicly-facing reactions might happen

You obviously wanna test all of these but it's easy to overlook some scenarios or outcomes

โœ… Consider using this checklist as a reminder ๐Ÿ‘‡

Photos 29/09/2021

When stepping in component/integration tests land, quickly Alice meets creatures ๐Ÿ‘พthat did not exist in the escapist world of unit tests

One of them is dealing with database records. When she'll jump into this rabbit hole, she will realize 3 different types of tests data (table๐Ÿ‘‡)

Treating them differently will simplify and boost the performance of your tests

I'll discuss this and many other beyond-the-basics backend testing concepts in the upcoming nodeconf conference:

https://buff.ly/3oiwUik

If you want to read more about dealing with data in tests, my new repository-book covers this with great details:

https://buff.ly/3AUYe9D

01/04/2021

๐Ÿ”ฎ Random best practice from my guides

โœ… Do: In testing, donโ€™t catch errors, expect them

โŒ Otherwise: Imperative code is harder to understand, test reports won't tell the root-cause

Testing Best Practices, Section 1, Bullet 1.10

https://github.com/goldbergyoni/javascript-testing-best-practices

24/12/2020

WOW, Our Repo is the most clicked Node item in 2020 ๐Ÿพ

Suddenly and occasionally, great Node.js minds just walk-in and contribute new content to constantly make the guide better and updated. Some are fixing a single TYPO, others contribute a new best practice and some just ask questions.

This is OSS in its purest glory - Together we build a comprehensive guide that inspires developers around the globe to build Node.js application better.

Making apps better is all we ever wanted and couldn't be happier. Thank you.

Don't miss out on the new Docker best practices section, and the latest new practices that appear in the top news section.

https://buff.ly/2LgiRWl

Photos 23/12/2020

A great post by Steve Sanderson's clarifies WHERE unit tests shine. There no universal truth, one pyramid or diamond, that fits them all. A component might have 90% or 5% logic - Only this should drive the model

https://buff.ly/3hemBpR

11/06/2020

188,000 visitors already read my post on Node.js Security Best Practices

Need a checklist to go through before deploying a new app? Want to deep dive into the implementation of security measures in Node.js? This article gets you covered. Hope you find it useful

https://medium.com//were-under-attack-23-node-js-security-best-practices-e33c146cb87d

11/05/2020

Curious to hear about the latest trends in the CICD world? JSHeroes will host a meetup on this matter on May 13th with few testing enthusiasts like Gil Tayar, Liran Tal and yours truly.

The agenda will cover advanced topics like the latest CI features, integration with GitHub, modern quality tools, securing pipelines and more.

Come join us!

https://www.meetup.com/jsheroes/events/270488574/?read=1&_xtd=gatlbWFpbF9jbGlja9oAJGQyYmRjYzFhLTA3NWUtNDVkNC1iZGNkLWE3YWFkOWQ0OTMzYg&_af=event&_af_eid=270488574

20/04/2020

Didn't start writing tests yet? Maybe now is the right moment and opportunity

I'll hold a workshop next week on how to start testing your JavaScript & Node.js cleverly: The basics, avoiding very common traps, opportunities, and online coding exercises

https://www.eventbrite.com/e/getting-started-with-testing-cleverly-tickets-103061993196?aff=Myprofacebook

(2 seats left as of Monday 1pm UTC)

15/04/2020

I'm happy to join an amazing line-up at jsvidcon.com

My talk will cover the greatest trend of Testing in Production' and it will include many live examples

Come watch me?

https://jsvidcon.com/

01/04/2020

I'll hold 'Clean and lean testing' workshop again in Monday 11:30 UTC, this time in a more intimate format, 3 hours long including class exercises

It's scoped for beginners who made their first testing steps and ready to take it a step up

Wanna join? apply here. Note that due to the intimate format with 12 participants only, the registration is likely to be opened for a few hours only

https://forms.gle/CAAihp7vvv39xDgj8

Want your business to be the top-listed Business in Haifa?
Click here to claim your Sponsored Listing.

Address


Haifa