Share
Embed
How to act like you (maybe actually) care about your work - Full Talk
Programming is a very involved career path, with many ongoing requirements to stay up on. Here we talk about those requirements and how to equip yourself with the tools to succeed.
For more information, see http://jmather.com/talks/2012-11-17/
Jacob Mather
November 17, 2012
Transcript
109 slides
-
Jacob Mather Co-Founder of Point Five Foundry IRC: jmather
Twi0er: @thejmather Blog: jmather.com -
Where to start • Know your stack enough to
debug. • Pick an editor, and use it. • Push outside of your comfort zone. • Find a nerd-crush. • Learn common patterns. • Build a pet project. -
Where to start • Know your stack enough to
debug. • Pick an editor, and use it. • Push outside of your comfort zone. • Find a nerd-crush. • Learn common patterns. • Build a pet project. -
Where to start • Know your stack enough to
debug. • Pick an editor, and use it. • Push outside of your comfort zone. • Find a nerd-crush. • Learn common patterns. • Build a pet project. -
Where to start • Know your stack enough to
debug. • Pick an editor, and use it. • Push outside of your comfort zone. • Find a nerd-crush. • Learn common patterns. • Build a pet project. -
Where to start • Know your stack enough to
debug. • Pick an editor, and use it. • Push outside of your comfort zone. • Find a nerd-crush. • Learn common patterns. • Build a pet project. -
Where to start • Know your stack enough to
debug. • Pick an editor, and use it. • Push outside of your comfort zone. • Find a nerd-crush. • Learn common patterns. • Build a pet project. -
Where to start • Know your stack enough to
debug. • Pick an editor, and use it. • Push outside of your comfort zone. • Find a nerd-crush. • Learn common patterns. • Build a pet project. -
It takes 10,000 hours To become truly, objectively great,
it takes tremendous effort. 0 2 4 6 8 10 12 80 60 40 20 Years To Master Hrs/wk -
You must learn to learn A lot of people
won't do something because they're afraid they will fail. -
You must learn to learn If you can learn
new things quickly, the only way you fail is by not trying. -
How to know you are on track You should
be learning at such a constant rate that the code you wrote six months ago embarrasses you now. -
Having a cheerleader helps Some people function better with
regular outside input. Mentors can provide that! http://phpmentoring.org or #phpmentoring on Freenode -
I know what you’re thinking You’re thinking how to
nd out what you should learn? -
Be a part of the community • IRC •
Forums • Mailing lists • User groups -
Take advantage of the community • Stop reinventing the
wheel. • Stop being afraid of other people’s code • Stop solving uninteresting problems. -
Take advantage of the community • Stop reinventing the
wheel. • Stop being afraid of other people’s code • Stop solving uninteresting problems. -
Take advantage of the community • Stop reinventing the
wheel. • Stop being afraid of other people’s code • Stop solving uninteresting problems. -
Take advantage of the community • Stop reinventing the
wheel. • Stop being afraid of other people’s code • Stop solving uninteresting problems. -
But dependencies are hard! ey are not as hard
as you think… -
But dependencies are hard! ey are not as hard
as you think… -
But dependencies are hard! ey are not as hard
as you think… -
Composer crash course Sample composer.json le { "require": {
"monolog/monolog": "1.2.*" } } -
But learning takes !me Sure does. So now I’m
going to show you... -
Automate everything Anything you have to do by hand,
you can (and will) mess up. Eventually. -
Automate your history Version control solutions let you track
the timeline of your soware, and assists coordination between multiple people on the same project. -
Automate your history Use Git. Or Mercurial, or Subversion.
Pick one. Use it. Constantly. Seriously. How? at’s another presentation. -
Automate your tes?ng “Computers are great at doing the
same thing the same way every time you ask it to. Humans, not so much” — Chris Hartjes, @grmpyprogrammer -
All code is tested Every line of code is
eventually tested. All too oen, that test happens in production, in front of actual users. ere is a better way. -
Decide to test up front Control how and when
you test to get the most bene t out of it. Do everything you can to ensure show- stopping bugs do not reach production. -
Automate your tes?ng: bootcamp Testing is easy. Let me
show you how. -
The soTer side of tes?ng ere is something special
that happens when you stop thinking that your code works, and start knowing that it does. What else we can automate? -
Automate your deployment “Prayer should not be part of
the steps in the deployment process.” — Ayende Rahien, @ayende -
Automate your deployment ere are tools speci cally designed
to help. • Capistrano • Magallanes • Phing • Bash Scripts -
Automate your plaUorm ere are services that can make
this easier. • PagodaBox • Orchestra.io • AppFog • Heroku -
Automate your process Continuous Integration can use your tests
and your deployment setup to push updates to production as quickly as possible. -
That’s a lot to take in So let’s take
a moment and re ect on things from a higher level. -
Realize your actual job “Soware developers tend to be
soware addicts who think their job is to write code. But it's not. eir job is to solve problems.” — Jeff Atwood, @codinghorror -
When solving problems Be sure that you are: 1.
Solving a problem the client has. 2. With a solu?on that makes sense. 3. That it is fit for the purpose built. -
Let’s say for example… • You are running a
conference. • You built your own ticket sales system. • You need a list of people coming. • You’ll have to check them off. -
That’s easy, right? ID First Name Last
Name Email Purchased On 1 Igor Wiedler [email protected] 01/15/2007 2 Fabien Potencier [email protected] 01/17/2007 3 Rasmus Lerdorf [email protected] 01/25/2007 4 Cal Evans [email protected] 01/30/2007 -
Let’s try it in prac?ce. ID First Name
Last Name Email Purchased On 1 Igor Wiedler [email protected] 01/15/2007 2 Fabien Potencier [email protected] 01/17/2007 3 Rasmus Lerdorf [email protected] 01/25/2007 4 Cal Evans [email protected] 01/30/2007 Find Mr. Potencier -
Let’s try it in prac?ce. ID First Name
Last Name Email Purchased On 1 Igor Wiedler [email protected] 01/15/2007 2 Fabien Potencier [email protected] 01/17/2007 3 Rasmus Lerdorf [email protected] 01/25/2007 4 Cal Evans [email protected] 01/30/2007 Find Mr. Potencier -
Let’s try it in prac?ce. ID First Name
Last Name Email Purchased On 1 Igor Wiedler [email protected] 01/15/2007 2 Fabien Potencier [email protected] 01/17/2007 3 Rasmus Lerdorf [email protected] 01/25/2007 4 Cal Evans [email protected] 01/30/2007 Find Mr. Evans -
Let’s try it in prac?ce. ID First Name
Last Name Email Purchased On 1 Igor Wiedler [email protected] 01/15/2007 2 Fabien Potencier [email protected] 01/17/2007 3 Rasmus Lerdorf [email protected] 01/25/2007 4 Cal Evans [email protected] 01/30/2007 Find Mr. Evans -
# First Last Email Purchased
21 Dave Marshall [email protected] 02/15/2007 22 Heather Buchel [email protected] 02/17/2007 23 Graham Boyes [email protected] 02/25/2007 24 John Kary [email protected] 02/30/2007 25 Casey Wilson [email protected] 02/30/2007 26 Eric Houge [email protected] 03/01/2007 27 David Clark [email protected] 03/01/2007 28 Rich Bowen [email protected] 03/01/2007 29 Damon Jones [email protected] 03/02/2007 30 Stuart Herbert [email protected] 03/02/2007 31 Omni Adams [email protected] 03/02/2007 32 Tyler Stoud [email protected] 03/02/2007 33 Marco Pive0a [email protected] 03/03/2007 34 Jonah Lupton [email protected] 03/03/2007 35 Al Ganiev [email protected] 03/03/2007 36 Michael Horn [email protected] 03/03/2007 37 Andy Leon [email protected] 03/03/2007 38 Baulder Rensch [email protected] 03/04/2007 39 Joshua Estes [email protected] 03/04/2007 40 Jeremy Mikola [email protected] 03/04/2007 # First Last Email Purchased 1 Igor Wiedler [email protected] 01/15/2007 2 Fabien Potencier [email protected] 01/17/2007 3 Rasmus Lerdorf [email protected] 01/25/2007 4 Cal Evans [email protected] 01/30/2007 5 Ma0 Farmer [email protected] 01/30/2007 6 Jeremy Crump [email protected] 02/01/2007 7 April Mather [email protected] 02/01/2007 8 Dave Schup [email protected] 02/01/2007 9 Michael Hilde [email protected] 02/02/2007 10 Jamie Plato [email protected] 02/02/2007 11 Pablo Godel [email protected] 02/02/2007 12 Andrew Kaser [email protected] 02/02/2007 13 Jeremy Cook [email protected] 02/03/2007 14 Larry Garfield [email protected] 02/03/2007 15 Adam Culp [email protected] 02/03/2007 16 Luis Cordova [email protected] 02/03/2007 17 Lonnie Brown [email protected] 02/03/2007 18 Jeff Carouth [email protected] 02/04/2007 19 Jeremy Kendell [email protected] 02/04/2007 20 Ismael Ambrosi [email protected] 02/04/2007 -
# First Last Email Purchased
21 Dave Marshall [email protected] 02/15/2007 22 Heather Buchel [email protected] 02/17/2007 23 Graham Boyes [email protected] 02/25/2007 24 John Kary [email protected] 02/30/2007 25 Casey Wilson [email protected] 02/30/2007 26 Eric Houge [email protected] 03/01/2007 27 David Clark [email protected] 03/01/2007 28 Rich Bowen [email protected] 03/01/2007 29 Damon Jones [email protected] 03/02/2007 30 Stuart Herbert [email protected] 03/02/2007 31 Omni Adams [email protected] 03/02/2007 32 Tyler Stoud [email protected] 03/02/2007 33 Marco Pive0a [email protected] 03/03/2007 34 Jonah Lupton [email protected] 03/03/2007 35 Al Ganiev [email protected] 03/03/2007 36 Michael Horn [email protected] 03/03/2007 37 Andy Leon [email protected] 03/03/2007 38 Baulder Rensch [email protected] 03/04/2007 39 Joshua Estes [email protected] 03/04/2007 40 Jeremy Mikola [email protected] 03/04/2007 # First Last Email Purchased 1 Igor Wiedler [email protected] 01/15/2007 2 Fabien Potencier [email protected] 01/17/2007 3 Rasmus Lerdorf [email protected] 01/25/2007 4 Cal Evans [email protected] 01/30/2007 5 Ma0 Farmer [email protected] 01/30/2007 6 Jeremy Crump [email protected] 02/01/2007 7 April Mather [email protected] 02/01/2007 8 Dave Schup [email protected] 02/01/2007 9 Michael Hilde [email protected] 02/02/2007 10 Jamie Plato [email protected] 02/02/2007 11 Pablo Godel [email protected] 02/02/2007 12 Andrew Kaser [email protected] 02/02/2007 13 Jeremy Cook [email protected] 02/03/2007 14 Larry Garfield [email protected] 02/03/2007 15 Adam Culp [email protected] 02/03/2007 16 Luis Cordova [email protected] 02/03/2007 17 Lonnie Brown [email protected] 02/03/2007 18 Jeff Carouth [email protected] 02/04/2007 19 Jeremy Kendell [email protected] 02/04/2007 20 Ismael Ambrosi [email protected] 02/04/2007 -
# First Last Email Purchased
1 Igor Wiedler [email protected] 01/15/2007 2 Fabien Potencier [email protected] 01/17/2007 3 Rasmus Lerdorf [email protected] 01/25/2007 4 Cal Evans [email protected] 01/30/2007 5 Ma0 Farmer [email protected] 01/30/2007 6 Jeremy Crump [email protected] 02/01/2007 7 April Mather [email protected] 02/01/2007 8 Dave Schup [email protected] 02/01/2007 9 Michael Hilde [email protected] 02/02/2007 10 Jamie Plato [email protected] 02/02/2007 11 Pablo Godel [email protected] 02/02/2007 12 Andrew Kaser [email protected] 02/02/2007 13 Jeremy Cook [email protected] 02/03/2007 14 Larry Garfield [email protected] 02/03/2007 15 Adam Culp [email protected] 02/03/2007 16 Luis Cordova [email protected] 02/03/2007 17 Lonnie Brown [email protected] 02/03/2007 18 Jeff Carouth [email protected] 02/04/2007 19 Jeremy Kendell [email protected] 02/04/2007 20 Ismael Ambrosi [email protected] 02/04/2007 # First Last Email Purchased 21 Dave Marshall [email protected] 02/15/2007 22 Heather Buchel [email protected] 02/17/2007 23 Graham Boyes [email protected] 02/25/2007 24 John Kary [email protected] 02/30/2007 25 Casey Wilson [email protected] 02/30/2007 26 Eric Houge [email protected] 03/01/2007 27 David Clark [email protected] 03/01/2007 28 Rich Bowen [email protected] 03/01/2007 29 Damon Jones [email protected] 03/02/2007 30 Stuart Herbert [email protected] 03/02/2007 31 Omni Adams [email protected] 03/02/2007 32 Tyler Stoud [email protected] 03/02/2007 33 Marco Pive0a [email protected] 03/03/2007 34 Jonah Lupton [email protected] 03/03/2007 35 Al Ganiev [email protected] 03/03/2007 36 Michael Horn [email protected] 03/03/2007 37 Andy Leon [email protected] 03/03/2007 38 Baulder Rensch [email protected] 03/04/2007 39 Joshua Estes [email protected] 03/04/2007 40 Jeremy Mikola [email protected] 03/04/2007 is worked with four people. is does not work with 40. is will not work with 400. -
Let’s really solve the problem ID First Name
Last Name Email Purchased On 4 Cal Evans [email protected] 01/30/2007 3 Rasmus Lerdorf [email protected] 01/25/2007 2 Fabien Potencier [email protected] 01/17/2007 1 Igor Wiedler [email protected] 01/15/2007 -
Let’s really solve the problem ID First Name
Last Name Email Purchased On 4 Cal Evans [email protected] 01/30/2007 3 Rasmus Lerdorf [email protected] 01/25/2007 2 Fabien Potencier [email protected] 01/17/2007 1 Igor Wiedler [email protected] 01/15/2007 -
ATer deciding on a solu?on Once you have decided
how you will solve your user’s problem, it is time to make the magic happen. Let’s talk about code. -
Code is a frenemy You need to use code
to build soware that solves users problems. Every line of code you write is another potential entry point for a bug. -
When you write code Remember that you will have
to maintain it. Try to write so that when you come back in six months (and see how bad it is) you still understand what it is doing. -
Spaghej code e way you test spaghetti code is
the same way you test spaghetti. row it against the wall, and see if it [works]. Spaghetti code actively resists testing. -
Write code deliberately Using proven methods of soware development,
you can make you job easier, and build better soware faster than was ever possible before. -
Don’t repeat yourself If you’re using the same code
in multiple places, abstract it to a shared class, so when requirements change, you only have to change them once. -
S.O.L.I.D. • Single Responsibility • Open for extension •
Like their sub classes • Incorporate interfaces • Depend on abstractions -
Proudly invented elsewhere e less code you write, the
less code you have to maintain. Using other people’s code means that your soware can improve while you sleep. -
We’re in the home stretch We’ve covered learning, what
to learn, how to make time to learn, and things to consider when practicing what we’ve learned. ere’s one last thing I want to make clear. -
People are good at different things Your coworkers were
all hired for a reason. Let them do their jobs, and even help them do their jobs better when you can. -
You’re not the only geek As excited as you
get about code, others get about their specialties. -
Some typical job roles • Designers • Project Managers
• Marketing / Sales -
Some typical job roles • Designers • Project Managers
• Marketing / Sales -
Some typical job roles • Designers • Project Managers
• Marketing / Sales -
Some typical job roles • Designers • Project Managers
• Marketing / Sales -
Some typical job roles • Designers • Project Managers
• Marketing / Sales • Frontend Developers -
Some typical job roles • Designers • Project Managers
• Marketing / Sales • Frontend Developers • Backend Developers -
Unfortunate truth #1 Not everyone will be quali ed
to do the job they are hired to do. -
Unfortunate truth #2 Not everyone who is quali ed
will actually be any good at what they were hired to do. -
Unfortunate truth #3 Not everyone who is actually good
at something will be given the freedom to prove it. -
How to not be that programmer Investing a little
time in two things will help your career immensely 1. Actually learn how to make friends. 2. Actually learn how to make small talk. -
Do you have a great team? If you don’t
know that you have a great team, then you likely don’t. e only way to x that is to nd a new one. -
Having a great team ma0ers, really Work with your
team collectively to accomplish things that individually would never be possible. -
In closing Learning is the core of what we
do. Community shows us what to learn. Automation makes time to improve. Solve problems, don’t just write code. Let your team back you up.