Your Code as a Crime Scene, Second Edition by Adam Tornhill
Author:Adam Tornhill
Language: eng
Format: epub
Tags: Pragmatic Bookshelf
Publisher: The Pragmatic Bookshelf, LLC
Use Beauty in Code
Beauty, being the absence of ugliness, translates well to our software world, too. Beautiful code has a consistent level of expression thatâs easy to follow. Just as deviations from the mathematical average make a face less attractive, so does any coding construct that deviates from the main style of your application or introduces accidental barriers to understanding the code. Examples of such issues include special cases and the code smells covered in Chapter 6, âRemediate Complicated Codeâ.
These constructs signal bad genes in our programs because they make it harder to form a mental model of the program. Thatâs just how your brain works; when presented with complexity, inconsistencies, or conflicting representations, your brain selects one of the stimuli at the price of other details. You can switch between them, but it will be mentally expensive.
That means youâve introduced a cognitive cost as soon as you break the flow of someone reading your code. This cost makes your programs harder to understand and riskier to modify. A broken code reading flow is to blame for many bugs.
Beauty Influences Sentencing
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Deep Learning with Python by François Chollet(12644)
Hello! Python by Anthony Briggs(9948)
OCA Java SE 8 Programmer I Certification Guide by Mala Gupta(9823)
The Mikado Method by Ola Ellnestam Daniel Brolund(9813)
A Developer's Guide to Building Resilient Cloud Applications with Azure by Hamida Rebai Trabelsi(9700)
Dependency Injection in .NET by Mark Seemann(9368)
Hit Refresh by Satya Nadella(8854)
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(8333)
The Kubernetes Operator Framework Book by Michael Dame(7930)
Sass and Compass in Action by Wynn Netherland Nathan Weizenbaum Chris Eppstein Brandon Mathis(7810)
Test-Driven iOS Development with Swift 4 by Dominik Hauser(7789)
Exploring Deepfakes by Bryan Lyon and Matt Tora(7722)
Grails in Action by Glen Smith Peter Ledbrook(7721)
Practical Computer Architecture with Python and ARM by Alan Clements(7665)
Implementing Enterprise Observability for Success by Manisha Agrawal and Karun Krishnannair(7628)
Robo-Advisor with Python by Aki Ranin(7618)
The Well-Grounded Java Developer by Benjamin J. Evans Martijn Verburg(7590)
Building Low Latency Applications with C++ by Sourav Ghosh(7505)
Svelte with Test-Driven Development by Daniel Irvine(7482)
