Articles

GitHub Project Analysis

Ever wonder how many different people contribute to a project on average, or how many commits the average contributor is responsible for? What about the size of the average patch and how many files it touches?

Commenting out chunks of view

It’s not as easy to comment out big chunks of Rails erb (view) code. Here’s the one that seems to work fine for people:

<% if false %><!-- comment start -->
...
<% ... some code ... %>
some html
<% ... more code ... %>
<!-- comment end --><% end %>

If you simply try using HTML comments, the code will still execute.

Finally, if you want to simply comment out a single ERB statement, put # just after <%, like this:

happynerds.net is online!

Recently – for various degrees of recent that is – people really seem to be into programming language design and development.

The Elephant Is Not Its Trunk — And other reasons to stop fooling yourself, and start marketing

An elephant is long, limber, and slightly tapered. Like a giant roll of cookie dough, but with fewer chocolate chips and a lot more muscles! And an insatiable appetite for peanuts!

Imagine somebody came up to you on the street and announced this proudly to you. 

What would you think of them? Let me take a guess:

First: Wow, ever heard of the Personal Bubble?  

Then: You’re absolutely, flipping, batshit insane. 

Am I right, or am I right?

Elephants are not their trunks. Or their cute little taily-wailies.

Getting webistrano to deploy under passenger

What's your problem?

I'd been playing with webistrano on my own machine and using it to make deployments to staging - and that was all ticking along nicely. But then it was time to put webistrano up on our staging server - so as to let our sysadmins use it for deployments.

Downloading and installing it is very easy.

hub - git with github

<!-- -*-Markdown-*- -->

This week I released hub, a command line script which adds GitHub
knowledge to a few git subcommands.

For example, clone:

$ hub clone cytzol/cope
Initialized empty Git repository in /Users/chris/cope/.git/
remote: Counting objects: 415, done.
... etc ...

Because hub only adds functionality, it's safe to alias to git in
your shell:

Jump Start *Your* Year of Hustle – Weekend Workshop

I’ve been thinking a lot about my Year of Hustle (thus the posts, and the tweets). I’ve been making notes of stories, and thoughts, and lessons, and results to share for months.

Last week I had the crazy idea to do a live, 3-hour workshop for those who want to make their own Year of Hustle, rather than making them wait while I trickle it out at a blog-post rate over the next 6 months.

CakePHP on GitHub

CakePHP, one of the most popular PHP application development frameworks, has just moved to GitHub (github.com/cakephp).

You can read about the move at the Bakery. We welcome you, CakePHPers!

9 New Ruby Libraries To Check Out

love-your-library.pngI love checking out new Ruby libraries, and recently many new ones have passed my eyes. The most prominent releases get their own post on Ruby Inside, but often there are less significant libraries that I'd struggle to write 100 words about yet still contribute to Ruby's lifeblood. This post aims to round up a selection of my recent discoveries.

Baby Shoes 0.r4 defined Ruby class and class method in C

XML | Rails Fire

XML

Nestful: A Simple Ruby HTTP/REST Client Library

Nestful is a simple HTTP/REST client library for Ruby, developed by Alex MacCaw (of Juggernaut) fame. Nestful allows you to consume basic Web services easily, usually in a single line of code.

Shoes app included XML-RPC Client

I read RUBIMA (Japanese Rubyist Magazine), Introduce Standard Library #1 XMLRPC4R, Oct. 2005. This is not a new article, but is still cool!So, I came up with an idea to use XMLRPC4R for Andrew O'Brien's interesting idea, AndrewO/assert_acceptable.# sample78-3.png

In-depth JRuby Q&A: What Makes JRuby Tick in 2010?

JRuby is undoubtedly the most mature of the alternative Ruby implementations. Supporting Ruby 1.8.7 and 1.9.1 (mostly!) and JIT compilation, JRuby is already in use in mission critical Ruby apps and runs scarily fast on the JVM. In this interview with JRuby core member, Charles Nutter, we dig deep into what makes JRuby tick.

Rails and Merb Merge: ORM Agnosticism (Part 5 of 6)

It’s been a little while since I’ve last posted in this series. During that time, we released Rails 3.0 beta, and announced the launch of RailsPlugins.org. Plugin authors have registered almost 150 plugins, with 40 already boasting compatibility with Rails 3. Over the next few weeks, we’re going to roll out some more features to help users find projects to help get updated, so keep an eye out.

Rake and Ant Together: A Pick It n’ Stick It Approach

Recently, I landed a new library for JRuby that will be part of JRuby 1.5. Before I start I want to conjure the image you see below this text: that’s Right!  Mr. Potato Head: a role model for us all. Something that delights us for hours (or at least, probably did, at one point in our lives), is flexible, and is not only a toy, but also a starchy food product.

How jQuery selects elements using Sizzle

Introduction

jQuery’s motto is to select something and do something with it. As jQuery users, we provide the selection criteria and then we get busy with doing something with the result. This is a good thing. jQuery provides extermely simple API for selecting elements. If you are selecting ids then just prefix the name with ’#’. If you are selecting a class then prefix it with ’.’.

11 New Ruby Delights (For If/When You’re Tired of Rails 3.0)

no-rails-allowed.gifSick of Rails 3.0 yet or still enjoying your Sinatra, Rango, Ramaze,

The Building Blocks of Ruby

When showing off cool features of Ruby to the uninitiated (or to a language sparring partner), the excited Rubyist often shows off Ruby’s “powerful block syntax”. Unfortunately, the Rubyist uses “powerful block syntax” as shorthand for a number of features that the Pythonista or Javaist simply has no context for.

To start, we usually point at Rake, Rspec or Sinatra as examples of awesome usage of block syntax:

The Path to Rails 3: Greenfielding new apps with the Rails 3 beta

Upgrading applications is good sport and all, but everyone knows that greenfielding is where the real fun is. At least, I love greenfielding stuff a lot more than dealing with old ghetto cruft that has 1,900 test failures (and 300 errors), 20,000 line controllers, and code that I’m pretty sure is actually a demon-brand of PHP.

Introducing Cramp

Cramp is the latest entry on the ruby web frameworks list. However, unlike all the others, Cramp is an asynchronous framework, always running inside EventMachine reactor loop. Cramp isn’t a good fit for most of the web applications out there. However, Cramp is good at holding and working with a large number of open connections. Hence it’ll work great for things like comet, long polling, streaming API or even when your application needs to handle thousands of concurrent connections.

Syndicate content