My MBA manager has written a crappy algorithm and wants me to implement it .the algorithm has 8 different variables maintaining states and I am not able to understand it completely (he thinks it's a 2 day job to implement it ) .how do I handle this situation
TOP 16 Comments
- Starbucks / EngbakedbreadmoreOptimize it and show him the performance diff and risks of his shitty design
- Lookout / EngMlCU70When you say algorithm, do you actually mean business requirements? If so, ask questions. If it’s a poorly written algorithm, do the same thing so you can understand the problem. Once you understand the problem, solve it the way you deem best.
- I said all sorts of things in rage .he was just very enthusiastic about writing an algorithm , so he tried to design it . however , my persistence paid off , he agreed that in his methodology the code will become complex and bug prone .so he allowed me to implement it my way , although in the end he said mine is a brute Force way of doing things (I didn't reply :) .
- New / EngRhpJ71If he is the type who can appreciate other people's ideas, the best way is to show him the consequences of his actions: 1) write the code, 2) take your time to write it, 3) show him how slow it runs, 4) pitch your idea when he sees what's wrong.
If the boss is a stuck up arrogant prick, take him for a spin for 3 months while you find a new job.