Relative Content

Tag Archive for refactoring

What is the politically correct way of refactoring other’s code? [duplicate]

This question already has answers here: How can I tactfully suggest improvements to others’ badly designed code during review? (16 answers) Closed 9 years ago. I’m currently working in a geographically distributed team in a big company. Everybody is just focused on today’s tasks and getting things done, however this means sometimes things have to […]

Question on refactoring and code design

Suppose, I have a class with a constant static final field. Then I want in certain situations that field to be different. It still can be final, because it should be initialized in constructor. My question is, what strategy I should use:

Looking for the better way to combine deep architecture refactoring with feature based development

Problem statement: Given: TFS as Source Control Heavy desktop client application with tons of legacy code with bad or almost absent architecture design. Clients constantly requiring new features with sound quality, fast delivery and constantly complaining on user unfriendly UI. Problem: Application undoubtedly requires deep refactoring. This process inevitably makes application unstable and dedicated stabilization […]

is this javascript property defaulting pattern a code smell?

In some javascript code I’m working on refactoring I’ve handled cases where I wanted to default an object property to true without having to go through the code-base and add the property to every instance of the object by doing something like this: