Posted by h3rald
Fri, 11 Apr 2008 11:41:00 GMT

I finally got my hands on a shiny new copy of Design Patterns in Ruby1. The book itself is not brand new and it was already widely praised by many different people online, so I wanted to take a look for myself.
To my surprise, the book is a hardcover edition, which makes it look more professional and more durable than the average programming book2. It’s also smaller and shorter than the average programming book2 (340 pages), which makes it much easier to carry around and less intimidating to read. It’s also not meant to be a reference book, so it is actually pleasant an easy to read all in one go, as you’ll soon find out.
What is it about? — well, design patters in the Ruby language of course. But it’s not the usual brainwash of programming theory you would expect by a typical book on patters, it has plenty of examples of real code. When I say real code I don’t mean the usual Dog/Cat/Horse/<insert animal here> classes or juke-box simulations which don’t work at all etc. etc., I mean actual snippets from well known Ruby applications, like RubyGems, FXRuby and, of course, Rails.
OK well, there’s an exception perhaps: Russ did include a few wild life simulations (ponds with frogs and similar), but it’s only for your own good, and for the sake of tradition.
Anyhow, let’s start from the beginning…
Read more...
Posted in Articles | Tags books, review, ruby | 1 comment | no trackbacks
Posted by h3rald
Mon, 21 Jan 2008 12:47:00 GMT

The second shortcut from Addison-Wesley Professional series I’m going to review is called Writing Efficient Ruby Code. A very promising title, especially considering that this book is only 50 pages long.
As usual, this shortcut can be intended as a sort of programmer-friendly detailed cheatsheet: like the other ones in this series it sports a monitor-friendly landscape layout and does not go to deep into the details unless strictly necessary to understand a particular concept.
Read more...
Posted in Articles | Tags books, review, ruby | 2 comments | no trackbacks
Posted by h3rald
Fri, 28 Dec 2007 21:19:00 GMT
Note: This article can be considered a sequel for An IE Lover’s Guide to Firefox, which described Firefox through the eyes of an Internet Explorer fan. Similarly, this article describes Opera’s features from the point of view of a user – myself – who has been using Firefox for years and is now considering another browser switch.
I am a Firefox fan. I’ve been using Firefox since it was named “Firebird” and calling it “stable” was a big overstatement. Firefox dragged me out of Internet Explorer, and that was definitely one of its biggest achievements.
Because I’m addicted to trying out new tools, however, I always kept testing new browsers I discovered here and there. K-Meleon, Flock, Sleipnir… When Safari came out for Windows I immediately installed it and used it for about 2 hours, only to realize that it wasn’t – and it still isn’t – usable at all, mainly due to sporadic crashes.

Similarly, I’ve been trying out Opera periodically, as new releases came out, but again it didn’t seem to work for me. The biggest complaint I had was its inability to render heavily-ajaxified web sites properly. However, now it seems that the Opera Development Team made a big effort to improve the browser, and I was pleased to notice that Opera 9.5b (“Kestrel”) doesn’t seem to have this sort of problems at all.
Read more...
Posted in Articles | Tags browsers, Firefox, IE, Opera, review, software | 22 comments | no trackbacks
Posted by h3rald
Sat, 15 Dec 2007 10:42:00 GMT
If you ever considered about developing an deploying a Rails application in the last year or so, you must have heard of Mongrel before. If you didn’t, I’d recommend you learn more about it because up to now it proved to be one of the few essential ingredients for deploying scalable Rails applications.
Mongrel is a creation of Zed Shaw who started writing a replacement for FastCGI to use with Rails, and ended up creating a brand new, HTTP web server who turned out to be one of the best things the Rails community ever saw happening.
It was created to be simple to use and configure, nevertheless it does require some skill to set it up and tune it. Documentation is there, along with plenty of blog posts, but there’s also an interesting book from Addison Wesley Professional which is definetely worth a read.

“Mongrel: Serving, Deploying, and Extending Your Ruby Applications” – that’s the title of the book. A Digital Shortcut, 100-odd pages long, in landscape format to make it easier to read on a computer, straight to the point with no added sugar for just 15$ (PDF only). I must say Addison Wesley got it right: the book’s format is, as a matter of fact, optimized for web developers, especially those who can’t afford to read a 500-pages book covering everything about a subject just to find that one thing they don’t know about.
This shortcut can be seen, essentially, as an expanded cheatsheet which will teach you the basics about Mongrel and also give you plenty of advice on how to learn more about it.
Let’s have a closer look at it.
Read more...
Posted in Articles | Tags books, Rails, review, ruby | no comments | no trackbacks
Posted by h3rald
Sun, 25 Nov 2007 14:23:00 GMT
What’s your favorite code editor?
This is a common question which still keeps popping up on community boards, mailing lists, comments, etc. Every programmer who writes code in some programming language normally has an editor of choice. Being realistic, most of the times it’s not only one program but several, depending on the language and on the features needed at the time.
Yes, great, but how do you choose your favorite editor?
By trying a lot of them of course: that’s what I’ve been doing since I started programming. Lately I’ve become fond of Vim (or better, gVim), although I have a few other editors I may recommend, e.g.:
Recently, however, I came across my nth “what’s your favorite editor” thread and someone mentioned Komodo Edit. I knew of it already, actually, but I never had a chance to give it a proper try.
ActiveState is well known mainly for two things:
- Their effort in offering a lot of commercial, windows-based Perl libraries
- Their commercial IDE, Komodo IDE, which I personally tried quite a long time ago
The problems of Komodo IDE are foundamentally two:
- It costs money – this is not great in a world where Eclipse and Netbeans are free
- It is an IDE – which normally means ‘heavy as hell’.
It’s a matter of taste and needs: some people feel more confortable with using an editor for certain tasks, while sometimes an IDE may be the best solution, despite its potential slowness and bulk.
Komodo Edit solves the above-mentioned problems because:
Actually I wouldn’t call it an editor, because it offers quite a lot of features which are normally absent in editors—it’s something in-between, which definitely deserves a try.
Read more...
Posted in Articles | Tags programming, review, software | 11 comments | no trackbacks
Posted by h3rald
Wed, 03 Oct 2007 11:53:00 GMT
After reading the very first paragraph of Mr. Neighborly’s Humble Little Ruby Book (HLRB for short, from now on) it was very clear to me that it was going to be quite an unconventional read:
“Yes, there is a Chapter 0. There is a little bit of introductory stuff we need to talk about before
we set you loose on Ruby. You wouldn’t want to get psyched about a new gadget, get it home,
and then figure out you need batteries, a grapefruit, and the ability to speak three languages to
even open the box would you?”
That reminded me immediately of Why’s Poignant Guide to Ruby. without a doubt. I don’t know how it is possible that two witty, crazy, and very inventive guys grew fond of the same programming language. Anyhow, to reassure a few of you, you won’t find any foxes or chunky bacon cartoons in HLRB, just some very well made (although still pretty unconventional) diagrams like this one:

Got the picture? Good. Let’s move on…
Read more...
Posted in Articles | Tags books, review, ruby | no comments | no trackbacks
Posted by h3rald
Sat, 29 Sep 2007 20:05:00 GMT
Logging your daily activities is important. If you don’t believe me you’d better check at least these three posts on LifeHacker, which feature different scripts and applications:
I had a look at each one of them, and I believe they are quite useful, although I didn’t really find what I was looking for. Why? Well, for example:
- I don’t believe a GUI is necessary—you’d better off with just a shortcut key or command to run from Launchy or QuickSilver, that’s much faster.
- They just log timestamped messages on a file, there’s no real way to search through them and display them except by using a test editor
- They are Windows only—not that it matters for me, but others may not be happy about it.
That’s why I thought I’d roll out my own: meet RedBook.
Let me say it’s nothing fancy: I’m not a full-time programmer but I do like playing with Ruby during my lunch breaks at work, so that’s why RedBook is just a humble, tiny Ruby script. This automatically makes it cross-platform: you can install Ruby very easily on Linux & alikes, Mac OS X and Windows. Furthermore, if you are on Windows and for some weird reason you don’t want to install Ruby, you can just try out the packed EXE file (made with RubyScript2Exe)—it’s about 2MB, but you won’t need anything else.
Read more...
Posted in Articles | Tags productivity, redbook, ruby, software, tools | 11 comments | no trackbacks
Posted by h3rald
Wed, 05 Sep 2007 18:40:00 GMT
Preamble
I discovered Ruby fairly recently, through the excellent Ruby on Rails framework1. Although I don’t consider myself a Ruby expert by any means, I read the PickAxe2, I’ve coded a few utilities for my personal use in Ruby and I’m currently developing with Rails during my free time.
Ruby is currently my programming language of choice; I started off with Turbo Pascal in high school, discovered C and C++ at university, did my thesis in Java and learned PHP from scratch because I wanted to learn how to make websites quickly and easily. I guess I feel compelled to code sometimes, more as a form of entertainment than anything else. Rather dissatisfied with what I tried language-wise, I was determined to start learning either Python or Ruby. I chose the latter because I didn’t want incorrect indentation to break my code3, and here I am, heaping praise upon it.
There are plenty4 of introductions, tutorials, articles and essays of different sorts which aim to guide the novice and advise the guru on how to get the most out of Ruby. This article, however, is not one of them.
It’s more of a modest, humble, and incomplete list of a few reasons which may (or may not) entice you to use Ruby or at least play with it a bit. A word of caution: if you are using another programming language for work or whatever, don’t complain to me if you don’t want to use it anymore – that’s exactly what happened to me, but luckily, it didn’t matter. Ruby is a very beautiful and elegant language, but like all things of this sort, it may well poison your mind and corrupt your soul…
You have been warned.
Read more...
Posted in Articles | Tags ruby | 27 comments | no trackbacks
Posted by h3rald
Fri, 29 Jun 2007 17:28:00 GMT
If you asked me what file manager I used on Windows, up to a month ago I’d have answered something like: A43 or CubicExplorer, for sure anything but Windows Explorer.
Well, it turns out that I had to change my mind after all…
There’s a multitude of “Explorer Replacements” which aim to be more feature-rich, more user-friendly, less bloated than Bill’s favorite, and I indeed tried quite a few of them, mostly the free ones of course.
The only problem is that whenever I got close to choose “the one”, I noticed that there always was one or two features missing somewhere, which were present in another and vice versa. Additionally, to be totally honest, the level of integration with Windows and other applications was never complete.
These are a few stupid, silly things which tend to be lacking or at least are not 100% functioning - not in all the file managers I tried, but at least in some:
- Environment variables integration - Alternative file managers normally are not able to parse Windows environment variables.
- Icon overlays - Some file managers can’t render Subversion’s icon overlays.
- Strange context menus - Sometimes right-clicking on a file or a directory may not open the standard Explorer context menu
- Open Folder - Third-party application allowing you to open a folder, will always open it through Windows Explorer
- auto complete address bar….
- Special Folders - Some special folders (e.g. Control Panel) are now accessible using alternative file manager, but others may not (e.g. Network Connections). At any rate, typing “Control Panel” will not open the Control Panel in an alternative file manager.
What about trying to “patch” Windows Explorer instead of using another program altogether?
I never really thought of that until LifeHacker featured the QT TabBar shell extension by Quizo. That was my epiphany: I immediately thought I was going to “patch” Windows Explorer using a few really useful (and free, of course) Windows Shell Extensions.
Here’s my file manager now:

Yes, it is Windows Explorer, with just a few addons:
Read more...
Posted in Articles | Tags review, software, windows | no comments | no trackbacks
Posted by Fabio Cevasco
Mon, 28 Aug 2006 11:51:00 GMT
A while ago Google started offering services like Google Mail (Gmail) and Google Calendar to domain owners. Sure everyone likes Gmail, but one of the few bad things about it is that it never feels “unique”: your email address is always gonna be @gmail.com or @googlemail.com.
Read more...
Posted in Articles | Tags Google, AJAX, internet, review, web20 | no comments | no trackbacks