3 Sep 2010, 2:51pm
work:
by toni

2 comments

10 good reasons to switch to Ruby

I’ve been working for three months with ruby now, I feel like I need to write down a list of the top 10 things I loved about the language.

Writing ruby code is a pleasure

Before switching to ruby I did lost my interest in writing software, I was totally bored of writing lots of bolier template patterns stuff, lots of lines of code, maintaining huge deployment scripts, build files. With ruby I rediscovered the passion for writing software, the syntax is just awesome and very rich: tasks that may require a lot of ugly silly code in java/c# can be written in a very expressive form in a line.

Deployment

Capistrano is just magically wonderful, it gives you for free so many features that are missed in the not ruby world, you can be up and running with a capistrano deploy script in minutes, deploy is safe, predictable, repeatable.

Available libraries and dependency management

Gems are just the best system for dependency management I ever seen, and the gems that are generally popular for ruby are definitely powerful.

Write less, do more

With ruby you write less code, less code means less maintenance, code more readable, less tests to write, less tests to maintain, you will go live quicker.

Quicker development cycle

An obvious consequence of all the other points listed in this blog post but also, since the language is dynamic you won’t wait for compilation or to reload the application in your server.

No xml, really no xml

No more xml, what a win

No (n)ant

There must have been a day where ant has been good but I can’t remember when it was. Ant scripts are a pain to maintain and write, it’s one of the biggest fail of the Apache Foundation (Maven is another big fail)

Microframeworks

Another big difference with the usual C#/Java world is that you don’t get huge beasts frameworks like what it is Spring now, gems (a part from Rails) are usually quite small and they just do the job they are supposed to do.
To mention few: Sinatra, Haml, mongo

It’s dynamic

You’ll be faster, it’s guaranteed

6 Aug 2010, 2:38pm
work:
by toni

2 comments

Java vs Ruby vs Clojoure

Java:

Time spent to think on what to write: 0

Time spent in writing: 60

Clojure:

Time spent to think on what to write: 30

Time spent in writing: 5 (if you’re good with brackets)

Ruby:

Time spent to think on what to write: 5

Time spent in writing: 5

17 Jun 2008, 10:58am
Uncategorized:
by toni

leave a comment

Fan Programming Language

I’m just having a look to Fan and it seems quite a cool language, soon more posts on this.

Fan Programming Language: “Portability
Write code portable to both the Java VM and the .NET CLR.

Familiar Syntax
Java and C# programmers will feel at home with Fan’s curly brace syntax.

Concurrency
Tackle concurrency with built-in immutability, message passing, and REST oriented transactional memory.

Static and Dynamic Typing
Don’t like the extremes – take the middle of the road.

Elegant APIs
We’re quite obsessive about providing all the key features required for a standard library, but with much less surface area than the APIs found in Java or .NET.

Object Oriented
Everything is an object.

Mixins
Interfaces but with implementation.

Functional
Functions and closures are baked in.

Serialization
Built-in ‘JSON like’ serialization syntax makes Fan ideal for declarative programming too.

REST
Model data with a unified namespace of resources identified with URIs.

10 Jun 2007, 8:13pm
Uncategorized:
by toni

leave a comment

.net infected

Day by day I’m always more .net infected, today I’ve found 4 good links. One is DZone which provides good quality links every day. From here I found this where the author tries to convince the reader that Java 6.0 has something cool and new inside… Bah!

Through the good mailing list on Yahoo about Domain Driven Development I’ve read this article about using LINQ, DDD and so on with .net, indeed.

And while writing the post, always through DZone I see that JRuby 1.0 is out.

So more than a .net infection maybe is a Java depression.