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

Programming is Easy, Once You Master...

Tonya Mork
September 17, 2016

Programming is Easy, Once You Master...

Programming is easy once you master these secrets. In this WordCamp Milwaukee talk, I present the four (4) secrets that make programming easy.

Here is the link to the talk on WordCamp Milwaukee website. This talk was given on Sept. 17, 2016: https://2016.milwaukee.wordcamp.org/session/programming-is-easy-once-you-master/

Tonya Mork

September 17, 2016
Tweet

Other Decks in Programming

Transcript

  1. Programming is Easy,
    nce You Master…
    Twitter: @hellofromTonya
    UpTech Labs: @UpTechLabs
    Know the Code: @KnowTheCodePro
    #BeMoreAwesome

    View full-size slide

  2. Big Bold
    Statement

    View full-size slide

  3. Programming
    is
    easy

    View full-size slide

  4. Hello, I’m Tonya
    • High tech engineering since the mid-1980s
    • Electrical and software engineer
    • Technology leader, educator, and author

    View full-size slide

  5. I’m on a mission
    to help you
    #BeMoreAwesome

    View full-size slide

  6. What are my goals
    in this talk?

    View full-size slide

  7. Why are
    you
    struggling?

    View full-size slide

  8. Typical Approach
    • Go buy a theme. Make changes to it.
    • Stretch a little bit and take on more
    • Constantly searching for HOW to do something

    View full-size slide

  9. Search for the HOW
    is a
    flawed strategy

    View full-size slide

  10. Problems with the
    “Searching for the How” Strategy
    • It’s time-consuming.
    • How do you assess if the code is good?
    • It only gets you part of the way there.
    • What happens if it causes a problem?
    Bottomline: It’s costly.

    View full-size slide

  11. Why
    When
    What
    How

    View full-size slide

  12. Let’s talk about how to master
    programming

    View full-size slide

  13. Programming
    Secret #1
    Fundamentals

    View full-size slide

  14. Fundamentals are your
    building blocks

    View full-size slide

  15. Building
    the upper
    floors
    without a solid foundation

    View full-size slide

  16. In software,
    everything
    is built from
    the same
    building
    blocks

    View full-size slide

  17. Software Does These Things:
    • Makes Decisions
    • Does Tasks
    • Iterates
    • Remembers

    View full-size slide

  18. software emulates
    real life

    View full-size slide

  19. Everyday

    decisions,
    do tasks,
    repeat
    programming fundamentals

    View full-size slide

  20. I’ll go to the
    Kite Festival if
    https://www.flickr.com/photos/lesterpubliclibrary/9643006351
    • the weather
    is good
    • not working
    if ( the conditions are true )
    then go to the festival

    View full-size slide

  21. Fundamentals
    • Decisions
    • if, when, else if, else
    • Remembers
    • Variable
    • Tasks
    • Render, File, Database
    • Repeats
    • while, for, foreach

    View full-size slide

  22. Getting hung up
    Syntax

    View full-size slide

  23. Fundamentals
    Why
    When
    What

    View full-size slide

  24. Combine the fundamental
    building blocks to create
    different experiences…

    View full-size slide

  25. How
    Programming
    Secret #2
    Problem Solving

    View full-size slide

  26. Creative Process of
    Solving Problems
    How =
    Ingenuity, creativity, & expertise

    View full-size slide

  27. Visualization
    Exercise

    View full-size slide

  28. Problem Solving is
    the process of
    finding solutions.

    View full-size slide

  29. Problem Solving is
    the proactive and methodical
    approach to
    finding solutions.

    View full-size slide

  30. Programming
    Secret #3
    Programmatic Thought

    View full-size slide

  31. Programmatic thought is
    thinking about how to get
    the computer to do what
    you want it to do.

    View full-size slide

  32. Knowing what
    the computer needs
    from
    you

    View full-size slide

  33. Computers are
    crazy fast
    but
    stupid.

    View full-size slide

  34. Computers don’t
    understand
    code.
    They understand 1s and 0s.

    View full-size slide

  35. Off state -> 0
    Power
    Switch
    Output
    Power
    Source
    Output
    Power can’t flow

    View full-size slide

  36. On state -> 1
    Power
    Switch
    Output
    Power
    Source
    Output
    Power flows to the output
    Output

    View full-size slide

  37. Computers = bunch of switches
    Output
    Output
    Output
    0 0 0 1
    Output
    Output
    Output
    1 1 1 0
    Output
    Output

    View full-size slide


  38. function maybe_show_top_bar( $is_ok_to_show ) {

    if ( is_page() && $is_ok_to_show ) {

    showTopbar();

    }

    }
    is_page() showTopbar()
    AND Gate
    V
    $is_ok_to_show
    AND

    View full-size slide

  39. Computers
    don’t think or infer.
    You do.

    View full-size slide

  40. You have to
    explicitly tell
    the computer
    what to do
    AND how to do it
    step-by-step.

    View full-size slide

  41. Programming
    Secret #4
    Learning

    View full-size slide

  42. This profession
    demands
    continuous learning
    and proficiency building.

    View full-size slide

  43. Your Take-aways

    View full-size slide

  44. Programming is easy
    when you master…
    • Fundamentals
    • Problem Solving
    • Programmatic Thought
    • Learning

    View full-size slide

  45. You can build anything
    from scratch in code.

    View full-size slide

  46. I’m Tonya
    @hellofromTonya
    hellofromtonya.com
    UpTechLabs.io
    @UpTechLabs
    @KnowTheCodePro
    KnowTheCode.io
    I teach at…

    View full-size slide