Devchat.tv Episode Roundup

Devchat.tv Episode Roundup

Download on the App Store

All Devchat.tv Episode Roundup episodes

  • 056 TMTC – Tom Preston-Werner (Github Co-founder)

    Tom Preston-Werner is one of the founders of Github.com. He's a Ruby programmer who has successfully launched a business used by hundreds of thousands of programmers all over the world to host their programming projects. He is also the original developer behind Gravatar.

    We discussed how Github.com got started. Tom also mentioned Gravatar, god, and Jekyll.

    We also discussed open source software, contributing, hiring developers, and what makes Github such a great place to work. If you want some good pointers about how things should work at a development shop, I recommend this episode.

    1 hr 26 min
  • 007 RC Rails Authorization Basics
    Libraries for Authorization controls in Ruby on Rails are not nearly is prolific as they are with Authorization. The one I typically use is Cancan.
    The thing I like about Cancan is that it provides fairly granular model level controls. You have to do the checks—Rails won't do them for you—but they are fairly straightforward. The other thing I like about it is that it provides some Controller level controls through a before filter you can include that will pull up the model, load the object, and check permissions before loading the Controller action.
    Ideally, a good Authorization library allows this level of control at all three levels of your application.
    12 min
  • 55 TMTC – Finding Freelance Clients

    Freelancing is a lot of work. One of the hardest parts is finding clients. I've been getting a lot of work lately and I'm going to explain where I get most of my work from.

    • Podcasts and Screencasts – I've had several people come to me after listening to my podcasts or watching a screencast and ask me to do some work for them.
    • Referrals – I've made several contacts within the community and though some of my clients that have resulted in getting referrals. Make friends. Build your network. It will pay off.
    • Users' Groups – This is similar to the referrals comment. However, some entrepreneurs and other non-technical people sometimes come to the meetings. You can also meet people who are connected to the local community. It's amazing to me how much business I've got because I met the right person in the local community and they heard about business that didn't come out to the wider community.
    • Job Boards – This has been the least productive for me. Effectively, you are chasing cold leads. They do work, but the conversion rate is much lower than any of the others I've listed.
    • Recruiters – I found my first long term contract through a recruiter. I was referred to him and it worked out really well. I'm still working for this client.
    • In the podcast I share some other stories and thoughts. Listen and then leave a comment to let me know if there's anything else you've tried that worked for you? I'm also interested in your success stories using some of these ways of finding work.

      26 min
    • CoffeeScript Basics – A Teach Me To Code Tutorial
      CoffeeScript is now going to be a default installation with Ruby on Rails. So, I installed CoffeeScript and NodeJS and have been playing with it for the last hour or so.
      Here are the basics you need to know to use CoffeeScript including functions, arrays, hashes (objects), control functions (if, else, unless) and loops.
      In my opinion it is friendlier than JavaScript and more terse, but I don't feel like it's a huge win over JavaScript. That being said, it is something I'm likely to use in the future.
      Download 168 MB
      Download (iPhone & iPod) 87.3 MB
      0 min
    • CoffeeScript Basics – A Teach Me To Code Tutorial
      CoffeeScript is now going to be a default installation with Ruby on Rails. So, I installed CoffeeScript and NodeJS and have been playing with it for the last hour or so.
      Here are the basics you need to know to use CoffeeScript including functions, arrays, hashes (objects), control functions (if, else, unless) and loops.
      In my opinion it is friendlier than JavaScript and more terse, but I don't feel like it's a huge win over JavaScript. That being said, it is something I'm likely to use in the future.
      Download 168 MB
      Download (iPhone & iPod) 87.3 MB
      0 min
    • CoffeeScript Basics – A Teach Me To Code Tutorial
      CoffeeScript is now going to be a default installation with Ruby on Rails. So, I installed CoffeeScript and NodeJS and have been playing with it for the last hour or so.
      Here are the basics you need to know to use CoffeeScript including functions, arrays, hashes (objects), control functions (if, else, unless) and loops.
      In my opinion it is friendlier than JavaScript and more terse, but I don't feel like it's a huge win over JavaScript. That being said, it is something I'm likely to use in the future.
      Download 168 MB
      Download (iPhone & iPod) 87.3 MB
      0 min
    • 54 TMTC When to Stop Testing and Get Stuff Done

      I got asked the question “When do I stop testing in order to get stuff done?” My answer was “I go faster doing TDD.” Here's why I get more done with TDD.

      It forces me to think through the problem. This allows me to tackle the programming problem and solve it more quickly.

      I can define the behavior. I can determine the inputs and outputs and any other behavior related to the function I'm writing.

      I know it works when I'm done.

      I know when I'm done. (All the tests pass.)

      It provides a challenge I can focus on. I love a challenge and it gives me that sort of strong direction.

      If you have trouble getting things done and getting tests in, you need to practice. You need to get used to working with tests and testing frameworks. The more you do it the better you are and the more it becomes integrated into your routine.

      Learn your tool. The better you understand what it can and can't do, the better and quicker tests you'll write.

      Only test what you need to test. You don't need to cover the entire code stack. Just the limited set of code that solves your problem.

      22 min
    • 006 RC Ruby on Rails Authentication Basics
      In a lot of web applications, you need to control who can access your data. Authentication is the key to this type of security. Ruby on Rails has some plugins and gems that make authentication pretty easy. Here are a few:
      restful-authentication
      authlogic
      devise
      When putting authentication together, make sure that your authentication schema provides encryption for your passwords and a salt to make it more difficult for hackers to figure out which users are using the same password.
      Also make sure that your failed authentication messages read "Your username or password is incorrect." rather than pointing out which specific field is incorrect. This will prevent hackers from mining your usernames and trying to guess their passwords.
      Lost password messages should also report success every time. Since you won't be able to decrypt the passwords, you should always give a message like "An email message has been sent to you to reset your password" even if the username or email isn't in your system.
      Finally, to avoid problems where people are sniffing networks with tools like firesheep to get usernames, passwords, and session cookies. Make sure that you're encrypting your logins and sessions with SSL. Use the ssl_requirement plugin to take care of this for you.
      Here's the video:
      And the transcript:
      Rails Coach Podcast episode 6.
      Hey everybody and welcome back to the Rails Coach Podcast with Charles Max Wood, that’s me. This week we’re going to be talking about authentication. But before we get started I really want to talk about where things have been going with this podcast. It’s kind of been an exploratory mission for me to kind of figure out how I want to talk about Rails. The thing is that I’ve had the Teach me to Code podcast for awhile, and I really didn’t feel like once I moved it from the Rails Coach podcast to the Teach Me to Code Podcast that I could talk as deeply about Rails, and so I wanted to talk about that there.
      The problem is that I’ve been talking about things that I feel like are better explained through demonstration as opposed t o actually talking about principles that people should know when they’re programming in Rails. So what I’m going to do is I’m going to kind of change tactics a little bit. So I’m not going to go into as much things like; you should use this tool, you should use that tool. Well, I am, but I’m not going to go into how they’re used, I’m not going to go into what they are. What I’m going to try and do instead is I’m going to talk about general principles around certain things that are relevant to Rails. So, for example, this week I’m going to be talking about authentication, so I’ll probably bring up a few plugins or gems that you can use for authentication and I’ll talk about a few of the principles that define good practices for these different things.
      So in this case I'm going to be talking about authentication, and there are things that I see that people generally get right, and there a few things that I see that generally people don’t get right. I see these things, some of these things, done on these huge sites that have thousands and thousands of users and I’m flabbergasted that this is there because it’s so simple to just write a script that takes advantage of some of this stuff. And so I'm just going to jump right in on the authentication stuff.
      First off, I just want to talk a bit about the history of authentication with Rails. It all kind of started, as far as I can tell, with the restful-authentication plugin that was written by Rick Olson. This was probably four or five years ago. And restful-authentication took advantage of the RESTful approach that Rails had implemented at the time and proved an authentication scheme where it used the RESTful paths like GET and POST and PUT and DELETE, to manage sessions, and so sessions were the resources that the restful-authentication handled.
      16 min