News for hackers. Stuff that matters.
Re:Brian Kernighan on The Elements of Programming Style[video] by tarkin2 on Sunday April 04, 2010 @09:06PM (#1241124)
A fairly minor point of the video, but interesting for me, was when he spoke about paranoia and bound checking. I often cannot decide if I should check if strings are NULL, numbers are negative, files are open/closed, etc, etc. I'm often unsure if I should spend, often long stretches of, time worrying about every possible boundary condition of all my variables, which is no simple task when dealing with constructs more complex than integers. When I do this it becomes apparent my functions are getting larger and larger, however; more return values, more if clauses, etc, etc. He offers no solution, but suggests there's a tradeoff, which is strangely reassuring. The problem doesn't make me feel so bad, now I hear that from him. More and more I'm coming to the conclusion it's best to transfer all that checking to a wrapper function, or leave it to the function's user, which will have to become, in effect, the wrapper function.
Re:Brian Kernighan on The Elements of Programming Style[video] by _prototype_ on Sunday April 04, 2010 @10:42PM (#1241239)
For those you who are nerdy enough like myself: if you stick around for the better part of the end, there a funny moment in which a buzzer goes off, and Brian shake like a female dog. I love the man, but that was unexpectedly hilarious. Hahaha
Re:Brian Kernighan on The Elements of Programming Style[video] by jhg on Sunday April 04, 2010 @04:33PM (#1240770)
A louder version with actual slide content would be nice.
Re:Brian Kernighan on The Elements of Programming Style[video] by cubedice on Sunday April 04, 2010 @04:37PM (#1240775)
Well, about 4 or 5 minutes in they switch to a PIP view, with the majority of the screen showing the slides.
Re:Brian Kernighan on The Elements of Programming Style[video] by jemfinch on Monday April 05, 2010 @10:13AM (#1241932)
Warning: at 56 minutes or so a fire alarm goes off. You probably want to turn your volume down to compensate.
Re:Brian Kernighan on The Elements of Programming Style[video] by avolkov on Monday April 05, 2010 @09:23PM (#1243549)
is there slides anywhere?