3 lines of code shouldn't take all day
devtails.xyz
3 lines of code shouldn't take all day
1–10 of 213 posts
Re: 3 lines of code shouldn't take all day
#2Re: 3 lines of code shouldn't take all day
#3Re: 3 lines of code shouldn't take all day
#4Re: 3 lines of code shouldn't take all day
#5As an example I inherited a codebase about 2 years ago that would take 15 minutes to run the test suite. It was painful. It was just long enough that it would waste an entire day just trying to implement a simple feature. The project was behind schedule and no one wanted to work on it because it just took too long to do anything.
So I spent a few weeks running benchmarks on the tests and figuring out where the slow down was. I did a bunch of different things, reusing SQL tables, only truncating tables ones that were used, refactored how the tests worked, removed some code so that docker was not needed to do the testing, etc.
I got those tests running in 3 seconds down from 15 minutes. And that changed the whole velocity of the project.
Always sharpen your ax.
Re: 3 lines of code shouldn't take all day
#6I’m of the opinion that applying great testing practices to unity programming is very important. It’s been fun synthesizing ideas I’ve encountered into my hobby game dev career.
I’m glad there are others out there doing the good work of generating content to popularize the benefits of good testing practice :)
Re: 3 lines of code shouldn't take all day
#7Agree with this so much. One of the main things that I try to do is ensure that the turn around time between testing and writing code is as short as possible. As an example I inherited a codebase about 2 years ago that would take 15 minutes to run the test suite. It was painful. It was just long enough that it would waste an entire day just trying to implement a simple feature. The project was behind schedule and no…
I don't know what drives that, but in most jobs I've had to fight to do the right thing.
Just recently I've made some optimizations to get a functional test suite from 65 minutes down to 3.6. Parallelism is my favorite lever, as it scales so well, and core count is still going up!
Re: 3 lines of code shouldn't take all day
#8Re: 3 lines of code shouldn't take all day
#9We have so many tools to make this easy now like docker and yet it still gets messed up.
Re: 3 lines of code shouldn't take all day
#10The lack of feedback between the writing of the yaml file and validation of the structure/type/format was frustratingly slow. I would pay good money for better tooling in the Infrastructure as Code(IaC) space.
Waiting for the resources to update, fail with cryptic error messages, then slowly rollback only to then fail the rollback. Now in an invalid state, manual resource creation was required before the rollback would succeed.
The AWS cdk has improved this significantly. As a result the sun shines just a little bit brighter.