Live Productive Coder
summary
Claims that mastering keyboard and IDE IntelliJ shortcuts plus Java 8 lambdas and live templates cuts repetitive code and mistakes: an old copy‑paste codebase shrinks to about one‑fifth after refactoring. Recommends ~20 hours to learn touch‑typing, notes typical coder works ~60 hours, and demos replacing synchronized blocks with a reentrant read/write lock using lambdas, try‑with‑resources and a StampedLock optimistic‑read idiom. Warns checked exceptions clash with lambdas, advises extracting concurrency idioms to single methods rather than repeating boilerplate.
AI-written summary · about
chapters (13)
- 0:00Start
- 3:48Human vs Computer
- 6:31Keyboard Skills • Not all coders can touch type - Each keyboard has dimple for index fingers - Finger controls the buttons above and below it Initial investment of about 20 hours
- 10:07Keyboard Shortcuts • Memorise as many as possible - Use them frequently • Every IDE is different - Sometimes on purpose it seems - CTRL+D in Inteli & Eclipse • Learn vim - Productive for small jobs - Good discipline in keyboard us
- 12:42The Right Kind of Lazy
- 18:16Sascha Schafskopf • Coded without thinking - Resulting code was overly complex - Didn't bother learning the Java API
- 30:49Coding with Lambda Idioms
- 38:18Lambda Idiom Meet Exception • Lambdas do not play nice with checked exceptions
- 50:25How do you start? • Ask some basic questions - What code is dead? • Stories of whole teams working on dead code
- 54:15Commenting Out Code • Source Control Systems - Have been around for decades • Don't duplicate source control work • If code is dead, delete it, don't comment it out
- 55:26"Wonderfully Disgusting Hack" • JDK 1.4: java.awt.Toolkit
- 56:10Automatic Refactoring in IDES • IDEs tempt us to refactor code quickly - But result might be incorrect • Be careful, very careful - Inlining is not always correct - Method extraction is not always correct
- 56:34Automatic Tools and Reflection • Java tools rely on static compilation of classes • Be careful when using Reflection and Dynamic Proxies
