love to get called into the boss's office because I did an early return instead of wrapping the whole rest of the function in an if
@BestGirlGrace wow, being told off for Actually Programming Well
@jojo Right? I'd do the right thing, and he'd get mad and I wouldn't try to correct him because it was my first job
when I left, he told me to speak up for myself more???
@BestGirlGrace yes that’s actually bullshit and it’s not just you
programming language designers spent a lot of effort making early returns a safe thing to do
@riking Yeah, that's some ancient Fortran nonsense. Same with the "all variables declared at the top of the function".
@BestGirlGrace okay THAT one is literally stockholm syndrome
they got used to shitty compilers that couldn’t do their own damn variable layout and are now forcing those bad habits onto you
that's some ancient C compiler business, man. come on
@riking @BestGirlGrace oh and then the whole #pragma once vs. #ifndef thing, which I don't actually care about that much but I ended up writing this anyway: http://beesbuzz.biz/code/1473-pragma-once-vs-ifndef-define
@BestGirlGrace galaxy brain: use a kernel-style goto to jump to your one return at the end
@KitRedgrave goto fail time
Don't let the name fool you. All the pornography here is legal, and much of it is hand-written. No fascists, no bigots.