Click here to Skip to main content
14,362,031 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 19:25
memberMark_Wallace15-Jun-19 19:25 
GeneralRe: I am losing focus... Pin
RickZeeland15-Jun-19 21:52
mveRickZeeland15-Jun-19 21:52 
GeneralRe: I am losing focus... Pin
Jörgen Andersson16-Jun-19 1:04
protectorJörgen Andersson16-Jun-19 1:04 
GeneralSubjective matters: Code simplicity Pin
Super Lloyd14-Jun-19 20:53
memberSuper Lloyd14-Jun-19 20:53 
GeneralRe: Subjective matters: Code simplicity Pin
Peter_in_278014-Jun-19 21:59
professionalPeter_in_278014-Jun-19 21:59 
GeneralRe: Subjective matters: Code simplicity Pin
RickZeeland14-Jun-19 22:08
mveRickZeeland14-Jun-19 22:08 
GeneralRe: Subjective matters: Code simplicity Pin
Super Lloyd14-Jun-19 22:42
memberSuper Lloyd14-Jun-19 22:42 
QuestionRe: Subjective matters: Code simplicity Pin
lopatir14-Jun-19 23:29
memberlopatir14-Jun-19 23: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 Lloyd15-Jun-19 0:00
memberSuper Lloyd15-Jun-19 0:00 
GeneralRe: Subjective matters: Code simplicity Pin
lopatir15-Jun-19 1:22
memberlopatir15-Jun-19 1:22 
JokeRe: Subjective matters: Code simplicity Pin
Sander Rossel15-Jun-19 1:43
professionalSander Rossel15-Jun-19 1:43 
GeneralRe: Subjective matters: Code simplicity Pin
Eddy Vluggen15-Jun-19 1:50
mveEddy Vluggen15-Jun-19 1:50 
GeneralRe: Subjective matters: Code simplicity Pin
Super Lloyd15-Jun-19 2:09
memberSuper Lloyd15-Jun-19 2:09 
GeneralRe: Subjective matters: Code simplicity Pin
Eddy Vluggen15-Jun-19 2:49
mveEddy Vluggen15-Jun-19 2:49 
GeneralRe: Subjective matters: Code simplicity Pin
#realJSOP15-Jun-19 2:43
mve#realJSOP15-Jun-19 2:43 
GeneralRe: Subjective matters: Code simplicity Pin
BryanFazekas17-Jun-19 2:10
memberBryanFazekas17-Jun-19 2:10 
GeneralRe: Subjective matters: Code simplicity Pin
#realJSOP17-Jun-19 2:23
mve#realJSOP17-Jun-19 2:23 
GeneralRe: Subjective matters: Code simplicity Pin
Mark_Wallace15-Jun-19 3:05
memberMark_Wallace15-Jun-19 3:05 
GeneralRe: Subjective matters: Code simplicity Pin
kmoorevs15-Jun-19 5:57
memberkmoorevs15-Jun-19 5:57 
GeneralRe: Subjective matters: Code simplicity Pin
Member 916705716-Jun-19 21:49
memberMember 916705716-Jun-19 21:49 
GeneralRe: Subjective matters: Code simplicity Pin
OriCpp17-Jun-19 0:32
memberOriCpp17-Jun-19 0:32 
GeneralRe: Subjective matters: Code simplicity Pin
Gary Wheeler17-Jun-19 2:45
memberGary Wheeler17-Jun-19 2:45 
GeneralRe: Subjective matters: Code simplicity Pin
englebart18-Jun-19 5:13
memberenglebart18-Jun-19 5:13 
GeneralRe: Subjective matters: Code simplicity Pin
Dr.Walt Fair, PE18-Jun-19 15:35
professionalDr.Walt Fair, PE18-Jun-19 15:35 
GeneralRe: Subjective matters: Code simplicity Pin
Super Lloyd18-Jun-19 15:37
memberSuper Lloyd18-Jun-19 15: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.