Software Engineering Tidbits

Software Engineering Tidbits

Share this post

Software Engineering Tidbits
Software Engineering Tidbits
Fix a bug / Write a unit test
Copy link
Facebook
Email
Notes
More

Fix a bug / Write a unit test

Georges El Khoury's avatar
Georges El Khoury
Nov 27, 2022
6

Share this post

Software Engineering Tidbits
Software Engineering Tidbits
Fix a bug / Write a unit test
Copy link
Facebook
Email
Notes
More
1
Share

One solid practice to have while coding is to fix a bug and at the same time write a unit test that would have uncovered it.

It is a sign of solid experience in software engineering.

The direct benefits are to avoid regressions for this bug, to ensure the fix is correct and to increase code coverage and the reliability of the test suite.

The indirect one is to promote a culture of quality and reliance on unit testing in the engineering team.


Software Engineering from the Frontlines Course on Maven

If you liked this article, I will be teaching a “Software Engineering from the Frontlines” course on Maven where I will teach hard-learned lessons I acquired developing large-scale products at companies such as Uber, Airbnb, and Microsoft.

View Course


Thanks for reading Software Engineering Tidbits! Subscribe for free to receive new posts and support my work.

Daniel Jarzębowski's avatar
Eliseo Garcia's avatar
Davi Gray's avatar
6 Likes
6

Share this post

Software Engineering Tidbits
Software Engineering Tidbits
Fix a bug / Write a unit test
Copy link
Facebook
Email
Notes
More
1
Share

Discussion about this post

User's avatar
Davi Gray's avatar
Davi Gray
May 7, 2023

Usually I write the unit test first, to make sure it actually finds the bug, then fix it. (Which is probably how you mean this, but clarity is good.)

Red-to-green feels so nice!

Expand full comment
Like
Reply
Share
A good unit test
A good unit test should be:
Feb 20, 2023 • 
Georges El Khoury
18

Share this post

Software Engineering Tidbits
Software Engineering Tidbits
A good unit test
Copy link
Facebook
Email
Notes
More
5
A good way to debug
One of the best software engineering tip I received is a good way to debug.
Apr 28, 2022 • 
Georges El Khoury
16

Share this post

Software Engineering Tidbits
Software Engineering Tidbits
A good way to debug
Copy link
Facebook
Email
Notes
More
2
Outage Management
Outage management is a core skill for a software engineer to acquire and is critical to achieve high availability of an online service.
Feb 13, 2023 • 
Georges El Khoury
13

Share this post

Software Engineering Tidbits
Software Engineering Tidbits
Outage Management
Copy link
Facebook
Email
Notes
More
3

Ready for more?

© 2025 Georges El Khoury
Privacy ∙ Terms ∙ Collection notice
Start writingGet the app
Substack is the home for great culture

Share

Copy link
Facebook
Email
Notes
More

Create your profile

User's avatar

Only paid subscribers can comment on this post

Already a paid subscriber? Sign in

Check your email

For your security, we need to re-authenticate you.

Click the link we sent to , or click here to sign in.