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

code is a job

code is a job

Writing great code is a challenge. We have to use the best frameworks, spend every hour of every day at the keyboard.. The key to writing great code, we're told, is passion. But what if, in order to write great code, we need to do exactly the opposite? Code is a job, after all. What if the simplest way to improve our code is to treat it like one?

Garann Means

June 22, 2015
Tweet

More Decks by Garann Means

Other Decks in Technology

Transcript

  1. code is a job
    MediterráneaJS / @garannm

    View full-size slide

  2. buenas tardes
    • circa 1997
    • Etsy, Editorially, Joyent
    • community organizer
    • technical author
    • conference speaker

    View full-size slide

  3. please allow me to
    pick up where i left off

    View full-size slide

  4. but today tho
    • writing better code
    • ignoring nonsense
    • not believing the hype
    • doing a good job

    View full-size slide

  5. participate in
    your own
    exploitation

    View full-size slide

  6. meritocracy is
    a hell of a drug

    View full-size slide

  7. “we’ve been trying different things for a while, and these seem to
    be the common threads among ourselves, and the most successful
    and trustworthy people we’ve lived with before”

    View full-size slide

  8. falling off the
    level playing
    field

    View full-size slide

  9. self reinforcing
    • you didn’t learn the latest framework
    • you didn’t put enough time into open source
    • you didn’t stay late and let your outside interests atrophy
    • you weren’t “passionate” enough

    View full-size slide

  10. passion is
    poison

    View full-size slide

  11. too much “passion”
    ruins good code

    View full-size slide

  12. http://www.mirror.co.uk/news/ampp3d/bransons-holidays-right-graph-shows-4323133

    View full-size slide

  13. there is no right
    tool for the job

    View full-size slide

  14. you still have to
    get the job done

    View full-size slide

  15. JS templates
    • jTemplates
    • jQuery Templates plugin
    • Mustache
    • Angular / React / etc

    View full-size slide

  16. JS templates
    • jTemplates: independent
    • jQuery Templates plugin: ecosystem
    • Mustache: independent
    • Angular / React / etc: ecosystem

    View full-size slide

  17. JS templates
    • jTemplates: uses JS to produce HTML
    • jQuery Templates plugin: uses JS to produce HTML
    • Mustache: uses JS to produce HTML
    • Angular / React / etc: uses JS to produce HTML

    View full-size slide

  18. it’s all bike-
    shedding

    View full-size slide

  19. all that matters or
    will ever matter is
    the user’s experience

    View full-size slide

  20. performance
    • browser game?
    • news site?
    • collaborative tool?

    View full-size slide

  21. performance
    • eliminate bad performance in code
    • don’t make a bunch of requests
    • get whatever you can from cache
    • don’t block loading

    View full-size slide

  22. performance
    • eliminate bad performance in code: good judgement
    • don’t make a bunch of requests: good judgement
    • get whatever you can from cache: good judgement
    • don’t block loading: good judgement

    View full-size slide

  23. as coders, we
    work below the
    surface

    View full-size slide

  24. what makes a great
    coder isn’t code

    View full-size slide

  25. there are no
    natural coders

    View full-size slide

  26. pro code skills
    • ability to organize tasks
    • very simple logic
    • very simple math
    • rules of grammar and language
    • things you learn before your 20s

    View full-size slide

  27. pro code skills
    1. problem solving
    2. communication

    View full-size slide

  28. you don’t learn
    to code arguing
    about editors

    View full-size slide

  29. great code
    comes from not
    coding

    View full-size slide

  30. hot code tips
    • go for a walk
    • make friends
    • read a book
    • watch the news
    • make something physical

    View full-size slide

  31. myopic code
    makes a half-
    assed product

    View full-size slide

  32. “natural” just means
    you anticipated the
    problems

    View full-size slide

  33. a “natural” coder
    remembers people
    use their code

    View full-size slide

  34. but that’s design!!
    • code involves design work
    • building anything does
    • the more of the big picture you see, the better your design
    • hence, the better your code

    View full-size slide

  35. code experience is
    meaningless without
    human experience

    View full-size slide

  36. code is a
    living

    View full-size slide

  37. passion don’t
    pay the bills

    View full-size slide

  38. food, water, sleep
    safety and security
    friends, love
    respect
    code

    View full-size slide

  39. after a decade
    “good” code
    isn’t enough

    View full-size slide

  40. food, water, sleep
    safety and security
    friends, love
    respect
    a better
    world

    View full-size slide

  41. “just” a job
    • in capitalism, a job is essential
    • in a job, accountability is essential
    • if the code is important, make it a job

    View full-size slide

  42. stop pretending
    you’re going to
    cash out at 30/
    40

    View full-size slide

  43. #goals
    0k
    50k
    100k
    150k
    200k
    20s 30s 40s 50s 60s

    View full-size slide

  44. over your
    career, results
    matter most

    View full-size slide

  45. great code is
    more than just
    some typing

    View full-size slide

  46. great code gets
    you home in
    time for dinner

    View full-size slide

  47. someone is
    always wrong
    on the internet

    View full-size slide

  48. even the biggest tool
    authors will probably
    fade into obscurity

    View full-size slide

  49. usefulness is the
    only metric that
    matters

    View full-size slide

  50. just like any
    other job in the
    world

    View full-size slide

  51. gracias!
    @garannm
    !

    View full-size slide