Here are some golden rules regarding bugs 🐛🪲🐞 that I learned in my career with #rubyonrails 🧵
👉 There’s nothing you can do to avoid bugs. They will just happen at some point. They are an integral part of the developer job: from time to time, you will have to spend time to tackle bugs.
👉 Prevent as many as possible. Test your code! Do not write only unit test. Write end to end (aka system) tests. They are slow as hell, sure, but they will cover you so well! Your test suite is where you’ll discover most of the bugs.