Justin Gordon on Evolving a Conference Talk & Rails Practice | RailsConf 2014
•
UGtastic Archive
Justin Gordon on Evolving a Conference Talk & Rails Practice | RailsConf 2014
Loading this player connects your browser to Youtube.
Full Transcript Available
LIVE CC
UGtastic Archive
Press play or click any turn in the transcript to start real-time synchronized playback...
📼 FROM THE UGTASTIC ARCHIVE (Recorded on-site at RailsConf 2014)
Archival conversation with Justin Gordon on how his RailsConf presentation evolved and lessons from learning Rails in production, recorded at RailsConf Chicago 2014.
Recorded during the 2009-2015 software craftsmanship and developer community movements, this archival interview captures early ideas, debates, and community organizing in real time.
---
🏛️ ORAL HISTORY RECORD:
• Series: UGtastic Technical Conversation Archive (2009-2015)
• Recorded: RailsConf 2014 (2014-04-22)
• Guest: Justin Gordon
• Interviewer: Mike Hall (UGtastic / https://www.just3ws.com)
• Legacy UGtastic Archive ID: y4SsbKTUcJE
📖 FULL ARCHIVE & ORAL HISTORY:
https://www.just3ws.com/interviews/
🏷️ TOPICS: Justin Gordon, RailsConf 2014, Conference Speaking, Ruby, Rails, UGtastic, Mike Hall
Restored and preserved by Mike Hall (https://www.just3ws.com)
The Guest
Unattributed voices
UGtastic archive transcript with speaker attribution pending
The Presentation
Unattributed voices
UGtastic archive transcript with speaker attribution pending
▶ Speaking
Hi, it's Mike with YouVtastic. I'm here at RailsConf 2014,
and I'm standing with Justin Gordon,
who gave a talk, what was it today, about decorators,
concerns, and presenters. But,
well, first, thank you for taking the time to speak with me. But you were saying that you think
the story of how you came to this talk and how it evolved
might be more interesting than sharing
the exact talk right now.
Unattributed voices
UGtastic archive transcript with speaker attribution pending
▶ Speaking
I like to talk about talk anyway. The story was that JetBrains asked me if I
wanted to come out to RailsConf and show off RubyMind for a
couple days. And I thought about it a little
bit, and I go, sure, I'd like to go. I've been to only one
Ruby conference before and absolutely
just was astounded at how different I found the Ruby
community in terms of friendliness and
everyone wants to contribute stuff to open source.
Unattributed voices
UGtastic archive transcript with speaker attribution pending
▶ Speaking
And just,
the whole thing was just,
just absolutely love everything about it. So, psych going
to RailsConf. And then, at the very last day
of the CFP, I thought, I saw the last tweet. It said, hmm,
10 hours left to get your CFP in for
RailsConf.
Unattributed voices
UGtastic archive transcript with speaker attribution pending
▶ Speaking
And at that point, I've already committed to go. I've got my tickets to go. What the heck? And I throw in a proposal.
Unattributed voices
UGtastic archive transcript with speaker attribution pending
▶ Speaking
So, I threw in a proposal based
on some work I was doing with ThoughtBot and
reviewing some client code I was working on. I work as an
independent consultant. I'm a freelancer. So,
I don't, the project I'm on was on, I don't have someone to
review my code.
Unattributed voices
UGtastic archive transcript with speaker attribution pending
▶ Speaking
So, ThoughtBot was helping me out with that. And one of the things we've been working on a lot was the
stuff,
kind of the Sandy Met sort of techniques of smaller objects,
smaller methods. So, then I was thinking about it and I go,
God, that's what the objective is. But I've been using all
these different techniques for different scenarios.
Unattributed voices
UGtastic archive transcript with speaker attribution pending
▶ Speaking
I think
a really interesting talk would be, if I could just explain
to people the lessons I've learned and the techniques that
help them. figure out how they're going to take some fat model and
controller code and make it slumber. So, that was the, you
know, that was the overall idea of the talk. And one of the
big things before when I went into the talk was I had this,
the really cool thing was I'd come up with a new pattern.
Unattributed voices
UGtastic archive transcript with speaker attribution pending
▶ Speaking
Not a new pattern, but this is a cool way to do it. The
service object pattern they had. But it wasn't just what it
was, was that it ended up I was putting stuff into this
object that would actually send back stuff to the
controller about what the controller should do. Anyway,
make a long story short,
I go, okay, so now I've got to get code samples for this
exercise for my presentation.
Unattributed voices
UGtastic archive transcript with speaker attribution pending
▶ Speaking
So, I go looking around and I
ask, I'm on the parlay forum and the learn forum all the
time. So, I ask the people on there, you know, where are
some fat code examples? So, they sent me to some places, some fat code, some
projects. Like, for example, I was looking at Red Mind, for
example.
Unattributed voices
UGtastic archive transcript with speaker attribution pending
▶ Speaking
And then, sure, lots of big examples of some real
fat code in there. But then I'm looking at this going, okay,
if I'm going to turn this into a talk, people are going to
just fall asleep. Because I'm trying to explain this because, you know, by
the time I explain in the context of why it's fat, we're
never going to get to the techniques. So, then I decided to develop my own and was going to base
it on Michael Hartel's Rails tutorial because that would be
nice and simple for everyone to see.
Unattributed voices
UGtastic archive transcript with speaker attribution pending
▶ Speaking
And I thought, hmm, maybe I'll put this on GitHub and make
each lesson a different pull request. And then what I'll do is I'll, and then I asked some people
on the forums, would it be a good idea to get the code
reviewed? And they said, yeah, that would be an excellent idea to get
it reviewed. I had no idea how excellent an idea it was, would be to get
it reviewed.
Unattributed voices
UGtastic archive transcript with speaker attribution pending
▶ Speaking
So, I got, started getting the review comments and it was
amazing what a difference it made between the final product
of what, you know, what the talk was and what it originally
was. So, one of the things, actually, when I was getting it
reviewed was beside those two forums, I actually got in
touch with David Heidenmeyer Hansen and asked him if he'd
be, you know, willing to give me a comment. Because I saw he was doing his code ping pong talks. So, I was absolutely astounded when I immediately got back
a response with some review of the topic.
Unattributed voices
UGtastic archive transcript with speaker attribution pending
▶ Speaking
I was like, whoa, this is pretty good. And then, but however, my concept of what I thought things
should be was definitely not right. And let me say, I was glad I found that out before and not
after the talk. After I said, this is so super.
Unattributed voices
UGtastic archive transcript with speaker attribution pending
▶ Speaking
I've come up with a pattern to save the world. Just like I was basically, in his talk, I was basically the
poster child of all these people thinking they're going to
come up with a pattern. Yeah. And they're going to save the world.
Unattributed voices
UGtastic archive transcript with speaker attribution pending
▶ Speaking
Right. So, anyway, luckily, I did talk to him and I was one of the
guys that has his examples. It wasn't quite saying it was going to save the world, but
I thought I had this cool idea. Oh, my God, let's code in the control.
Unattributed voices
UGtastic archive transcript with speaker attribution pending
▶ Speaking
I had this cool example that basically is the blog site. I was going to make it so it's got this service component
to it, which is instead of just plain creating a posting on
there, I was going to make it the kiddie safe blogger. So, because little kids that are like five years old like
to say words like poop face and fart face all the time. And they think it's fun to call their dad that and stuff
like that.
Unattributed voices
UGtastic archive transcript with speaker attribution pending
▶ Speaking
I wouldn't know anything about that. I got three kids. I know exactly what they think about me at any given moment. They're obsessed with those words.
Unattributed voices
UGtastic archive transcript with speaker attribution pending
▶ Speaking
So, anyway, I thought, hey, why do I do? And I came up with my example. And you can find it all on GitHub. It's that if the user is a minor, then check for profanity.
Unattributed voices
UGtastic archive transcript with speaker attribution pending
▶ Speaking
And if there's profanity, I'm going to display a special
customized flash message in extra big letters. So, not just regular validation message, and it's going to
say, you know, I notified your parents, email notifications,
stuff you want to put in validation. And how many times they did, like, use profanity. So, it keeps a counter on the user model.
Unattributed voices
UGtastic archive transcript with speaker attribution pending
▶ Speaking
So, it's all this stuff outside the micropost. So, you say, yeah, it's not quite micropost create stuff. Great. Got a cool example and stuff.
Unattributed voices
UGtastic archive transcript with speaker attribution pending
▶ Speaking
Anyway, though, long story short, get it reviewed by David. Okay, this thing is totally wrong because I was putting
stuff in the so-called service object that had to have all
this knowledge about what the controller would need in
terms of what the flash is, what the status code is, all
sorts of things that I thought were kind of cool. And then I had to have this extra object to package up all
these values and send back to the controller. So, I'm talking to David, and then he goes, well, you know,
one pattern that we've been doing is we've been having
these lean controllers so that, you know, people kind of, I
know,
this because just when I learned Rails, say, doing, like,
the Rails tutorials, that the generator generates for you a
model and a matching controller.
Unattributed voices
UGtastic archive transcript with speaker attribution pending
▶ Speaking
You don't really think about breaking out in the little,
different, little, itty-bitty controllers. So, it's one of the things to say, oh, okay, I'm going to
have, like, a controller. Well, I'll make it lean, so I'll just put everything that I
had that I put in my service object back in the controller. And then the feedback was, was like, no, no, no, no, no, no.
Unattributed voices
UGtastic archive transcript with speaker attribution pending
▶ Speaking
You've got to still take out anything that could be model-related
and move it to the model. So, to make a long story short, that was where the talk
ended up. It was a lot of great content. It was way more than I could cover in 40 minutes.
Unattributed voices
UGtastic archive transcript with speaker attribution pending
▶ Speaking
Right. So, I have to make a big apology to everybody. I was false advertising. When I advertised service objects, basically, the summary
there was, you probably don't need to use them.
Unattributed voices
UGtastic archive transcript with speaker attribution pending
▶ Speaking
I'm not going to say you never do. But, like, I like David's quote. They might exist somewhere, but then again, maybe unicorns
do, too. Yeah.
Unattributed voices
UGtastic archive transcript with speaker attribution pending
▶ Speaking
It's in there. Yeah. So, that was the essence of that. And then, in terms of live coding, right.
Unattributed voices
UGtastic archive transcript with speaker attribution pending
▶ Speaking
I didn't live code. I practiced it. I tried beforehand. What happened was the talk went way too slow when you're
doing that.
Unattributed voices
UGtastic archive transcript with speaker attribution pending
▶ Speaking
I wish, in retrospect, I had screencasted the coding. Right. And then, I could have blasted through it. Possibly, if enough people send me an email or tweet asking
me to do it, I'll probably record my presentation when I
was going to do it in a screencast.
Unattributed voices
UGtastic archive transcript with speaker attribution pending
▶ Speaking
And, that way, you can actually step through the code on
GitHub and hear the screencast on it. Well, it sounds like it could be even a little bit of a
screencast series or, like, there's other places I host it. You put it even on YouTube as a multi-step tutorial. Yeah, that's one thing I love doing with my blog and
anything that I think.
Unattributed voices
UGtastic archive transcript with speaker attribution pending
▶ Speaking
I got so much help learning Rails from the community and
all the great products that were out there. I mean, a lot of it and most of it was just unbelievably
free and awesome. So, if you ever go to my blog, RailsOnMaui.com, and also my
tweets, is basically what I tweet about and blog about is
anything that I wanted to do that I couldn't already find a
quick, easy answer on the Internet somewhere. So, go to my blog.
Unattributed voices
UGtastic archive transcript with speaker attribution pending
▶ Speaking
That was actually how I ended up with RubyMine out here,
was that I made it, I know Michael Hartel from the Rails
tutorial. I saw his video he did on Sublime. I go, yeah, maybe I should do that one, a little one on
RubyMine, doing exactly what you did with Sublime, because
he did one on destroying Sublime. So, I did that.
Unattributed voices
UGtastic archive transcript with speaker attribution pending
▶ Speaking
And, where did that end up being? I get a call from JetBrains saying, hey, you want to be our
technical evangelist for RubyMine? Oh, wow. Okay, sure.
Unattributed voices
UGtastic archive transcript with speaker attribution pending
▶ Speaking
Next thing you know, I'm in Rails, you know, you're coming
to RailsConf. Next thing you know, I'm a speaker at RailsConf. Yeah. It just keeps getting better and better.
Unattributed voices
UGtastic archive transcript with speaker attribution pending
▶ Speaking
It's definitely a community that you can move forward. It's not a static community. I mean, there are some communities where it feels like
there's people on the platform, and they're a pedestal, and
you have to have some kind of special credentials to be
able to. But, the credentials for most open source communities are,
what did you do?
Unattributed voices
UGtastic archive transcript with speaker attribution pending
▶ Speaking
Yeah. It's all about, I think, the more you give, the more you
get, is really the bottom line. Yeah. Because, the more you give, the more you get feedback on,
the more you change, the more you improve.
Unattributed voices
UGtastic archive transcript with speaker attribution pending
▶ Speaking
Right. And, I think my talk is a perfect example on that. I have sincerest apologies to everyone that I guarantee you,
if I get a chance to go do this talk at a user group or
some other meeting, some other conference,
the second time will be silky smooth. Yeah.
Unattributed voices
UGtastic archive transcript with speaker attribution pending
▶ Speaking
Sometimes it's rough. Sometimes you get up on the stage, and it just doesn't go
the way you want it to. Were you in my talk? No.
Unattributed voices
UGtastic archive transcript with speaker attribution pending
▶ Speaking
Actually, as per the conference, I'm not going to the
sessions. Okay. But, I've been interviewing. Okay.
Unattributed voices
UGtastic archive transcript with speaker attribution pending
▶ Speaking
Again, thank you very much for taking time to speak with me. I appreciate it. Okay. Great.
Unattributed voices
UGtastic archive transcript with speaker attribution pending
▶ Speaking
Thanks. User groups with lots to say, interviews, and more. No way. Sharing great ideas in the tech community.
Unattributed voices
UGtastic archive transcript with speaker attribution pending
▶ Speaking
Fascinating conversations. A plethora of information. Find out for yourself today at euketastic.com. Thank you.