Elements of Programming Style - Brian Kernighan
Channel:Institute for Advanced Study · Length:1:10:42 · Published:2017-07-11 · Views:137810
Summary
Brian Kernighan's 2009 talk at Princeton on the Elements of Programming Style, discussing readable code, avoiding cleverness and flawed examples in programming tutorials.
Why HN recommends it
HN cites it as the author's own talk on writing clear code, useful as a companion to his book.
Brian Kernighan gave a talk on the readability of code and not getting too clever — HN, 2024
C, C++, Rust, Go & systems languages · Software practice, open source & careers
Subtitles (excerpt)
thank you very much um I can't tell what the something closer than one Au away there um I don't know where you folks can hear me let's assume you probably can and uh no it sounds like we're getting another last I pushed it it says it's on if all else fails check the power okay um so I'm going to assume if in the back row you can't hear me at all you know wave your arms or something like that and we'll just assume it's okay all righty um so let's get started um this title here it actually has a bit of a history in some sense it's it's obviously pretty arrogant uh and Imp poite in some sense it's actually a title that I used in a talk in 1973 which you may think of as a long time ago before practically everybody here was born um and I was much younger in those days and had slightly different hair um the Genesis of the whole uh thing and in fact what I want to talk about today when I went to Bell Labs uh in 1969 I I happened to be lucky enough to have the office next door to Dick Hamming anyway um as I said I was in the office next door to Dick Hamming dick Hamming uh was arrogant and erasable and very very smart and he used to spend a lot of time complaining about how people programmed
On Hacker News
Filtering a container by a predicate is 50 year old technology and a very common thing. It's unbelievable that a "modern" language has no shorter or clearer idiom than that convoluted boilerplate filled Ministry of Silly Walks blob. Python had filter() and then got list comprehensions from Haskell list comprehensions. PowerShell has Where-Object taking from C# LINQ .Where() which takes from SQL's… — jodrellblank, 2024-08
Brian Kernighan (the K in K&R and AWK) also wrote a similar book with P. J. Plauger called "The Elements of Programming Style" [1]. There's even a talk by him about it online (2009) [2]. Kernighan also co-authored a (imo) really great book with Rob Pike (once an assistant of Penn & Teller [3]) called "The Practice of Programming" [4]. Unfortunately, this one is a bit over the 200 page limit. [1] … — undecidabot, 2020-05
I always wondered about the C tutorials Brian Kernigan mentions in his talk ( [VIDEO] ) , many of the examples seem intentionally designed to be incorrect by some trickster spirit. Now I know the even darker truth. — ZephyrP, 2018-06
Related videos
- CppCon 2015: Andrei Alexandrescu “std::allocator...” · CppCon · 1:12:27
- Lexical Scanning in Go - Rob Pike · GoogleFOSSSydney · 51:17
- 🚀 TDD, Where Did It All Go Wrong (Ian Cooper) · DevTernity Conference · 1:03:55
- Bret Victor The Future of Programming · Joey Reid · 32:55
- "Uncle" Bob Martin - "The Future of Programming" · Paul Stringer's Mobile Tech · 1:18:21
- CppCon 2017: Matt Kulukundis “Designing a Fast, Efficient, Cache-friendly Hash Table, Step by Step” · CppCon · 59:33
- RustConf 2018 - Closing Keynote - Using Rust For Game Development by Catherine West · Rust Programming Language · 42:29
- Tim Ewald - Clojure: Programming with Hand Tools · ClojureTV · 58:39
- CppCon 2016: Jason Turner “Rich Code for Tiny Computers: A Simple Commodore 64 Game in C++17” · CppCon · 1:19:52
- Using Python to Code by Voice · Next Day Video · 28:17
- Transforming Code into Beautiful, Idiomatic Python · Next Day Video · 48:51
- Ideas about a new programming language for games. · Jonathan Blow · 1:55:24
- CppCon 2014: Mike Acton "Data-Oriented Design and C++" · CppCon · 1:27:46
- How I program C · Eskil Steenberg · 2:11:32
- Agile is Dead • Pragmatic Dave Thomas • GOTO 2015 · GOTO Conferences · 40:39
- Google I/O 2012 - Go Concurrency Patterns · Google for Developers · 51:27