Click here to Skip to main content
15,886,689 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Fighting a monster Pin
jschell6-Mar-23 7:33
jschell6-Mar-23 7:33 
GeneralRe: Fighting a monster Pin
rnbergren3-Mar-23 2:33
rnbergren3-Mar-23 2:33 
GeneralRe: Fighting a monster Pin
englebart3-Mar-23 3:50
professionalenglebart3-Mar-23 3:50 
GeneralRe: Fighting a monster Pin
rnbergren3-Mar-23 5:23
rnbergren3-Mar-23 5:23 
GeneralRe: Fighting a monster Pin
WPerkins3-Mar-23 3:39
WPerkins3-Mar-23 3:39 
GeneralRe: Fighting a monster Pin
trønderen3-Mar-23 6:21
trønderen3-Mar-23 6:21 
GeneralRe: Fighting a monster Pin
WPerkins17-Aug-23 6:23
WPerkins17-Aug-23 6:23 
GeneralRe: Fighting a monster Pin
dandy723-Mar-23 3:34
dandy723-Mar-23 3:34 
A project I inherited had a 1200-line function, duplicated 7 times, each with slightly different input parameters and doing something slightly different. Very subtle differences, which were easy to miss.

I spent weeks trying to refactor it and deduplicate as much code as I could. I think in the end I had a single function, 700 lines long, that took in a few more input params than the 7 original functions, and branched off on those as appropriate in the code. I was still not satisfied with it, and frankly I'd still rather not even think about it.

It was written by one of the company founders, who should never have been allowed anywhere near a compiler.

[going on a tangent, you got me started] Smile | :)

I spent an awful lot of time trying to convince him something he had in mind couldn't be done, unless he intended to have someone dedicated full-time to keeping that code up to date, as the data it needed to gather came from different software companies that didn't talk to each other or standardize on anything and could change on a whim. The data was never intended to be read by third-parties, so they could change format as often as they wanted (and they did).

He wasn't happy with my justification, so he then decided to take it upon himself to "write it in a weekend"...come Monday morning, he had something that worked, which he showed to other people (who didn't know any better) who complimented him on the work and decided to commit to it, and why couldn't I have come up with that since it only took the other guy two days to do it. His code was only compatible with the data produced by one version of the third-party software he was working with. Nothing else. And within a week it was broken because the data format had changed.
GeneralRe: Fighting a monster Pin
Mircea Neacsu3-Mar-23 3:41
Mircea Neacsu3-Mar-23 3:41 
GeneralRe: Fighting a monster Pin
trønderen3-Mar-23 6:24
trønderen3-Mar-23 6:24 
GeneralRe: Fighting a monster Pin
Owen Lawrence3-Mar-23 3:49
Owen Lawrence3-Mar-23 3:49 
GeneralRe: Fighting a monster Pin
Alexey Shtykov3-Mar-23 4:03
professionalAlexey Shtykov3-Mar-23 4:03 
GeneralRe: Fighting a monster Pin
Matt Bond3-Mar-23 3:54
Matt Bond3-Mar-23 3:54 
GeneralRe: Fighting a monster Pin
Getulio_Domingues3-Mar-23 5:05
Getulio_Domingues3-Mar-23 5:05 
GeneralRe: Fighting a monster Pin
Cezar Lamann3-Mar-23 8:50
professionalCezar Lamann3-Mar-23 8:50 
GeneralRe: Fighting a monster Pin
Cezar Lamann3-Mar-23 8:25
professionalCezar Lamann3-Mar-23 8:25 
GeneralRe: Fighting a monster Pin
destynova3-Mar-23 8:25
destynova3-Mar-23 8:25 
GeneralRe: Fighting a monster Pin
Member 119411313-Mar-23 13:05
Member 119411313-Mar-23 13:05 
GeneralRe: Fighting a monster Pin
jschell6-Mar-23 7:27
jschell6-Mar-23 7:27 
RantPlease don't ever do this. Pin
honey the codewitch2-Mar-23 5:57
mvahoney the codewitch2-Mar-23 5:57 
GeneralRe: Please don't ever do this. Pin
jmaida2-Mar-23 17:29
jmaida2-Mar-23 17:29 
GeneralRe: Please don't ever do this. Pin
honey the codewitch2-Mar-23 18:25
mvahoney the codewitch2-Mar-23 18:25 
GeneralRe: Please don't ever do this. Pin
englebart3-Mar-23 3:54
professionalenglebart3-Mar-23 3:54 
JokeAt least I tried Pin
Sander Rossel2-Mar-23 4:40
professionalSander Rossel2-Mar-23 4:40 
GeneralRe: At least I tried Pin
PIEBALDconsult2-Mar-23 4:45
mvePIEBALDconsult2-Mar-23 4:45 

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.