TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Brian Kernighan on The Elements of Programming Style[video]

35 pointsby b-manabout 15 years ago

5 comments

tarkin2about 15 years ago
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.
_prototype_about 15 years ago
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
jhgabout 15 years ago
A louder version with actual slide content would be nice.
评论 #1240775 未加载
jemfinchabout 15 years ago
Warning: at 56 minutes or so a fire alarm goes off. You probably want to turn your volume down to compensate.
avolkovabout 15 years ago
is there slides anywhere?