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

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)

Jquery Dynamically Create Table/tr/td Or Etc And Append Attributes

In an example I am having this structure (small example): Test1 LINK& Solution 1: Here's a… Read more Jquery Dynamically Create Table/tr/td Or Etc And Append Attributes

Combine These Specific Javascript Functions

I have these two separate javascript functions that perform the same task using either numbers or w… Read more Combine These Specific Javascript Functions

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?

Combine These Specific Javascript Functions

I have these two separate javascript functions that perform the same task using either numbers or w… Read more Combine These Specific Javascript Functions