Automation Automation Automation - ScotlandPHP

Automation Automation Automation - ScotlandPHP

A good rule of thumb to have as a developer is that if you have to do something three times or more, you should automate it. Imagine that a task takes you a minute to do, twice a day. Now imagine that you could write something that does it for you, but it would take an hour. Initially, you'll have lost an hour, but after the first month you'll be breaking even, as you've saved those two minutes per day. Then after the second month, you've essentially gained a free hour.

Automation is a developer's best friend. Some things are easier to automate than others, but almost anything can be automated. In this talk, we'll take a look at what can be automated, what tools are available to help us and crucially, *if* we should automate it. Surprisingly, sometimes the answer to the question "should we?" is "no".

Bbf9decfbfc2ab5b450ec503749ded28?s=128

Michael Heap

October 29, 2016
Tweet

Transcript

  1. 4.

    1. What is automation? 2. A step by step guide

    to automation 3. Making it institutionalised 4. Thinking outside the box 5. I'm convinced! Let's automate 6. Useful tools
  2. 5.

    0. XKCD 1. What is automation? 2. A step by

    step guide to automation 3. Making it institutionalised 4. Thinking outside the box 5. I'm convinced! Let's automate 6. Useful tools
  3. 6.
  4. 7.

    1. What is automation? 2. A step by step guide

    to automation 3. Making it institutionalised 4. Thinking outside the box 5. I'm convinced! Let's automate 6. Useful tools
  5. 13.
  6. 18.

    #1 Reason People... Have good intentions, but no time Don't

    write tests Don't run tests Don't write/read documentation
  7. 19.

    #1 Reason People... Have good intentions, but no time Don't

    write tests Don't run tests Don't write/read documentation Are not deterministic
  8. 26.
  9. 34.

    No

  10. 41.
  11. 47.

    1. What is automation? 2. A step by step guide

    to automation 3. Making it institutionalised 4. Thinking outside the box 5. I'm convinced! Let's automate 6. Useful tools
  12. 49.
  13. 61.

    $ git checkout staging $ git pull origin staging $

    git merge feature/new-awesomeness $ git push origin staging $ cap staging deploy:full
  14. 64.

    $ git checkout staging $ git pull origin staging $

    git merge feature/new-awesomeness $ git push origin staging $ cap staging deploy:full
  15. 67.

    1. What is automation? 2. A step by step guide

    to automation 3. Making it institutionalised 4. Thinking outside the box 5. I'm convinced! Let's automate 6. Useful tools
  16. 69.
  17. 80.

    1. What is automation? 2. A step by step guide

    to automation 3. Making it institutionalised 4. Thinking outside the box 5. I'm convinced! Let's automate 6. Useful tools
  18. 81.

    Us

  19. 82.

    Us

  20. 83.
  21. 89.
  22. 90.

    1. What is automation? 2. A step by step guide

    to automation 3. Making it institutionalised 4. Thinking outside the box 5. I'm convinced! Let's automate 6. Useful tools
  23. 101.
  24. 102.
  25. 103.

    1. What is automation? 2. A step by step guide

    to automation 3. Making it institutionalised 4. Thinking outside the box 5. I'm convinced! Let's automate 6. Useful tools
  26. 106.
  27. 108.
  28. 111.
  29. 112.
  30. 113.
  31. 115.
  32. 118.
  33. 119.
  34. 122.
  35. 123.

    Non-programmers don’t trust computers to do something they can do

    Programmers don’t trust themselves to do something that a computer can do - @djcoreynolan