Skip to content

Make it work. Make it right. Make it fast; A comparison of code implementations that are quick and dirty, readable but slow to execute, and readable as well as fast to execute.

Notifications You must be signed in to change notification settings

BevanR/Programming-Style

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

These scripts compare three different styles of programming:

  1. fast.php is quick to both implement and execute, but difficult to read, understand and maintain.
  2. readable.php is easy to read, understand and maintain, but slower to execute and to implement.
  3. both.php is easy to read, understand and maintain. It is fast to execute, but slow to implement.
File Technical debt Implementation time Execution time
fast.php 3 units ~1 hour 0.5s
readable.php 1-2 units ~2 hours 10s
both.php 1 unit ~3 hours 0.5s

All three have the same output. Test data is not currently provided.

About

Make it work. Make it right. Make it fast; A comparison of code implementations that are quick and dirty, readable but slow to execute, and readable as well as fast to execute.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages