Archive for the ‘rails’ Category

Rails Conference Debacle

May 1st, 2009

I’ve only just heard of this silly mess that occurred at the Golden Gate Ruby Conf and many people have already posted on this so I won’t bother wading in. But I thought I’d quickly say: Not impressed with Matt DHH or anyone else who considers it okay to display slides like that in a public presentation.

I wonder how all those defending the action would feel if the images were of naked males?

For those who haven’t seen it – here it is: http://www.slideshare.net/mattetti/couchdb-perform-like-a-pr0n-star

Its not the use of the slides though that’s ultimately an issue.Its the steadfast determination of those defending it that’s not good. The fact is it caused offense and was out of order and yet those at the top continue to defend it. This is nothing more than a grand display of adolescent arrogance and damages the credibility of the Rails community.

One of the reasons I left Rails for Django some time ago.

Reference:
Dyepot
Ruby Railways
Sarah Mei
Ultrasaurus
Zed Shaw

Insight, Facts and Hmmms

November 30th, 2008

I’m a big fan of Google Insight.  Mainly because it burns time when I’m bored and provides lots of “hmm” moments.  Its a service Google provide that lets you see search volume against a range of other factors such as geography, time, etc.  I thought I’d put a few together that may be of interest to you all.

Django is HUGE in Russia

I have no idea why this is.  Maybe because Django sounds slightly Russian?  No thats ridiculous.  But just look at those numbers – compared to the US and the UK (doesn’t appear) its huge!

Why do the Russians Love Django?

Why do the Russians Love Django?

Rails is in Decline

The Google searches tell no lies.  It seems that Rails is in decline while Django is on a steady and solid incline.  Vive le Django.

My Heart Bleeds

Everyone Forgot How to Use PHP’s substr Function

A collective dose of amnesia seems to have struck the world as the search term “substr” seems to have had an 80% increase in recent years.

Surely its Not Hard?

Surely its Not Hard?

Scala? Don’t bother.

Scala was big a few months back with a sudden influx of tutorials and discourse posted to dZone.  Unfortunately looking at the graph its pointless bothering with it.  On top of that Guido doesn’t think much of it either – and he knows his languages.

See that Bottom Feeder?  Scala.

See that Bottom Feeder? Scala.

Canadians Love Merb

I like Canadians.  They were never quite so anti-British as the Americans.  They still have our Queen as their head of State and have none of the beligerant crankiness of republicans in America and Australia.  Its no suprise then that they like Merb – a lot.  Merb is of course ‘Rails-that-works’.

God Save the Queen

God Save the Queen

Well I’m sure you’ve all enjoyed these stunning eye-openers.  If I find anymore then I’ll be sure to let you all know.  In the mean time – have a good day.

What a Suprise – Even D2H’s Rails Crashed

November 29th, 2008

The man who created Rails can’t even keep his Rails site from going down when Digged.

I’d like to suggest he use a framework that just works.

Rails 2.1 eBook

June 17th, 2008

Ruby

I’m getting bored of Rails now but if you’re interested in an eBook detailing the changes in the latest 2.1 release then you can’t go far wrong with this one:

Free Rails Ebook


Many professionals who are done with their 70-290 and 70-291 prefer writing help e-books for students who are in the middle of their 70-649 or 70-270. These are the ones who write exams like 646-204.

MOG – Ruby Music Lovers

April 8th, 2008

Granted its a bit old but thought I’d throw this one into the air!  Tenuous link, but Rails + Music = MOG.  Similar to Last.fm but built using Ruby on Rails.  What does that mean?  Every self-respecting Ruby/Rails fan should have an account of course! ;)

Ruby Forums List

April 6th, 2008

I don’t get involved anywhere near as much in the Ruby community as I probably should but I thought I’d put together a listing of the top Ruby forums I’ve come across in my time:

It’s always a good idea to stay in touch with the community.  Not only to learn form but to help others out.

Rails Alternatives

January 10th, 2008

After the recent turmoil I thought it may be worth pointing out a few alternatives to the Rails framework. So here’s 4 Ruby-based web framework alternatives for starters:

  • Ramaze – Has no known bugs and claims excellent stability. Thems fighting words! ;)
  • Camping – A ‘micro-framework’, this is incredibly lightweight offering limited features but great efficiency and speed.
  • Merb – One of the frameworks recommended by Zed this started as Mongrel + ERB, hence the name. Its grown to be a very clean and efficient Ruby framework.
  • Hobo – Not a framework in its own right as its built on top of Rails but it offers a raft of extra functionality to ease and speed up development of your projects.

You may also be interested in the following web frameworks in other languages:

  • Cake (PHP) – One of PHP’s most popular Rails alternatives. More verbose than Rails but providing much of the same functionality.
  • Symfony (PHP) – This is becoming increasingly popular with employers looking for experienced PHP developers.
  • Django (Python) – Hugely popular Python framework and although not the first its overtaken veteran frameworks like Turbogears to be the most popular Python in the box.
  • Turbogears (Python) – An older Python solution which is actually a jumble of technologies stuck together.
  • Sails (Java) – One of the many Java frameworks with a lot of promise.
  • Seaside (Smalltalk) - The onlySmalltalk based framework I know of. I’d really like to have a gander at this at a later date as one of Ruby’s inspirations was Smalltalk so it’d be interesting to see how the forefathers go about framework creation.

If you’re a fan of statistics, reviews and comparisons then maybe you’d like some of these – about as many web framework reviews as you can possibly want!

Facebook API Wins API of the Year

December 29th, 2007

Facebook LogoIf you’ve never heard of Programmable Web then I suggest you take a look. Its a huge directory of all the major APIs on the web open for development. They’ve decided to award the Best API of the Year to the Facebook site. It won based on its openness, audience, money-making potential, viral features, modularity and metrics.

This got me thinking of ideas to put into a new Facebook app but before I jump in at the deep end I’m going to start small with a few quizzes that can plu gin to my existing sites then build from there.

Interesting side note for Ruby/Rails developers: There is an API interface for you to with rFacebook.

Failing that you could just get someone else to do it for you by getting one of the many Facebook Developers to do it for you.

The :dependent option expects either :destroy, :delete_all, or :nullify

December 28th, 2007

For anyone else suffering this issue in their Rails app lately since the upgrade I’ve traced it to a deprecation in “acts_as_rateable” and “acts_as_taggable” which both use the value “true” for the dependent parameter instead of one of those listed.

The simple ‘hack’ to fix this is to replace “true” with “:destroy”. You’ll find the offending lines around here:


./vendor/plugins/acts_as_taggable/lib/acts_as_taggable.rb:17: has_many :taggings, :as => :taggable, :dependent => :destroy
./vendor/plugins/acts_as_rateable/lib/acts_as_rateable.rb:12: has_many :ratings, :as => :rateable, :dependent => :destroy

Blogged with Flock

Tags: , ,

‘Newbies’ First 2 Months

October 12th, 2007

RubyI so wanted to avoid using that horrendous ‘N’ word in any part of my blog but I needed something short for the title.

Anyway – TAW made an interesting post on his first 2 months on Rails and I sympathise with many of his points but for a different reason. Most of the issues he raises aren’t really a problem when you know the Ruby/Rails way of doing it. Which sounds incredibly dismissive so I apologise but it is the way learning any language. Most difficulties are often more to do with trying to program in your ‘native’ Java, Python, PHP using Ruby – it just doesn’t work. Once you get to know Ruby and Rails more and more it eventually becomes clear that Ruby has its own way of doing things – this often means many disheartening setbacks when you realise your amazing whizz-bang class that cooks your dinner can be done in a single line of clever Ruby as opposed to the mountainous 30 line monster you built over a few days.

It’d be worth having a book, blog, website dedicated to just one thing: Showing the Rails/Ruby way of doing common tasks. To save these stumbling blocks for people new too the language and framework. Any volunteers? :)

Tags: ,