Fundamentals of Software Engineering by Nathaniel Schutta and Jakub Pilimon
Author:Nathaniel Schutta and Jakub Pilimon
Language: eng
Format: epub
Publisher: O'Reilly Media, Inc.
Published: 2023-08-11T00:00:00+00:00
What is Good Code?
Of course there wonât always be a library or language feature to solve your problem. You will, of course, write code! And you may ask yourself, well, what is good code? To paraphrase Potter Stewart, good code can be hard to define but you know it when you see it. Admittedly, good vs bad code can be a very subjective concept. After a while you start to develop a sense for it and you may even say code has a smell to it. For example, overly long methods are generally a bad thing, but you still need to examine the code; there may not be a simpler approach. Few developers will ever admit to writing bad code, but anyone whoâs ever opened an editor is guilty of some less than stellar software.
Metrics can provide insight into your codebase. For example, cyclomatic complexity can tell you how many there are within your source code, with more paths indicating more complex code that would likely benefit from refactoring. Many languages have source code analyzers like PMD, SonarQube, and JSHint which can help prevent certain types of bugs and bad coding practices from infesting the source code. Tools like SonarQube and CodeScene can provide invaluable insight into your codebase. Odds are, your organization has something. If youâre not sure, ask around. If they donât, why not spearhead the effort to bring one into your project?
While metrics should never be blindly followed, for example, some complexity just canât be avoided! You must apply common sense to any rule of thumb because, in some instances, applying the common rule may actually make things worse. However, you can take advantage of the Hawthorne effect which says people modify their behavior when theyâre observed.1 You can absolutely use that to your advantage on a project! For example, if you want more of the code to be covered by tests, prominently display the code coverage stats.
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.
What's Done in Darkness by Kayla Perrin(26357)
Shot Through the Heart: DI Grace Fisher 2 by Isabelle Grey(18875)
Shot Through the Heart by Mercy Celeste(18746)
The Fifty Shades Trilogy & Grey by E L James(18723)
Wolf & Parchment: New Theory Spice & Wolf, Vol. 10 by Isuna Hasekura and Jyuu Ayakura(15551)
Python GUI Applications using PyQt5 : The hands-on guide to build apps with Python by Verdugo Leire(15528)
Peren F. Statistics for Business and Economics...Essential Formulas 3ed 2025 by Unknown(15437)
Wolf & Parchment: New Theory Spice & Wolf, Vol. 03 by Isuna Hasekura and Jyuu Ayakura & Jyuu Ayakura(15344)
Wolf & Parchment: New Theory Spice & Wolf, Vol. 01 by Isuna Hasekura and Jyuu Ayakura & Jyuu Ayakura(14973)
The Subtle Art of Not Giving a F*ck by Mark Manson(14036)
The 3rd Cycle of the Betrayed Series Collection: Extremely Controversial Historical Thrillers (Betrayed Series Boxed set) by McCray Carolyn(13933)
Stepbrother Stories 2 - 21 Taboo Story Collection (Brother Sister Stepbrother Stepsister Taboo Pseudo Incest Family Virgin Creampie Pregnant Forced Pregnancy Breeding) by Roxi Harding(13024)
Scorched Earth by Nick Kyme(12576)
Drei Generationen auf dem Jakobsweg by Stein Pia(10803)
Suna by Ziefle Pia(10737)
Scythe by Neal Shusterman(10119)
International Relations from the Global South; Worlds of Difference; First Edition by Arlene B. Tickner & Karen Smith(9359)
Successful Proposal Strategies for Small Businesses: Using Knowledge Management ot Win Govenment, Private Sector, and International Contracts 3rd Edition by Robert Frey(9183)
This is Going to Hurt by Adam Kay(8845)
