Code Squid

Code Squid

Share

Master-class versus Working-class: I’m probably not going to make you a master at writing Frontend co

Unit Tests - React 06/20/2024

Unit Testing

On my first developer job, I wasn't given the time to write Unit Tests. In fact, in 6 years I wrote a grand total of three (3) Unit Tests. We had no manual or automated tests either.

My supervisor would test the code on his computer, then merge the code straight to production ... often, with disastrous results.

I learned to be fearful of code moving to production.

Then, on my next job I was told we "do the right thing, not the right now thing."

At the first client, I tested this Core Value. I was able to not only have coverage, but overlapping coverage that included tests to ensure that any defects found were covered.

For 180k lines of code, I had 2,800 Unit Tests.

This code went to production. Over the first year, we had three (3) defects reported ... and, two of those were missed requirements.

This success sold me on Unit Tests. I am a strong proponent of having a solid set of tests for any code.

I've never had a lot of tests cause any problems. In fact, the prove stability and ensure timely development of solid code.

Because of this, the first course I developed for Code Squid was React Unit Testing: https://code-squid.com/p/unit-tests-react

Two sections of this course are open to be previewed.

Please come and see if this course is for you!

Unit Tests - React Learn to confidently write Unit Tests for React

Unit Tests - React 06/13/2024

I've heard arguments against unit testing. Sometimes they say that they should only cover code where there is business logic.

1. Unit tests have a limited purpose.
2. Unit tests lead to more complicated design.
3. Unit tests are expensive.
4. Unit tests rely on implementation details.
5. Unit tests don't exercise user behavior.

Are these arguments you've heard? Have you heard other arguments?

Clearly, I disagree with all of this. Unit tests are a powerful tool when designing large enterprise-level systems with layers of complexity.

I've seen massive code-bases where Unit Testing is all that ensured a solid and stable environment.

You can benefit from my knowledge and experience in my course React Unit Testing at https://code-squid.com/p/unit-tests-react ...

[ ]

Unit Tests - React Learn to confidently write Unit Tests for React

06/11/2024

If you haven't signed up for my newsletter, please do so here: https://code-squid.com for frontend topics weekly.

Let me know what you'd like me to talk about in my newsletter ... otherwise, it's my choice!

[ ]

06/05/2024

So, I had a question about my React Unit Testing course (code-squid.teachable.com/p/unit-tests-react) that went something like this ...

I looked at your course. I am not sure if it's too advanced for me.
[ ]

My response ...
This course is written to be useful to developers at all levels. Having said that, I've designed it with beginner skillsets. The users I targeted should have a basic understanding of ReactJS at the most. The course starts with low-level definitions and works it way up to being able to do something more complex.

If limited skillset is something you're worried about, please reach out and I can help you decide appropriately.

05/26/2024

So, I just recently got a question about my React Unit Testing course (code-squid.teachable.com/p/unit-tests-react) that went something like this ...

I looked at your course. I am not sure if it's too advanced for me.
[ ]

My response ...
This course is written to be useful to developers at all levels. Having said that, I've designed it with beginner skillsets. The users I targeted should have a basic understanding of ReactJS at the most. The course starts with low-level definitions and works it way up to being able to do something more complex.

If limited skillset is something you're worried about, please reach out and I can help you decide appropriately.

05/20/2024

If you haven't signed up for my newsletter, please do so here: https://code-squid.com for frontend topics weekly.

Thoughts on content I could include? Please respond here!

[ ]

Want your school to be the top-listed School/college in Columbus?

Click here to claim your Sponsored Listing.

Location

Telephone

Address


Columbus, OH
43123