Skip to content

The code examples for the 'when my code sucked' presentation

Notifications You must be signed in to change notification settings

Mattamorphic/WhenMyCodeSucked

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#When My Code Sucked - And How I Fixed It

This repo contains bad, and good examples of the different facets of refactoring. Can be read independently, or as part of a presentation I give at talks.

The main areas of consideration are:

  • Readability - Is your code readable? Does it follow standards? Can you easily determine the route of execution?
  • Reusability - How tightly is your code coupled to the code base? Can you abstract it into it's own library? Would you want to?
  • Testability - How easy is it to isolate and test the code, your code and nothing but your code? Are you using a third party class or object? Have you considered your dependancies?

#Prerequisites

  • PHP 7.1
  • Composer

Contributing

Please feel free to fork, and use in your own presentations, or to add further examples / amend the current examples

#Licence

  • MIT

About

The code examples for the 'when my code sucked' presentation

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages