Re: Coding styles
Art,toggle quoted messageShow quoted text
before the moderators shut down this trip down memory lane…..but, I think it is relevant…as coding is a part of the BitX family and its experimentation…..
we all have stories…..
the last ‘move’ in programming I made was to attempt to work with one of those hoarders…to implement some modernization and a new system….while simultaneously helping him maintain old code (later the CIO told me it was to learn what he was doing as I was stubborn enough and everyone else had failed)..he was a mid level IT manager by default….he was on call overnight every night ‘rescuing' his department in a much larger corporation. He had so many kludges that he wouldn’t share with me…..not with 3 years of working ‘with’ him…..he had a mental breakdown and split….and even though I was in the search for a neurological dilemma myself…..I was able to work on his garbage in the last year, by coming in every other day at noon with a workplace accommodation (partly because they couldn’t get anyone else to willing work on cleaning up his garbage)…..so while in the hobby world…..some newbies might say…..what is all the fuss about ‘style’ and comments…..if the code works, who cares?…..we know better….
the real story is my first two weeks in this department….he told me…..take a few days and walk through the code and get an idea of what our department does….we all have done this….so I started documenting what was happening…..it had one of the biggest sins in coding in my estimation……thousands of lines of supposively ‘UNUSED’ code…..old supposed retired code, retired business rules……but the code was left in place…..it wan’t running…..or so they thought….or better….hoped.
and none of that was going to change….
I found one subroutine that I really didn’t like…..it looked like it would run on a pretty regular basis and prevent billing…..but, it would take an hour to explain why by showing the multiple ‘retired’ paths that got you there…..if you brought that up you were either trusted…..or he had to give you a blackboard and stack of green bar…..and an hour…..
I stood my ground for two weeks…..refusing to do anything else…..if I was going to be in the same area with him for any time he was going to trust me and ‘work with me' or I was going to walk…..
short version…..he reluctantly implemented my commenting out the old code in an appropriate place…..that department then had the best month of collections they had ever had…..everyone was happy….except my boss….and I lived through 3 more years of that jerk…..it didn’t help my relationship with him that it was around Christmas time and the company was drawing names from attaboy slips every month…..that month….my name on that slip was $1000 Samsung big screen….
oh…..style, comments, unused code…..change management, lions, tigers, and bears, oh my
so, not to scare anyone away from coding…..its just worth doing it right the first time, which doesn’t mean doing exactly like anyone else, but, to just make it easy for everyone else and yourself
On May 7, 2018, at 3:17 PM, Art N4EZZ <email@example.com> wrote: