Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Static == evil ?

Static == evil ?

The idea behind this slides is show why static functions all over the place may become a problem in the future for testing, maintainability and decoupling of any software project.

Special thanks to http://barista-v.com

Feel free to contribute https://www.pixelapse.com/danielgomezrico/projects/slides-static-equals-evil

Daniel

May 18, 2016
Tweet

More Decks by Daniel

Other Decks in Programming

Transcript

  1. Try to unit test it Is testing SongsRepository behaviour too…

    Run slowly No control over posible failures Why it fails? O_O
  2. Avoid mesh code Improve testing Inverse Responsibility Static is faster

    to write but harder horrible to maintain Less static -> less evil inside (static == class functions)