Tag: Refactoring

8 Quick Refactoring Tips to Make Your Code Cleaner and More Pythonic

In this article, I will show you eight quick refactoring tips that will make your code look much cleaner and more Pythonic. Tip 1: Merge Nested If Statements Instead of having nested if statements, it’s better to merge them into one. For example, instead of writing: if a: if b: ...

Refactoring agile fragile code is the gift that keeps on giving

I’ve been around the dev work block. There have been some good and fun projects. Then there have also been horror shows. But it doesn’t matter what feelings I have towards the code, they all have one thing in common — they all need to be refactored, eventually. Refactoring is on...