Archive for the ‘Beautiful Code’ Category

My favourite plug-ins

Posted by Rahoul Baruah on October 25th, 2007 under Beautiful Code, Designing Great Software, Managing Successful Projects, Ruby on Rails and Software Development  •  No Comments

You know how it is - there are some things that you are just not comfortable without. My phone in my back pocket, my wallet in my front pocket, the key in the front door when I go to bed (just in case there’s a fire and we have to make a hasty exit), [...]

Why you should use PHP instead of Rails

Posted by Rahoul Baruah on September 23rd, 2007 under Beautiful Code, Ruby on Rails and Software Development  •  No Comments

or why Jeremy Kemper joined 37Signals.
Ok. All that being said, I’m looking forward to using Rails some day when I start a brand new project from scratch, with Rails in mind from the beginning.But I hope that this reaches someone somewhere thinking, “God our old code is ugly. If we only threw it [...]

The advantage of testing first

Posted by Rahoul Baruah on September 22nd, 2007 under Beautiful Code, Writing Reliable, Bug-Free Code  •  1 Comment

I really like Test-Driven Development. Think about what you need to write, write a test (that fails), then make it pass. Repeat. Refactor.
Obviously, the major benefit is that further down the line you can be sure that what you are writing today won’t break what you (or someone else) wrote [...]

unless versus if !

Posted by Rahoul Baruah on August 16th, 2007 under Beautiful Code, Ruby on Rails and Software Development  •  No Comments

Why should you use unless when it is little more than if !?
Because unless let’s you write code like this:
dave.punch george unless george.is_hard?
Isn’t that what code should look like!
http://www.3hv.co.uk/

Rails 1 - 0 Smalltalk

Posted by Rahoul Baruah on April 20th, 2007 under Beautiful Code, Designing Great Software, Ruby on Rails and Software Development  •  No Comments

One thing has struck me over my recent Rails-beautification tangent.
My fictional resource-routes example:
map.resources_called(:course_templates, :adding => [ GetMethod.called(:build_courses, :on => :members), PostMethod.called(:do_build_courses, :on => :members) ], :nesting => map.resources_called(:course_details) [...]

markup.become(:beautiful)

Posted by Rahoul Baruah on April 19th, 2007 under Beautiful Code, Ruby on Rails and Software Development  •  No Comments

In my brief exploration of Seaside one of the points that caught my eye was that the components render themselves in HTML.
html table: [html tableRow: [html tableData: [html bold: 'Name']. html tableData: person name]. [...]

Stay Beautiful

Posted by Rahoul Baruah on April 17th, 2007 under Beautiful Code, Ruby on Rails and Software Development  •  No Comments

Mr Hansson has been winding people up recently, with his Twitter Controversy. But one of his more polite recent posts is about Seaside - a Smalltalk web framework that uses stateful objects on the server to allow a modal-style flow of control within your web application. One component receives a callback as the [...]

Ruby on Rails is the MacOS to Java/.Net’s Windows

Posted by Rahoul Baruah on March 20th, 2007 under Beautiful Code, Designing Great Software, Ruby on Rails and Software Development  •  No Comments

Pierre Igot rants about the user interface for Apple’s Mail.
John Gruber rants about click-through in background windows in OSX.
Both of these (and there are many more if you search the interweb) show the extremely high standards that Apple is held to when it comes to user-interface details. You don’t often see criticisms of Linux [...]