All blog posts tagged with ruby

One of the Biggest Lessons I've Learned in IT

Posted February 26, 2011

Something struck me today: over the years, I've been involved in a lot of different projects for a lot of different companies (even some just person projects). The #1 lesson I've learned is this - never exclude a particular technology from your choice of solutions merely because you don't like it (o…

Read more

Grails and Ruby on Rails OO - Kind of Odd

Posted December 11, 2009

After having worked in Ruby on Rails and Grails for a bit now, something occurred to me that's a little odd about their designs. In this particular observation, both the frameworks end up with the same net effect (but achieve it in different ways). The issue in question is how to declare different m…

Read more

Grails More Impressions - Scripts

Posted December 7, 2009

For my next reflection on impressions with Grails, I'm going to look at scripts (in the context of little utility scripts to simplify common complex tasks).

For this entry, I will compare Grails' "gant" scripts with Ruby "rake" scripts.

First up, namespacing is very different between the two. Gant u…

Read more

Proposed Project - Java on Rails

Posted December 3, 2009

I've become a little disillustion with all the various agile frameworks out there.

At first, I had high hopes for Ruby on Rails, but after working on it for a year and a half, I decided that Ruby is a terrible language, and Rails is an aweful framework built on top of a terrible language.

Naturally,…

Read more

JVM Ruby vs. ECMA Ruby

Posted September 27, 2009

I've seen a few projects rearing up to try to port Ruby to JavaScript (such as HotRuby). This is all entertaining and everything, but here's a few problems as I see it:

  1. You are still limited to JavaScript's security model
  2. You are still limited to JavaScript's single-thread architecture
  3. JavaScript i…

Read more

Browser Scripting

Posted September 24, 2009

A while back I started a little project to enable scripting in a browser in languages other than JavaScript. Let's be honest - JavaScript is horrible. The project was inspired by several others I came across, and like those projects I opted for a Java Applet which would facilitate communication betw…

Read more

Can a Programming Language Be Called Slow?

Posted August 31, 2009

Often I read on blogs and such of how one cannot call a given programming language slow - that's it's the individual implementation of the language or a runtime which is to blame. Here is an example of such a post.

I disagree.

If we look at core language specifications, it become abundantly clear th…

Read more

Throwing Down the Gauntlet

Posted August 8, 2009

I'm throwing down the gauntlet to other language/app developers. For my place of work, I developed a Java Applet for uploading multiple files to a server. Sure, you can do this with other technologies to a certain degree (selecting multiple files at once in Web 2.0 isn't really possible, is it?) but…

Read more

Grails First Impressions – GORM vs. ActiveRecord

Posted July 28, 2009

This blog entry is about my thoughts and observations while I'm starting to learn Grails. At the onset, the primary thing I've concerned myself with is the domain layer (what Ruby on Rails calls “models”). For the purposes of my impressions, I'm going to compare Grails' GORM with Ruby on Rails' Acti…

Read more

Understanding by Doing

Posted July 20, 2009

Considering my fondness for language bashing (particularly, when it comes to such little programming gems as Perl, Python, Ruby, Objective-C, Modula-2, Ada, Haskel, CAML to name a few that I think are terrible) I decided that if I'm going to have an opinion of a language, I'd better be able to back …

Read more

Productive vs. Effective

Posted July 17, 2009

Many years ago, when I still lived in South Africa, I worked for a manager who once tried to explain to us programmer folk the difference between being productive and being effective. At the time I thought he was blowing wind out his rear, but after a few more years of maturing, and being exposed to…

Read more

Speed: Ruby vs. Groovy

Posted July 16, 2009

I'd like to set the record straight on an issue I've seen mentioned on the Internet. I've seen the Ruby fan-boys parading about (again) claiming that Ruby is faster than Groovy, and therefore RoR is better than Grails.

I've written a simple suite of benchmarks pitting many languages against each oth…

Read more

Ruby Enumerations

Posted July 15, 2009

It's no secret that Ruby's lack of an enumeration type is a real pain in the ass. I needed better control over parameters than simply value-checking (so much for "less code", eh fan-boys?)

Using Ruby's peculiar OO model, I was able to create a class which acts similar to Java's enum type.

#
# This i…

Read more

Writing an RSpec for XML-RPC

Posted July 15, 2009

In conjunction with my previous post on writing an XML-RPC webservice under Ruby on Rails using Ruby's built-in XML-RPC library, I obviously had to be able to write some tests (in my case RSpecs) against my controllers. Having scoured forums and Google, the only samples given were for Action Web Ser…

Read more

Why "Mixins" are MORONIC

Posted July 14, 2009

I am sick and bloody tired of Ruby fanboys throwing "mixins" as the be-all and end-all of productivity, and the single greatest weapon that Ruby has over Java.

Here's a thought - one of the bragging points of Ruby is that it's a "true OO" language compared to Java in that EEEEVERYTHING is an object …

Read more

Why I Admire PHP

Posted July 13, 2009

I finally decided today that even if I may not like PHP, I certainly admire it. It's etched out a very good business for itself, and continues to flourish, despite calls of it's demise at the hands of Ruby (much like the calls of demise of Java).

One of the things I admire about it is that it doesn'…

Read more

XML-RPC under Ruby on Rails

Posted July 13, 2009

On a current project, I needed to develop a series of web services for a custom single-signon (unified login) for a bunch of different websites to share. The project needed to be in Ruby on Rails, since that is what is available to the servers, and needed to use a protocol which PHP, Java and Ruby c…

Read more

Ruby Strongtyping

Posted July 6, 2009

Just had to share this one - Ruby fan-boys brag about how "productive" dynamic typing is (completely ignoring the level of unpredictability it raises in your code's usage). Well, it seems I'm not the only one who saw this as a problem instead of benefit. Enter the Ruby Strongtyping package.

Maybe wi…

Read more

Why Does Everyone Think Java Is Dead?

Posted July 6, 2009

One of my biggest pet peeves is when self-proclaimed geniuses (I'm looking at you Guido van Rossum and Yukihiro Matsumoto) bash Java for what they perceive as shortcomings (whilst boasting about how wonderful their own languages are). As if that wasn't bad enough, this invariably leads to claims of …

Read more

When "Agile", "Dynamic" and "Typeless" Become a Hindrance.

Posted June 25, 2009

In recent years, I've seen the apparent rising popularity of "Agile" programming, powered by "dynamic" languages such as "Ruby". While these things seem warm and fluffy at first, in the long term with large projects, they really can become a difficult beast to control.

Let's take "Ruby on Rails" …

Read more

Displaying all 20 posts

Visit my Friends and Family

If you've enjoyed my site, please take a moment to visit my friends and family, many of whom have some interesting insights, and entertaining thoughts and ideas.