Click here to Skip to main content
15,891,529 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: I am losing focus... Pin
Mark_Wallace15-Jun-19 18:25
Mark_Wallace15-Jun-19 18:25 
GeneralRe: I am losing focus... Pin
RickZeeland15-Jun-19 20:52
mveRickZeeland15-Jun-19 20:52 
GeneralRe: I am losing focus... Pin
Jörgen Andersson16-Jun-19 0:04
professionalJörgen Andersson16-Jun-19 0:04 
GeneralSubjective matters: Code simplicity Pin
Super Lloyd14-Jun-19 19:53
Super Lloyd14-Jun-19 19:53 
GeneralRe: Subjective matters: Code simplicity Pin
Peter_in_278014-Jun-19 20:59
professionalPeter_in_278014-Jun-19 20:59 
GeneralRe: Subjective matters: Code simplicity Pin
RickZeeland14-Jun-19 21:08
mveRickZeeland14-Jun-19 21:08 
GeneralRe: Subjective matters: Code simplicity Pin
Super Lloyd14-Jun-19 21:42
Super Lloyd14-Jun-19 21:42 
QuestionRe: Subjective matters: Code simplicity Pin
lopatir14-Jun-19 22:29
lopatir14-Jun-19 22:29 
Super Lloyd wrote:
where I spent some time updating one of my old and trusty utility class
...Did it happen to you that a coworker refactored some (large amount?) of your code ... Yet when you look at the result you find it way more convoluted, messy, broken, confusing, etc?

ummm, as you are cleaning up your own code and writing about when coworkers do this to your code...

split personality? self trust issues? worried a coworker has hijacked your body?

but seriously:
your code is your expression of an algorithm - a sequence of steps to get from A to B.
but anything more than a few steps means there will be multiple possible paths,

you code: your mind begins by visualizing & testing a path, then expresses that into code.

a different person
(1) visualizes a different path,
(2) expresses [that different path] into code by different mechanisms, and,
(3) even with defined house or whatever rules in place style can still vary too.

later you look back at that code:
your mind recalls the path and mechanisms you used and looks for that,
...and then it all unravels (in the opposite order)
1. style differences: slows down your code/pattern recognition (- though soon [mostly] overcome - it'll still irk a bit)
2. huh? this mechanism doesn't fit the path (you're looking for "your" path)
3. whaaa??, why is this here? (figured the mechanisms, but the path you see doesn't match yours)


I'm sure this morning I arrived in and parked a black car in that [now empty] spot over there oh yeah, some guy told me it was looking a bit dirty and offered to clean it up for me
why am I now standing here holding the keys to this pink half-track truck?
your car code is gone, now you have this completely different one.

It'll still get you home.
Message Signature
(Click to edit ->)

AnswerRe: Subjective matters: Code simplicity Pin
Super Lloyd14-Jun-19 23:00
Super Lloyd14-Jun-19 23:00 
GeneralRe: Subjective matters: Code simplicity Pin
lopatir15-Jun-19 0:22
lopatir15-Jun-19 0:22 
JokeRe: Subjective matters: Code simplicity Pin
Sander Rossel15-Jun-19 0:43
professionalSander Rossel15-Jun-19 0:43 
GeneralRe: Subjective matters: Code simplicity Pin
Eddy Vluggen15-Jun-19 0:50
professionalEddy Vluggen15-Jun-19 0:50 
GeneralRe: Subjective matters: Code simplicity Pin
Super Lloyd15-Jun-19 1:09
Super Lloyd15-Jun-19 1:09 
GeneralRe: Subjective matters: Code simplicity Pin
Eddy Vluggen15-Jun-19 1:49
professionalEddy Vluggen15-Jun-19 1:49 
GeneralRe: Subjective matters: Code simplicity Pin
#realJSOP15-Jun-19 1:43
mve#realJSOP15-Jun-19 1:43 
GeneralRe: Subjective matters: Code simplicity Pin
BryanFazekas17-Jun-19 1:10
BryanFazekas17-Jun-19 1:10 
GeneralRe: Subjective matters: Code simplicity Pin
#realJSOP17-Jun-19 1:23
mve#realJSOP17-Jun-19 1:23 
GeneralRe: Subjective matters: Code simplicity Pin
Mark_Wallace15-Jun-19 2:05
Mark_Wallace15-Jun-19 2:05 
GeneralRe: Subjective matters: Code simplicity Pin
kmoorevs15-Jun-19 4:57
kmoorevs15-Jun-19 4:57 
GeneralRe: Subjective matters: Code simplicity Pin
Member 916705716-Jun-19 20:49
Member 916705716-Jun-19 20:49 
GeneralRe: Subjective matters: Code simplicity Pin
OriCpp16-Jun-19 23:32
OriCpp16-Jun-19 23:32 
GeneralRe: Subjective matters: Code simplicity Pin
Gary Wheeler17-Jun-19 1:45
Gary Wheeler17-Jun-19 1:45 
GeneralRe: Subjective matters: Code simplicity Pin
englebart18-Jun-19 4:13
professionalenglebart18-Jun-19 4:13 
GeneralRe: Subjective matters: Code simplicity Pin
Dr.Walt Fair, PE18-Jun-19 14:35
professionalDr.Walt Fair, PE18-Jun-19 14:35 
GeneralRe: Subjective matters: Code simplicity Pin
Super Lloyd18-Jun-19 14:37
Super Lloyd18-Jun-19 14:37 

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.