Info

Simple Programmer Podcast

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.
RSS Feed
Simple Programmer Podcast
2023
December
November
October
September
August
July
June
May
April
March
February
January


2022
December
November
October
September
August
July
June
May
April
March
February
January


2021
December
November
September
August
July
June
May
March
February
January


2020
December
November
October
September
August
July
June
May
April
March
February
January


2019
December
November
October
September
August
July
June
May
April
March
February
January


2018
December
January


2017
December
November
October
September
August
July
June
May
April
March
February
January


2016
December
November
October
September
August
July
June
May
April
March
February
January


2015
December
November
October
September
August
July
June
May


All Episodes
Archives
Now displaying: Page 1
Dec 12, 2016

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

0 Comments
Adding comments is not available at this time.