Discover this podcast and so much more

Podcasts are free to enjoy without a subscription. We also offer ebooks, audiobooks, and so much more for just $11.99/month.

308 How Many Lines Of Code Should A Function Have? - Simple Programmer Podcast

308 How Many Lines Of Code Should A Function Have? - Simple Programmer Podcast

FromSimple Programmer Podcast


308 How Many Lines Of Code Should A Function Have? - Simple Programmer Podcast

FromSimple Programmer Podcast

ratings:
Length:
10 minutes
Released:
Dec 12, 2016
Format:
Podcast episode

Description

Writing code is definitely an art. It is far from being something automatic. This is so true due to the fact that every software developer writes a different code, based on their personal experience and how they perceive it is the best practice for writing it. So, one of the most asked questions I receive is how a code should be written and what are the best practices for writing code. In this video I'll discuss a little bit more about how many lines of code should a function have. This is such a particular code and a quote from Code Complete Book sums it up really well: "From time to time, a complex algorithm will lead to a longer routine, and in those circumstances, the routine should be allowed to grow organically up to 100-200 lines. (A line is a noncomment, nonblank line of source code.) Decades of evidence say that routines of such length are no more error prone than shorter routines. Let issues such as depth of nesting, number of variables, and other complexity-related considerations dictate the length of the routine rather than imposing a length restriction per se." Wanna know more about how many lines of could should a function have? Should You Comment Your Code?: https://www.youtube.com/watch?v=ErW6fEvulAc Clean Code Book: https://simpleprogrammer.com/CleanCodeBook
Released:
Dec 12, 2016
Format:
Podcast episode

Titles in the series (100)

John Sonmez wants to help you become more successful, make more money, deal with difficult coworkers and be so productive everyone thinks you must be abusing a prescription for Ritalin. Listen in every Monday, Wednesday and Friday, as Simple Programmer founder, John Sonmez, answers questions, interviews guests and shares everything he knows to help you become a top performing software developer. The Simple Programmer Podcast is a short podcast that is a mix of career advice, philosophy and soft skills from successful author and software developer, John Sonmez. John is the founder of http://simpleprogrammer.com, one of the most popular software development blogs, and the author of the best-selling book, "Soft Skills: The Software Developer's Life Manual." (http://simpleprogrammer.com/softskills) Geared towards a programmer or software developer audience, but contains practical advice on: Career development Entrepreneurship Fitness Finance Productivity Personal development And more... That anyone can benefit from. Each episode is between 5 and 10 minutes long with at least 3 new episodes each week.