Click here to Skip to main content
14,333,069 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: when algorithms attack Pin
honey the codewitch16-Aug-19 5:28
memberhoney the codewitch16-Aug-19 5:28 
GeneralRe: when algorithms attack Pin
Sander Rossel16-Aug-19 5:30
professionalSander Rossel16-Aug-19 5:30 
GeneralRe: when algorithms attack Pin
honey the codewitch16-Aug-19 5:31
memberhoney the codewitch16-Aug-19 5:31 
GeneralRe: when algorithms attack Pin
Sander Rossel16-Aug-19 5:37
professionalSander Rossel16-Aug-19 5:37 
GeneralRe: when algorithms attack Pin
Jon McKee16-Aug-19 9:27
professionalJon McKee16-Aug-19 9:27 
GeneralRe: when algorithms attack Pin
honey the codewitch16-Aug-19 9:32
memberhoney the codewitch16-Aug-19 9:32 
GeneralRe: when algorithms attack Pin
honey the codewitch16-Aug-19 9:34
memberhoney the codewitch16-Aug-19 9:34 
GeneralRe: when algorithms attack Pin
Sander Rossel16-Aug-19 9:52
professionalSander Rossel16-Aug-19 9:52 
Jon McKee wrote:
Now tremble before me Mad | :mad:
THE ANTI-CHRISTCODE HAS RISEN!!! Sigh | :sigh:

It's exactly that mindfulness you're talking about that keeps me from doing this.
That mindfulness often isn't there, opening the way to mistakes and bugs.

I once found this code (incl. indentation).
if (whatever)
    DoSomething();
    DoSomethingElse();
    DoAThirdThing();
Now I had to add a fourth thing, but only if whatever was true.
You can see how I messed that up real good Smile | :)
Or rather, the person who wrote that code and indented it like that made me mess it up Dead | X|
I actually had to check if the original programmer meant for it to be like this or if he forgot braces (turned out he just messed up his indentation).
It was so much wasted time and effort on my part just because someone didn't use braces.
It probably would have been better if the indentation was correct, but even then I have to think and explicitly add braces or my change won't work (or will always work).

I want to think about what my code is doing and should be doing, not if my syntax is still valid/correct.
If I want to add something if whatever is true I need to be inside the braces and otherwise I need to be outside them, it's really easy and clear and it almost can't go wrong.
if (you just use braces) { not even the new intern will mess it up; } Smile | :)

GeneralRe: when algorithms attack Pin
Jon McKee16-Aug-19 10:29
professionalJon McKee16-Aug-19 10:29 
GeneralRe: when algorithms attack Pin
Sander Rossel16-Aug-19 10:52
professionalSander Rossel16-Aug-19 10:52 
GeneralRe: when algorithms attack Pin
Jon McKee17-Aug-19 10:19
professionalJon McKee17-Aug-19 10:19 
GeneralRe: when algorithms attack Pin
Sander Rossel17-Aug-19 10:34
professionalSander Rossel17-Aug-19 10:34 
GeneralRe: when algorithms attack Pin
honey the codewitch16-Aug-19 10:30
memberhoney the codewitch16-Aug-19 10:30 
GeneralRe: when algorithms attack Pin
Sander Rossel16-Aug-19 10:59
professionalSander Rossel16-Aug-19 10:59 
GeneralRe: when algorithms attack Pin
honey the codewitch16-Aug-19 11:02
memberhoney the codewitch16-Aug-19 11:02 
GeneralRe: when algorithms attack Pin
Sander Rossel16-Aug-19 11:09
professionalSander Rossel16-Aug-19 11:09 
GeneralRe: when algorithms attack Pin
honey the codewitch16-Aug-19 11:16
memberhoney the codewitch16-Aug-19 11:16 
GeneralRe: when algorithms attack Pin
Sander Rossel17-Aug-19 1:35
professionalSander Rossel17-Aug-19 1:35 
GeneralRe: when algorithms attack Pin
honey the codewitch17-Aug-19 3:16
memberhoney the codewitch17-Aug-19 3:16 
GeneralRe: when algorithms attack Pin
Sander Rossel17-Aug-19 4:08
professionalSander Rossel17-Aug-19 4:08 
GeneralRe: when algorithms attack Pin
honey the codewitch17-Aug-19 4:14
memberhoney the codewitch17-Aug-19 4:14 
GeneralRe: when algorithms attack Pin
Sander Rossel17-Aug-19 4:27
professionalSander Rossel17-Aug-19 4:27 
GeneralRe: when algorithms attack Pin
honey the codewitch17-Aug-19 4:30
memberhoney the codewitch17-Aug-19 4:30 
GeneralRe: when algorithms attack Pin
Sander Rossel17-Aug-19 4:32
professionalSander Rossel17-Aug-19 4:32 
GeneralRe: when algorithms attack Pin
honey the codewitch17-Aug-19 4:41
memberhoney the codewitch17-Aug-19 4:41 

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.