Click here to Skip to main content
15,904,934 members

Office politics and sh*tty code.

Source: CodeProject     Posted by Kent Sharkey    Monday, June 20, 2016 6:00pm    
"Boy, that escalated quickly."

I'm just curious to know how everyone else here deals with poorly written code in pre-existing projects.



Back to all news items

 
GeneralYou have to ask... Pin
Marc Clifton21-Jun-16 1:59
mvaMarc Clifton21-Jun-16 1:59 
A few of the common questions:

Is it bug riddled?

Is it hard (or impossible) to add new functionality?

Does it run only on/with obsolete or soon to be obsoleted technologies?

Does it have performance problems, and are those performance problems intrinsic to the architecture (or lack thereof)?

Regarding office politics:

Is the original coder/team still around?

Is there an adversarial situation between the coders and the users?

Does management b*tch about the problem but refuse to allocate the funds to fix it?

Has management become jaded with in-house development and thinks outsourcing / third party COTS, or bringing in a consulting team (at 10x the cost of in-house development) will fix the problem?

Does management think patching the code rather than rewriting it will fix the problem?

Does management even trust its developers?

Do the developers trust their managers?

So, before even touching sh*tty code in an environment rich in stupid office politics, those questions need to be answered and the issues addressed:

Managers and developers need to be brought on board with small wins.

Develop trust before developing code. That's cute slogan, but think about how you communicate a project plan, even a small one, and how you present measuring success, how you communicate progress and obstacles, so the coders, managers, and customers (in house or otherwise) all, and I mean all, feel confidence moving forward.

Everyone needs to see themselves as a stake holder. Particularly, that means management needs to be interested, involved, and engaged in the fixing process. No "disconnected" management, the typical "do this by them or else" style of management.

Fix the blame game so that people are oriented toward solutions.

Get 100% agreement (even if everyone starts at "this all sucks") and move rapidly towards 100 % agreement on "this is how we make it great."

Instead of daily stand ups of "what did I do, what am I working on, what are my obstacles", focus instead on "how's my enthusiasm level, how well am I working with others, how well are others working with me."

Lastly, be honest, and if you think someone isn't being honest, call them on it. If trust and honesty doesn't rapidly become the "new culture", then accept it and move on to another job where the climate is healthier.

Marc
Imperative to Functional Programming Succinctly

Contributors Wanted for Higher Order Programming Project!

Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny

GeneralUgly old code Pin
john morrison leon21-Jun-16 0:05
john morrison leon21-Jun-16 0:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.