Photo by Kevin Ku on Unsplash Dan Abramov on how he once overnight refactored a piece of WET code written by a colleague, but then got called out for doing so: My boss invited me for a one-on-one chat where they politely asked me to revert my change. I was aghast. The old code was …
Tag Archives: refactoring
Harry Roberts: Refactoring CSS Without Losing Your Mind
Extract Till You Drop
Under the pressure of deadlines and endless change requests, under the weight of years of legacy, code becomes unmaintainable. With the right tools, techniques, and mindset, any codebase can be brought under test, and be refactored towards a better architecture. Let’s skip the theory and dive straight into the spaghetti code. In a live coding …