Skip to content Skip to sidebar Skip to footer
Showing posts with the label Refactoring

The Controller With The Name Xxx Is Not Registered - Refactoring Old Project That Uses Webpack

I'm currently refactoring one of my old AngularJS projects which worked before, but since updat… Read more The Controller With The Name Xxx Is Not Registered - Refactoring Old Project That Uses Webpack

Js: Rename Variables For Refactor (using An Ast, Not Text)

I often need to rename variables when refactoring code, which I currently do in a somewhat hacky wa… Read more Js: Rename Variables For Refactor (using An Ast, Not Text)

What's The Best Alternative To An Out Of Control Switch Statement?

I have inherited a project that has some huge switch statement blocks, with some containing up to 2… Read more What's The Best Alternative To An Out Of Control Switch Statement?

In Javascript, How Do I Write One Function That Will Effect Multiple Buttons, Each With Their Own Separate Arrays?

I am currently setting up an application with three separate buttons, each which is supposed to ran… Read more In Javascript, How Do I Write One Function That Will Effect Multiple Buttons, Each With Their Own Separate Arrays?