Push the button….

My finger is on the button
My finger is on the button
My finger is on the button
Push the button
The time has come to…    Galvanize

Galvanize By The Chemical Brothers…

Sunday night I went to the cinema with friends to watch “The Box“. I wanted to see Avatar 3D, unfortunately you have to wait for films to be released before you can watch them. Who knew!….   In case you are not familiar with the film “The Box” here’s the plot summery from IMDB :-

Norma and Arthur Lewis, a suburban couple with a young child, receive a simple wooden box as a gift, which bears fatal and irrevocable consequences. A mysterious stranger, delivers the message that the box promises to bestow upon its owner $1 million with the press of a button. But, pressing this button will simultaneously cause the death of another human being somewhere in the world; someone they don’t know. With just 24 hours to have the box in their possession, Norma and Arthur find themselves in the cross-hairs of a startling moral dilemma and must face the true nature of their humanity.

So. Someone gives you a box with a button. If you press the button you will get $1million (say £500,000) But someone somewhere will die. Would you press the button?

“Well would you?”

Turns out, everyone in the group I was with would not press the button, Neither would the selection of people I have asked over IM, or IRL.  In fact so far I am the only person who has admitted to the fact that I would press the button with no second thoughts.

I am now worrying I may have slight sociopathic tendencies.

Off the Rails

When learning a new programming language, The Internet convention is to make a “Hello World” program.  For those of you none-coders out there, that is as simple as it sounds. A simple program to output the words “Hello World” onto your screen, or a page on a web browser. The idea is to use something very simple, so you can speedily see the output of your code before you start on anything more complex.  In theory there is nothing simpler in code than the Hello world program.

For example:

  • PHP: <?php echo “Hello, world!”; ?>
  • ASP: <% Response.Write(“Hello, world!”) %>
  • ASP.NET: <asp:Label ID=“Label1” runat=“server” Text=“Hello World”></asp:Label>
  • BASH: echo ‘Hello, world!’

You noticing a trend here? Very simple, and not much code involved. Hell if we look at assembly language itself, which is considered a complex and long language.

bdos    equ    0005H
start:  mvi    c,9
        lxi    d,msg$
        call   bdos
        ret             

msg$:   db    'Hello, world!$'
end     start

Now. this week I have had to look at the insanity that is called “Ruby on Rails“. One of our customers is demanding we host/support it as he now has a new “Developer” (And I use that title in the loosest way) And the new guy only does Ruby On Rails (Or RoR from now on).  Now we have the facility to host it pre-setup on our servers.  So all we had to do was throw up a quick test page to double check it was all running OK. What was needed was a RoR “Hello World” test.

So following the examples in a book I set about writing a simple application to display “Hello World” onto the web-page. It took several hours of work, required over 200 different files, and a virtual-Host setup different to normal hosting before the words “Hello World” were there on the screen.

How shit a language (If i can call it a language) is RoR? Instead of the normal ONE line of code it took 207 individual files to do the same thing. Has there ever been a shittier application language invented?  If there is then I have never heard of it.

And to top it all off. the Developer in question seems clueless about the language. For example he did not have a public folder (required by Apache). he removed the default index page (which is correct) only he never re mapped root in the config/routes file. And has been bombarding our support ticketing system with very basic questions.

On a side note. While learning RoR, I got bored so played on the Interwebz. I found this developers, Twitter, Blog, Facebook, Company website. Yes it turns out he is a freelance web applications developer.  And yet his website is the worst I have seen in a long time.

Takes all sorts I suppose.

CN

The Downtime Dance

Just a quick message to apologise for the series of short down-times this site has recently been experiencing.  I don’t think the small VPS its being run from can handle the number of visitors daily (On top of the other services)  So We are upgrading the package to a bigger, fast, more powerful one.

So hopefully as soon as we schedule a switchover time things will improve.

CN