pmade inc. Articles http://pmade.com Random blog articles, mostly about software development. en-us BareCMS from pmade inc. Understanding Ruby Singleton Classes http://pmade.com/articles/2008/ruby-singleton http://pmade.com/articles/2008/ruby-singleton Mon, 15 Sep 2008 00:00:00 +0000 <p>If you learned object oriented programming from one of the more static languages such as C++ or Java, the dynamic nature of Ruby may seem magical and elusive. After running into the syntax dedicated to meta-programming, you may have been left scratching your head, or at least wondering what's happening behind the scenes. Singleton classes, not to be confused with the singleton design pattern, can easily be placed into this head scratching category.</p> <p>The name itself is confusing, leading people to create alternative names such as: object-specific classes, anonymous classes, and virtual classes. Anonymous classes is one of the better names, but since the source code to the Ruby interpreter uses the term singleton, that's what I'm going to stick with.</p> <p class="read_more"> <a href="http://pmade.com/articles/2008/ruby-singleton">Read more...</a> </p> Converting SVA Subversion Projects to Git http://pmade.com/articles/2008/sva-to-git http://pmade.com/articles/2008/sva-to-git Thu, 07 Aug 2008 00:00:00 +0000 <p>If you've been using my <a href="../../labs/sva">Subversion Automation</a> tool (SVA) to manage your Subversion repositories, and you're also thinking about moving to Git, I've got good news.</p> <p>As long as you have git-svn installed, I have a <a href="http://pmade.com/svn/oss/sc/trunk/script/sva2git.sh">script</a> and some <a href="../../labs/sva/sva-to-git">notes</a> that make it very easy to convert your project from Subversion to a Git repository, with full history, experimental branches, and release tags included.</p> <p class="read_more"> <a href="http://pmade.com/articles/2008/sva-to-git">Read more...</a> </p> Behind the Code: Project Planning http://pmade.com/articles/2008/project-planning http://pmade.com/articles/2008/project-planning Thu, 24 Jul 2008 00:00:00 +0000 <p>In this new series of articles, Behind the Code, I'll be looking at the tools and processes that I've put into place to make me a more efficient and effective developer. I'm hoping to share my experiences, and while doing that, refine the way I work using your feedback.</p> <p>Today, I'll be talking about project planning, the process of breaking a project into tasks, and estimating the effort to complete those tasks. The artifacts generated during this process can then be used to create a proposal for a client, cost estimations for your boss, or even the start of your project documentation.</p> <p class="read_more"> <a href="http://pmade.com/articles/2008/project-planning">Read more...</a> </p> The Secret Life of Devalot http://pmade.com/articles/2008/devalot-lives http://pmade.com/articles/2008/devalot-lives Wed, 18 Jun 2008 00:00:00 +0000 <p><a href="http://projects.noscience.net/devalot">Devalot</a> lives, although you wouldn't know it from just reading this blog. During the last year and a half there have been some interesting improvements made to Devalot, but I made the mistake of not kicking out regular releases.</p> <p>That all changed a few weeks ago when <a href="http://noscience.net/">Isaac Foraker</a> (a long-time friend) stepped up to the plate and assumed the role of Devalot maintainer. If you're excited about Devalot, this move should make you very happy.</p> <p class="read_more"> <a href="http://pmade.com/articles/2008/devalot-lives">Read more...</a> </p> DevFi Podcast #2 http://pmade.com/articles/2008/devfi-podcast-2 http://pmade.com/articles/2008/devfi-podcast-2 Mon, 19 May 2008 00:00:00 +0000 <p>Chris and I <a href="http://devfi.com/articles/2008/05/19/devfi-podcast-2-releasing-open-source-software">strike again</a> with the second installment of the <a href="http://devfi.com/">DevFi</a> podcast. If you ignore the fact that I'm using an inferior microphone compared to Chris, it's a pretty good show.</p> <p>This time around we're talking about releasing software as an open source project, and some of the things that go along with that. We even lightly tread around the topic of open source licensing.</p> <p class="read_more"> <a href="http://pmade.com/articles/2008/devfi-podcast-2">Read more...</a> </p> Rails Gotcha #9: Disabled Sessions http://pmade.com/articles/2008/rails-gotcha-9-sessions http://pmade.com/articles/2008/rails-gotcha-9-sessions Wed, 07 May 2008 00:00:00 +0000 <p>I was recently working on a Rails application where sessions were disabled in the application controller (affecting all other controllers), and needed to be turned back on in certain other controllers. Basically, sessions were only needed on the admin controllers.</p> <p>While testing this application I ran into a few surprises, leading to this 2 in 1 Rails Gotcha, and two patches to Rails edge.</p> <p class="read_more"> <a href="http://pmade.com/articles/2008/rails-gotcha-9-sessions">Read more...</a> </p> Announcing the DevFi Podcast http://pmade.com/articles/2008/announcing-devfi-podcast http://pmade.com/articles/2008/announcing-devfi-podcast Tue, 06 May 2008 00:00:00 +0000 <p>I alluded to this in my last post, but now it's time to make it official. Say hello to the <a href="http://devfi.com/">DevFi Podcast</a>.</p> <p><a href="http://ruby.tie-rack.org/">Chris Shea</a> and I have been working on this for about a month now, and we're pretty excited to release the <a href="http://devfi.com/articles/2008/05/05/devfi-podcast-1-buy-build-fork">first episode</a>, a discussion about building software vs. buying vs. forking, and an interesting interview with Dan Berger, the long-time Ruby developer and contributor who <a href="http://sapphire-lang.org/">forked the interpreter</a>.</p> <p class="read_more"> <a href="http://pmade.com/articles/2008/announcing-devfi-podcast">Read more...</a> </p> New Site, New Feeds http://pmade.com/articles/2008/new-site-new-feeds http://pmade.com/articles/2008/new-site-new-feeds Mon, 05 May 2008 00:00:00 +0000 <p>This is a mixed announcement, warning, and an apology. In just a bit here I'll be launching a complete redesign for pmade.com. With the new site comes a new set of news feeds. I'll be redirecting the old news feeds to the new ones, which hopefully won't break.</p> <p>Best case, you're going to have a bunch of articles from pmade.com show up as unread, sorry about that. Worst-case you'll have to come to the site and subscribe to the new feeds. But hey, you'll see the new content!</p> <p class="read_more"> <a href="http://pmade.com/articles/2008/new-site-new-feeds">Read more...</a> </p> Nested Controllers and Resources http://pmade.com/articles/2008/nested-controllers-and-resources http://pmade.com/articles/2008/nested-controllers-and-resources Tue, 12 Feb 2008 00:00:00 +0000 <p>At a recent <a href="http://groups.google.com/group/derailed">DeRailed</a> meeting a few of us were talking about nested controllers. Personally, I really like using nested controllers, but I've had all kinds of issues with routing and link generation.</p> <p>Well, I've finally found the perfect way to nest controllers without all those problems.</p> <p class="read_more"> <a href="http://pmade.com/articles/2008/nested-controllers-and-resources">Read more...</a> </p> A Few Tidbits to Catch Up http://pmade.com/articles/2008/a-few-tidbits-to-catch-up http://pmade.com/articles/2008/a-few-tidbits-to-catch-up Fri, 11 Jan 2008 00:00:00 +0000 <p>Yeah, it's been awhile, I'm a terrible blogger. Oh well, this post should catch you up.</p> <p>On January 19th, I'll be starting a two day workshop on Unix Fundamentals. The workshop will be held in the pmade inc. office, in downtown Louisville, Colorado. If you're interested, there's more information <a href="http://pmade.com/training/unix-fund/">over this way</a>.</p> <p class="read_more"> <a href="http://pmade.com/articles/2008/a-few-tidbits-to-catch-up">Read more...</a> </p>