Posts Tagged ‘ruby’

Tabs vs. Spaces

December 1st, 2009

Every time I’ve seen one of these “vs” posts its gone into great length about the philosophy behind such and such.  You’ll never convince someone based on ‘religious argument’. So I’m going to take a different approach here and state who does what and hopefully the weight of ‘who does what’ will make the point quite clear.

Screw the Scientific Method!!

Language/Organisation Spaces Tabs Reference
PHP Pear * [1]
Zend (PHP) * [1]
Python * [1]
Ruby * [1]
Java * * [1]
.Net * [1]
C# * [1 Philips (PDF)] [2 - Microsoft]
Lua * [1]
Erlang * * [1]
Object Pascal * [1]
Adobe Flex * [1]
Ada 95 * [1]
Mozilla (Javascript) * [1]
Mozilla * [1]
Google * [1] [2]
Mono Project * [1]
Webkit * [1]
NASA * [1]
Apache (C) * [1]
Linux Kernel * [1]
Gnome * [1]
KDE Libs * [1]
Joomla * [1]
Wordpress * [1]
Zope * [1]
Django * [1]

Notes:

  • Tabs may be rendered differently on different editors and systems.  So they make for less friendly code sharing.
  • Its interesting to note that the ones using tabs all have histories of mental instability, cannibalism, Morris Dancing, witchcraft and heresy.

Clear win for Spaces, which happens to be what I use.

Python’s Beards and Ruby’s ‘Cool’ Guys

July 30th, 2009

I was having a chat on the MicroSoft Networks fancy comms protocol. Aka: MSN. Along came someone with an opinion. As is customary I shot it down with wild abandon!!

The quickie backstory:

  • I suggested Python is better than Ruby.
  • They argued using two example pictures – see below.

Rubyists

ruby_programmers.jpg



I Said:

The Ruby pic: The guy on the right has his eyebrow raised as if to say: “I’m fucking amazing”. The rest of them are all geeks who are using Ruby as their way to be cool in a world that rejected them at high school age for being geeks. Little do they realise (maybe deep down they do) but the only people who may think they’re cool is a small fringe group of other Ruby-ists and beginner coders. The other Ruby-ists will be consumed by an undertone of competitiveness. The Python coders will think they’re rubbish fanboys. The hot girl who rejected them at high school will think they’re just like any other geek.

Pythonistas

504x_Picture_2_23-18-44.png



I Said:

The good thing about the Python coders is they’re not bothered. They’re just not even trying. They’re so past giving a shit about being cool that they’ve all grown ugly facial hair.

This piercing psychological insight into the programmers of Python and Ruby is just the tip of the iceberg. For $200 I’ll furnish you with a graph showing my facts in a nice way that will go well in a professional report.

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

Metasploit Framework

November 25th, 2008

Its been a while since I did security related but today I came across an interesting platform – with much of it written in Ruby:  Metasploit.

Its basically a framework filled with exploits, payloads, auxilliary modules for port scanning, etc.  You need to know how to use it obviously but what makes it cool is:

  • It uses Ruby.

Check it out and have a play around.

Switching From Rails to Django: Why?

November 15th, 2008

Rails is crap.  There – I said it.  Apologies to the geek with a peanut dick but it just sucks really bad.

Compared to PHP – Rails is Great

Yeah it is great – its epic in fact.  But then again that isn’t very hard is it considering how shit PHP is?

Stop Stealing Ruby’s Limelight

The reason people love Rails is because of Ruby.  It pisses me off when I hear people getting pissed off with having to learn Ruby so they can use Rails.  For crying out loud!!  Ruby is the foundation, cause, Nu(n), beginning, soul, reason for Rails existence.  All of those funky little things that Rails can do are entirely due to Ruby.  Ruby is an amazing language and Rails is an insult rather than a blessing to it.

Rails and Mongrel = Unstable

Every time I get into an argument regarding Rails’ reliability it comes back to: “It must be your code”.

Well fair enough.  Lets say my code is the reason that all my Rails sites fail at least once a week.  Or maybe its my setup, or server config.  Maybe I’m not using Mongrel right.  I’m a dumb fuck who can’t use Rails…

But…

This “dumb fuck” can setup and manage multiple Django sites without issue.  Without hassle.  Without self delusion.  Without restarts every fu*king week!  This “dumb fuck” has had 3 Django sites running for the past 8 months with no downtime.

Okay – so I could setup scripts to kick Mongrel back in when it falls over.  I could manage or code better.  I could do many things.  But why the fuck should I?

I think a good analogy is this:

  • Rails = Windows
  • Django = Apple

You see – Django Just (fucking) Works.  Like a Mac.  Nice and simple.  Reliable.  Consistent.

Rails needs hacking and bollocking around with until it settles.  Then you need to faff some more when it plays up.  Sounds familiar doesn’t it?  Just like Windows.

But All the Cool Kids Use Rails

Yeah – all the cool kids use Rails.  Do you remember that all the “cool kids” at school were normally the biggest dicks in the school?  They were the thickest, most aggressive, most lacking in self confidence and respect.  They followed a ‘leader’ blindly because they were too weak to follow their own path.

The Rails community comes in two parts:

  • A core of heavily invested super-egotistical fat-assed vermin that need it to continue in order to make money training, publishing, etc.
  • A huge cloud of numb nuts who don’t know how to program but jumped on the Rails bandwagon to be cool.  These people invariably make themselves look like idiots when challenged.

Lets look at some real technology leaders:

Google - they use Python for the majority of their systems as well as choosing Django templates for its Google App Engine.  They also rapidly built Django support into it.  Rails hasn’t even hit the radar.

Rails Has Huge Support From The Tech Industry

Similar to the above but I knew you’d never read through anything longer than a few paragraphs so I put this shit here.

Rails attracts disaffected, immature hippies and divs.  No major company has embraced Rails for anything serious.  The only ‘companies’ that have embraced Rails are the fluffy-bunny brigade of non-companies.  They make money but they’re the technological equivalent of the Care Bears:

  • Twitter – for inane bullshit.
  • 43 Things – You put the things you want to do in life.  Personally?  I just do them!
  • Amazon – I almost shit myself when I saw this.  Until I read the details about it:
  • UnSpun is a new service from Amazon that puts workers from the Mechanical Turk and the UnSpun community at work finding the top, best, favorite things in any category.
  • Sounds like a world beater.  Really taking over Amazon there aren’t you.

Django Copied Rails

No, it didn’t – that was my controlled response to this ridiculous statement.  My natural response had a lot more ‘beating YOU in the face for thinking such a thing’.  Django and Rails were born from very different worlds and purposes.  Neither copied the other.  Although multiple projects have spawned in the Rails community to copy the Django admin interface.  Jealous, much?

Discuss?

Comment or email me.  If you disagree I’ll likely mock you.  If you agree I’ll send a digital kiss.

Managing Cron Jobs – Without Steroids

November 7th, 2008

There’s a funky RubyGem available over on Rubyforge for managing your systems cron jobs.  When I first started to read about it I got confused because it says you add a cron job for the jobmanager which then runs your cron jobs.

Madness…not quite.

This jobmanager thingy actually provides a great set of tools that sit in between your cron and jobs that enables you to log events, email people on completion, manage timeouts and rotate logs.  So its kind of job-management-on-steroids-without-the-steroids. :)

Best Gem Author Name: Mike Mondragon

November 3rd, 2008

Just yesterday I was reading about Dracula, Romanian language, Vlad the Impaler, Transylvania, etc.  As you do of a Sunday evening.

Then by sheer coincidence I come across Mike Mondragon who is the maintainer of MMS2R – a mobile phone MMS library for Ruby.

Mike Mondragon – clearly the best name on RubyForge.

I salute thee.

New gem released – Newgem

November 3rd, 2008

I’ve no idea what this is but its a rubbish name and a new release has been made.  I think it has something to do with GEMS?  Never mind.

Go them: http://rubyforge.org/forum/forum.php?forum_id=27856

Oh – I think its 0.2.9.

The Decision

October 30th, 2008

Latest Ruby WWW::Mechanize Released (0.7.8)

September 6th, 2008

For those not knowing what I’m on about: Mechanize is a stunning little library which is great for automating web navigation and is especially suited to handling forms.

The latest version addresses a couple of bugs and is available here: Mechanize.