Reviewing articles.
jump to
@@ -230,8 +230,6 @@
sub, sup { line-height: 0; - position: relative; - vertical-align: baseline; } sup {
@@ -8,74 +8,136 @@ tags: "programming"
----- <div class="toast"> <ul> - <li>This article has been translated into <a href="http://science.webhostinggeeks.com/10-programskih-jezika">Serbo-Croatian</a> by <cite><a href="http://webhostinggeeks.com/">Web Geeks</a></cite></li> - <li>This article has been translated into <a href="https://www.homeyou.com/~edu/10-linguagens-de-programacao">Portuguese</a> by <cite><a href="https://www.homeyou.com/~edu/">Artur Weber</a></cite></li> - <li>This article has been translated into <a href="http://www.1001-soldes.com/traductions/10-programming-languages.html">French</a> by <cite>Avice Robitaille</cite></li> + <li>This article has been translated into <a + href="http://science.webhostinggeeks.com/10-programskih-jezika">Serbo-Croatian</a> by <cite><a + href="http://webhostinggeeks.com/">Web Geeks</a></cite></li> + <li>This article has been translated into <a + href="https://www.homeyou.com/~edu/10-linguagens-de-programacao">Portuguese</a> by <cite><a + href="https://www.homeyou.com/~edu/">Artur Weber</a></cite></li> + <li>This article has been translated into <a + href="http://www.1001-soldes.com/traductions/10-programming-languages.html">French</a> by <cite>Avice + Robitaille</cite></li> </ul> </div> <div class="v-spacer"></div> -<p>If you program for fun or profit, chances are that you know C, C++, Java, <span class="caps">PHP</span>, Perl, Python or Ruby. These programming languages are all widely known, and, to a different degree, used in commercial applications. At least some of them can safely be considered <em>mainstream</em>, even if that word has become so overused and misused that has almost lost its original meaning, if it ever had one.</p> -<p>If you are earning your living by coding, it’s often one of these languages that pays the bills. Nevertheless, true hackers frequently meander in other directions, exploring and discovering different paradigms and methodologies, sometimes to the most <a href="http://esolangs.org/wiki/Main_Page">esoteric</a> extremes.</p> +<p>If you program for fun or profit, chances are that you know C, C++, Java, <span class="caps">PHP</span>, Perl, Python + or Ruby. These programming languages are all widely known, and, to a different degree, used in commercial + applications. At least some of them can safely be considered <em>mainstream</em>, even if that word has become so + overused and misused that has almost lost its original meaning, if it ever had one.</p> +<p>If you are earning your living by coding, it's often one of these languages that pays the bills. Nevertheless, + true hackers frequently meander in other directions, exploring and discovering different paradigms and methodologies, + sometimes to the most <a href="http://esolangs.org/wiki/Main_Page">esoteric</a> extremes.</p> <blockquote> - <p>“The most obvious common ‘personality’ characteristics of hackers are high intelligence, consuming curiosity, and facility with intellectual abstractions. Also, most hackers are ‘neophiles’, stimulated by and appreciative of novelty (especially intellectual novelty). Most are also relatively individualistic and anti-conformist.”</p> + <p>“The most obvious common ‘personality' characteristics of hackers are high intelligence, + consuming curiosity, and facility with intellectual abstractions. Also, most hackers are ‘neophiles', + stimulated by and appreciative of novelty (especially intellectual novelty). Most are also relatively + individualistic and anti-conformist.”</p> </blockquote> -<p style="padding-left:4em;">– Eric S. Raymond, <cite><a href="http://catb.org/jargon/html/personality.html">The Jargon File</a></cite></p> -<p>Even if you’re particularly devoted to one of the languages mentioned above, it is normal to be curious about what else is out there. As the end of the year approaches, I find myself thinking about learning – or at least become acquainted with – some less known, more experimental, programming languages.<br /> -I was originally planning on learning another programming language as a New Year’s Resolution, which is quite common among programmers. The most difficult task turned out to be <em>choosing</em> a particular language: there are so many out there which makes it very hard to decide.</p> -<p>This article deals with ten possible candidates, and it’s far from being an exhaustive list. The programming languages described henceforth are very different from each other, but they all have one thing in common: they all stimulate my curiosity in their own, very different ways.</p> +<p style="padding-left:2rem;">– Eric S. Raymond, <cite><a href="http://catb.org/jargon/html/personality.html">The + Jargon File</a></cite></p> +<p>Even if you're particularly devoted to one of the languages mentioned above, it is normal to be curious about + what else is out there. As the end of the year approaches, I find myself thinking about learning – or at least + become acquainted with – some less known, more experimental, programming languages.<br /> + I was originally planning on learning another programming language as a New Year's Resolution, which is quite + common among programmers. The most difficult task turned out to be <em>choosing</em> a particular language: there are + so many out there which makes it very hard to decide.</p> +<p>This article deals with ten possible candidates, and it's far from being an exhaustive list. The programming + languages described henceforth are very different from each other, but they all have one thing in common: they all + stimulate my curiosity in their own, very different ways.</p> <h3 id="haskell">Haskell</h3> -<p>I tried to learn Haskell in the past. Quietly, I started diving into the multitude of articles, tutorials, overviews and even books about this fascinating academic language which claims to achieve functional purity though remaining extremely useful, practical and efficient. Sadly, I’m still not able to fully grasp some of its most crucial concepts, such as <a href="http://en.wikibooks.org/wiki/Programming:Haskell_monads">monads</a>, but this still doesn’t put me off <em>wishing</em> to learn the language.</p> -<p>If you’ve never enountered Haskell before, I find <a href="http://www.willamette.edu/~fruehr/haskell/evolution.html">The Evolution of a Haskell Programmer</a> an amusing and informative read. Although aiming to be humorous in a way, it serves a very important didascalic purpose: it is one of the most complete collections of the different paradigms and programming approaches Haskell allows.</p> -<p>Besides its very elegant, pragmatic and almost-magical syntax, what really intrigues me about this language is what it offers, in terms of features:</p> +<p>I tried to learn Haskell in the past. Quietly, I started diving into the multitude of articles, tutorials, overviews + and even books about this fascinating academic language which claims to achieve functional purity though remaining + extremely useful, practical and efficient. Sadly, I'm still not able to fully grasp some of its most crucial + concepts, such as <a href="http://en.wikibooks.org/wiki/Programming:Haskell_monads">monads</a>, but this still + doesn't put me off <em>wishing</em> to learn the language.</p> +<p>If you've never enountered Haskell before, I find <a + href="http://www.willamette.edu/~fruehr/haskell/evolution.html">The Evolution of a Haskell Programmer</a> an amusing + and informative read. Although aiming to be humorous in a way, it serves a very important didascalic purpose: it is + one of the most complete collections of the different paradigms and programming approaches Haskell allows.</p> +<p>Besides its very elegant, pragmatic and almost-magical syntax, what really intrigues me about this language is what + it offers, in terms of features:</p> <ul> - <li>9 different <a href="http://www.haskell.org/haskellwiki/Implementations">implementations</a> (multiple compilers <em>and</em> interpreters)</li> - <li>Countless <a href="http://haskell.org/ghc/docs/latest/html/libraries/">standard libraries</a> <a href="http://hackage.haskell.org/packages/archive/pkg-list.html">packages</a> which can be used to solve <em>any</em> programming challenge</li> + <li>9 different <a href="http://www.haskell.org/haskellwiki/Implementations">implementations</a> (multiple compilers + <em>and</em> interpreters) + </li> + <li>Countless <a href="http://haskell.org/ghc/docs/latest/html/libraries/">standard libraries</a> <a + href="http://hackage.haskell.org/packages/archive/pkg-list.html">packages</a> which can be used to solve + <em>any</em> programming challenge + </li> <li>Abundant <a href="http://www.haskell.org/haskellwiki/Books_and_tutorials">learning material</a></li> - <li><a href="http://www.haskell.org/haskellwiki/Why_Haskell_matters#The_speed_of_Haskell">Speed</a> that rivals C and C++</li> + <li><a href="http://www.haskell.org/haskellwiki/Why_Haskell_matters#The_speed_of_Haskell">Speed</a> that rivals C and + C++</li> <li>Very mature cross-platform compatibility</li> </ul> -<p>The catch? It is likely to be very different from any other language you might have encountered before, and that’s probably the reason why some people find it difficult to learn and master. That being said, if you are looking for a challenging (but very rewarding, I believe) New Year’s Resolution, you should definitely go for this.</p> +<p>The catch? It is likely to be very different from any other language you might have encountered before, and + that's probably the reason why some people find it difficult to learn and master. That being said, if you are + looking for a challenging (but very rewarding, I believe) New Year's Resolution, you should definitely go for + this.</p> <h4>To get you started…</h4> <ul> <li><a href="http://www.haskell.org/">Official Haskell Wiki</a></li> <li><a href="http://en.wikibooks.org/wiki/Haskell">Haskell Wikibook</a></li> <li><a href="http://book.realworldhaskell.org/read/index.html">Real World Haskell</a></li> - <li><a href="http://cdsmith.wordpress.com/2007/07/29/37-reasons-to-love-haskell-playing-off-the-ruby-article/">37 Reasons to Love Haskell</a></li> + <li><a href="http://cdsmith.wordpress.com/2007/07/29/37-reasons-to-love-haskell-playing-off-the-ruby-article/">37 + Reasons to Love Haskell</a></li> <li><a href="http://antoniocangiano.com/2007/03/13/haskell-eye-for-the-ruby-guy/">Haskell for the Ruby Guy</a></li> - <li><a href="http://www.techworld.com.au/article/261007/-z_programming_languages_haskell">A-Z of Programming Languages: Haskell</a></li> + <li><a href="http://www.techworld.com.au/article/261007/-z_programming_languages_haskell">A-Z of Programming + Languages: Haskell</a></li> <li><a href="http://learnyouahaskell.com/">Learn you a Haskell for Great Good!</a></li> <li><a href="http://cgi.cse.unsw.edu.au/~dons/blog/2008/05/16">Haskell Hacking</a></li> </ul> <h3>Erlang</h3> -<p><a href="http://erlang.org/">Erlang</a> is a concurrent programming language originally developed by Ericsson for their real-time applications. It goes without saying that with these premise, Erlang seems the most natural answer to all concurrency problems you may encounter in your life as a programmer.<br /> -Developing with concurrency in mind feels natural and easy in Erlang, and the performance of Erlang-powered systems can be unmatched.</p> +<p><a href="http://erlang.org/">Erlang</a> is a concurrent programming language originally developed by Ericsson for + their real-time applications. It goes without saying that with these premise, Erlang seems the most natural answer to + all concurrency problems you may encounter in your life as a programmer.<br /> + Developing with concurrency in mind feels natural and easy in Erlang, and the performance of Erlang-powered systems + can be unmatched.</p> <p>Quite a few interesting applications have been developed in this language, such as:</p> <ul> <li><a href="http://couchdb.apache.org/">CouchDB</a>, a popular distributed, document-oriented database</li> <li><a href="http://yaws.hyber.org/">Yaws</a>, a high-performance web server</li> <li>even <a href="http://www.facebook.com/note.php?note_id=14218138919&id=9445547199">Facebook Chat</a></li> </ul> -<p>The price Erlang adepts have to pay, as Damien Katz (CouchDB creator and Erlang enthusiast) <a href="http://damienkatz.net/2008/03/what_sucks_abou.html">points out</a>, is:</p> +<p>The price Erlang adepts have to pay, as Damien Katz (CouchDB creator and Erlang enthusiast) <a + href="http://damienkatz.net/2008/03/what_sucks_abou.html">points out</a>, is:</p> <ul> <li>Awkward syntax, inspired by Prolog</li> <li>Weird if expressions</li> <li>Difficult string operations</li> <li>No classes or namespaces</li> </ul> -<p>…this list could go on. Damien’s article is an interesting read, enough to put anyone off learning the language if read superficially. On the other hand, it provides an invaluable resource for newcomers who wish to be prepared before taking on the challenge of learning Erlang to build their next scalable, concurrent and industry-proof application.</p> +<p>…this list could go on. Damien's article is an interesting read, enough to put anyone off learning the + language if read superficially. On the other hand, it provides an invaluable resource for newcomers who wish to be + prepared before taking on the challenge of learning Erlang to build their next scalable, concurrent and industry-proof + application.</p> <h4>To get you started…</h4> <ul> <li><a href="http://www.erlang.org/">Official Erlang Web Site</a></li> - <li><a href="http://www.onlamp.com/pub/a/onlamp/2007/09/13/introduction-to-erlang.html">An Introduction to Erlang</a></li> + <li><a href="http://www.onlamp.com/pub/a/onlamp/2007/09/13/introduction-to-erlang.html">An Introduction to Erlang</a> + </li> <li><a href="http://www.defmacro.org/ramblings/concurrency.html">Erlang Style Concurrency</a></li> <li><a href="http://www.planeterlang.org/">PlanetErlang</a></li> <li><a href="http://www.erlang-projects.org/">Erlang Projects</a></li> </ul> <h3 id="io">Io</h3> -<p><a href="http://iolanguage.com/">Io</a> is a relatively new programming language by Steve Dekorte which recently surfaced from Google’s oblivion (if you tried googling for it a few months ago, you couldn’t event find its home page) thanks to a short vut stimulating <a href="http://hackety.org/2008/01/05/ioHasAVeryCleanMirror.html">article</a> by <a href="http://whytheluckystiff.net/">_why</a>. It doesn’t have the best name for a programming language, that’s for sure, but it’s definitely a breath of fresh air in terms of the way it works.</p> -<p>Its unusual, minimalist and yet elegant and powerful syntax reminds of Smalltalk, but the language goes far beyond that. Io is an object-oriented, prototype-based, message-based and fully-reflective programming language. This means that you use messages like in Smalltalk, you create objects like in Javascript and every bit of your code can be inspected and passed around as you see fit.</p> -<p>If you think Ruby allows fancy (and potentially dirty) tricks like metaprogramming and monkey-patching, Io takes this to a whole different level, imposing virtually no limitation to the programmer. What’s truly amazing is that its grammar and syntax are so minimal that you can learn them in literally 10 minutes. After that, you can start experimenting, first with its extremely small core and then with its extension libraries and bindings.</p> -<p>Io has indeed a lot of potential. Granted, it’s still young and under development, but also already quite efficient and suitable for real-world tasks demanding high speed and concurrency. It is implemented in C, but Ola Bini started to design a similar language called <a href="http://kenai.com/projects/ioke/">Ioke</a> for the Java Virtual Machine.</p> +<p><a href="http://iolanguage.com/">Io</a> is a relatively new programming language by Steve Dekorte which recently + surfaced from Google's oblivion (if you tried googling for it a few months ago, you couldn't event find + its home page) thanks to a short vut stimulating <a + href="http://hackety.org/2008/01/05/ioHasAVeryCleanMirror.html">article</a> by <a + href="http://whytheluckystiff.net/">_why</a>. It doesn't have the best name for a programming language, + that's for sure, but it's definitely a breath of fresh air in terms of the way it works.</p> +<p>Its unusual, minimalist and yet elegant and powerful syntax reminds of Smalltalk, but the language goes far beyond + that. Io is an object-oriented, prototype-based, message-based and fully-reflective programming language. This means + that you use messages like in Smalltalk, you create objects like in Javascript and every bit of your code can be + inspected and passed around as you see fit.</p> +<p>If you think Ruby allows fancy (and potentially dirty) tricks like metaprogramming and monkey-patching, Io takes this + to a whole different level, imposing virtually no limitation to the programmer. What's truly amazing is that its + grammar and syntax are so minimal that you can learn them in literally 10 minutes. After that, you can start + experimenting, first with its extremely small core and then with its extension libraries and bindings.</p> +<p>Io has indeed a lot of potential. Granted, it's still young and under development, but also already quite + efficient and suitable for real-world tasks demanding high speed and concurrency. It is implemented in C, but Ola Bini + started to design a similar language called <a href="http://kenai.com/projects/ioke/">Ioke</a> for the Java Virtual + Machine.</p> <h4>To get you started…</h4> <ul> <li><a href="http://iolanguage.com/">Official Io Web Site</a></li>@@ -84,35 +146,57 @@ <li><a href="http://tech.groups.yahoo.com/group/iolanguage/">Io user group</a></li>
<li><a href="http://hackety.org/2008/01/05/ioHasAVeryCleanMirror.html">Io has a very clean mirror</a></li> <li><a href="http://iota.flowsnake.org/">Io Notes</a></li> <li><a href="http://wiki.type-z.org/index.php/Io/IoLanguage">Io Language Notes</a></li> - <li><a href="http://ozone.wordpress.com/2006/03/15/blame-it-on-io/">Blame it on Io! A slow-paced introduction to the Io language</a></li> + <li><a href="http://ozone.wordpress.com/2006/03/15/blame-it-on-io/">Blame it on Io! A slow-paced introduction to the + Io language</a></li> <li><a href="http://en.wikibooks.org/wiki/Programming:Io">Io Wikibook</a></li> </ul> <h3 id="plt-scheme"><span class="caps">PLT</span> Scheme</h3> -<p>I stumbled upon the <a href="http://plt-scheme.org/"><span class="caps">PLT</span> Scheme web site</a> while browsing for different Lisp flavors about a year ago. At the time, I was determined to learn the rudiments of Lisp and I started reading a few articles and books on this old and yet still popular language.<br /> -Although I was originally put off by certain Common Lisp literature, which dismissed Scheme as an almost-heretic attempt to revitalize an venerable language, I soon found out that Scheme – and <span class="caps">PLT</span> Scheme in particular – is definitely worthy of attention and interest.</p> -<p>Being a technical writer, I immediately became fond of the <a href="http://docs.plt-scheme.org/guide/"><span class="caps">PLT</span> Scheme Guide</a>, one of the clearest and most well-organized examples of documentation available for a programming language I’ve ever come across.<br /> -The manual is exquisitely crafted as a Getting Started Manual and a Reference Book at the same time, though remaining pleasant to read sequentially: a rare trait in technical documentation. Best of all, it’s free: you simply have no real excuse not to read it.</p> -<p>Besides its excellent documentation, <span class="caps">PLT</span> Scheme feels like a fresh and modern implementation of one of the two most important dialects of Lisp. It’s cross-platform, it has an extensive <a href="http://planet.plt-scheme.org/">collection of packages</a> and a very active community behind it. <br /> -After my first attempt to learn Haskell, I felt compelled to try out <span class="caps">PLT</span> Scheme and it immediately felt much easier and more user friendly to learn, partly because of <a href="http://download.plt-scheme.org/drscheme/">DrScheme</a> a dedicated <span class="caps">IDE</span>/learning tool optimized to get you started and feel comfortable with the language.<br /> -Caveats? None, unless you have an adversion for parenthesis, that is.</p> +<p>I stumbled upon the <a href="http://plt-scheme.org/"><span class="caps">PLT</span> Scheme web site</a> while browsing + for different Lisp flavors about a year ago. At the time, I was determined to learn the rudiments of Lisp and I + started reading a few articles and books on this old and yet still popular language.<br /> + Although I was originally put off by certain Common Lisp literature, which dismissed Scheme as an almost-heretic + attempt to revitalize an venerable language, I soon found out that Scheme – and <span class="caps">PLT</span> + Scheme in particular – is definitely worthy of attention and interest.</p> +<p>Being a technical writer, I immediately became fond of the <a href="http://docs.plt-scheme.org/guide/"><span + class="caps">PLT</span> Scheme Guide</a>, one of the clearest and most well-organized examples of documentation + available for a programming language I've ever come across.<br /> + The manual is exquisitely crafted as a Getting Started Manual and a Reference Book at the same time, though remaining + pleasant to read sequentially: a rare trait in technical documentation. Best of all, it's free: you simply have + no real excuse not to read it.</p> +<p>Besides its excellent documentation, <span class="caps">PLT</span> Scheme feels like a fresh and modern + implementation of one of the two most important dialects of Lisp. It's cross-platform, it has an extensive <a + href="http://planet.plt-scheme.org/">collection of packages</a> and a very active community behind it. <br /> + After my first attempt to learn Haskell, I felt compelled to try out <span class="caps">PLT</span> Scheme and it + immediately felt much easier and more user friendly to learn, partly because of <a + href="http://download.plt-scheme.org/drscheme/">DrScheme</a> a dedicated <span class="caps">IDE</span>/learning tool + optimized to get you started and feel comfortable with the language.<br /> + Caveats? None, unless you have an adversion for parenthesis, that is.</p> <h4>To get you started…</h4> <ul> <li><a href="http://plt-scheme.org/">Official <span class="caps">PLT</span> Scheme Web Site</a></li> <li><a href="http://docs.plt-scheme.org/guide/index.html"><span class="caps">PLT</span> Scheme Guide</a></li> <li><a href="http://planet.plt-scheme.org/">PLaneT</a></li> - <li><a href="http://docs.plt-scheme.org/quick/">Quick: An Introduction to <span class="caps">PLT</span> Scheme with Pictures</a></li> - <li><a href="http://docs.plt-scheme.org/more/">More: Systems Programming with <span class="caps">PLT</span> Scheme</a></li> + <li><a href="http://docs.plt-scheme.org/quick/">Quick: An Introduction to <span class="caps">PLT</span> Scheme with + Pictures</a></li> + <li><a href="http://docs.plt-scheme.org/more/">More: Systems Programming with <span class="caps">PLT</span> Scheme</a> + </li> </ul> <h3 id="clojure">Clojure</h3> -<p><a href="http://clojure.org/">Clojure</a> is the most recent and notable attempt to bring Lisp back to life and ready to face the challenges posed to IT systems by the new century: concurrency and scalability. Because it runs on the Java Virtual Machine, you also get Java interoperability for free, in a more Lispy flavour. Although I’m a bit reluctant to deal with anything related to Java nowadays, Clojure’s approach makes it more appealing.</p> +<p><a href="http://clojure.org/">Clojure</a> is the most recent and notable attempt to bring Lisp back to life and ready + to face the challenges posed to IT systems by the new century: concurrency and scalability. Because it runs on the + Java Virtual Machine, you also get Java interoperability for free, in a more Lispy flavour. Although I'm a bit + reluctant to deal with anything related to Java nowadays, Clojure's approach makes it more appealing.</p> <p>Unlike other Lisps (and Schemes) you may have encountered before, Clojure comes with some interesting additions:</p> <ul> <li><a href="http://clojure.org/multimethods">Multimethods</a></li> <li><a href="http://clojure.org/agents">Agents asynchronous actions</a></li> - <li>Some interestings <a href="http://clojure.org/special_forms">special forms</a></li> - <li>Many pre-built <a href="http://clojure.org/data_structures">data structures</a>, like Vectors, Maps, Sets, Collections, …</li> + <li>Some interesting <a href="http://clojure.org/special_forms">special forms</a></li> + <li>Many pre-built <a href="http://clojure.org/data_structures">data structures</a>, like Vectors, Maps, Sets, + Collections, …</li> </ul> -<p>Despite all this, Rich Hickey became increasingly popular both in the Lisp and Java world for creating such an interesting and well-designed language. Unlike with many new (and old) programming languages, I have yet to find a single blog post or article which is seriously criticizing Clojure in any way.</p> +<p>Despite all this, Rich Hickey became increasingly popular both in the Lisp and Java world for creating such an + interesting and well-designed language. Unlike with many new (and old) programming languages, I have yet to find a + single blog post or article which is seriously criticizing Clojure in any way.</p> <h4>To get you started…</h4> <ul> <li><a href="http://clojure.org">Official Clojure Web Site</a></li>@@ -123,51 +207,88 @@ <li><a href="http://groups.google.com/group/clojure/msg/f038decc18c7da37">My first look at Clojure</a></li>
<li><a href="http://enclojure.net/Index.html">Enclojure</a></li> </ul> <h3 id="squeak">Squeak</h3> -<p><a href="http://www.squeak.org/">Squeak</a> has become one of the most popular Smalltalk implementations available. It has been used in some very interesting projects:</p> +<p><a href="http://www.squeak.org/">Squeak</a> has become one of the most popular Smalltalk implementations available. + It has been used in some very interesting projects:</p> <ul> - <li><a href="http://wiki.laptop.org/go/Smalltalk_Development_on_XO">EToys</a>, a kids-oriented but powerful development environment built in Squeak, was included as part of the educational sofware suite of the <a href="http://www.laptop.org"><span class="caps">OLPC</span></a>.</li> + <li><a href="http://wiki.laptop.org/go/Smalltalk_Development_on_XO">EToys</a>, a kids-oriented but powerful + development environment built in Squeak, was included as part of the educational sofware suite of the <a + href="http://www.laptop.org"><span class="caps">OLPC</span></a>.</li> <li><a href="http://www.seaside.st/">Seaside</a> is a modern and very productive web framework running on Squeak.</li> - <li><a href="http://www.croquetproject.org/index.php/Main_Page">Croquet</a> is a development solution to build complex, multi-user virtual worlds.</li> + <li><a href="http://www.croquetproject.org/index.php/Main_Page">Croquet</a> is a development solution to build + complex, multi-user virtual worlds.</li> </ul> -<p>If you ask <a href="http://www.stonehenge.com/merlyn/">Randal Schwartz</a>, he’ll explain you <a href="http://www.infoq.com/articles/smalltalk-comeback-schwartz">why</a> Squeak and Smalltalk are at least worth a look. Personally, while I’m attracted by Smalltalk’s unique approach to programming and its friendly syntax, I am still a bit overwhelmed by the way it works. <br /> -Squeak, and Smalltalk in general, runs inside (literally) a virtual machine written in Squeak itself. This means that:</p> +<p>If you ask <a href="http://www.stonehenge.com/merlyn/">Randal Schwartz</a>, he'll explain you <a + href="http://www.infoq.com/articles/smalltalk-comeback-schwartz">why</a> Squeak and Smalltalk are at least worth a + look. Personally, while I'm attracted by Smalltalk's unique approach to programming and its friendly + syntax, I am still a bit overwhelmed by the way it works. <br /> + Squeak, and Smalltalk in general, runs inside (literally) a virtual machine written in Squeak itself. This means that: +</p> <ul> <li>You write your code inside Squeak</li> <li>You debug, inspect and interact your code inside squeak</li> <li>You run your code inside Squeak</li> <li>You can install Squeak on virtually any platform, including mobile phones, fairly easily</li> </ul> -<p>Everything lives inside Squeak. It’s very weird to picture this without actually trying it, so I suggest you <a href="http://www.squeak.org/Download/">download it</a> and give it a try: it will definitely be an unusual but intriguing experience.</p> -<p>Smalltalk takes programming to a whole different level, which is simply unimaginable for other languages. In return, it asks you to fully embrace the Smalltalk way of doing things, according to which external text editors, external version control systems and other common tools familiar to traditional programmers simply loose their purpose.</p> +<p>Everything lives inside Squeak. It's very weird to picture this without actually trying it, so I suggest you <a + href="http://www.squeak.org/Download/">download it</a> and give it a try: it will definitely be an unusual but + intriguing experience.</p> +<p>Smalltalk takes programming to a whole different level, which is simply unimaginable for other languages. In return, + it asks you to fully embrace the Smalltalk way of doing things, according to which external text editors, external + version control systems and other common tools familiar to traditional programmers simply loose their purpose.</p> <h4>To get you started…</h4> <ul> <li><a href="http://www.squeak.org/">Official Squeak Web Site</a></li> <li><a href="http://squeakbyexample.org/">Squeak by Example</a></li> <li><a href="http://www.squeakland.org/">SqueakLand</a></li> - <li><a href="http://www.infoq.com/articles/smalltalk-comeback-schwartz">Ruby’s Roots: Smalltalk Comeback and Randal Schwartz on Smalltalk</a></li> + <li><a href="http://www.infoq.com/articles/smalltalk-comeback-schwartz">Ruby's Roots: Smalltalk Comeback and + Randal Schwartz on Smalltalk</a></li> <li><a href="http://twit.tv/floss29"><span class="caps">FLOSS</span> Weekly 29: Dan Ingalls</a></li> </ul> <h3 id="ocaml">OCaml</h3> -<p>Like Smalltalk, <a href="http://caml.inria.fr/">OCaml</a> has been getting more attention recently than in the past. Sure, not everyone is planning to learn is these days, but after reading <a href="http://enfranchisedmind.com/blog/2008/04/14/useful-things-about-static-typing/">this article</a> I admit I was eager to give it a proper try.</p> -<p>Despite being statically typed, OCaml offers some of the features which are common in dynamically typed languages like Ruby, such as duck typing, the possibility of creating Domain-Specific Languages and even extending the language syntax with custom operators and constructs.</p> -<p>Additionally, the <a href="http://batteries.forge.ocamlcore.org/">OCaml Batteries Included</a> project was created as an attempt to bundle a standard set of commonly-used library together with the language core. Even if this project is still in alpha stage, it definitely <a href="http://dutherenverseauborddelatable.wordpress.com/2008/11/07/a-taste-of-ocaml-batteries-included/">looks promising</a>.</p> +<p>Like Smalltalk, <a href="http://caml.inria.fr/">OCaml</a> has been getting more attention recently than in the past. + Sure, not everyone is planning to learn is these days, but after reading <a + href="http://enfranchisedmind.com/blog/2008/04/14/useful-things-about-static-typing/">this article</a> I admit I was + eager to give it a proper try.</p> +<p>Despite being statically typed, OCaml offers some of the features which are common in dynamically typed languages + like Ruby, such as duck typing, the possibility of creating Domain-Specific Languages and even extending the language + syntax with custom operators and constructs.</p> +<p>Additionally, the <a href="http://batteries.forge.ocamlcore.org/">OCaml Batteries Included</a> project was created as + an attempt to bundle a standard set of commonly-used library together with the language core. Even if this project is + still in alpha stage, it definitely <a + href="http://dutherenverseauborddelatable.wordpress.com/2008/11/07/a-taste-of-ocaml-batteries-included/">looks + promising</a>.</p> <h4>To get you started…</h4> <ul> <li><a href="http://caml.inria.fr/">Official Caml Web Site</a></li> <li><a href="http://www.ocaml-tutorial.org/">Objective Caml Tutorial</a></li> - <li><a href="http://www.csc.villanova.edu/~dmatusze/resources/ocaml/ocaml.html">A Concise Introduction to Objective Caml</a></li> + <li><a href="http://www.csc.villanova.edu/~dmatusze/resources/ocaml/ocaml.html">A Concise Introduction to Objective + Caml</a></li> <li><a href="http://wiki.cocan.org/">The OCaml Alliance Network</a></li> <li><a href="http://ocamlnews.blogspot.com/">OCaml News</a></li> <li><a href="http://batteries.forge.ocamlcore.org/">OCaml Batteries Included</a></li> </ul> <h3>Factor</h3> -<p><a href="http://factorcode.org/">Factor</a> is to Forth what <a href="http://clojure.org">Clojure</a> is to Common Lisp: a reincarnation of an ancient language in a more modern and practical form. In the specific case, although it borrows from Lisp and Self as well, Factor retains the main characteristics of its ancestor: it’s stack-based, concatenative and has postfix notation.<br /> -While this is enough to put some people off, if you digg deeper you’ll discover that Factor offers all the most important features available in contemporary programming languages: garbage collection, dynamic typing, an object system, … they’re just presented in a very different way:</p> +<p><a href="http://factorcode.org/">Factor</a> is to Forth what <a href="http://clojure.org">Clojure</a> is to Common + Lisp: a reincarnation of an ancient language in a more modern and practical form. In the specific case, although it + borrows from Lisp and Self as well, Factor retains the main characteristics of its ancestor: it's stack-based, + concatenative and has postfix notation.<br /> + While this is enough to put some people off, if you digg deeper you'll discover that Factor offers all the most + important features available in contemporary programming languages: garbage collection, dynamic typing, an object + system, … they're just presented in a very different way:</p> <blockquote> - <p>“Learning Factor is tough. One reason for this is that Factor is very different from other programming languages. Programmers today are used to imperative programming languages where data is stored and passed around in named variables (or function calls, which name their variables). Factor is the opposite of this. A lot of code tends to be written in a functional style, and even more jarringly, variables are rare, only referenced in a small fraction of words. Nobody intends to change any of this; it’s a feature, not a bug!”</p> + <p>“Learning Factor is tough. One reason for this is that Factor is very different from other programming + languages. Programmers today are used to imperative programming languages where data is stored and passed around in + named variables (or function calls, which name their variables). Factor is the opposite of this. A lot of code tends + to be written in a functional style, and even more jarringly, variables are rare, only referenced in a small + fraction of words. Nobody intends to change any of this; it's a feature, not a bug!”</p> </blockquote> -<p style="padding-left:3em;">– Daniel Ehrenberg, <cite><a href="http://useless-factor.blogspot.com/2008/01/learning-factor.html">Learning Factor</a></cite></p> -<p>Like Haskell, Factor demands a completely different programming approach to what you may be used to, but once you get past that, it can be as useful as any other language, if not more. The <a href="http://docs.factorcode.org/content/article-furnace.html">Furnace</a> web framework, which powers the <a href="http://concatenative.org/">Concatenative</a> wiki, is entirely built in Factor and runs on top of a Factor web server.</p> +<p style="padding-left:2rem;">– Daniel Ehrenberg, <cite><a + href="http://useless-factor.blogspot.com/2008/01/learning-factor.html">Learning Factor</a></cite></p> +<p>Like Haskell, Factor demands a completely different programming approach to what you may be used to, but once you get + past that, it can be as useful as any other language, if not more. The <a + href="http://docs.factorcode.org/content/article-furnace.html">Furnace</a> web framework, which powers the <a + href="http://concatenative.org/">Concatenative</a> wiki, is entirely built in Factor and runs on top of a Factor web + server.</p> <h4>To get you started…</h4> <ul> <li><a href="http://factorcode.org/">Official Factor Web Site</a></li>@@ -177,10 +298,20 @@ <li><a href="http://learnfactor.org/">Learn Factor</a></li>
<li><a href="http://planet.factorcode.org/">Planet Factor</a></li> </ul> <h3 id="lua">Lua</h3> -<p><a href="http://www.lua.org/">Lua</a> (“Moon” in Portuguese), is a lightweight and fast scripting language which can be easily embedded in other systems. Compared to the other languages mentioned in this article, it is definitely the less alien of the lot: if you know a tiny bit of C or Java, you’ll be able to understand (and possibly write) 80% of Lua code without reading a single line of its documentation.</p> -<p>Despite its simplicity, Lua is considered a multi-paradigm language supporting imperative, functional and even object-oriented approaches. More specifically, Lua’s <em>tables</em> provide a simple but powerful way to create arrays, hashes and even classes (or better, prototypes). Simple (and multiple) inheritance is achieved through <em>metatables</em>, which allow calls to undefined functions to be <em>transferred</em> to parent tables.</p> -<p>Lua programs are not interpreted in the traditional way: they are compiled to bytecode and then executed in the Lua Virtual Machine. As a result, Lua code tends to be executed much faster than other interpreted languages, so fast that “as fast as Lua” has become a proverbial expression.<br /> -Lua found its niche in embedded applications and games development, basically everywhere there’s the need to provide a fast scripting language which is also very easy to learn and extend with C or other languages.</p> +<p><a href="http://www.lua.org/">Lua</a> (“Moon” in Portuguese), is a lightweight and fast scripting + language which can be easily embedded in other systems. Compared to the other languages mentioned in this article, it + is definitely the less alien of the lot: if you know a tiny bit of C or Java, you'll be able to understand (and + possibly write) 80% of Lua code without reading a single line of its documentation.</p> +<p>Despite its simplicity, Lua is considered a multi-paradigm language supporting imperative, functional and even + object-oriented approaches. More specifically, Lua's <em>tables</em> provide a simple but powerful way to create + arrays, hashes and even classes (or better, prototypes). Simple (and multiple) inheritance is achieved through + <em>metatables</em>, which allow calls to undefined functions to be <em>transferred</em> to parent tables. +</p> +<p>Lua programs are not interpreted in the traditional way: they are compiled to bytecode and then executed in the Lua + Virtual Machine. As a result, Lua code tends to be executed much faster than other interpreted languages, so fast that + “as fast as Lua” has become a proverbial expression.<br /> + Lua found its niche in embedded applications and games development, basically everywhere there's the need to + provide a fast scripting language which is also very easy to learn and extend with C or other languages.</p> <h4>To get you started…</h4> <ul> <li><a href="http://www.lua.org/">Official Lua Web Site</a></li>@@ -190,21 +321,46 @@ <li><a href="http://icculus.org/~theoddone33/lua/">Learning Lua</a></li>
<li><a href="http://lua.gts-stolberg.de/en/index.php?uml=1">Lua for Beginners</a></li> </ul> <h3 id="scala">Scala</h3> -<p>You may not be happy to see <a href="http://www.scala-lang.org/">Scala</a> in this list instead of other very valid and equally powerful languages for the Java Virtual Machine such as <a href="http://groovy.codehaus.org/">Groovy</a>. While there was no doubt on whether Clojure should have been included or not, I was a bit hesitant to include Scala. In the end, I chose to do so simply because Scala fits better in this list than other languages: as you should have noticed by now, I am somehow more inclined to learn functional languages as opposed to their object-oriented counterparts.</p> -<p>Scala is both object oriented and functional. It offers the best of both worlds: classes, traits and mixins which may be familiar to <span class="caps">OOP</span> lovers but also anonymous functions, currying and pattern matching which may please Haskell enthusiasts. Additionally, it’s also compatible with Java: so if you use Java for work, trying out Scala for pleasure is definitely the most logical next step, especially if you want to experiment with functional programming in the meantime.</p> -<p>Compared to learning a fully-functional (no pun intended) language like Haskell, Clojure or <span class="caps">PLT</span> Scheme, learning Scala is definitely easier and will feel less alien.</p> +<p>You may not be happy to see <a href="http://www.scala-lang.org/">Scala</a> in this list instead of other very valid + and equally powerful languages for the Java Virtual Machine such as <a href="http://groovy.codehaus.org/">Groovy</a>. + While there was no doubt on whether Clojure should have been included or not, I was a bit hesitant to include Scala. + In the end, I chose to do so simply because Scala fits better in this list than other languages: as you should have + noticed by now, I am somehow more inclined to learn functional languages as opposed to their object-oriented + counterparts.</p> +<p>Scala is both object oriented and functional. It offers the best of both worlds: classes, traits and mixins which may + be familiar to <span class="caps">OOP</span> lovers but also anonymous functions, currying and pattern matching which + may please Haskell enthusiasts. Additionally, it's also compatible with Java: so if you use Java for work, + trying out Scala for pleasure is definitely the most logical next step, especially if you want to experiment with + functional programming in the meantime.</p> +<p>Compared to learning a fully-functional (no pun intended) language like Haskell, Clojure or <span + class="caps">PLT</span> Scheme, learning Scala is definitely easier and will feel less alien.</p> <h4>To get you started…</h4> <ul> <li><a href="http://www.scala-lang.org/">Official Scala Web Site</a></li> <li><a href="http://blogs.zdnet.com/Burnette/?p=690">The Case for Scala</a></li> <li><a href="http://scala.sygneca.com/">Scala Wiki</a></li> <li><a href="http://grok-code.com/75/learning-scala-with-project-euler/">Learning Scala with Project Euler</a></li> - <li><a href="http://www.codecommit.com/blog/scala/roundup-scala-for-java-refugees">Roundup: Scala for Java Refugees</a></li> + <li><a href="http://www.codecommit.com/blog/scala/roundup-scala-for-java-refugees">Roundup: Scala for Java + Refugees</a></li> </ul> <h3>Epilogue</h3> -<p>There are so many interesting programming language out there that it’s very hard to keep track of all of them. I hope this list can aid you in the right direction, whichever it may be. <br /> -Some people may debate over the very essence of this article: why <em>choosing</em> a programming language? Why spending time and energy in a task which may lead to a lot of confusion in your mind and lead you nowhere? What’s the purpose of learning something which may feel totally alien to you?</p> -<p>A programming language is ultimately just a tool to get your job done. If you have to write an end-user, desktop <span class="caps">GUI</span> application which will always run on Windows and which needs to inteface with Microsoft technologies, you’ll choose C# over Haskell, there’s no doubt about that. Especially if 500 developers in your company already develop in C# and you don’t, as a matter of fact, have a saying on the matter.</p> -<p>But what if you <em>could</em> choose? What if you wanted to develop your own geeky command line application to automate a particular task for yourself, and not because someone else tells you to do so? Would you be willing to experiment with something totally different and potentially difficult just for the sake of learning new things?</p> -<p>If the answer is yes, then you should take a look at this list again. Not now, maybe not this month or this year, but when you feel the time is right, and give one of these languages a shot. It may not end well (so far I attempted to learn Haskell twice, with no luck), but I promise you it will be worthwhile, in the long run. <br /> -If you already mastered some of these languages already, or even all of them, be assured that they’re plenty out there ready to be discovered and open your mind even more. Or, if you prefer, there are a lot of minds out there which may need guidance in learning and discovery. Help them. Write articles, tutorials, books, educate and evangelize: ultimately, that will be your greatest reward.</p> +<p>There are so many interesting programming language out there that it's very hard to keep track of all of them. + I hope this list can aid you in the right direction, whichever it may be. <br /> + Some people may debate over the very essence of this article: why <em>choosing</em> a programming language? Why + spending time and energy in a task which may lead to a lot of confusion in your mind and lead you nowhere? + What's the purpose of learning something which may feel totally alien to you?</p> +<p>A programming language is ultimately just a tool to get your job done. If you have to write an end-user, desktop + <span class="caps">GUI</span> application which will always run on Windows and which needs to inteface with Microsoft + technologies, you'll choose C# over Haskell, there's no doubt about that. Especially if 500 developers in + your company already develop in C# and you don't, as a matter of fact, have a saying on the matter. +</p> +<p>But what if you <em>could</em> choose? What if you wanted to develop your own geeky command line application to + automate a particular task for yourself, and not because someone else tells you to do so? Would you be willing to + experiment with something totally different and potentially difficult just for the sake of learning new things?</p> +<p>If the answer is yes, then you should take a look at this list again. Not now, maybe not this month or this year, but + when you feel the time is right, and give one of these languages a shot. It may not end well (so far I attempted to + learn Haskell twice, with no luck), but I promise you it will be worthwhile, in the long run. <br /> + If you already mastered some of these languages already, or even all of them, be assured that they're plenty out + there ready to be discovered and open your mind even more. Or, if you prefer, there are a lot of minds out there which + may need guidance in learning and discovery. Help them. Write articles, tutorials, books, educate and evangelize: + ultimately, that will be your greatest reward.</p>
@@ -7,78 +7,169 @@ timestamp: 1188988800
tags: "ruby" ----- <h3>Preamble</h3> -<p>I discovered Ruby fairly recently, through the excellent Ruby on Rails framework<sup class="footnote" id="fnr1"><a href="#fn1">1</a></sup>. Although I don’t consider myself a Ruby expert by any means, I read the PickAxe<sup class="footnote" id="fnr2"><a href="#fn2">2</a></sup>, I’ve coded a few utilities for my personal use in Ruby and I’m currently developing with Rails during my free time.</p> -<p>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 <span class="caps">PHP</span> 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 code<sup class="footnote" id="fnr3"><a href="#fn3">3</a></sup>, and here I am, heaping praise upon it.</p> -<p>There are plenty<sup class="footnote" id="fnr4"><a href="#fn4">4</a></sup> 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.</p> -<p>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…</p> +<p>I discovered Ruby fairly recently, through the excellent Ruby on Rails framework<sup class="footnote" id="fnr1"><a + href="#fn1">1</a></sup>. Although I don't consider myself a Ruby expert by any means, I read the PickAxe<sup + class="footnote" id="fnr2"><a href="#fn2">2</a></sup>, I've coded a few utilities for my personal use in Ruby + and I'm currently developing with Rails during my free time.</p> +<p>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 <span class="caps">PHP</span> 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 code<sup + class="footnote" id="fnr3"><a href="#fn3">3</a></sup>, and here I am, heaping praise upon it.</p> +<p>There are plenty<sup class="footnote" id="fnr4"><a href="#fn4">4</a></sup> 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.</p> +<p>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…</p> <p>You have been warned.<br /> -h3. Why learn Ruby?</p> + h3. Why learn Ruby?</p> <h4>#1 – You get all the treats without the tricks</h4> -<p>Ruby borrows from all the best programming languages out there, from smalltalk to Java, Perl to Python<sup class="footnote" id="fnr5"><a href="#fn5">5</a></sup>. Basically, here’s the features and functionalities Ruby gives you which you may have seen elsewhere:</p> +<p>Ruby borrows from all the best programming languages out there, from smalltalk to Java, Perl to Python<sup + class="footnote" id="fnr5"><a href="#fn5">5</a></sup>. Basically, here's the features and functionalities Ruby + gives you which you may have seen elsewhere:</p> <ul> - <li><em>Exceptions:</em> Believe it or not, exceptions are one of the most important things to master when developing any kind of application. PHP4 programmers probably won’t know anything about them and they’ll tell you to just print stuff on the screen or use their “extremely advanced” class for error handling. Please, ignore them. Fortunately for all of us, Ruby comes with try/catch (or better, begin/rescue) blocks and a series of predefined, extensible Exceptions to handle errors properly.</li> - <li><em>Namespaces:</em> Ruby modules make excellent and easy-to-use namespaces, for the joy of Java and C++ enthusiasts.</li> - <li><em>Built-in Regular Expressions:</em> For all the Perl monkeys, you can put something between slashes and it will become a regular expression, ready to be matched with a =~ operator.</li> + <li><em>Exceptions:</em> Believe it or not, exceptions are one of the most important things to master when + developing any kind of application. PHP4 programmers probably won't know anything about them and they'll tell + you to just print stuff on the screen or use their “extremely advanced” class for error handling. + Please, ignore them. Fortunately for all of us, Ruby comes with try/catch (or better, begin/rescue) blocks and a + series of predefined, extensible Exceptions to handle errors properly.</li> + <li><em>Namespaces:</em> Ruby modules make excellent and easy-to-use namespaces, for the joy of Java and C++ + enthusiasts.</li> + <li><em>Built-in Regular Expressions:</em> For all the Perl monkeys, you can put something between slashes and it + will become a regular expression, ready to be matched with a =~ operator.</li> <li><em>Overloadable operators:</em> Ruby lets you define operators like +, -, etc., for any of your classes.</li> - <li><em>Packages:</em> Called “gems”, they really are solid and precious indeed…and they work! Packages support dependencies, and they can be either cross-platform or platform-dependent.</li> - <li><em>Interactive Shell:</em> the Interactive Ruby Shell can be used to test Ruby code instantly, similar to the Python console.</li> - <li><em>Unit Testing</em>: The <code>Test::Unit</code> module makes things so easy that you really don’t have any excuse not to test your code.</li> + <li><em>Packages:</em> Called “gems”, they really are solid and precious indeed…and they work! + Packages support dependencies, and they can be either cross-platform or platform-dependent.</li> + <li><em>Interactive Shell:</em> the Interactive Ruby Shell can be used to test Ruby code instantly, similar to the + Python console.</li> + <li><em>Unit Testing</em>: The <code>Test::Unit</code> module makes things so easy that you really don't have any + excuse not to test your code.</li> </ul> -<h4>#2 – You’ll love the little things</h4> -<p>Ruby is elegant. Why’s that? Because it doesn’t focus on making code <em>concise</em> so much as <em>readable and usable</em>. Here are some tips to help you out:</p> +<h4>#2 – You'll love the little things</h4> +<p>Ruby is elegant. Why's that? Because it doesn't focus on making code <em>concise</em> so much as <em>readable and + usable</em>. Here are some tips to help you out:</p> <ul> - <li>You can use both <em>if</em> and <em>unless</em> in condition statements. Of course you can just use <em>if</em> and negate the condition, but <em>unless</em> can be less error-prone at times. Furthermore, you can use both operators as conditional modifiers, after a statement rather than before: <em>order.new unless order.exists</em>.</li> - <li>You can use question marks and exclamation marks at the end of your methods. Although no convention is enforced, ? is added if the method should return true or false, while ! is used to clarify that the method does something forcefully, like destroying a database record, chopping off the last character of a string, etc.</li> - <li>You can use the <em>alias</em> directives to create an alias for a method already defined. In this way you can have an <em>exist</em> and an <em>exists</em> method at no additional cost or repetition.</li> - <li>You can use the <em>attr_reader</em>, <em>attr_writer</em> or <em>attr_accessor</em> directives to automatically generate getter and setter methods for specified class members.</li> - <li>Some naming conventions are enforced for your own sanity: constants, classes and modules are capitalized, methods and members must start with a lowercase letter; global variables are prepended by a $, instance variables by <code>@</code> and class variables by <code>@@</code>; etc.</li> - <li>Parentheses are optional in method calls. You can therefore write <em>File.open(“/home/h3rald/test.txt”)</em> or simply <em>File.open “/home/h3rald/test.txt”</em>, which is particularly handy with methods that don’t take parameters.</li> + <li>You can use both <em>if</em> and <em>unless</em> in condition statements. Of course you can just use <em>if</em> + and negate the condition, but <em>unless</em> can be less error-prone at times. Furthermore, you can use both + operators as conditional modifiers, after a statement rather than before: <em>order.new unless + order.exists</em>.</li> + <li>You can use question marks and exclamation marks at the end of your methods. Although no convention is enforced, + ? is added if the method should return true or false, while ! is used to clarify that the method does something + forcefully, like destroying a database record, chopping off the last character of a string, etc.</li> + <li>You can use the <em>alias</em> directives to create an alias for a method already defined. In this way you can + have an <em>exist</em> and an <em>exists</em> method at no additional cost or repetition.</li> + <li>You can use the <em>attr_reader</em>, <em>attr_writer</em> or <em>attr_accessor</em> directives to automatically + generate getter and setter methods for specified class members.</li> + <li>Some naming conventions are enforced for your own sanity: constants, classes and modules are capitalized, + methods and members must start with a lowercase letter; global variables are prepended by a $, instance + variables by <code>@</code> and class variables by <code>@@</code>; etc.</li> + <li>Parentheses are optional in method calls. You can therefore write + <em>File.open(“/home/h3rald/test.txt”)</em> or simply <em>File.open + “/home/h3rald/test.txt”</em>, which is particularly handy with methods that don't take + parameters. + </li> </ul> -<h4>#3 – You won’t ever use a semicolon again</h4> -<p>You want to add another instruction? Just go on the next line. Hit <return> and you’re done. In Ruby, like in Python, newlines matter and you don’t have to remember to end your instructions with a semicolon. Unfortunately this means that you won’t be able to write your whole program in a single line of code, like the C++ folks… that’s too bad, isn’t it?</p> -<p><strong><span class="caps">UPDATE</span>:</strong> Indeed you <span class="caps">CAN</span> use semicolons as line delimiters in Ruby as well, the point, however, is that you don’t have to.</p> +<h4>#3 – You won't ever use a semicolon again</h4> +<p>You want to add another instruction? Just go on the next line. Hit <return> and you're done. In Ruby, like in Python, + newlines matter and you don't have to remember to end your instructions with a semicolon. Unfortunately this + means that you won't be able to write your whole program in a single line of code, like the C++ folks… + that's too bad, isn't it?</p> +<p><strong><span class="caps">UPDATE</span>:</strong> Indeed you <span class="caps">CAN</span> use semicolons as line + delimiters in Ruby as well, the point, however, is that you don't have to.</p> <h4>#4 – Everything is an object, as it should be</h4> <p>When I studied Java they taught me that everything is an object.</p> <p><em>- “So 14 and 374346.678 are objects then?”</em><br /> -<em>- “No, silly, they are numbers!”</em></p> -<p>In Ruby, numbers, strings, Boolean values <em>et al</em> are objects. Really. This means you’ll write things like:</p> -<div class='ruby'><pre><code>"YOU SHOULDN'T ALWAYS USE CAPITALS".downcase #=> outputs "you shouldn't always use capitals" --12.abs #=> outputs 12</code></pre></div><p>instead of something like:</p> -<div class='ruby'><pre><code># PHP Code + <em>- “No, silly, they are numbers!”</em> +</p> +<p>In Ruby, numbers, strings, Boolean values <em>et al</em> are objects. Really. This means you'll write things like: +</p> +<div class='ruby'> + <pre><code class="ruby">"YOU SHOULDN'T ALWAYS USE CAPITALS".downcase #=> outputs "you shouldn't always use capitals" +-12.abs #=> outputs 12</code></pre> +</div> +<p>instead of something like:</p> +<div class='php'> + <pre><code class="php"># PHP Code strtolower("YOU SHOULDN'T ALWAYS USE CAPITALS"); -abs(-12);</code></pre></div><p>You save time, you save brackets, and it just makes more sense.</p> +abs(-12);</code></pre> +</div> +<p>You save time, you save brackets, and it just makes more sense.</p> <h4>#5 – Everything has a value</h4> -<p>Or “you’ll hardly ever use return to return values”. In a nutshell, all Ruby instructions return a value, even variable assignments, so you don’t really need to use the “return” keyword at the end of a method; the value of the last assignment or <em>any</em> other expression will always be returned.</p> +<p>Or “you'll hardly ever use return to return values”. In a nutshell, all Ruby instructions return a value, + even variable assignments, so you don't really need to use the “return” keyword at the end of a method; + the value of the last assignment or <em>any</em> other expression will always be returned.</p> <h4>#6 – You can alter your environment in any way you like</h4> -<p>The first time I saw this, it really freaked me out. Imagine a typical programming situation: you start using a system class or a class written by someone else and you notice that you’d like to have an additional method. At this point you have a few ways to handle this in ordinary programming languages:<br /> -s</p> +<p>The first time I saw this, it really freaked me out. Imagine a typical programming situation: you start using a + system class or a class written by someone else and you notice that you'd like to have an additional method. At this + point you have a few ways to handle this in ordinary programming languages:<br /> + s</p> <ul> - <li>You modify the developer’s source code, if you have access to it. This is normally not a good idea, and you shouldn’t do it.</li> - <li>You derive a new class from the original one, and you implement the new method there. This is a good idea, but it could be overkill for just one method, and you may have to update some of your other code accordingly.</li> - <li>You give up, and you just create the method outside the class, somewhere else. This can be done, but it is not very elegant and goes against Object Oriented Programming.</li> + <li>You modify the developer's source code, if you have access to it. This is normally not a good idea, and you + shouldn't do it.</li> + <li>You derive a new class from the original one, and you implement the new method there. This is a good idea, but + it could be overkill for just one method, and you may have to update some of your other code accordingly.</li> + <li>You give up, and you just create the method outside the class, somewhere else. This can be done, but it is not + very elegant and goes against Object Oriented Programming.</li> </ul> -<p>In Ruby, you can simply add the method to the original class, without having to hack the original source code, and even for system classes! You want to have a method to automatically convert a measurement from meters to feet? You can simply extend the Numeric class as follows:</p> -<div class='ruby'><pre><code>class Numeric +<p>In Ruby, you can simply add the method to the original class, without having to hack the original source code, and + even for system classes! You want to have a method to automatically convert a measurement from meters to feet? You + can simply extend the Numeric class as follows:</p> +<div class='ruby'> + <pre><code class="ruby">class Numeric def feet self*3.2808399 end -end</code></pre></div><p>From now on, all your numbers will have a <em>feet</em> method, which can be used just like any other method that was originally defined for the class:</p> -<div class='ruby'><pre><code>5.feet #=> Returns 16.4041995</code></pre></div><p>Basically, Ruby classes are never closed and can be modified at any time from anywhere. Use with care, of course.</p> -<h4>#7 You won’t get unicorns from birds and horses, but you’ll still get donkeys if you want</h4> -<p>I distinctly remember my C++ professor at university using animals to illustrate key object-oriented concepts like classes and inheritance. Weird things came in when she tried to explain multiple inheritance to inherit a class Pegasus from a class Bird and a class Horse. It had methods like “fly” and “neigh”… crazy stuff, anyhow, Ruby does not offer multiple inheritance. <br /> -This seems to be the trend, after all, and of course it’s up to tastes. I don’t quite fancy multiple inheritances, as they may lead to unpredictable things. Nevertheless, it is possible to create “mix-ins” using Ruby modules, so that members and methods defined in a module will be added to a particular class if the module is included in it.</p> -<h4>#8 You don’t really need <span class="caps">XML</span></h4> -<p><span class="caps">XML</span> is a nice, general-purpose markup language which can be processed by every programming language and used everywhere. Unfortunately, it can also be quite verbose to write, very difficult to parse, and let’s be honest, it’s not really readable at first glance in many cases, unlike the following code snippet:</p> -<div class='yaml'><pre><code>regexp: !ruby/regexp /a-zA-Z/ +end</code></pre> +</div> +<p>From now on, all your numbers will have a <em>feet</em> method, which can be used just like any other method that was + originally defined for the class:</p> +<div class='ruby'> + <pre><code class="ruby">5.feet #=> Returns 16.4041995</code></pre> +</div> +<p>Basically, Ruby classes are never closed and can be modified at any time from anywhere. Use with care, of course.</p> +<h4>#7 You won't get unicorns from birds and horses, but you'll still get donkeys if you want</h4> +<p>I distinctly remember my C++ professor at university using animals to illustrate key object-oriented concepts like + classes and inheritance. Weird things came in when she tried to explain multiple inheritance to inherit a class + Pegasus from a class Bird and a class Horse. It had methods like “fly” and “neigh”… + crazy stuff, anyhow, Ruby does not offer multiple inheritance. <br /> + This seems to be the trend, after all, and of course it's up to tastes. I don't quite fancy multiple inheritances, + as they may lead to unpredictable things. Nevertheless, it is possible to create “mix-ins” using Ruby + modules, so that members and methods defined in a module will be added to a particular class if the module is + included in it.</p> +<h4>#8 You don't really need <span class="caps">XML</span></h4> +<p><span class="caps">XML</span> is a nice, general-purpose markup language which can be processed by every programming + language and used everywhere. Unfortunately, it can also be quite verbose to write, very difficult to parse, and + let's be honest, it's not really readable at first glance in many cases, unlike the following code snippet:</p> +<div class='yaml'> + <pre><code class="yaml">regexp: !ruby/regexp /a-zA-Z/ number: 4.7 -string: a string</code></pre></div><p>This is definitely easier and more readable than <span class="caps">XML</span>, isn’t it? Welcome to <span class="caps">YAML</span>, Ruby’s favorite markup (but not really<sup class="footnote" id="fnr6"><a href="#fn6">6</a></sup>) language, which can be used to represent any Ruby object in a simple, clear and yet complete way. <br /> -Ruby <em>can</em> parse <span class="caps">XML</span>, but YAML’s simplicity convinced a lot of developers to use it as an alternative to <span class="caps">XML</span> for configuration files, for example (Rails does this).<br /> -The code snipped presented before was obtained by executing the following line of Ruby code:</p> -<div class='ruby'><pre><code>{"string" => "a string", "number" => 4.7, "regexp" => /a-zA-Z/}.to_yaml</code></pre></div><p>The <em>to_yaml</em> method is defined for the Object class, which is the father of all of the other classes, and thus it is available in all Ruby objects. This means that you can convert anything into <span class="caps">YAML</span> <em>and</em> re-convert anything back into Ruby objects, with total transparency for the developer. So much for parsing, huh?</p> +string: a string</code></pre> +</div> +<p>This is definitely easier and more readable than <span class="caps">XML</span>, isn't it? Welcome to <span + class="caps">YAML</span>, Ruby's favorite markup (but not really<sup class="footnote" id="fnr6"><a + href="#fn6">6</a></sup>) language, which can be used to represent any Ruby object in a simple, clear and yet + complete way. <br /> + Ruby <em>can</em> parse <span class="caps">XML</span>, but YAML's simplicity convinced a lot of developers to use it + as an alternative to <span class="caps">XML</span> for configuration files, for example (Rails does this).<br /> + The code snipped presented before was obtained by executing the following line of Ruby code:</p> +<div class='ruby'> + <pre><code class="ruby">{"string" => "a string", "number" => 4.7, "regexp" => /a-zA-Z/}.to_yaml</code></pre> +</div> +<p>The <em>to_yaml</em> method is defined for the Object class, which is the father of all of the other classes, and + thus it is available in all Ruby objects. This means that you can convert anything into <span + class="caps">YAML</span> <em>and</em> re-convert anything back into Ruby objects, with total transparency for + the developer. So much for parsing, huh?</p> <h4>#9 Lambda is much more than a Greek letter</h4> -<p>Ruby borrows some magic from Lisp and Perl with Proc objects and blocks. Procs are _"blocks of code that have been bound to a set of local variables. Once bound, the code may be called in different contexts and still access those variables." _<sup class="footnote" id="fnr7"><a href="#fn7">7</a></sup> Consider the following:</p> -<div class='ruby'><pre><code>def gen_times(factor) +<p>Ruby borrows some magic from Lisp and Perl with Proc objects and blocks. Procs are _"blocks of code that have + been bound to a set of local variables. Once bound, the code may be called in different contexts and still access + those variables." _<sup class="footnote" id="fnr7"><a href="#fn7">7</a></sup> Consider the following:</p> +<div class='ruby'> + <pre><code class="ruby">def gen_times(factor) return Proc.new {|n| n*factor } end@@ -87,21 +178,52 @@ times5 = gen_times(5)
times3.call(12) #=> 36 times5.call(5) #=> 25 - times3.call(times5.call(4)) #=> 60</code></pre></div><p>I could have used the <em>lambda</em> method instead of <em>Proc.new</em> and gotten the same result. This should ring a bell for people who know Perl and Python (or Lisp)<sup class="footnote" id="fnr8"><a href="#fn8">8</a></sup>. You can do the same thing in <span class="caps">PHP</span> as well, but most people don’t really use the function.<sup class="footnote" id="fnr9"><a href="#fn9">9</a></sup></p> -<p>Additionally, Ruby makes extensive use of blocks, sort of “unborn Procs”<sup class="footnote" id="fnr10"><a href="#fn10">10</a></sup>, for example, to iterate the contents of an object and execute some code, like the <em>each</em> method available for the Array class:</p> -<div class='ruby'><pre><code>[1, 2, 4, 6, 8].each {|c| puts c*2} #=> outputs each element multiplied by 2 in a new line.</code></pre></div><p>Should the code in the block exceed one line, you’re advised (but not required) to include the block within <em>do … end</em> instead of using braces. Ruby folks don’t like braces much, really.</p> + times3.call(times5.call(4)) #=> 60</code></pre> +</div> +<p>I could have used the <em>lambda</em> method instead of <em>Proc.new</em> and gotten the same result. This should + ring a bell for people who know Perl and Python (or Lisp)<sup class="footnote" id="fnr8"><a href="#fn8">8</a></sup>. + You can do the same thing in <span class="caps">PHP</span> as well, but most people don't really use the + function.<sup class="footnote" id="fnr9"><a href="#fn9">9</a></sup></p> +<p>Additionally, Ruby makes extensive use of blocks, sort of “unborn Procs”<sup class="footnote" + id="fnr10"><a href="#fn10">10</a></sup>, for example, to iterate the contents of an object and execute some + code, like the <em>each</em> method available for the Array class:</p> +<div class='ruby'> + <pre><code class="ruby">[1, 2, 4, 6, 8].each {|c| puts c*2} #=> outputs each element multiplied by 2 in a new line.</code></pre> +</div> +<p>Should the code in the block exceed one line, you're advised (but not required) to include the block within <em>do + … end</em> instead of using braces. Ruby folks don't like braces much, really.</p> <h4>#10 – You can go on Rails</h4> -<p>Last but not least, you can always use Ruby on Rails for developing web applications. Deployment may not be as easy as it is with <span class="caps">PHP</span>, but Rails was built in Ruby because Ruby has features no other language can offer.</p> +<p>Last but not least, you can always use Ruby on Rails for developing web applications. Deployment may not be as easy + as it is with <span class="caps">PHP</span>, but Rails was built in Ruby because Ruby has features no other language + can offer.</p> <h3>Conclusion</h3> -<p>Time’s up. You’ve probably made up your mind about Ruby already, and you are either playing with it already, or you’re totally ignoring it. However, the next time you’re frustrated because your code looks ugly and you think you could have done the same thing with half the code you got, don’t blame me!</p> +<p>Time's up. You've probably made up your mind about Ruby already, and you are either playing with it already, or + you're totally ignoring it. However, the next time you're frustrated because your code looks ugly and you think you + could have done the same thing with half the code you got, don't blame me!</p> <h3>Notes</h3> -<p class="footnote" id="fn1"><a href="#fnr1"><sup>1</sup></a> <a href="http://www.rubyonrails.org">Ruby on Rails</a>, <span class="caps">MVC</span> Web Development Framework.</p> -<p class="footnote" id="fn2"><a href="#fnr2"><sup>2</sup></a> <a href="http://pragprog.com/book/ruby/programming-ruby/" title="2nd Ed.">Programming Ruby</a>, by Dave Thomas & others, Pragmatic Programmers, 2004</p> -<p class="footnote" id="fn3"><a href="#fnr3"><sup>3</sup></a> Not entirely correct, but sort of. For more information on Python’s indentation rules and myths, read <a href="http://www.secnetix.de/~olli/Python/block_indentation.hawk">Python: Myths about Indentation</a>.</p> -<p class="footnote" id="fn4"><a href="#fnr4"><sup>4</sup></a> For a list of Ruby tutorials, refer to the <a href="http://www.ruby-lang.org/en/documentation/">Documentation</a> section of the Official Ruby Website.</p> -<p class="footnote" id="fn5"><a href="#fnr5"><sup>5</sup></a> For more information on Ruby, and in particular on the similarities and differences with other languages, refer to <a href="http://www.ruby-lang.org/en/documentation/ruby-from-other-languages/">Ruby from Other Languages</a>.</p> -<p class="footnote" id="fn6"><a href="#fnr6"><sup>6</sup></a> <span class="caps">YAML</span> is Not a Markup Language.</p> -<p class="footnote" id="fn7"><a href="#fnr7"><sup>7</sup></a> Definition and example taken from the official Ruby documentation for class <a href="http://www.ruby-doc.org/core/classes/Proc.html">Proc</a>.</p> -<p class="footnote" id="fn8"><a href="#fnr8"><sup>8</sup></a> For some example on lambda functions in Python, see <a href="http://www.secnetix.de/~olli/Python/lambda_functions.hawk">Python: Lambda Functions</a>.</p> -<p class="footnote" id="fn9"><a href="#fnr9"><sup>9</sup></a> For examples of “lambda functions” in <span class="caps">PHP</span> using create_function(), see <a href="http://www.webmasterworld.com/forum88/7414.htm">this</a>.</p> -<p class="footnote" id="fn10"><a href="#fnr10"><sup>10</sup></a> For more detailed information on Ruby’s Procs, blocks etc. refer to <a href="http://eli.thegreenplace.net/2006/04/18/understanding-ruby-blocks-procs-and-methods">Understanding Ruby blocks, Procs and methods</a>.</p> +<p class="footnote" id="fn1"><a href="#fnr1"><sup>1</sup></a> <a href="http://www.rubyonrails.org">Ruby on Rails</a>, + <span class="caps">MVC</span> Web Development Framework. +</p> +<p class="footnote" id="fn2"><a href="#fnr2"><sup>2</sup></a> <a href="http://pragprog.com/book/ruby/programming-ruby/" + title="2nd Ed.">Programming Ruby</a>, by Dave Thomas & others, Pragmatic Programmers, 2004</p> +<p class="footnote" id="fn3"><a href="#fnr3"><sup>3</sup></a> Not entirely correct, but sort of. For more information on + Python's indentation rules and myths, read <a + href="http://www.secnetix.de/~olli/Python/block_indentation.hawk">Python: Myths about Indentation</a>.</p> +<p class="footnote" id="fn4"><a href="#fnr4"><sup>4</sup></a> For a list of Ruby tutorials, refer to the <a + href="http://www.ruby-lang.org/en/documentation/">Documentation</a> section of the Official Ruby Website.</p> +<p class="footnote" id="fn5"><a href="#fnr5"><sup>5</sup></a> For more information on Ruby, and in particular on the + similarities and differences with other languages, refer to <a + href="http://www.ruby-lang.org/en/documentation/ruby-from-other-languages/">Ruby from Other Languages</a>.</p> +<p class="footnote" id="fn6"><a href="#fnr6"><sup>6</sup></a> <span class="caps">YAML</span> is Not a Markup Language. +</p> +<p class="footnote" id="fn7"><a href="#fnr7"><sup>7</sup></a> Definition and example taken from the official Ruby + documentation for class <a href="http://www.ruby-doc.org/core/classes/Proc.html">Proc</a>.</p> +<p class="footnote" id="fn8"><a href="#fnr8"><sup>8</sup></a> For some example on lambda functions in Python, see <a + href="http://www.secnetix.de/~olli/Python/lambda_functions.hawk">Python: Lambda Functions</a>.</p> +<p class="footnote" id="fn9"><a href="#fnr9"><sup>9</sup></a> For examples of “lambda functions” in <span + class="caps">PHP</span> using create_function(), see <a + href="http://www.webmasterworld.com/forum88/7414.htm">this</a>.</p> +<p class="footnote" id="fn10"><a href="#fnr10"><sup>10</sup></a> For more detailed information on Ruby's Procs, blocks + etc. refer to <a + href="http://eli.thegreenplace.net/2006/04/18/understanding-ruby-blocks-procs-and-methods">Understanding Ruby + blocks, Procs and methods</a>.</p>
@@ -6,22 +6,22 @@ tags: "internet|rant|personal|writing"
----- <p><em>“It has been a while since my last post, sorry about that”</em><br /> I read this sentence (or something along those lines) on many blogs on the Internet, including mine. As a matter of - fact, I actually didn’t write a meaningful post on my blog for a long time and no, probably this is not going + fact, I actually didn't write a meaningful post on my blog for a long time and no, probably this is not going to change that either.</p> <p>Yesterday I started thinking <strong>why</strong> this happens, not only to me but to a lot of other non-professional - bloggers. A professional blogger &emdash; for what I can tell &emdash; is someone like Michael Arrington or Gina + bloggers. A professional blogger — for what I can tell — is someone like Michael Arrington or Gina Trapani: someone who has the luck (or course) to be able to just blog for a living.</p> -<p>I don’t blog for a living: my site is self-sustaining via a few very unobtrusive ads, just that. I have a full +<p>I don't blog for a living: my site is self-sustaining via a few very unobtrusive ads, just that. I have a full time job, and I blog in my spare time about my interests, without even trying to make “proper” money - from my site. There’s nothing wrong with it: I believe there are some other people in my condition, and - that’s quite normal.</p> -<p>That being said, let’s examine the ten most common reasons why I (and you too, maybe) end up not updating my + from my site. There's nothing wrong with it: I believe there are some other people in my condition, and + that's quite normal.</p> +<p>That being said, let's examine the ten most common reasons why I (and you too, maybe) end up not updating my blog, <em>even when I have time to do so</em>.h3. Someone already blogged about it</p> <p>This is very irritating. I am obsessed with original content. I want to write about something other people - <em>never</em> (or hardly ever) wrote about. As a consequence, I often find myself googling the same topic I’m + <em>never</em> (or hardly ever) wrote about. As a consequence, I often find myself googling the same topic I'm planning my blog post on, and I <em>obviously</em> often get quite a few results, too! </p> -<p>I actually wanted to title this very post “The Blogger’s Block”, but I immediately thought of +<p>I actually wanted to title this very post “The Blogger's Block”, but I immediately thought of putting that very title into Google, just to see if someone else already blogged about it. Sure they did! Not original at all, tough luck. <br /> It also happened a few weeks ago: I wanted to write about the current state of tech news sites and Antonio Cangiano@@ -29,36 +29,36 @@ comes up with a similar <a href="http://antoniocangiano.com/2008/05/29/random-thoughts-on-social-sites/">post</a>.
Very interesting indeed, but quite annoying as well!</p> <p>OK scrap that, think about something else…</p> <p>This can potentially go on for days, and the only solution is of course trying not to worry about it, and just write - the damn thing (that’s what I did to write this post).</p> -<h3>I didn’t research enough on the subject</h3> + the damn thing (that's what I did to write this post).</p> +<h3>I didn't research enough on the subject</h3> <p>This happens tipically with reviews, round-ups, etc. Things I actually enjoy writing, but which may be easily subject to (harsh) criticism unless ou do them right. <br /> - I wanted to write a review of the new Treo 750 I bought. I’ve been using for a while, I learnt a few + I wanted to write a review of the new Treo 750 I bought. I've been using for a while, I learnt a few interesting hacks etc. etc. Unfortunately the 3G iPhone came out, so everyone is all hyped up about it. Too bad that I, being Italian and living in Italy, I never actually touched the damn thing!<br /> What has that got to do with my Treo 750? Well, it would be nice to write a review of a Windows Mobile 6 phone - comparing to the upcoming Apple wonder, wouldn’t it?</p> -<p>The solution to this would be trying to limit the scope of your post: screw Apple, let’s just focus on my Treo + comparing to the upcoming Apple wonder, wouldn't it?</p> +<p>The solution to this would be trying to limit the scope of your post: screw Apple, let's just focus on my Treo 750 and on the amazing amount of programming languages I can use on it!</p> <h3>After researching for X days, I realized it was all a waste of time</h3> <p>This happens with big articles. I once thought about writing a comprehensive article about all the possible ways to - deploy a Ruby on Rails web site. Cool, isn’t it? I started researching about all the most esoteric lightweight + deploy a Ruby on Rails web site. Cool, isn't it? I started researching about all the most esoteric lightweight web servers, about JRuby, Glassfish, IronRuby, … A lot of things. And new solutions kept coming up, and with them more and more posts, and then even entire books on the subjects.</p> <p>Very frustrating. I abandoned the whole thing, because there was simply no reason to go on researching: it was all a waste of time.</p> <p>How to fix this? Again, reduce the scope of your article so that you are able to reduce the time you spend - researching about it. Or maybe try to get paid to write it, so that even if there’s plenty of articles about + researching about it. Or maybe try to get paid to write it, so that even if there's plenty of articles about the same subject, at least you have a concrete purpose to write yours.</p> <p>Erhm, yes, by the way, keep an eye on <a href="http://www.sitepoint.com">SitePoint</a> in the next few days/weeks, OK?</p> -<h3>I only write when I’m inspired, and now I’m not</h3> +<h3>I only write when I'm inspired, and now I'm not</h3> <p>Very, very common. I normally think about a very cool article to write in the evening, or early in the morning, or - whenever I don’t have access to a computer or the Internet. <br /> - Of course I don’t forget about it, but by the time I have a chance to actually write it, I really don’t + whenever I don't have access to a computer or the Internet. <br /> + Of course I don't forget about it, but by the time I have a chance to actually write it, I really don't fancy doing so. Oh, the irony! <br /> - It happened today, actually, during my lunch break: I was supposed to write this post but I didn’t feel like - it. I lost my inspiration and all my artistic verve, so no, it can’t be done. Tough luck, wait until next + It happened today, actually, during my lunch break: I was supposed to write this post but I didn't feel like + it. I lost my inspiration and all my artistic verve, so no, it can't be done. Tough luck, wait until next time.</p> <p>How did I solve this? Well, I started writing the post in my coffee break: there was no way to finish it in time, of course, but at least I started it.<br />@@ -66,93 +66,93 @@ I also saved it to my <span class="caps">PDA</span> and continued writing it when I had a chance. Eventually, I
managed to finish it during my lunch break, the next day.</p> <p>Try to write <em>whenever you are inspired</em>. If you are not inspired in your lunch break, do some work in your lunch break and then write when, in an hour or so, probably, you feel like writing again.</p> -<h3>This won’t make Digg’s front page</h3> -<p>Digg, Reddit, DZone, you name it. They are all excellent free tools for promoting your content. Don’t tell me +<h3>This won't make Digg's front page</h3> +<p>Digg, Reddit, DZone, you name it. They are all excellent free tools for promoting your content. Don't tell me you never wrote a post <em>for the sake of making the front page</em> of one of those sites. I did, I confess.<br /> - I didn’t make Digg’s front page in a while, and I’m probably never going to make it again. The + I didn't make Digg's front page in a while, and I'm probably never going to make it again. The reason? When it comes to promoting the right content in a fair way Digg <strong>sucks</strong>. As a consequence, - 80% of the articles which appear on Digg <strong>suck</strong>. I’m sure you’ll be able to forgive my + 80% of the articles which appear on Digg <strong>suck</strong>. I'm sure you'll be able to forgive my French when I say that <strong>Digg utterly sucks</strong>.</p> -<p>No matter how clever your story may be, unless you’re backed up by a swarm or an active community willing to - Digg your story, you simply aren’t going to make it. When is the last time a proper programming article made - it to Digg? I don’t remember, probably way before I unsubscribed to the Digg’s Technology feed, about a +<p>No matter how clever your story may be, unless you're backed up by a swarm or an active community willing to + Digg your story, you simply aren't going to make it. When is the last time a proper programming article made + it to Digg? I don't remember, probably way before I unsubscribed to the Digg's Technology feed, about a year or so ago.</p> -<p>Just write for the sake of writing. Don’t even submit your story to Digg (unless you’re writing about the +<p>Just write for the sake of writing. Don't even submit your story to Digg (unless you're writing about the iPhone, of course, then you may have a chance): post it to a less-known site, maybe, or to Reddit, instead. You - won’t get as much traffic, granted, but you also won’t get tons of idiots writing pointless crap on your - site and you won’t risk a server crash. If it’s destiny, then some good soul will post it to Digg, but - nobody will digg it. That’s just life, I’m afraid.</p> + won't get as much traffic, granted, but you also won't get tons of idiots writing pointless crap on your + site and you won't risk a server crash. If it's destiny, then some good soul will post it to Digg, but + nobody will digg it. That's just life, I'm afraid.</p> <h3>It has been too long since my last post: the next one will have to make up for it</h3> -<p>This happens when you start feeling guilty because you didn’t post in a long time.</p> +<p>This happens when you start feeling guilty because you didn't post in a long time.</p> <p><em>“My next post is going to be superb, long, interesting and everyone will start flocking back to my blog!”</em></p> -<p>Wrong. First of all because statistically people just don’t “flock back” because you bestowed them +<p>Wrong. First of all because statistically people just don't “flock back” because you bestowed them of one interesting post (you have to keep up, too), and second because by doing so your mind will automatically - discard all those bits of things you wanted to write about, but you never did because you’re waiting for that + discard all those bits of things you wanted to write about, but you never did because you're waiting for that special <em>next post</em> which will be <em>so much better</em> and will bring your blob back to <del>spam</del> life.</p> -<p>It happened, it happened… again, all you have to do is just post all the tidbits you need, while you’re +<p>It happened, it happened… again, all you have to do is just post all the tidbits you need, while you're preparing your big shot: your blog will remain “fresh” and more people will enjoy your interesting - posts, whenever they’ll come.</p> + posts, whenever they'll come.</p> <h3>Nobody gives a damn, anyway</h3> -<p>I didn’t want to upset my younger audience by using a nasty f-word in the title, but that’s exactly how +<p>I didn't want to upset my younger audience by using a nasty f-word in the title, but that's exactly how it feels like it, sometimes.<br /> I went to Rome last week, did you know? I twittered about it, you <strong>ought</strong> to know! And of course - you’ll all be waiting for the usual 10-page-long article on my awesome vacation. Like when I <a + you'll all be waiting for the usual 10-page-long article on my awesome vacation. Like when I <a href="/articles/incomplete-guide-to-london">went to London</a>, remember?<br /> - No, sadly not everyone may be interested in this crap. So I probably won’t post about it: who cares? When you + No, sadly not everyone may be interested in this crap. So I probably won't post about it: who cares? When you start thinking like this, you may stop posting for weeks: not everyone may be interested in everything you post, and - I believe that’s normal.<br /> + I believe that's normal.<br /> Especially for a blog like mine, which is deliberately open to all my interests: programming, technology, - travelling, etc. That’s why most blogs try to be themed: they write about a particular subject, even a single + travelling, etc. That's why most blogs try to be themed: they write about a particular subject, even a single programming project, and they (try to) do it well. The trade-off is that a themed blog may run out of posts - amazingly quickly, if you’re not carefula and if you’re not 100% devoted to your blog’s theme. + amazingly quickly, if you're not carefula and if you're not 100% devoted to your blog's theme. <br /> A themed blog will build up a faithful audience, like when I was writing almost exclusively about CakePHP: a lot of <span class="caps">PHP</span> programmers where flocking here daily. Then things <a href=/articles/42">went wrong</a> - and I really couldn’t be bothered to write about the same crap. Which leads us to the next topic… + and I really couldn't be bothered to write about the same crap. Which leads us to the next topic… </p> <h3>If I write about this, a large chunk of my audience is going to be upset</h3> -<p>This applies especially to themed blogs: if you’re a well-known Firefox addict, you can’t suddenly start +<p>This applies especially to themed blogs: if you're a well-known Firefox addict, you can't suddenly start writing about <a href="/articles/firefox-lovers-guide-to-opera">Opera</a>, praising its speed and the features it offers out-of-the box!<br /> - If you take a side, you’d better stick to it, if you want your audience to stick to you: the ten people who + If you take a side, you'd better stick to it, if you want your audience to stick to you: the ten people who happen to read this blog are probably quite shocked by the amount of times I “changed side”: from CakePHP and <span class="caps">PHP</span> to Rails and Ruby, from Firefox to Opera (well, wait until my next SitePoint article comes out, at least…). Probably they are not the same people who read this blog a year or so ago.</p> -<p>In the end, it’s entirely up to you: if you are prone to radically change our opinion (and this happen in +<p>In the end, it's entirely up to you: if you are prone to radically change our opinion (and this happen in technology, much more than in politics), which involves changing the whole theme of your blog, maybe you should consider not having a themed blog at all. <br /> - And if you don’t feel 100% sure you want a themed blog, you definitely shouldn’t go for a themed domain - name, or you may end up abandoning it afterwards. And when that happens, unless you’re writing damn cool posts - like <a href="http://redhanded.hobix.com/">Why</a>, it’s going to hurt your audience. On the other hand, if - you’re sure you’ll get ten times more visitors, go for it.<br /> + And if you don't feel 100% sure you want a themed blog, you definitely shouldn't go for a themed domain + name, or you may end up abandoning it afterwards. And when that happens, unless you're writing damn cool posts + like <a href="http://redhanded.hobix.com/">Why</a>, it's going to hurt your audience. On the other hand, if + you're sure you'll get ten times more visitors, go for it.<br /> No, h3rald.com stays… I may end up raving about Safari at some point within the next ten years though, - don’t be upset!</p> -<h3>I’m not an expert on the subject, so I shouldn’t blog about it</h3> -<p>This is a common problem I have when I try to write about something I don’t know extensively enough. When I + don't be upset!</p> +<h3>I'm not an expert on the subject, so I shouldn't blog about it</h3> +<p>This is a common problem I have when I try to write about something I don't know extensively enough. When I started to learn Ruby, I was eager to start writing about it: it seemed just too cool to be true!<br /> - I thought about writing a longish post on learning Ruby from scratch, but then I realized it wouldn’t have - been a great idea: I was just starting to learn a new language, I didn’t know all the nitty-gritty and writing + I thought about writing a longish post on learning Ruby from scratch, but then I realized it wouldn't have + been a great idea: I was just starting to learn a new language, I didn't know all the nitty-gritty and writing about it to teach others was going to be a bit presumptuous, maybe!<br /> Instead, I opted for a lighted <a href="/articles/10-reasons-to-learn-ruby">10 reasons to learn Ruby</a> article, clearly stating in the first paragraph that I was just a noob getting excited about his new toy. It worked, actually: people seemed to enjoy it, and I was partially excused for the few mistakes I made here and there.<br /> - You don’t have to be an expert to blog about something: you just have to be totally honest about what you - know, and what you don’t know.</p> -<h3>There are a lot of professional bloggers out there, and I’m not one of them</h3> + You don't have to be an expert to blog about something: you just have to be totally honest about what you + know, and what you don't know.</p> +<h3>There are a lot of professional bloggers out there, and I'm not one of them</h3> <p>Finally, this can be summarized in two words: inferiority complex. “Proper” blogs fire out 10+ posts - <em>per day</em>, and I don’t even write ten points in <em>a month</em>! Again, those a professional bloggers: + <em>per day</em>, and I don't even write ten points in <em>a month</em>! Again, those a professional bloggers: they live for blogging (and make an awful lot of money out of it), and they most likely have someone else blogging for them, too! <br /> Think of TechCrunch or LifeHacker, for example: they have a small legion of talented writers working for them - &emdash; even if Michael Harrington does rant about Twitter about three times a week himself, though.<br /> + — even if Michael Harrington does rant about Twitter about three times a week himself, though.<br /> At the end of the day, what matters is the <em>quality</em> of your posts. Not the length minf, the Quality. I personally think that non-professionals (I said “non-professionals”, not “amateurs”!) are <em>allowed</em> to write about once a week, if they can provide good content, that is. </p> -<p>But you still do have to write <em>at least</em> once a week (OK, let’s make it ten days), otherwise either - you’re justified (you genuinely don’t have time) or you may be a victim of one of these common fears. +<p>But you still do have to write <em>at least</em> once a week (OK, let's make it ten days), otherwise either + you're justified (you genuinely don't have time) or you may be a victim of one of these common fears. Watch out, and happy blogging!</p>
@@ -6,24 +6,37 @@ tags: "italy|politics"
----- <p style="float:right;"><img src="http://www.berluscastop.it/v_imag/sodom1.gif" alt="" /></p> <p>Another five years have passed and here we go again: General Elections time!<br /> -Today and tomorrow Italy <del>must</del> should vote for a new government, and the choice is <em>again</em> between two main contenders to the Prime Minister’s <del>throne</del> chair:</p> + Today and tomorrow Italy <del>must</del> should vote for a new government, and the choice is <em>again</em> between + two main contenders to the Prime Minister's <del>throne</del> chair:</p> <p>- <a href="http://news.bbc.co.uk/1/hi/world/europe/299254.stm">Romano Prodi</a><br /> -- <a href="http://news.bbc.co.uk/1/hi/world/europe/3034600.stm">Silvio Berlusconi</a></p> -<p>Just today I was reading an interesting article titled <a href="http://service.spiegel.de/cache/international/spiegel/0,1518,409538,00.html"><em>‘The End of Silvio’s Show?’</em></a> in which the author examines the possibility that Berlusconi’s five years of subtle pseudo-dictatorship may end in favour the former president of European Commission Romano Prodi.</p> + - <a href="http://news.bbc.co.uk/1/hi/world/europe/3034600.stm">Silvio Berlusconi</a></p> +<p>Just today I was reading an interesting article titled <a + href="http://service.spiegel.de/cache/international/spiegel/0,1518,409538,00.html"><em>‘The End of + Silvio's Show?'</em></a> in which the author examines the possibility that Berlusconi's five years of subtle + pseudo-dictatorship may end in favour the former president of European Commission Romano Prodi.</p> <p><em>Who are they?</em></p> -<p><strong>Silvio Berlusconi</strong><br /> -<img src="http://www.consapevolezza.it/notizie/gen-mar-2002/imgs/berlusconi_corna_5.jpg" alt="" /></p> -<p>I can’t imagine someone asking this question, at least I can’t think of anyone who doesn’t know Silvio Berlusconi as the icon of the latest <em>national oddity</em>. <br /> -Forthose who need their memory refreshed, here’s a small collection of links featuring him:</p> +<h3>Silvio Berlusconi</h3> +<img src="http://www.consapevolezza.it/notizie/gen-mar-2002/imgs/berlusconi_corna_5.jpg" alt="" /> +<p>I can't imagine someone asking this question, at least I can't think of anyone who doesn't know Silvio Berlusconi as + the icon of the latest <em>national oddity</em>. <br /> + Forthose who need their memory refreshed, here's a small collection of links featuring him:</p> <ul> - <li><a href="http://news.bbc.co.uk/1/hi/world/europe/3034600.stm"><span class="caps">BBC</span> <span class="caps">NEWS</span> Profile</a></li> + <li><a href="http://news.bbc.co.uk/1/hi/world/europe/3034600.stm"><span class="caps">BBC</span> <span + class="caps">NEWS</span> Profile</a></li> <li><a href="http://en.wikipedia.org/wiki/Silvio_Berlusconi">Wikipedia Page</a> about him</li> - <li><a href="http://www.economist.com/displaystory.cfm?story_id=587107">An Italian Story</a> – An article written in 2001 published by the Economist, <em>before</em> he was elected Prime Minister</li> - <li><a href="http://www.economist.com/displaystory.cfm?story_id=593654">Fit to run Italy?</a> – Another article by the Economists explaining why Berlusconi should <em>not</em> lead the Italian Government</li> - <li><a href="http://grabbyeducational.blogspot.com/">Meglio coglioni che mafiosi</a> – Italian blog against Berlusconi (warning: profanity).</li> - <li><a href="http://www.geocities.com/basta2006/">Basta 2006 – Geocities</a> – a comprehensive directory of websites dedicated to Berlusconi, a really good resource.</li> + <li><a href="http://www.economist.com/displaystory.cfm?story_id=587107">An Italian Story</a> – An article + written in 2001 published by the Economist, <em>before</em> he was elected Prime Minister</li> + <li><a href="http://www.economist.com/displaystory.cfm?story_id=593654">Fit to run Italy?</a> – Another + article by the Economists explaining why Berlusconi should <em>not</em> lead the Italian Government</li> + <li><a href="http://grabbyeducational.blogspot.com/">Meglio coglioni che mafiosi</a> – Italian blog against + Berlusconi (warning: profanity).</li> + <li><a href="http://www.geocities.com/basta2006/">Basta 2006 – Geocities</a> – a comprehensive directory + of websites dedicated to Berlusconi, a really good resource.</li> </ul> -<p>There are millions more. In particular, I’d like to add one more: <a href="http://www.consapevolezza.it/notizie/gen-mar-2002/impero_berlusconi.asp">The Empire of Silvio Berlusconi</a>, which features an image taken from an Italian magazine listing (roughly) everything owned (the image is dated 2002) by our current (for now) Prime Minister, such as:</p> +<p>There are millions more. In particular, I'd like to add one more: <a + href="http://www.consapevolezza.it/notizie/gen-mar-2002/impero_berlusconi.asp">The Empire of Silvio + Berlusconi</a>, which features an image taken from an Italian magazine listing (roughly) everything owned (the + image is dated 2002) by our current (for now) Prime Minister, such as:</p> <ul> <li>Mediaset Television (100%) – which includes three national channels</li> <li>Medusa Film (100%) – Movie productions</li>@@ -33,23 +46,40 @@ <li>Blockbuster (51%) – Video retal shops</li>
<li>Mondadori Spa (48%) – Biggest Italian editorial company</li> <li>Mediolanum (35.5%) – Financial sociaty – banks, insurances etc.</li> </ul> -<p>Nice, isn’t it? Of course he had to give those societies to some trusted administrators before becoming Prime Minister… but let’s not talk about this…</p> -<p><strong>Romano Prodi</strong><br /> -<img src="http://upload.wikimedia.org/wikipedia/en/thumb/0/04/Prodi.jpg/200px-Prodi.jpg" alt="" /></p> -<p>Perhaps not as well known abroad as Silvio, but was recently the President of the European Commission for a while. Here are some (more serious) links about him:</p> +<p>Nice, isn't it? Of course he had to give those societies to some trusted administrators before becoming Prime + Minister… but let's not talk about this…</p> +<h3>Romano Prodi</h3> +<img src="http://upload.wikimedia.org/wikipedia/en/thumb/0/04/Prodi.jpg/200px-Prodi.jpg" alt="" /> +<p>Perhaps not as well known abroad as Silvio, but was recently the President of the European Commission for a while. + Here are some (more serious) links about him:</p> <ul> - <li><a href="http://europa.eu.int/comm/archives/commission_1999_2004/prodi/index_en.htm">European Commission Archives</a></li> - <li><a href="http://www.eitb24.com/portal/eitb24/noticia/en/international-news/centre-left-candidate--profile-of-romano-prodi-?itemId=D23503&cl=%2Feitb24%2Finternacional&idioma=en">eitb24’s profile of Romano Prodi</a></li> + <li><a href="http://europa.eu.int/comm/archives/commission_1999_2004/prodi/index_en.htm">European Commission + Archives</a></li> + <li><a + href="http://www.eitb24.com/portal/eitb24/noticia/en/international-news/centre-left-candidate--profile-of-romano-prodi-?itemId=D23503&cl=%2Feitb24%2Finternacional&idioma=en">eitb24's + profile of Romano Prodi</a></li> <li><a href="http://www.answers.com/topic/romano-prodi">Answers.com on Romano Prodi</a></li> - <li><a href="http://topics.nytimes.com/top/reference/timestopics/people/p/romano_prodi/index.html?inline=nyt-per">New York Times archives about Romano Prodi</a></li> + <li><a href="http://topics.nytimes.com/top/reference/timestopics/people/p/romano_prodi/index.html?inline=nyt-per">New + York Times archives about Romano Prodi</a></li> </ul> <p>Known as “The Professor” for his education…</p> <blockquote> -<p><em>“He graduated in economics at Milan’s Catholic University in 1961 and did postgraduate studies at the London School of Economics. He also spent a year as visiting professor at Harvard in 1974”</em><br /> -<em>(<a href="http://news.bbc.co.uk/1/hi/world/europe/299254.stm">Prodi’s <span class="caps">BBC</span> profile</a>)</em></p> + <p><em>“He graduated in economics at Milan's Catholic University in 1961 and did postgraduate studies at the + London School of Economics. He also spent a year as visiting professor at Harvard in 1974”</em><br /> + <em>(<a href="http://news.bbc.co.uk/1/hi/world/europe/299254.stm">Prodi's <span class="caps">BBC</span> + profile</a>)</em> + </p> </blockquote> -<p>…Romano Prodi is the candidate proposed by the current Italian opposition, grouping roughly all the center-left parties. He’s the one who pushed Italy – as President of the European Commission – to accept the Euro as new currency, back in the day, and also the one who was blamed for than after a few months when the <em>Euro effect</em> occurred: prices went higher and didn’t seem to be an <em>exact conversion</em> from Lire to Euro. He was chubby enough (“mortadella” is one of his most recurring nicknames) to be quickly appointed as scapegoat for the unpleasant situation.</p> +<p>…Romano Prodi is the candidate proposed by the current Italian opposition, grouping roughly all the center-left + parties. He's the one who pushed Italy – as President of the European Commission – to accept the Euro as + new currency, back in the day, and also the one who was blamed for than after a few months when the <em>Euro + effect</em> occurred: prices went higher and didn't seem to be an <em>exact conversion</em> from Lire to Euro. + He was chubby enough (“mortadella” is one of his most recurring nicknames) to be quickly appointed as + scapegoat for the unpleasant situation.</p> <p style="float:left;"><img src="http://www.dsmirandola.it/sg/img/berlusconi_corna.jpg" alt="" /></p> -<p>Besides that, if someone asks me what’s the difference between the two candidates, I’ll answer: one is a politician and devoted all his life to Politics, while the other partly devoted only the last 10-years-or-so to politics because it seemed to be <em>a cool and worthwhile investment</em>…</p> -<p><em><strong>Who am going to vote?</strong></em></p> -<p>Well, one thing is sure: I don’t want Silvio to win again, I don’t want Italy to be publicly ridicolized abroad all the time that muppet opens his mouth or simply does something <em>he</em> thinks is funny…</p> +<p>Besides that, if someone asks me what's the difference between the two candidates, I'll answer: one is a politician + and devoted all his life to Politics, while the other partly devoted only the last 10-years-or-so to politics + because it seemed to be <em>a cool and worthwhile investment</em>…</p> +<h3>Who am going to vote?</h3> +<p>Well, one thing is sure: I don't want Silvio to win again, I don't want Italy to be publicly ridicolized abroad all + the time that muppet opens his mouth or simply does something <em>he</em> thinks is funny…</p>
@@ -17,10 +17,16 @@ <li><a href="#trivia">Trivia</a></li>
<li><a href="#quotes">Famous quotes</a></li> </ul> <h3 id="prologue">Prologue</h3> -<p>Roxanne and I arrived in Ireland on the 3rd of July, just over a week before the wedding day. We thought a week would have been more than enough to finish organizing our big day, and we were right: we spent a few days enjoying our holiday with relatives and going around to meet the photographer, the florist and all the others.</p> -<p>Slowly guests started arriving into the country from Italy, England, Romania etc. For some reason, everyone chose a different day to get to Killenaule, so we had people turning up right until the very day before.</p> -<p>In a similar fashion, I was waiting for my waistcoat to arrive until the last minute: it turns out that the guy I bought it from decided to send it through normal post about 10 days before — “They normally arrive in less than two weeks”, he wrote to me in his last email.</p> -<p>I ended up having to drive to Clonmel the afternoon before the wedding with half the wedding party in my car looking for a waistcoat. I eventually managed to rent one (with matching shirt and cravat) for <em>just</em> 40 Euro.</p> +<p>Roxanne and I arrived in Ireland on the 3rd of July, just over a week before the wedding day. We thought a week would + have been more than enough to finish organizing our big day, and we were right: we spent a few days enjoying our + holiday with relatives and going around to meet the photographer, the florist and all the others.</p> +<p>Slowly guests started arriving into the country from Italy, England, Romania etc. For some reason, everyone chose a + different day to get to Killenaule, so we had people turning up right until the very day before.</p> +<p>In a similar fashion, I was waiting for my waistcoat to arrive until the last minute: it turns out that the guy I + bought it from decided to send it through normal post about 10 days before — “They normally arrive in + less than two weeks”, he wrote to me in his last email.</p> +<p>I ended up having to drive to Clonmel the afternoon before the wedding with half the wedding party in my car looking + for a waistcoat. I eventually managed to rent one (with matching shirt and cravat) for <em>just</em> 40 Euro.</p> <h3 id="party">The wedding party</h3> <p>The following table lists all the members of the wedding party, for your own reference.</p> <table>@@ -33,7 +39,7 @@ <td> Fabio Cevasco </td>
<td> Groom </td> </tr> <tr> - <td> Roxanne O’Mahoney </td> + <td> Roxanne O'Mahoney </td> <td> Bride </td> </tr> <tr>@@ -53,23 +59,46 @@ <td> Delia Angheluta </td>
<td> Bridesmaid </td> </tr> <tr> - <td> Zacharry O’Mahoney </td> + <td> Zacharry O'Mahoney </td> <td> Usher </td> </tr> <tr> - <td> Caspar O’Mahoney </td> + <td> Caspar O'Mahoney </td> <td> Usher </td> </tr> </table> <h3 id="stag">The stag night</h3> -<p>In Italy, England, US and in many other countries a “stag night” may end up in many different ways: dinner with friends, strip club, wild practical jokes to the groom, and so on. In Ireland, it generally means one thing: <em>drink</em>. It occasionally ends up badly (there are rumors a poor fellow who was thrown out in a river and got married with a broken nose), but generally everything turns out just fine: have a few pints, sing and dance, and have a couple of eggs in the morning. That normally does the trick — if you’re an Irishman.</p> -<p>I was well aware of my in-laws drinking habits, so I decided to take uncle Felix’s offer: “I’ll have a taxi ready for you whenever you want to sneak out of the pub, and make sure you do” — he said.</p> -<p>The evening started with a few pints at Laffansbridge, an old country pub in the middle of nowhere, probably one of the best places for a pint of Guinnes in the whole Tipperary. The little smart guy who runs it has one simple rule: at midnight the light goes off and no more drinks are served, so all 16 of us got into a minibus by then, heading for the next pub.</p> -<p><em>Quinn’s</em> is the family pub, in the sense that it is owned by Felix Quinn Jr, son of Felix Quinn Sr, brother of Anastasia Quinn, mother of James O’Mahoney, father of Roxanne O’Mahoney, my wife (families are still very large and very close, in Ireland). Being the family pub, <em>Quinn’s</em> doesn’t close at midnight; in fact, it often doesn’t close at all for family and friends (i.e. the entire village of Killenaule).<br /> -As soon as we got in, Claire (wife of Felix, son of Felix, etc. etc.) greeted us with a full round of pints, and then another, and yet another…</p> -<p>Around the third round someone asked me if I could sing a song — a request I politely but firmly declined due to my total ignorance in Irish folk songs and my total inability to utter sounds in even the slightest musical way. Luckily, someone else volunteered and sang a beautiful ballad, perfectly in-tune, with no music backing at all: Irish people are amazingly musical when sober, imagine when drunk!</p> -<p>When people started getting into <em>their</em> fourth round (note the pronoun), I decided to try out an old trick to keep myself sober: I drank less than half a pint, and then pretended to drink the rest, leaving always something in my glass. In that way – I thought – I could pretend I didn’t need yet another pint. Unfortunately the pub owner spotted me straight away and said “That pint is stale… here, have another one, on the house!”. At that point I decided it was better for me & the rest of the Italians to quietly sneak out.</p> -<p>I was at home (uncle Martin’s house) and in bed at about 1:30 AM. I almost didn’t sleep at all that night, as expected, so I wasn’t too bothered when the rest of the drinking comrades came back, singing and shouting at 4:30 am. Simona [the Maid of Honor and girlfriend of my brother-in-law Zac], on the other hand, wasn’t too amused when Zac turned up after drinking the (Irish) Nightly Guideline Drink Amount: approx. 10-11 pints of Guinness — those he could count, that is.</p> +<p>In Italy, England, US and in many other countries a “stag night” may end up in many different ways: + dinner with friends, strip club, wild practical jokes to the groom, and so on. In Ireland, it generally means one + thing: <em>drink</em>. It occasionally ends up badly (there are rumors a poor fellow who was thrown out in a river + and got married with a broken nose), but generally everything turns out just fine: have a few pints, sing and dance, + and have a couple of eggs in the morning. That normally does the trick — if you're an Irishman.</p> +<p>I was well aware of my in-laws drinking habits, so I decided to take uncle Felix's offer: “I'll have a taxi + ready for you whenever you want to sneak out of the pub, and make sure you do” — he said.</p> +<p>The evening started with a few pints at Laffansbridge, an old country pub in the middle of nowhere, probably one of + the best places for a pint of Guinnes in the whole Tipperary. The little smart guy who runs it has one simple rule: + at midnight the light goes off and no more drinks are served, so all 16 of us got into a minibus by then, heading + for the next pub.</p> +<p><em>Quinn's</em> is the family pub, in the sense that it is owned by Felix Quinn Jr, son of Felix Quinn Sr, brother + of Anastasia Quinn, mother of James O'Mahoney, father of Roxanne O'Mahoney, my wife (families are still very large + and very close, in Ireland). Being the family pub, <em>Quinn's</em> doesn't close at midnight; in fact, it often + doesn't close at all for family and friends (i.e. the entire village of Killenaule).<br /> + As soon as we got in, Claire (wife of Felix, son of Felix, etc. etc.) greeted us with a full round of pints, and + then another, and yet another…</p> +<p>Around the third round someone asked me if I could sing a song — a request I politely but firmly declined due + to my total ignorance in Irish folk songs and my total inability to utter sounds in even the slightest musical way. + Luckily, someone else volunteered and sang a beautiful ballad, perfectly in-tune, with no music backing at all: + Irish people are amazingly musical when sober, imagine when drunk!</p> +<p>When people started getting into <em>their</em> fourth round (note the pronoun), I decided to try out an old trick to + keep myself sober: I drank less than half a pint, and then pretended to drink the rest, leaving always something in + my glass. In that way – I thought – I could pretend I didn't need yet another pint. Unfortunately the + pub owner spotted me straight away and said “That pint is stale… here, have another one, on the + house!”. At that point I decided it was better for me & the rest of the Italians to quietly sneak out.</p> +<p>I was at home (uncle Martin's house) and in bed at about 1:30 AM. I almost didn't sleep at all that night, as + expected, so I wasn't too bothered when the rest of the drinking comrades came back, singing and shouting at 4:30 + am. Simona [the Maid of Honor and girlfriend of my brother-in-law Zac], on the other hand, wasn't too amused when + Zac turned up after drinking the (Irish) Nightly Guideline Drink Amount: approx. 10-11 pints of Guinness — + those he could count, that is.</p> <h3 id="preparations">The preparations</h3> <p>This part of the day is best reported in chronological tabular form:</p> <table>@@ -87,7 +116,10 @@ <td> The bridesmaids are up and about, ready to go to the hairdresser </td>
</tr> <tr> <td> 9:00 </td> - <td> Uncle Martin and the rest of the gang slowly regain consciousness. The groom spends about half an hour trying to explain uncle Martin that he’s his only hope to collect and bring back the flowers for the church (_"Ahhhh you want <em>me</em> to do it… you could have said so since the beginning!"_). </td> + <td> Uncle Martin and the rest of the gang slowly regain consciousness. The groom spends about half an hour + trying to explain uncle Martin that he's his only hope to collect and bring back the flowers for the church + (_"Ahhhh you want <em>me</em> to do it… you could have said so since the beginning!"_). + </td> </tr> <tr> <td> 9:45 </td>@@ -99,23 +131,29 @@ <td> The groom attempts to gather his groomsmen for the first time </td>
</tr> <tr> <td> 10:15 </td> - <td> The groom starts having a chat with the best man and the head usher. The other ushers are <em>somewhere around</em>. </td> + <td> The groom starts having a chat with the best man and the head usher. The other ushers are <em>somewhere + around</em>. </td> </tr> <tr> <td> 10:30 </td> - <td> The groom realizes that one of the ushers (Zac) has the most terrible hangover on Earth and the other (Caspar) slept solidly from 3 am (while still in the pub) until now </td> + <td> The groom realizes that one of the ushers (Zac) has the most terrible hangover on Earth and the other + (Caspar) slept solidly from 3 am (while still in the pub) until now </td> </tr> <tr> <td> 11:00 </td> - <td> The groom attempts to gather his groomsmen for the second time, this time telling them it’s time to get ready (he’s not taken seriously) </td> + <td> The groom attempts to gather his groomsmen for the second time, this time telling them it's time to get + ready (he's not taken seriously) </td> </tr> <tr> <td> 11:30 </td> - <td> The groom attempts to gather his groomsmen for the third and final time, now everyone is starting to try out their suits </td> + <td> The groom attempts to gather his groomsmen for the third and final time, now everyone is starting to try + out their suits </td> </tr> <tr> <td> 11:45 </td> - <td> For some weird reason auntie Noelle decides to call the groom and tell him that the florist is not accepting checks, after 5 minuts of absolute panic, she says we’re going to get the flowers anyway and there’s nothing to worry about. </td> + <td> For some weird reason auntie Noelle decides to call the groom and tell him that the florist is not + accepting checks, after 5 minuts of absolute panic, she says we're going to get the flowers anyway and + there's nothing to worry about. </td> </tr> <tr> <td> 12:00 </td>@@ -123,7 +161,8 @@ <td> All groomsman are dressed. It starts raining. </td>
</tr> <tr> <td> 12:30 </td> - <td> Zac decides he needs some fresh air and takes a walk outside in his morning suit, regardless of the heavy rain and the groom’s prayers </td> + <td> Zac decides he needs some fresh air and takes a walk outside in his morning suit, regardless of the heavy + rain and the groom's prayers </td> </tr> <tr> <td> 13:10 </td>@@ -139,79 +178,174 @@ <td> The brides arrives and the ceremony starts. </td>
</tr> </table> <h3 id="ceremony">The ceremony</h3> -<p>The wedding ceremony was very suggestive, almost magic. As soon as I looked at Roxanne in her wedding dress all worries faded away, and we both enjoyed the wedding rite. I must say I also don’t remember much of the whole ceremony, but I’m told it’s a common thing to happen.</p> -<p>As the ceremony started, we sat down without looking at the audience, so I didn’t feel paranoid and enjoyed listening to the priest’s speech, the readings and the songs. Canon Liam Ryan embodies the typical Irish priest: about 70-year-old, tall, extremely talkative, cheerful and very charismatic. He shocked us all during the reharsal telling us what we’d have had to do the day after, and it felt like a lot of work. The groomsmen and the bridesmaids were terrified: <em>“So I have to help you sit down, move the chair… like that… then… go back… no, wait, what was that again?”</em>. Matteo and Roberto couldn’t believe the whole choreography involved in the event: it’s nothing like that in Italy, but they were glad they were part of it in the end.</p> -<p>It all happened exactly like Father Ryan predicted, he even guessed almost all the few mistakes we made: “You have to walk slowly in front of the bride” – he said to Delia, the bridesmain – “and if you <em>think</em> you’re going slow while you’re doing it, you’re probably going <em>way too fast</em>”. But nobody noticed, really, and nobody cared: they were all too excited to mind that, and everyone’s eyes were on Roxanne, anyway. She was really, really gorgeous and her dress was fabulous. It felt unreal, at times: we both felt we were in one of those movies…</p> -<p>The most peculiar thing about the whole ceremony was perhaps the different languages involved: English, Italian, Gaelic and Latin. I doubt there was a single person among us who could understand the entirety of the mass, but it was very evocatory. The whole mass was predominantly in English, with the following exceptions:</p> +<p>The wedding ceremony was very suggestive, almost magic. As soon as I looked at Roxanne in her wedding dress all + worries faded away, and we both enjoyed the wedding rite. I must say I also don't remember much of the whole + ceremony, but I'm told it's a common thing to happen.</p> +<p>As the ceremony started, we sat down without looking at the audience, so I didn't feel paranoid and enjoyed listening + to the priest's speech, the readings and the songs. Canon Liam Ryan embodies the typical Irish priest: about + 70-year-old, tall, extremely talkative, cheerful and very charismatic. He shocked us all during the reharsal telling + us what we'd have had to do the day after, and it felt like a lot of work. The groomsmen and the bridesmaids were + terrified: <em>“So I have to help you sit down, move the chair… like that… then… go + back… no, wait, what was that again?”</em>. Matteo and Roberto couldn't believe the whole + choreography involved in the event: it's nothing like that in Italy, but they were glad they were part of it in the + end.</p> +<p>It all happened exactly like Father Ryan predicted, he even guessed almost all the few mistakes we made: “You + have to walk slowly in front of the bride” – he said to Delia, the bridesmain – “and if you + <em>think</em> you're going slow while you're doing it, you're probably going <em>way too fast</em>”. But + nobody noticed, really, and nobody cared: they were all too excited to mind that, and everyone's eyes were on + Roxanne, anyway. She was really, really gorgeous and her dress was fabulous. It felt unreal, at times: we both felt + we were in one of those movies…</p> +<p>The most peculiar thing about the whole ceremony was perhaps the different languages involved: English, Italian, + Gaelic and Latin. I doubt there was a single person among us who could understand the entirety of the mass, but it + was very evocatory. The whole mass was predominantly in English, with the following exceptions:</p> <ul> - <li>The First Reading was in Latin (my mum read it superbly — she’s a Latin teacher!)</li> + <li>The First Reading was in Latin (my mum read it superbly — she's a Latin teacher!)</li> <li>The Second Reading was in Italian</li> <li><em>Our Father</em> was sung in Gaelic</li> </ul> -<p>By our own common decision, we didn’t ask for a professional video of the ceremony, only <a href="#photos">photos</a>. Nevertheless, my uncle captured most of the ceremony (and the most embarassing bits of the dancing after the <a href="#reception">reception</a>) using my dad’s video camera.</p> +<p>By our own common decision, we didn't ask for a professional video of the ceremony, only <a + href="#photos">photos</a>. Nevertheless, my uncle captured most of the ceremony (and the most embarassing bits + of the dancing after the <a href="#reception">reception</a>) using my dad's video camera.</p> <h3 id="reception">The reception</h3> -<p>When the ceremony ended it was still raining heavily, so after an endless amount of pictures taken we went straight into our Rolls. Technically, that was not <em>our</em> Rolls of course: we rented it from a local car hirer, and it was worth every penny. A lot of people get married in a VW Beatle or in a Mercedes at most, but Roxanne and I really love old cars, so when we saw <a href="http://www.alleventslimos.com/Wedding/rolls_silver_cloud.html">Ruby</a>, a red 1961 Silver Cloud II, we just had to get it. Champagne and chauffeur included, of course.</p> -<p>The chauffeur was a very jolly and chatty fellow from Waterford, and drove that beauty of a car for a very long time. Unfortunately though his sat nav decided to stop working and he wasn’t really <em>local</em>, so erhm…, well, let’s just say we were really lucky that at least <em>the bride</em>knew her way around. We made it safe and sound to Raheen House in no time: so fast that everyone else arrived about 10-15 minutes afterwards.</p> -<p><a href="http://www.raheenhouse.ie/">Raheen House</a> is a very charming <span class="caps">XIX</span> century Georgian House. One of those places you normally see only in movies: tapestries on the walls, old armchairs, stuffed heads over the doors (an african buffalo, a huge deer, an antelope, and some more)… you get the picture. Unfortunately it can only accomodate 120 people, so it isn’t a very popular location for wedding receptions in Ireland, because the number of people invited at Irish weddings ranges from 150 to 300. We were about 60 in total, nevertheless the dining hall looked quite full and lively, with 7 big tables covering all the room.</p> -<p>As soon as we got there, my best man was informed by the staff that he <em>had to</em> introduce the bride and groom. <em>“What? No, wait! What do I say… how… what? Fabio, come back!”</em> he freaked out, but as soon as I wrote down the two lines he was supposed to say in English everything was OK. Not only did he introduce us properly, he also made a <em>terrific</em> speech: he obviously gave it a lot of thought and it sounded just perfect.</p> -<p>After he spoke, it was my dad’s turn. Now, my dad speaks perfect French but never got a chance to learn and practice English (yet), so not only he had to write down his entire speech, he also had to annotate the pronunciation of <em>every</em> word. He managed fine though. It felt a little bit long, but he said really wonderful and touching words about Roxanne and I, our respective families, and countries. I’ll publish it soon on the Internet, for posterity’s sake.</p> -<p>The last three speeches were Jim’s (the father of the bride), who did great as always, without reading anything, right on the spot. And so did Roxanne and I: we basically just said a few words thanking all the guests for coming, and half of them for helping us with the wedding as well. Every speech (except mine and Roxanne’s) was characterized by subtle and very discreet exhortations to produce progeny (<em>“get on with it!”</em>), but other than that they were fine.</p> -<p>After all the traditional obligations, we finally started our dinner. The food was delicious and extremely tasty: Raheen House is renown for that, as we were told, but we honestly weren’t 100% sure until we started trying it. And there was also <em>plenty</em> of it, so everyone felt really satisfied towards the end of the meal. So satisfied that we decided to postpone the cake till later (see below) and indulge with wine instead.</p> -<p>Wine, right. They were going to charge us 20€ per bottle for some weird Chilean or Australian stuff. Silly and almost offending, especially considering that my family has been producing wine for family and friend’s use for at least three generations! This was my dad’s primary concern until we left for Ireland: “You sort the restaurant out, because I’m going to bring some bottles, no matter what”. He shipped over <em>96</em> special bottles of our 2005, 2006, 2007 and 2008 vintages. Ninety-six. We used about 25 of them for the meal and the rest of the evening, then we gave one to almost every guest, three to the staff of the restaurant, a few more to other hotel and B&B owners, six to each uncle of the bride, etc. etc. None came back to Italy, that’s for sure.</p> -<p>Right after the meal the band came in, and we got ready to dance. Roxanne and I had to start with our First Dance, of course, then everyone else slowly joined in. The group was playing a mixture of traditional Irish music, ballads and rock ‘n’ roll: they were amazing, and especially the Italian’s were really impressed.</p> -<p>Not as impressed as when they noticed uncle Martin dancing. I’ve never seen <em>anyone</em> in my life dancing so vigorously and wildly in my life. He has his own special technique that cannot be described with words. I’ll try to post a video of him soon. He really felt the rythm and never missed a step. Like a whirlwind he dragged everyone in, dancing with him: first his daughters and sons, then his brothers, the he thought he’d take my auntie for a spin, then the bride (well, mostly her dress), then even me! I don’t remember much, I think I was in the air at one point, and then all over the place…</p> -<p>Everyone of course joined in and started drinking and dancing for the whole evening. When the band performed the last two songs, I just remember a <em>huge</em> circle of nearly all the guests holding hands dancing around Roxanne and I, then coming closer, then far, then closer again. It was definitely the wildest night in our whole life.</p> +<p>When the ceremony ended it was still raining heavily, so after an endless amount of pictures taken we went straight + into our Rolls. Technically, that was not <em>our</em> Rolls of course: we rented it from a local car hirer, and it + was worth every penny. A lot of people get married in a VW Beatle or in a Mercedes at most, but Roxanne and I really + love old cars, so when we saw <a href="http://www.alleventslimos.com/Wedding/rolls_silver_cloud.html">Ruby</a>, a + red 1961 Silver Cloud II, we just had to get it. Champagne and chauffeur included, of course.</p> +<p>The chauffeur was a very jolly and chatty fellow from Waterford, and drove that beauty of a car for a very long time. + Unfortunately though his sat nav decided to stop working and he wasn't really <em>local</em>, so erhm…, well, + let's just say we were really lucky that at least <em>the bride</em>knew her way around. We made it safe and sound + to Raheen House in no time: so fast that everyone else arrived about 10-15 minutes afterwards.</p> +<p><a href="http://www.raheenhouse.ie/">Raheen House</a> is a very charming <span class="caps">XIX</span> century + Georgian House. One of those places you normally see only in movies: tapestries on the walls, old armchairs, stuffed + heads over the doors (an african buffalo, a huge deer, an antelope, and some more)… you get the picture. + Unfortunately it can only accomodate 120 people, so it isn't a very popular location for wedding receptions in + Ireland, because the number of people invited at Irish weddings ranges from 150 to 300. We were about 60 in total, + nevertheless the dining hall looked quite full and lively, with 7 big tables covering all the room.</p> +<p>As soon as we got there, my best man was informed by the staff that he <em>had to</em> introduce the bride and groom. + <em>“What? No, wait! What do I say… how… what? Fabio, come back!”</em> he freaked out, but + as soon as I wrote down the two lines he was supposed to say in English everything was OK. Not only did he introduce + us properly, he also made a <em>terrific</em> speech: he obviously gave it a lot of thought and it sounded just + perfect.</p> +<p>After he spoke, it was my dad's turn. Now, my dad speaks perfect French but never got a chance to learn and practice + English (yet), so not only he had to write down his entire speech, he also had to annotate the pronunciation of + <em>every</em> word. He managed fine though. It felt a little bit long, but he said really wonderful and touching + words about Roxanne and I, our respective families, and countries. I'll publish it soon on the Internet, for + posterity's sake.</p> +<p>The last three speeches were Jim's (the father of the bride), who did great as always, without reading anything, + right on the spot. And so did Roxanne and I: we basically just said a few words thanking all the guests for coming, + and half of them for helping us with the wedding as well. Every speech (except mine and Roxanne's) was characterized + by subtle and very discreet exhortations to produce progeny (<em>“get on with it!”</em>), but other than + that they were fine.</p> +<p>After all the traditional obligations, we finally started our dinner. The food was delicious and extremely tasty: + Raheen House is renown for that, as we were told, but we honestly weren't 100% sure until we started trying it. And + there was also <em>plenty</em> of it, so everyone felt really satisfied towards the end of the meal. So satisfied + that we decided to postpone the cake till later (see below) and indulge with wine instead.</p> +<p>Wine, right. They were going to charge us 20€ per bottle for some weird Chilean or Australian stuff. Silly and almost + offending, especially considering that my family has been producing wine for family and friend's use for at least + three generations! This was my dad's primary concern until we left for Ireland: “You sort the restaurant out, + because I'm going to bring some bottles, no matter what”. He shipped over <em>96</em> special bottles of our + 2005, 2006, 2007 and 2008 vintages. Ninety-six. We used about 25 of them for the meal and the rest of the evening, + then we gave one to almost every guest, three to the staff of the restaurant, a few more to other hotel and B&B + owners, six to each uncle of the bride, etc. etc. None came back to Italy, that's for sure.</p> +<p>Right after the meal the band came in, and we got ready to dance. Roxanne and I had to start with our First Dance, of + course, then everyone else slowly joined in. The group was playing a mixture of traditional Irish music, ballads and + rock ‘n' roll: they were amazing, and especially the Italian's were really impressed.</p> +<p>Not as impressed as when they noticed uncle Martin dancing. I've never seen <em>anyone</em> in my life dancing so + vigorously and wildly in my life. He has his own special technique that cannot be described with words. I'll try to + post a video of him soon. He really felt the rythm and never missed a step. Like a whirlwind he dragged everyone in, + dancing with him: first his daughters and sons, then his brothers, the he thought he'd take my auntie for a spin, + then the bride (well, mostly her dress), then even me! I don't remember much, I think I was in the air at one point, + and then all over the place…</p> +<p>Everyone of course joined in and started drinking and dancing for the whole evening. When the band performed the last + two songs, I just remember a <em>huge</em> circle of nearly all the guests holding hands dancing around Roxanne and + I, then coming closer, then far, then closer again. It was definitely the wildest night in our whole life.</p> <h3 id="honeymoon">The honeymoon</h3> -<p>The day after we slowly recovered. We didn’t sleep much, but we managed to get up and have breakfast with some of the guests at the hotel, before they started heading back. Then we decided to go shopping in town: it was basically Roxanne and I, plus her brothers, her parents, and my parents. Not much of a honeymoon, as my mum pointed out, but we didn’t mind.</p> -<p>After spending the following day saying goodbye and thanks to all the relatives, we finally headed to Co. Galway, in Connemara. We booked three nights in the fabulous <a href="http://www.abbeyglen.ie/">Abbeyglen Castle</a>, highly recommended. Our superior room had a fireplace, a four-poster bed and jacuzzi bath: the bare essentials for a honeymoon really. Roxanne and I really enjoyed those three days, finally alone in the most breathtaking and romantic area of Ireland. Three days weren’t enough, really, but we’ll eventually go back there hopefully: maybe Sir Paul Hughes, proprietor of the castle, will still remember <em>“the bride and groom”</em>, as he kept calling us throughout our brief, but very pleasant stay.</p> -<p>Exactly as auntie Noelle said, everything was over in a blink: the ceremony, the reception, the honeymoon… everything went back to normal, eventually. It took a while to get used to our normal life: we had to go on a shopping spree before we went back to work… let’s say the money we got as present from most of the guest was well spent in a 42" <span class="caps">LCD</span> HD TV, surround sound system, etc. etc.</p> +<p>The day after we slowly recovered. We didn't sleep much, but we managed to get up and have breakfast with some of the + guests at the hotel, before they started heading back. Then we decided to go shopping in town: it was basically + Roxanne and I, plus her brothers, her parents, and my parents. Not much of a honeymoon, as my mum pointed out, but + we didn't mind.</p> +<p>After spending the following day saying goodbye and thanks to all the relatives, we finally headed to Co. Galway, in + Connemara. We booked three nights in the fabulous <a href="http://www.abbeyglen.ie/">Abbeyglen Castle</a>, highly + recommended. Our superior room had a fireplace, a four-poster bed and jacuzzi bath: the bare essentials for a + honeymoon really. Roxanne and I really enjoyed those three days, finally alone in the most breathtaking and romantic + area of Ireland. Three days weren't enough, really, but we'll eventually go back there hopefully: maybe Sir Paul + Hughes, proprietor of the castle, will still remember <em>“the bride and groom”</em>, as he kept calling + us throughout our brief, but very pleasant stay.</p> +<p>Exactly as auntie Noelle said, everything was over in a blink: the ceremony, the reception, the honeymoon… + everything went back to normal, eventually. It took a while to get used to our normal life: we had to go on a + shopping spree before we went back to work… let's say the money we got as present from most of the guest was + well spent in a 42" <span class="caps">LCD</span> HD TV, surround sound system, etc. etc.</p> <p>…And we still have our other half of the honeymoon, too! Probably Miami Beach and Bahamas, next November.</p> <h3 id="photos">Photos</h3> -<p>Our wedding photos were taken by <a href="http://www.patmccoole.ie/">Pat McCoole</a>, who did a truly amazing job portraying the magic of our special day.</p> -<p><embed type="application/x-shockwave-flash" src="http://picasaweb.google.com/s/c/bin/slideshow.swf" width="600" height="400" flashvars="host=picasaweb.google.com&hl=en_US&feat=flashalbum&RGB=0x000000&feed=http%3A%2F%2Fpicasaweb.google.com%2Fdata%2Ffeed%2Fapi%2Fuser%2Fh3rald%2Falbumid%2F5359762418204291649%3Falt%3Drss%26kind%3Dphoto%26hl%3Den_US" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed></p> +<p>Our wedding photos were taken by <a href="http://www.patmccoole.ie/">Pat McCoole</a>, who did a truly amazing job + portraying the magic of our special day.</p> +<p><embed type="application/x-shockwave-flash" src="http://picasaweb.google.com/s/c/bin/slideshow.swf" width="600" + height="400" + flashvars="host=picasaweb.google.com&hl=en_US&feat=flashalbum&RGB=0x000000&feed=http%3A%2F%2Fpicasaweb.google.com%2Fdata%2Ffeed%2Fapi%2Fuser%2Fh3rald%2Falbumid%2F5359762418204291649%3Falt%3Drss%26kind%3Dphoto%26hl%3Den_US" + pluginspage="http://www.macromedia.com/go/getflashplayer"></embed></p> <h3 id="trivia">Trivia</h3> <ul> <li>On the wedding day, it rained non-stop from 12 am to 7 pm.</li> <li>The groom drove for a total of 1758.7 Km in 14 days.</li> <li>On his stag night, the groom only drank 2.5 pints of Guinness (almost everyone else had 10, on average).</li> <li>The night before the wedding, the groom slept only from 5:30 to 7:30.</li> - <li>Only the middle tier of the wedding cake was eaten on the wedding day. The top tier was eaten during the following days by relatives and the bottom tier was shipped to Italy, together with the Bride’s dress.</li> - <li>The father of the bride decided to change into more comfortable clothes right after the ceremony. He borrowed a waistoat and a jacket for the speech.</li> + <li>Only the middle tier of the wedding cake was eaten on the wedding day. The top tier was eaten during the + following days by relatives and the bottom tier was shipped to Italy, together with the Bride's dress.</li> + <li>The father of the bride decided to change into more comfortable clothes right after the ceremony. He borrowed a + waistoat and a jacket for the speech.</li> <li>Uncle Martin danced with a lot of people after the meal, including the bride, her father, and the groom.</li> - <li>When he arrived at the church, the groom immediately realized he left the mass booklets and the confetti in the back of his car, at home. They were eventually brought to the church by a cousin of the bride just a few minutes before she arrived.</li> - <li>At the very start of the ceremony, the groom told the priest to tell the best man to get a mass booklet so that he and the bride can follow the mass properly. After 30 seconds of lip-reading and signalling, the best man understood and fetched one of the infamous booklets.</li> - <li>The bride forgot her change of clothes in uncle John’s car, who had to drive in early in the morning or she would have had her breakfast in her wedding dress.</li> + <li>When he arrived at the church, the groom immediately realized he left the mass booklets and the confetti in the + back of his car, at home. They were eventually brought to the church by a cousin of the bride just a few minutes + before she arrived.</li> + <li>At the very start of the ceremony, the groom told the priest to tell the best man to get a mass booklet so that + he and the bride can follow the mass properly. After 30 seconds of lip-reading and signalling, the best man + understood and fetched one of the infamous booklets.</li> + <li>The bride forgot her change of clothes in uncle John's car, who had to drive in early in the morning or she + would have had her breakfast in her wedding dress.</li> </ul> <h3 id="quotes">Famous quotes</h3> <blockquote> -<p>“This journey feels like going to Lourdes: you come back and your life changed forever.”<br /><br /> — The best man, when he arrived in Killenaule.</p> + <p>“This journey feels like going to Lourdes: you come back and your life changed + forever.”<br /><br /> — The best man, when he arrived in + Killenaule.</p> </blockquote> <blockquote> -<p>“Is there a garage around?”<br /><br /> — Auntie Isa while waving a car mirror, when she arrived in Killenaule</p> + <p>“Is there a garage around?”<br /><br /> — Auntie Isa while + waving a car mirror, when she arrived in Killenaule</p> </blockquote> <blockquote> -<p>“Do I really have to do a speech? Are you sure?”<br /><br /> — The best man, when he met the groom in Ireland.</p> + <p>“Do I really have to do a speech? Are you sure?”<br /><br /> + — The best man, when he met the groom in Ireland.</p> </blockquote> <blockquote> -<p>“My preciousssss!”<br /><br /> — The best man, when he was given the rings in custody.</p> + <p>“My preciousssss!”<br /><br /> — The best man, when he was + given the rings in custody.</p> </blockquote> <blockquote> -<p>“She’s the most calm and organized bride in history.”<br /><br /> — Auntie Noelle, about the bride on the wedding day.</p> + <p>“She's the most calm and organized bride in history.”<br /><br /> + — Auntie Noelle, about the bride on the wedding day.</p> </blockquote> <blockquote> -<p>“You could tell he was panicking on the phone”<br /><br /> — Auntie Noelle, about the groom on the wedding day.</p> + <p>“You could tell he was panicking on the phone”<br /><br /> + — Auntie Noelle, about the groom on the wedding day.</p> </blockquote> <blockquote> -<p>“Potatoes, potatoes, potatoes…”<br /><br /> — The father of the bride to the groom, during the traditional handshake of the wedding rehearsal.</p> + <p>“Potatoes, potatoes, potatoes…”<br /><br /> — The + father of the bride to the groom, during the traditional handshake of the wedding rehearsal.</p> </blockquote> <blockquote> -<p>“Potatoes, potatoes, potatoes…”<br /><br /> — The groom to the father of the bride, during the traditional handshake of the wedding ceremony.</p> + <p>“Potatoes, potatoes, potatoes…”<br /><br /> — The + groom to the father of the bride, during the traditional handshake of the wedding ceremony.</p> </blockquote> <blockquote> -<p><strong>Best man:</strong> “[…] this is the first time for me to speak in public, in front of an <em>English</em> audience […]”<br /> -<strong>Audience:</strong> “Irish! <span class="caps">IRISH</span>!!!”<br /> -<strong>Best man:</strong> “…oh, right, Irish! Sorry…”<br /></p> + <p><strong>Best man:</strong> “[…] this is the first time for me to speak in public, in front of an + <em>English</em> audience […]”<br /> + <strong>Audience:</strong> “Irish! <span class="caps">IRISH</span>!!!”<br /> + <strong>Best man:</strong> “…oh, right, Irish! Sorry…”<br /> + </p> </blockquote> <blockquote> -<p>“I need another shirt!”<br /><br /> — Uncle Martin, after about 2 hours of continuous dancing with almost all the guests.</p> + <p>“I need another shirt!”<br /><br /> — Uncle Martin, after + about 2 hours of continuous dancing with almost all the guests.</p> </blockquote>
@@ -11,35 +11,35 @@ little bit my almost-rusty baking skills.</p>
<p style="float:left;"><img src="/images/pictures/cakephp.png" alt="" /></p> <p>Why not taking advantage of this and write more about CakePHP then? After all, my last <a href="/articles/cakephp/">article</a> turned out well enough and some people even bookmarked it online on - del.icio.us and ma.gnolia… Now it’s a bit out of date, I must admit: it was based on a pre-beta release - of the framework, and we’re (more or less) stable now. <br /> + del.icio.us and ma.gnolia… Now it's a bit out of date, I must admit: it was based on a pre-beta release + of the framework, and we're (more or less) stable now. <br /> A lot of things changed in the Bakers Community since then! At the time the <a href="http://wiki.cakephp.org/">wiki</a> barely started and there was no <a href="http://manual.cakephp.org/">manual</a> whatsoever, only my long and perhaps <em>slightly</em> boring - article describing Cake’s functionalities. Now there things are much better for newcomers: they have a + article describing Cake's functionalities. Now there things are much better for newcomers: they have a continuously growing community to rely upon, both on the Google user group and on <span class="caps">IRC</span> (#cakephp on FreeNode counted 63 members today, while back in the day 20 was a big number). There are also a few people who started blogging and starting websites about CakePHP: while I was the first to write an article about - Cake I was <em>the last</em> so far to start a blog :/ Oh well, nobody’s perfect!</p> -<p>The first site I came across – although not a blog really – is Graham Bird’s <a + Cake I was <em>the last</em> so far to start a blog :/ Oh well, nobody's perfect!</p> +<p>The first site I came across – although not a blog really – is Graham Bird's <a href="http://grahambird.co.uk/cake/">Cake for Beginners</a>. When someone asks me some basic questions about - CakePHP I send him there because first of all they’ll find a short <span class="caps">FAQ</span> about the + CakePHP I send him there because first of all they'll find a short <span class="caps">FAQ</span> about the framework, i.e. something everybody should know before even start thinking about learning Cake. Similarly, the guy has a <a href="http://grahambird.co.uk/cake/glossary/">Glossary</a> in progress to help those souls who feel lost in - Cake’s terminology. If you don’t consider yourself a total beginner anymore, the <a + Cake's terminology. If you don't consider yourself a total beginner anymore, the <a href="http://grahambird.co.uk/cake/tutorials/">Tutorials</a> section can be a very interesting read: I wanted to add some <span class="caps">AJAX</span> bits to my site, but the documentation about this seemed pretty scarce, so I headed to the <a href="http://grahambird.co.uk/cake/tutorials/ajax.php">Ajax Task List</a> tutorial and it really helped.</p> <p>On the blogs front, on the other hand, <a href="http://cakebaker.42dh.com/">Cake Baker</a> seems to be the most - active: I’m starting to check this one often (OK, I’d better subscribe to the <span - class="caps">RSS</span> feeds, perhaps) because it seems to be <span class="caps">THE</span> best place to get - the latest news about everything concerning CakePHP: The author seems to post quite frequently (there’s always - a new post every 1-3 days maximum) includes short code snippets when necessary and report news when there’s + active: I'm starting to check this one often (OK, I'd better subscribe to the <span class="caps">RSS</span> feeds, + perhaps) because it seems to be <span class="caps">THE</span> best place to get + the latest news about everything concerning CakePHP: The author seems to post quite frequently (there's always + a new post every 1-3 days maximum) includes short code snippets when necessary and report news when there's anything to report.</p> <p><a href="http://sentino.wordpress.com/">Sentino</a> is also an interesting place to learn new things about CakePHP: the only problem is that the author seems to post less frequently… the blog seems to have some sort of - “milestone” schedule, publishing something when there’s something big enough to justify a post. If + “milestone” schedule, publishing something when there's something big enough to justify a post. If you want to subscribe to a less frequent blog with only the essentials about Cake, this is a good choice.</p> <p><a href="http://rossoft.wordpress.com/">RosSoft</a> unlike the others mentioned up to now has a much more technical approach: no news about Cake or anything, just some <span class="caps">REALLY</span> useful real-world example of@@ -49,18 +49,18 @@ <br />
Among the most interesting fully working snippets:<br /> <a href="http://rossoft.wordpress.com/2006/03/29/ip-to-country-component-geo-location/">IP-to-country component</a> <br /> - <a href="http://rossoft.wordpress.com/2006/03/27/poor-mans-cron-component/">Poor man’s cron + <a href="http://rossoft.wordpress.com/2006/03/27/poor-mans-cron-component/">Poor man's cron component</a><br /> <a href="http://rossoft.wordpress.com/2006/03/16/image-auth-component/">Image Auth – <span class="caps">CAPTCHA</span> component</a> </p> <p style="float:right;"><img src="http://xcite-online.de/spliceit/themes/SpliceIt/logo.png" alt="" /></p> <p><a href="http://www.thinkingphp.org/">ThinkingPHP</a> is another “technical” Cake blog, with interesting - code snippets and thoughts about our favourite <span class="caps">PHP</span> framework. For those who don’t - know or don’t remember him (yes, like me…), he’s the author of <a + code snippets and thoughts about our favourite <span class="caps">PHP</span> framework. For those who don't + know or don't remember him (yes, like me…), he's the author of <a href="http://xcite-online.de/spliceit/">SpliceIt!</a>… what?</p> <blockquote> - <p>SpliceIt!’s mission is to provide a clean and light-weight code base for people who want to create complex + <p>SpliceIt!'s mission is to provide a clean and light-weight code base for people who want to create complex webapps faster then ever. The things we want to provide are:<br /> – User/Right Managment<br /> – Theming Support<br />@@ -68,21 +68,21 @@ – i18n<br />
– Url Aliasing<br /> – and most notabily: Modularization of often used Code Segments</p> </blockquote> -<p>i.e. something I should have checked before recoding this website. I’ll definitely keep this in mind for the +<p>i.e. something I should have checked before recoding this website. I'll definitely keep this in mind for the next release of h3rald.com.</p> <p style="float:left;"><img src="http://rdos.rd11.com/img/rd11/rdlogo.gif" alt="" /></p> <p><a href="http://rd11.com/posts">Posts@ rd11</a> a.k.a. gwoo [and seth]‘s blog. Moment of silence. Gwoo is - CakePHP’s project manager (respect+) and one of the lead developers of CakePHP and he also actually uses Cake + CakePHP's project manager (respect+) and one of the lead developers of CakePHP and he also actually uses Cake for his website and blog instead of WordPress :)<br /> - What can I write about him. It’s difficult. I’ll avoid all possible pseudo-religious comparisons but + What can I write about him. It's difficult. I'll avoid all possible pseudo-religious comparisons but when I say that <em>he created CakePHP</em> I think I say it all. The code he used for his blog is part of a collection of open-source, Cake-powered tools all prefixed with rd- or Cake, available on <a href="https://cakeforge.org/projects/rdos">CakeForge</a>. I personally think that looking at his sample applications can be one of the best way to learn how to bake <em>properly</em>, and yes, I <strong>did</strong> check them out before coding this site for the second time. Demos are <a href="http://rdos.rd11.com/">online</a>. </p> -<p>That’s it. These are perhaps the most well-known bakers and/or Cake bloggers on the planet. There are certainly - others, maybe even in other languages, but now I’d better stop writing now, because this is a rather long blog - post. Sorry. I’m new to blogging and I just can’t help myself: especially with Cake, I need to write +<p>That's it. These are perhaps the most well-known bakers and/or Cake bloggers on the planet. There are certainly + others, maybe even in other languages, but now I'd better stop writing now, because this is a rather long blog + post. Sorry. I'm new to blogging and I just can't help myself: especially with Cake, I need to write lenghty texts!<br /> More to come…</p>
@@ -8,23 +8,23 @@ <p>The time has come. The times when I used to meander around reading stuff on the Net and writing about whatever I
wanted are over. Incidentally, the world may end, <em>your</em> laptop could explode and I could knock at your door in a few minutes asking for money, imagine that!</p> <p>Nothing of the above, alright, bad joke, but sooner or later the time to <em>start doing something</em> comes, at - some point you ought to start making some real money. It’s time to settle down, my fianceé are eager to - get our own independence, move to our new house (which we’re still doing up) etc. etc. Fair enough. I spent + some point you ought to start making some real money. It's time to settle down, my fianceé are eager to + get our own independence, move to our new house (which we're still doing up) etc. etc. Fair enough. I spent the last five months wasting my time looking for a job, a <em>proper</em> job having something to do with <acronym title="Information Technology"><span class="caps">IT</span></acronym> and finally something seems to be possible.</p> <p><em>Either nothing or everything</em> – I may even say that: now I have to face a difficult choice between two job proposals that seem both fairly interesting. <br /> - <em>“Go wherever you can get more bucks, you nutter!”</em> – Well, there’s more to it.<br /> - Let’s examine now the two similar but yet different realities I have to choose from. Maybe you’ll never + <em>“Go wherever you can get more bucks, you nutter!”</em> – Well, there's more to it.<br /> + Let's examine now the two similar but yet different realities I have to choose from. Maybe you'll never be in my situation, but I hope this can help at least those who experienced or could experience something similar someday. </p> -<p><em><strong>Working under Uncle Bill’s wing</strong></em><br /> - <img src="/images/pictures/genova.jpg" alt="" /> Not Microsoft. No, not directly at any rate. I’ve recently +<p><em><strong>Working under Uncle Bill's wing</strong></em><br /> + <img src="/images/pictures/genova.jpg" alt="" /> Not Microsoft. No, not directly at any rate. I've recently been contacted by a well known multi-national company which does almost anything ranging from computers, phones, - electrical stuff to huge self-aware robots designed to conquer new worlds… Not quite, but let’s just say + electrical stuff to huge self-aware robots designed to conquer new worlds… Not quite, but let's just say that this image contributes to give an idea of a Corporate-type reality. </p> <p><em>Preliminaries</em><br />@@ -36,13 +36,13 @@ class="caps">GCSE</span> English test with a bunch of “technical” questions (“What does <span
class="caps">HTTP</span> mean?”…).<br /> Thanks to our Merciful God I passed it (and thus avoided endless teasing by my British fianceé), and they wanted to have a proper interview with me today.<br /> - I went there and came back a few hours ago, and I think it wasn’t too bad, let’s say I may stand good + I went there and came back a few hours ago, and I think it wasn't too bad, let's say I may stand good chances but as normally happens in such companies in the end it was just something like <em>Thank you for coming, - we’ll call you by the end of April</em>. Although I mentioned that I recently had some other job offer - obviously they couldn’t give a damn: as any other big company, they need to interview all the possible - candidates to be sure they pick the right one, and that’s fair enough.</p> + we'll call you by the end of April</em>. Although I mentioned that I recently had some other job offer + obviously they couldn't give a damn: as any other big company, they need to interview all the possible + candidates to be sure they pick the right one, and that's fair enough.</p> <p><em>The job</em><br /> - In the remote eventuality they decide to take me on board, I’d be part of a Documentation Team in charge of + In the remote eventuality they decide to take me on board, I'd be part of a Documentation Team in charge of writing technical documents, manuals and silly jokes – perhaps – about some semi-classified huge internal semi-intelligent corporate framework. <br /> Now, although some people may already start to feel bored even at thinking about a job like that, I think this role@@ -51,50 +51,50 @@ other boring (for other people) stuff! And they want me to write in English, not in Italian, which is – it may
sound weird – a true relief for me. <br /> At the interview I had a chance to talk about my <a href="/articles/">articles</a> and they seemed interested in this activity of mine… I even mentioned my <a href="/articles/cakephp/">CakePHP article</a> and they say - they’re gonna check it out. Oh well, this site’s stats are always one Firefox tab away from my current - main browsing tab, so you can bet I’ll be tracking that.</p> + they're gonna check it out. Oh well, this site's stats are always one Firefox tab away from my current + main browsing tab, so you can bet I'll be tracking that.</p> <p><em>The contract and the salary</em><br /> - <em>Classified</em>. They didn’t say anything, as usual, but presumably it should be a permanent (or + <em>Classified</em>. They didn't say anything, as usual, but presumably it should be a permanent (or semi-permanent) contract with all the contributions, health insurance, taxes etc. paid. And free cookies. Yum!<br /> - Salary… well, it shouldn’t be too bad, anyway. + Salary… well, it shouldn't be too bad, anyway. </p> <p><em>PROs</em></p> <ul> - <li>I’ll be doing something I really enjoy: writing in English</li> + <li>I'll be doing something I really enjoy: writing in English</li> <li>Steady job, steady contract, more security</li> <li>Corporare Environment</li> - <li>I can show off with my friends who are still studying pointless stuff and tell them I’m working for + <li>I can show off with my friends who are still studying pointless stuff and tell them I'm working for <company name removed> </li> </ul> <p><em>CONs</em></p> <ul> - <li>There’s a risk I’ll lose my individuality</li> + <li>There's a risk I'll lose my individuality</li> <li>The salary could be lower than expected – at least initially</li> - <li>They’ll get back to me at the end of this month, and I have to give an answer to someone else before that + <li>They'll get back to me at the end of this month, and I have to give an answer to someone else before that </li> - <li>My friends and fianceé will probably hassle me to give them free goodies they think I’ll get from + <li>My friends and fianceé will probably hassle me to give them free goodies they think I'll get from the company</li> </ul> -<p><em><strong>Working in a ‘cool place’, and fly high</strong></em> <br /> +<p><em><strong>Working in a ‘cool place', and fly high</strong></em> <br /> <img src="/images/pictures/lambruschini.jpg" alt="" /> Nope, sorry, the <a href="http://www.cakefoundation.org/">Cake Software Foundation</a> unfortunately is not hiring. The alternative is a small company in my city, Genoa, which recently merged with a slightly bigger company based in Milan, which <em>might</em> merge with a big national company involved in producing some successful (here in Italy and even abroad, a little bit) TV programs. Network - involved are Italy’s national channels, good ol’ pal Berlusconi’s channels, Sky Italy and (drums) + involved are Italy's national channels, good ol' pal Berlusconi's channels, Sky Italy and (drums) <span class="caps">MTV</span>.<br /> Cool, innit? What do they do? Well, interaction between mobile phones and TV through software and networks. Polls, <span class="caps">SMS</span> chat services, <span class="caps">WAP</span> application downloads, “take matey - out of Big Brother’s house”, <span class="caps">SMS</span>/<span class="caps">MMS</span> blind dates + out of Big Brother's house”, <span class="caps">SMS</span>/<span class="caps">MMS</span> blind dates related to some well known TV programs, tele-voting at Sanremo Festival etc. etc. </p> <p><em>Preliminaries</em> <br /> - Their first interview was the most unusual I’ve ever had, and I <a href="/articles/9/">already wrote</a> + Their first interview was the most unusual I've ever had, and I <a href="/articles/9/">already wrote</a> about it: they even asked me to solve a riddle. Then they wanted to meet me again and showed me how they work in two different areas (see next section). They are really chilled out, friendly, they seem alright, even the main boss who - deals with the company’s financial side, which is always a plus. <br /> - By the way, they already offered me the job, and I’ll have to give an answer next Tuesday – that’s + deals with the company's financial side, which is always a plus. <br /> + By the way, they already offered me the job, and I'll have to give an answer next Tuesday – that's the bad part.</p> <p><em>The Job</em><br /> The Lead Developer of the company apparently seemed satisfied enough with my knowledge and Java skills. A first@@ -107,28 +107,28 @@ The other possibility which they suggested after noticing my ability to write and research would be 2nd Level Help
Desk. Get dozens of technical emails every day, file reports, notify developers when something goes wrong, propose solutions, implement solutions, monitor the systems and even execute queries on the production server on the fly, in real time (eeek!). <br /> - This could sound boring/annoying/scary but since I’m a freak I think it’s an interesting prospective. + This could sound boring/annoying/scary but since I'm a freak I think it's an interesting prospective. Perhaps not as qualifying as being a Java Developer, perhaps not.</p> <p><em>The contract and the salary</em><br /> 1200-1250 (or more) €/month, after tax. Which in my country is considered a more-than-reasonable pay, especially for a first job. Differnt form of contract, from consultant-with-<span class="caps">VAT</span> to - renewable yearly projects, which is probably what I’d go for. Contributions/taxes paid, kind of, holidays and + renewable yearly projects, which is probably what I'd go for. Contributions/taxes paid, kind of, holidays and other vacancies included, kind of.</p> <p><em>PROs</em></p> <ul> <li>Perhaps better salary</li> <li>I know exactly what they offer, they told me their offer in detail</li> <li>Chilled out environment</li> - <li>Perhaps I can sneak and read my desperate friends’ <span class="caps">SMS</span> when they try to pull + <li>Perhaps I can sneak and read my desperate friends' <span class="caps">SMS</span> when they try to pull birds</li> </ul> <p><em>CONs</em></p> <ul> <li>Less steady contract, less security</li> - <li>I’ll hardly ever use my English skills, perhaps</li> + <li>I'll hardly ever use my English skills, perhaps</li> <li>They <span class="caps">NEED</span> a yes or no by next tuesday</li> - <li>My friends will probably hassle me to spy on other people’s <span class="caps">SMS</span> traffic and/or + <li>My friends will probably hassle me to spy on other people's <span class="caps">SMS</span> traffic and/or make them win TV contests</li> </ul> -<p>Here’s where I stand. I can’t complain, alright, but I must choose and act carefully. I’ll sleep on +<p>Here's where I stand. I can't complain, alright, but I must choose and act carefully. I'll sleep on it.</p>
@@ -4,24 +4,24 @@ content-type: article
timestamp: 1144938060 tags: "cakephp|writing" ----- -<p>Too right. Enough being a lazy writer, it’s time to seriously produce something. I could sit here and pretend - that long blog posts can make up for the lack of new articles, but I’d like to write something <em>proper</em> +<p>Too right. Enough being a lazy writer, it's time to seriously produce something. I could sit here and pretend + that long blog posts can make up for the lack of new articles, but I'd like to write something <em>proper</em> and new. Judging by the latest stats people come here hoping to find either a blog <em>entirely</em> devoted to CakePHP or some CakePHP related content. Well, actually they can find quite a bit, but - I’d like to be able to sport more Cake-related articles, bookmarks, and posts. My main problem is that I could + I'd like to be able to sport more Cake-related articles, bookmarks, and posts. My main problem is that I could add ten bookmarks about Cake right away, but the <em>latest addition</em> showed on the front page would feature only bookmarks, which would be bad (yes, I do worry about silly things). At the moment this blog is the second easiest way to provide fresh content frequently enough to encourage visitors to come back, but articles could be even better.</p> <p style="float:left;"><img src="/images/pictures/baking_bear.png" alt="" /></p> <p>Without further ado, I hereby announce that <em>I am working on some new articles on CakePHP</em>, at least one. - I’d like to write something technical about CakePHP’s advanced features, because that’s where the + I'd like to write something technical about CakePHP's advanced features, because that's where the current documentation is lacking, at the moment: associations, caching, some advanced components… they are topics which seem to interest those bakers who already baked their first cake and are now looking for some more icing.</p> -<p>Interested? Good! Sadly, that’s not what I’m going to write now, at least not the first article - I’ll be releasing. Please stop calling me names, there’s no need to say that I’m just a lazy - coward who doesn’t want to get his hands dirty and write some tough stuff. And stop pulling those sad faces! +<p>Interested? Good! Sadly, that's not what I'm going to write now, at least not the first article + I'll be releasing. Please stop calling me names, there's no need to say that I'm just a lazy + coward who doesn't want to get his hands dirty and write some tough stuff. And stop pulling those sad faces! Think about… new bakers. There are new people learning about Cake and I know there are, I just discovered <a href="http://www.480x.com/2006/04/12/eureka/">one</a> yesterday almost by chance: he seems to be really enthusiastic about Cake, judging by his <a href="http://www.480x.com/2006/04/13/eureka-part-deux/">latest post</a>@@ -32,11 +32,11 @@ save us all and bestow powerful blessings of Good <span class="caps">PHP</span> Design and Well-structured
Programming upon our messy spaghetti code!</p> <p>I almost considered writing a humorous article about Cake, but luckily I changed my mind. My old <a href="/articles/cakephp/">CakePHP article</a> is already a few months old and was written when Cake was in - pre-beta. I feel it’s time for a more up-to-date howto and introduction to our framework, something maybe not + pre-beta. I feel it's time for a more up-to-date howto and introduction to our framework, something maybe not as lenghty but easily readable by almost anyone interested in starting to learn about Cake.</p> -<p>Baking lessons. Yes, that’s it. I’m currently writing an article divided in ten lessons which could +<p>Baking lessons. Yes, that's it. I'm currently writing an article divided in ten lessons which could potentially turn casual cowboy coders into (apprentice) bakers. That could be easy for those already enlightened by <acronym title="Object Oriented Programming"><span class="caps">OOP</span></acronym> and <acronym title="Model-View-Controller"><span class="caps">MVC</span></acronym>, and perhaps more difficult for others: at - any rate, I’ll try my best. + any rate, I'll try my best. </p>
@@ -4,36 +4,36 @@ content-type: article
timestamp: 1145001300 tags: "cakephp|webdevelopment|php" ----- -<p>When I first talked to gwoo, CakePHP’s project manager, I asked him if Cake had any potential +<p>When I first talked to gwoo, CakePHP's project manager, I asked him if Cake had any potential <em>limitations</em>. I asked him – I was kidding actually – wether it would be possible to build an application like Gmail using the framework and he – very seriously – simply said <em>“yes, why not?”</em>. <br /> I repeat myself when I say that CakePHP leaves plenty of freedom to developers within the bounds of its <span class="caps">MVC</span> structure: once you grasp the basic logic behind it, your possibilities are endless. I - don’t want to act as a Ruby on Rails fanatic and boast that <em>you can do anything with CakePHP</em> and + don't want to act as a Ruby on Rails fanatic and boast that <em>you can do anything with CakePHP</em> and things like that, but I can certainly say that CakePHP can be <em>extended</em> and <em>integrated</em> with other - collections of scripts, frameworks and projects. With limitations, of course: you probably don’t want to force + collections of scripts, frameworks and projects. With limitations, of course: you probably don't want to force an integration between CakePHP and another <span class="caps">MVC</span>/Event Driven/Whatever framework, simply because it would be rather pointless and potential conflicts may occur. </p> <p>What I keep finding online is other open source projects adopting CakePHP as <em>backend</em> and <em>structure</em>. - I’m sure there are many examples which could be mentioned here, but I chose two in particular: one has been + I'm sure there are many examples which could be mentioned here, but I chose two in particular: one has been around for a few months and the other is just born.</p> <p style="float:left;"><img src="/images/pictures/amfphp.jpg" alt="" /></p> <p><a href="http://amfphp.org/"><span class="caps">AMFPHP</span></a> is quite an interesting project:</p> <blockquote> - <p>“[it] is an open-source Flash Remoting gateway. It’s fast, reliable, 100% free and open-source. Flash + <p>“[it] is an open-source Flash Remoting gateway. It's fast, reliable, 100% free and open-source. Flash Remoting is a technology built into the Flash player core that enables sending data between the server and the client seemlessly.”</p> </blockquote> -<p>In other words, it makes lifes much easier for developers who’d like to integrate their flash animations and +<p>In other words, it makes lifes much easier for developers who'd like to integrate their flash animations and script more tightly into their <span class="caps">PHP</span> application. If you are curious to see some results, head off to <span class="caps">AMFPHP</span> <a href="http://amfphp.org/showcase.html">showcase</a>.<br /> Cool, but what has this project to do with CakePHP? Well, gwoo recently created <a href="http://cakeforge.org/projects/cakeamfphp/">CakeAMFPHP</a>, a CakeForge project which just yesterday - reached its <a href="http://rd11.com/posts/view/21">0.4.0 release</a>, and it’s fully compatible with <span + reached its <a href="http://rd11.com/posts/view/21">0.4.0 release</a>, and it's fully compatible with <span class="caps">AMFPHP</span> 1.2.3 and CakePHP 0.10 final.<br /> - Here’s an excerpt taken from CakeAMFPHP <span class="caps">README</span>.txt file:</p> + Here's an excerpt taken from CakeAMFPHP <span class="caps">README</span>.txt file:</p> <blockquote> <p>“[…] <br /> 1) get CakePHP 0.10 final (http://cakephp.org)<br />@@ -44,11 +44,11 @@ 5) put cakeamfphp into vendors<br />
6) put the cake_gateway.php in /app/webroot<br /> 7) put the cakeamfphp.php in /app/views/helpers<br /> 8) put CakeMySqlAdpater.php in /app/vendors/amfphp-core/adapters<br /> - 9) Voila: NetServices.setDefaultGatewayUrl( ‘http://localhost/cake_install/cake_gateway.php’);<br /> + 9) Voila: NetServices.setDefaultGatewayUrl( ‘http://localhost/cake_install/cake_gateway.php');<br /> Access the service browser through<br /> http://localhost/cake_install/vendors/cakeamfphp/cakebrowser/”</p> </blockquote> -<p>The installation doesn’t seem too painful at all. And – guess what – gwoo recently updated a very +<p>The installation doesn't seem too painful at all. And – guess what – gwoo recently updated a very informative tutorial showing how to create a simple – but still impressive – bullettin board with CakeAMFPHP.</p> <p><em>“Cool, but I never liked flash, what about <span class="caps">AJAX</span>?”</em></p>@@ -70,5 +70,5 @@ class="caps">MVC</span> frameworks, and Cake was obviously listed together with two other Rails clones for <span
class="caps">PHP</span>. The good news is that <a href="http://cakeforge.org/users/a100rk/">100rk</a> just started a new project called <a href="http://cakeforge.org/projects/cqx"><span class="caps">CQX</span></a>, which – although still in pre-alpha a development demo is already available, and it <em>shows off</em> most of - qooxdoo’s features… <a href="http://cqx.100rk.org/trunk/">Take a look</a></p> + qooxdoo's features… <a href="http://cqx.100rk.org/trunk/">Take a look</a></p> <p>Best of luck to 100rk and his brand new project, I really hope to see more of it soon!</p>
@@ -5,27 +5,27 @@ timestamp: 1145106900
tags: "cakephp|webdevelopment" ----- <p><em>“CakePHP will officially support Internationalization (i18n) from version 2.0”</em>. That is to say: - not right now. That doesn’t mean we have to wait, no chance! I’m Italian and there are plenty of bakers + not right now. That doesn't mean we have to wait, no chance! I'm Italian and there are plenty of bakers speaking a language other than English who might want to develop a multi-lingual website.</p> -<p>I did, <a href="http://v60.h3rald.com/">once</a>, and the final result wasn’t too bad in the end: every page of +<p>I did, <a href="http://v60.h3rald.com/">once</a>, and the final result wasn't too bad in the end: every page of the site (except the articles) could be translated into Italian. Before examining my solution (which is far from - optimal) I’d like to mention an excellent CakePHP package which allows basic (mostly statuc) i18n.<br /> + optimal) I'd like to mention an excellent CakePHP package which allows basic (mostly statuc) i18n.<br /> It looks like I missed an important baker in my recent <a href="/articles/11">blog post</a>: <a href="http://www.noswad.me.uk/">Andy Dawson</a>, creator – among other things – of the <a href="http://cakeforge.org/snippet/detail.php?type=package&id=2">Locale Package</a>, available at CakeForge. - His solution actually came out after H3RALD.com v60 was already developed so I didn’t use it for my own + His solution actually came out after H3RALD.com v60 was already developed so I didn't use it for my own site.<br /> - At a first glance Andy’s solution truly solves basic l18n problems in an elegant way: the most important code + At a first glance Andy's solution truly solves basic l18n problems in an elegant way: the most important code snippet is the <a href="http://cakeforge.org/snippet/download.php?type=snippet&id=74">Locale Component</a> which provides the following functionalities:</p> <ul> - <li>automatic language detection based on browser’s UserAgent string</li> + <li>automatic language detection based on browser's UserAgent string</li> <li>loading of locale files</li> <li>setting of customizeable (translated) messages</li> </ul> <p>The getString() method provided in the locale component is actually used through the double underscore function, which is already defined (but not yet implemented) in the standard CakePHP file <code>cake/basics.php</code> (yes, - this is a small core hack). Andy’s double underscore function can take five parameters:</p> + this is a small core hack). Andy's double underscore function can take five parameters:</p> <pre><code>function __($msgId, $MessageArgs=NULL, $capitalize=1, $punctuate=0,$Code=NULL) { require_once(COMPONENTS.'locale.php');@@ -36,14 +36,14 @@ <p>These parameters are:</p>
<ul> <li>a “message id” or the message itself</li> <li>some parameters which can be passed to the message</li> - <li>the message’s capitalization: + <li>the message's capitalization: <ul> <li>0 = no change</li> <li>1 = first letter of first word</li> <li>2 = fist character of all words</li> </ul> </li> - <li>the message’s punctuation: + <li>the message's punctuation: <ul> <li>0 = ""</li> <li>1 = .</li>@@ -51,7 +51,7 @@ <li>2 = !</li>
<li>3 = ?</li> </ul> </li> - <li>the language code, if you need to override your page’s language</li> + <li>the language code, if you need to override your page's language</li> </ul> <p>This is a convenient method which can be used everywhere, both in your controllers and in your views, to translate simple pre-stored messages. Where are those messages stored? In various locale files which must be placed in@@ -69,10 +69,10 @@ useful rewrite of the <em>Time Helper_. Andy recently updated his <a
href="http://wiki.cakephp.org/tutorials:i18n">i18n tutorial</a> available on CakePHP Wiki, a very interesting read on how to quickly add i18n support to yout first Cake blog (yes, the one described in the <a href="http://wiki.cakephp.org/tutorials:blog_tutorial">Blog Tutorial</a>_-</em>1).</p> -<p>So far so good. The Locale Package provide some basic multi-lingual support in an efficient way, and I’d +<p>So far so good. The Locale Package provide some basic multi-lingual support in an efficient way, and I'd certainly use it if I decide to (re-)develop a multi-lingual site, but unfortunately this does not fully solve the problem.<br /> - If you want <strong>full</strong> i18n, for sure you’d like to have all the contents of your website + If you want <strong>full</strong> i18n, for sure you'd like to have all the contents of your website translated, which is – normally – dynamic and maybe stored in a database. That was the case of my old website: all the pages are dynamic, not static, so I had to think about something else. <br /> Since I only had plans to develop a <em>dual</em> language site, I opted for a very lazy (but yet effective)@@ -86,7 +86,7 @@ <li>text_it</li>
<li>created</li> <li>modified</li> </ul> -<p>I basically defined a global $lang variable set to “en” by default and then I accessed the record’s +<p>I basically defined a global $lang variable set to “en” by default and then I accessed the record's fields (for example in views) like this:</p> <p><code>echo $data['Project']['text_'.$lang]</code></p> <p>Ugly, perhaps, but did the job. The good (or bad) thing about this technique was that I could modify the contents of
@@ -13,39 +13,39 @@ href="http://adodb.sourceforge.net/">ADOdb</a> or <a href="http://pear.php.net/package/DB"><span
class="caps">PEAR</span>::DB</a>.</p> <p>CakePHP seems to use a <em>multiple level</em> database abstraction: in other words, popular abstraction layers like ADOdb or <span class="caps">PEAR</span>::DB have been wrapped in a “driver” which basically extends the - DboSource class (which is the most high level database abstraction). Some people don’t like the idea, because + DboSource class (which is the most high level database abstraction). Some people don't like the idea, because this means that the could be some performance issues, for one, and also that inevitably not <em>all</em> features offered by either ADOdb or <span class="caps">PEAR</span>::DB are used. In my very, very, very modest opinion - (I’m not an expert on this matter), this solution focus on achieving good database compatibility leaving the + (I'm not an expert on this matter), this solution focus on achieving good database compatibility leaving the doors open for further tinkering, if needed.</p> <p style="float:left;"><img src="/images/pictures/postgres.png" alt="" /></p> <p>Having said this, yes, the possibilities are good that your favorite database is supported by CakePHP, more or less. - Of course, as repeatedly pointed out by some CakePHP core developers, Cake dev team didn’t and is not going to + Of course, as repeatedly pointed out by some CakePHP core developers, Cake dev team didn't and is not going to test <em>every</em> database with Cake, using either of the two abstraction layers, but users are more than welcome to do so.</p> -<p>Let’s now have a look at what is <em>known to work</em> with Cake:</p> +<p>Let's now have a look at what is <em>known to work</em> with Cake:</p> <p><strong>MySQL</strong> works fine, and is currently recommended as <em>preferred</em> database solution. What about - <strong>MySQLi</strong>? Well, thanks to mappleJoe there’s a (PHP5 only!) <a + <strong>MySQLi</strong>? Well, thanks to mappleJoe there's a (PHP5 only!) <a href="http://cakephp.org/pastes/show/770e73e77e4d7a3d32c2f3de3f175512">driver</a> ready to be used. </p> -*PostgreSQL*’s support is continuously improving. Something may work, something may not: the good news is that the +*PostgreSQL*'s support is continuously improving. Something may work, something may not: the good news is that the folks who are using it are <a href="http://groups.google.com/group/cake-php/browse_thread/thread/85a29ab6ec6826a0/8eecea26ba53e1fd?q=postgres&rnum=1#8eecea26ba53e1fd">sharing their thoughts</a> with the rest of us. <p style="float:right;"><img src="/images/pictures/sqlite.gif" alt="" /></p> <p><strong>SQLite</strong> is supported natively, or so it seems… what about the newest SQLite3? Yes, probably: - there’s a quick <a href="http://www.thompsonlife.net/index.php?section=9">howto</a> on ThompsonLife.net to + there's a quick <a href="http://www.thompsonlife.net/index.php?section=9">howto</a> on ThompsonLife.net to make it work through the dbo_pear driver.</p> <p><strong>Access</strong> works through the ADOdb driver, as reported in CakePHP <a href="http://wiki.cakephp.org/docs:databases">wiki</a> (thanks ivanp).</p> -<p><a href="http://www.filemaker.com/">FileMaker</a> is getting there: things aren’t that easy, but bdb is doing +<p><a href="http://www.filemaker.com/">FileMaker</a> is getting there: things aren't that easy, but bdb is doing <a href="http://groups.google.com/group/cake-php/browse_thread/thread/572d8dd2ba4cbdf7/dca851c795247c0b?q=database&rnum=2#dca851c795247c0b">all his best</a> to make it work, good luck! </p> <p>Neil Fincham was also trying to develop a custom driver to support <a href="http://www.pervasive.com/">Pervasive</a> through a <a href="http://www.unixodbc.org/">unixODBC</a> driver. Best of luck!</p> -<p>For other databases, check ADOdb’s <a href="http://phplens.com/adodb/supported.databases.html">list of +<p>For other databases, check ADOdb's <a href="http://phplens.com/adodb/supported.databases.html">list of supported databases</a> and use the <code>dbo-adodb</code> driver, or use <span class="caps">PEAR</span>::DB (for fbsql, ibase, informix, msql, mssql, mysql, mysqli, oci8, odbc, pgsql,sqlite and sybase) using the <code>dbo-pear</code> driver.
@@ -4,13 +4,19 @@ content-type: article
timestamp: 1145342820 tags: "cakephp" ----- -<p>Gustavo Carreno just <a href="http://groups.google.com/group/cake-php/browse_thread/thread/4e13231cc383b9bb/6414184c1058fadb#6414184c1058fadb">announced</a> a new release of the <a href="http://cakeforge.org/frs/?group_id=53&release_id=82">CakePHP Offline Manual</a>. Personally I was extremely happy to download this new release because it finally contains documentation and howtos related to CakePHP’s Model Associations, which is perhaps one of the most used <em>advanced</em> CakePHP features.<br /> -So I’ll have no excuses not to learn how to use them, great…</p> +<p>Gustavo Carreno just <a + href="http://groups.google.com/group/cake-php/browse_thread/thread/4e13231cc383b9bb/6414184c1058fadb#6414184c1058fadb">announced</a> + a new release of the <a href="http://cakeforge.org/frs/?group_id=53&release_id=82">CakePHP Offline Manual</a>. + Personally I was extremely happy to download this new release because it finally contains documentation and howtos + related to CakePHP's Model Associations, which is perhaps one of the most used <em>advanced</em> CakePHP + features.<br /> + So I'll have no excuses not to learn how to use them, great…</p> <p>The manual is available in the following formats:</p> <ul> <li>Windows compressed <span class="caps">HTML</span> (.chm)</li> <li><span class="caps">PDF</span></li> <li><span class="caps">HTML</span> (multiple pages or single page)</li> </ul> -<p>Furthermore, the CakePHP <span class="caps">API</span> is also available for download in .chm format, thanks to Mladen Mihajlovic.</p> +<p>Furthermore, the CakePHP <span class="caps">API</span> is also available for download in .chm format, thanks to + Mladen Mihajlovic.</p> <p>Well done guys. Really useful for people like me who are on dialup sometimes :)</p>
@@ -8,39 +8,39 @@ <p>Once upon a time I used <a href="http://en.wikipedia.org/wiki/BBCode">BBcode</a>. CyberArmy and all its affiliated
sites adopted it as <em>de-facto</em> standard for forums and articles, so consequently more or less all my articles are bbcoded. <br /> I could copy and paste the <em>BBcodeHelper</em> I coded for this site, and it could be quite an interesting read - for some people… well, tough luck: today I’d like to talk about Textile instead, which now I consider + for some people… well, tough luck: today I'd like to talk about Textile instead, which now I consider <em>the answer</em> to all text formatting problems. </p> -<p>If what I wrote up to here doesn’t make sense to you, I’m rambling about the apparent necessity and the +<p>If what I wrote up to here doesn't make sense to you, I'm rambling about the apparent necessity and the undeniable need of web developers, content managers, and writers to use something else other than <span - class="caps">HTML</span> for adding style and formatting text. What’s wrong with <span - class="caps">HTML</span>? Nothing, it’s just too “tiresome” to use: you have to remember to + class="caps">HTML</span> for adding style and formatting text. What's wrong with <span class="caps">HTML</span>? + Nothing, it's just too “tiresome” to use: you have to remember to close all tags, break lines, use the <code><strong></code> tag every time you want <strong>bold text</strong>, etc. etc.<br /> Some people even freak out when you tell them that they have to use <span class="caps">HTML</span> in their text: - “it’s just <em>waaaaaay too difficult</em> to learn and use” …things like that.</p> -<p>Whether you are scared to learn <span class="caps">HTML</span>, you don’t want to, or you know it but - you’re too lazy to seriously thinking about manually use a markup language to write your article, I can say - that you’ll definitely become addicted to Textile. What? <em>“<acronym + “it's just <em>waaaaaay too difficult</em> to learn and use” …things like that.</p> +<p>Whether you are scared to learn <span class="caps">HTML</span>, you don't want to, or you know it but + you're too lazy to seriously thinking about manually use a markup language to write your article, I can say + that you'll definitely become addicted to Textile. What? <em>“<acronym title="What You See is What You Get"><span class="caps">WYSIWYG</span></acronym> <span - class="caps">HTML</span> editors?”</em> – C’mon, let’s at least <em>try</em> to be + class="caps">HTML</span> editors?”</em> – C'mon, let's at least <em>try</em> to be serious :)<br /> - Why BBcode doesn’t help enough? Well, simply because I don’t see why <code>[i]this[/i]</code> is easier + Why BBcode doesn't help enough? Well, simply because I don't see why <code>[i]this[/i]</code> is easier than <code><i>this</i></code>: unless you have a particular phobia for angular brackets, it seems quite similar to me!</p> <p>What about <code>_this_</code> instead? You use only two additional characters instead of seven. <span - class="caps">SEVEN</span>. If I only want italcized text I honestly can’t imagine myself using more than - two extra characters. It’s natural. It’s human.</p> + class="caps">SEVEN</span>. If I only want italcized text I honestly can't imagine myself using more than + two extra characters. It's natural. It's human.</p> <p style="float:left;"><img src="/images/pictures/pear2.gif" alt="" /></p> -Precisely. Textile is a <em>“Humane web text generator™”</em>, it’s simple, elegant and produces +Precisely. Textile is a <em>“Humane web text generator™”</em>, it's simple, elegant and produces standard compliant <span class="caps">XHTML</span> code. <a href="http://www.textism.com/about/">Dean Allen</a> should be worshipped by entire generations of web developers for inventing something so easy to use and so <em>elegant</em> at the same time. Maybe not worshipped, but for sure respected. -<p>I won’t copy and paste the extremely useful <a - href="http://cakeforge.org/projects/textilehelper/">TextileHelper</a> for CakePHP either, simply because - it’s 4085 lines long and it would be pointless: you can just get it and use it.</p> -<p>I’ll just include some examples of textile formatting…</p> +<p>I won't copy and paste the extremely useful <a href="http://cakeforge.org/projects/textilehelper/">TextileHelper</a> + for CakePHP either, simply because + it's 4085 lines long and it would be pointless: you can just get it and use it.</p> +<p>I'll just include some examples of textile formatting…</p> <table> <tr> <td> <strong>Textile Code</strong> </td>@@ -83,9 +83,9 @@ <p>Regardless, Textile is not perfect and may have some quirks, at least the CakePHP helper: the_undefined pointed out
in a <a href="http://www.thinkingphp.org/2006/03/22/textile-a-personal-love-of-mine/">blog post</a> that external links are opened in the same window, so he provided a patch to the textile helper to handle this situation.<br /> I also noticed that sometimes empty <code>style=""</code> and <code>class=""</code> attributed are generated, which - don’t do any particular harm, but they are not needed either… so here’s a quick fix to improve + don't do any particular harm, but they are not needed either… so here's a quick fix to improve your Textile experience in CakePHP: You can use this function ideally in your customized textile helper, - <code>$data</code> should be the return value of TextileHelper’s <code>process()</code> method. + <code>$data</code> should be the return value of TextileHelper's <code>process()</code> method. </p> <pre><code> function _fixTextile($data)
@@ -8,15 +8,15 @@ <p>Yesterday my grandpa passed away, due to an aggravation of his health condition, breathing problems and various other
complications. He died in hospital, on Liberation Day, the Italian national holiday celebrating the liberation of our country from the nazi-fascist regime by the Allied troops and partisans on April 25th 1945. He died exactly 61 years after that day.</p> -<p>I’d like to remember my grandpa today, because he most certainly deserves it, as he was a really extraordinary +<p>I'd like to remember my grandpa today, because he most certainly deserves it, as he was a really extraordinary person.</p> -<p><em>“Yes, I’m sure he was, isn’t everybody extraordinary in some way?”</em></p> +<p><em>“Yes, I'm sure he was, isn't everybody extraordinary in some way?”</em></p> <p>Definitely: everybody is special, and people tend to say that especially when someone passes away. In my - grandpa’s case, actually I can say that in a slightly more absolute sense: his life was truly uncommon and + grandpa's case, actually I can say that in a slightly more absolute sense: his life was truly uncommon and very active.</p> <p><strong>A very active life</strong></p> <p style="float:left;"><img src="/images/pictures/grandpa.jpg" alt="" /></p> -<p>Vittorio Cevasco, my grandfather, was certainly the most active member of my family. We’re talking about a man +<p>Vittorio Cevasco, my grandfather, was certainly the most active member of my family. We're talking about a man who was still able to drive a car up to last September (he was nearly 90 years old), and used to drive 500 Km on the motorway and mountain roads every year to go on vacation: he went to the same place, Mals Vinschgau, near the Italian-Austrian-Swiss border for over fifty years. He never had particular troubles to walk, and just in the past@@ -32,7 +32,7 @@ exercise. His other exercise was cultivating our land in Sessarego, near Bogliasco (Genoa, Italy), as a hobby more
than anything, providing us with fresh <em>biological</em> products like that extraordinary basil essential to make our very tasty local <a href="http://www.pesto.net/eng/index.php">pesto sauce</a>.<br /> He always tried to convince me to do some work there, and he actually taught me various tips and secrets which will - hopefully be useful in near future. Sadly, when he was alive I wasn’t too keen on the idea of cultivating and + hopefully be useful in near future. Sadly, when he was alive I wasn't too keen on the idea of cultivating and maintain our land from time to time… but I kind of changed my mind recently, and I know he realized that just a few days before he died.</p> <p>After <span class="caps">WWII</span> he did various things, he even was erhm… somehow active in <em>certain@@ -50,21 +50,21 @@ <p><strong>The Aviator</strong></p>
<p style="float:left;"><img src="/images/pictures/sessarego.jpg" alt="" /></p> <p>My grandpa lived the early years of his youth in the village of Sessarego, where my great-grandfather bought an old house, after taking part in <a href="http://www.italian-american.com/garib-it.htm's">Giuseppe Garibaldi</a> - expedition at Marsala (1860) fighting for the Italian independence (he’s listed among <a + expedition at Marsala (1860) fighting for the Italian independence (he's listed among <a href="http://www.italian-american.com/garibal.htm">the ones</a> who actually landed there).<br /> There his parents used to have a few cows and produce milk, and one of his tasks was milking delivery… no scooters or cars, at the time, of course, and certainly not for a teenager like him: he often had to carry the milk - barrels up and down the hill <em>on foot</em>, and I’m talking about 1-2 Km with at least 30-40 kilos on your + barrels up and down the hill <em>on foot</em>, and I'm talking about 1-2 Km with at least 30-40 kilos on your shoulders!</p> -<p>But my grandpa’s plans were much different: he wanted to fly away, and high – literally. You can imagine +<p>But my grandpa's plans were much different: he wanted to fly away, and high – literally. You can imagine the face of my grand-grandfather when he expressed his wish to become a pilot! Nobody ever did that, in the area, and becoming a pilot was, at the time, like becoming an astronaut in the seventies.<br /> The price of the license was really high at the time, 1,200 Lire. That would be like at least 30,000 Euro now, - especially considering that his parents weren’t exactly rich. In the very end, my father supported him and + especially considering that his parents weren't exactly rich. In the very end, my father supported him and provided as much money as he could afford: 1000 Lire.<br /> But he still needed 200 Lire, so after hassling the flying instructors he signed an agreement stating that if they - anticipated him the money he’d have paid them back once he started working: it was clear in fact that - he’d have became a military pilot, as the Regime needed people for their brand new aircrafts, and the was felt + anticipated him the money he'd have paid them back once he started working: it was clear in fact that + he'd have became a military pilot, as the Regime needed people for their brand new aircrafts, and the was felt imminent.<br /> He paid them back, eventually, after passing both the civil and military tests. He became a sergeant for the <em>Regia Aviazione</em> (Royal Airforce), with a salary of 20 Lire/month, ten of which went to the flying school,@@ -73,32 +73,32 @@ </p>
<p>One of the most peculiar things about my grandpa was his memory: he was always able to tell you the story of his life, all the events, with the same details and <em>all the exact dates</em>, on every occasion. Even when we took him to the hospital, a few weeks ago, when we asked the nurse if he was self-conscious she said: - <em>“Yes… well, he was talking a few hours ago, but I don’t know if he was raving or what… + <em>“Yes… well, he was talking a few hours ago, but I don't know if he was raving or what… he said he was a pilot, and that he used to fly at 350Km/h…”</em> </p> <p style="float:right;"><img src="/images/pictures/r2002-main.jpg" alt="" /></p> <p>Damn right. His old <a href="http://www.comandosupremo.com/Re2002.html">Re 2002</a> was able to fly at 350 Km/h if pushed, at a standard altitude of 35,000 m, while carrying a 500Kg bomb. It was <em>his</em> plane, and he never - forgot that, even a few days before he passed away. He’d tell you all the stats, the mechanics, the technical + forgot that, even a few days before he passed away. He'd tell you all the stats, the mechanics, the technical details and all the tricks to perform acrobatic maneuvers if you asked him… Not that actually anybody ever - did, because <em>every</em> time something reminded him of that, even slightly, he’d start talking about the + did, because <em>every</em> time something reminded him of that, even slightly, he'd start talking about the old days when he was commanding his squad patrolling the Italian borders.</p> -<p>Last year, after my grandma died and he didn’t feel like driving 500Km to go to the mountains (for the first +<p>Last year, after my grandma died and he didn't feel like driving 500Km to go to the mountains (for the first time in his life), I had to drive his <em>Fiesta</em> myself in my first long driving journey. At first I - wasn’t too sure I’d have enjoyed the drive, partly because of the long distance and partly because I was + wasn't too sure I'd have enjoyed the drive, partly because of the long distance and partly because I was going to be alone with my grandpa for about six hours, and I was afraid of not be able to find enough topics of conversation…</p> <p>That fear went away almost instantly right a few minutes after we started the journey.<br /> When we got on the motorway, I started complaining that my dad was going slightly over the limit with his brand new - Peugeot 307: <em>“Look, he’s already going at 140km/h and we just started the journey!”</em></p> -<p><em>“Centûcäranta chilumetri l’ûa… û më aeruplannu pûeivä + Peugeot 307: <em>“Look, he's already going at 140km/h and we just started the journey!”</em></p> +<p><em>“Centûcäranta chilumetri l'ûa… û më aeruplannu pûeivä fâ ï trexëntusincûanta cûmme ninte!”</em><br /> [140 kilometers per hour… my plane could easily do 350!]</p> -<p>He normally used to speak in <em>zeneise</em> (“Genovese”), Genoa’s dialect, mixed with some +<p>He normally used to speak in <em>zeneise</em> (“Genovese”), Genoa's dialect, mixed with some Italian <em>if he really had to</em>. That was it: if you started talking about speed, technology, engines, history or any other topic which was <em>slightly</em> related to his plane, the war, the regime etc. he always started off talking about his past and his plane, ignoring everything else. <br /> - My grandma used to get kinda annoyed about it… on every occasion, if he had a chance, he’d start talking + My grandma used to get kinda annoyed about it… on every occasion, if he had a chance, he'd start talking about <em>that particular day in 193x/4x</em> and so on: we all knew that, and actually I enjoyed listening to his stories, mostly because they were genuine and authentic relics of an old and glorious past. I think in his mind he wanted us all to remember him in that way, to always keep in mind that he was a pilot and how he enjoyed it, even@@ -106,9 +106,9 @@ when he went in jail for it, even when his plane was taken down…</p>
<p style="float:left;"><img src="/images/pictures/Re2002.jpg" alt="" /></p> <p>On that day right after he was assigned to a new base, they asked him to perform some exercises in the air, loops and all sort of acrobatics: <em>“ë sölite cöse che së dûviëiva fä in - t’ë l’aviäsiûn”</em> [the usual things you had to do in the airforce].<br /> + t'ë l'aviäsiûn”</em> [the usual things you had to do in the airforce].<br /> He was just starting practicing the Re 2002 at the time, but he quickly found out that it was <em>extremely</em> - maneuvrable, at least to the standards of the time: the equivalent of a top range today’s fighter.<br /> + maneuvrable, at least to the standards of the time: the equivalent of a top range today's fighter.<br /> He started off with some usual things, performing various twists in the air, loops, etc. etc. until he had to end his exhibition with a dive from an altitude of 10,000m down at maximum speed to a limit of 1500m… On that particular day a colonel from another base and some other high-ranking officer were down on the ground near the@@ -116,37 +116,37 @@ aircraft to enjoy the show, and check that everything was performed correctly. My grandpa was aware of that, so he
decided to perform a great show especially for them that day: he went up to 10,000m, and then dove down accelerating, helped by gravity… he went down and down, faster and faster, people down on the ground were staring at him waiting for him to pull up the plane, but nothing, he still went down and down so that quickly the - small crowd of captains and colonels got scared and run away in every direction: <em>“He’ll crash, - he’ll crash!”</em> <br /> + small crowd of captains and colonels got scared and run away in every direction: <em>“He'll crash, + he'll crash!”</em> <br /> He did not crash, not that day… he went down up to slightly less than 100m and <em>then</em> pulled up the plane: ar real wonderful <em>extreme</em> performance. Now imagine this beast of a plane coming down at 300Km/h and accelerating, making a terrible noise typical of the engines of the time and then <em>pull up suddenly</em> right - above your head: one more second and he wouldn’t have been able to tell that story.<br /> - He was called by the commander of the base who told him: <em>“Cevasco, you’re hell of a skilled pilot, + above your head: one more second and he wouldn't have been able to tell that story.<br /> + He was called by the commander of the base who told him: <em>“Cevasco, you're hell of a skilled pilot, but now I have to put you in jail for a day for not obeying your orders of staying above 1500m”</em> - – That, I reckon, was one of the best days of my grandpa’s life.</p> + – That, I reckon, was one of the best days of my grandpa's life.</p> <p>He was never captured, but his plane was taken down by an English <em>Spitfire</em> in the South of Italy. The war was nearly finished, and there were just those little air fights from time to time. He really risked a lot that day, and managed to attempt an emergency “landing” completely destroying his plane along as part of his jaw, which was alright after a few months. <br /> Since then he never flew again, and managed to escape to be re-called in duty. But he did like flying back with his memories to those glorious days.</p> -<p>A few years ago my dad showed him Microsoft’s <em>“Flight Simulator 98”</em>, and some other flying +<p>A few years ago my dad showed him Microsoft's <em>“Flight Simulator 98”</em>, and some other flying games. He was amazed at the graphic, but not so satisfied with the whole <em>simulation</em> thing: not even close to reality, too damn easy.</p> <p><em>“Cäu më, te vûeive vedde tïe a fä vûlá û më aeruplannu”</em><br /> - [My dear, I’d have liked to see you trying to fly <em>my</em> plane]</p> + [My dear, I'd have liked to see you trying to fly <em>my</em> plane]</p> <p>…and that was it: the beginning of another journey back in time.</p> -<p>He always had a very practical view of life and especially of technology. He wouldn’t take you seriously and +<p>He always had a very practical view of life and especially of technology. He wouldn't take you seriously and would not be interested in knowing about programming and the Internet, unless it could produce some concrete result: </p> <p><em>“Ti che ti stûddi da insegnë e che ti stë sempre davanti a-û cumputer, nun te - puriësci truvä ûn sistemmä de anä in t’ë a banca e piggië qualche + puriësci truvä ûn sistemmä de anä in t'ë a banca e piggië qualche miliûn the Euro?”</em><br /> - [You that you’re studying to become an engineer and that spend so long in front of the computer, - couldn’t you find a way to get into a bank and get out some million of Euro?]</p> -<p>He’d have loved me to become a [rich] hacker, probably… But the last time I saw him, last Friday, he + [You that you're studying to become an engineer and that spend so long in front of the computer, + couldn't you find a way to get into a bank and get out some million of Euro?]</p> +<p>He'd have loved me to become a [rich] hacker, probably… But the last time I saw him, last Friday, he seemed happy enough to hear that I was just about to start working.</p> <p>He realized that I finally found a good job after my studies, and then my dad told him Roxanne and I would have moved to the countryside, in Sessarego… He made a big effort to move the muscles of his mouth in a large smile: he
@@ -6,16 +6,16 @@ tags: "website|review"
----- <p>Today is my birthday! <a href="/articles/20/">Not too happy</a>, but still my birthday after all. What presents did I get from my relatives and friends? Well, various things, but I told my parents and uncles I actually needed some - web space… <em>“What? Didn’t you have the hosting sorted out?”</em><br /> + web space… <em>“What? Didn't you have the hosting sorted out?”</em><br /> Well, I had, up to a few days ago when my friends and hosting provider, DeWayne Lehman, decided to close down his <a - href="http://www.block-house.com">company</a>. The reason being, to cut a long story short, that he can’t - keep up with competition: he doesn’t have enough customers, and he can’t afford server upgrades, while + href="http://www.block-house.com">company</a>. The reason being, to cut a long story short, that he can't + keep up with competition: he doesn't have enough customers, and he can't afford server upgrades, while other companies are literally giving space away.<br /> That was a pity, not only because Block House used to host various non-profit orgs and initiatives, but also because the guy who run it was an excellent admin, always offering excellent support.</p> -<p>Anyhow, in the end I’ll have to transfer all five of my sites to a new host, so here we go again: - <em>what’s the best hosting company?</em><br /> - Obviously it depends a lot on what you’re looking for, and here’s what I need: +<p>Anyhow, in the end I'll have to transfer all five of my sites to a new host, so here we go again: + <em>what's the best hosting company?</em><br /> + Obviously it depends a lot on what you're looking for, and here's what I need: </p> <ul> <li>At least 4GB of space</li>@@ -28,8 +28,8 @@ <li>Subdomains allowed (10 in total?)</li>
<li><span class="caps">FTP</span> <em>and <span class="caps">SSH</span></em> access</li> <li>Subversion, if possible</li> </ul> -<p>All this for less than 10$/month, ideally 5$, on shared hosting. I already made my choice and if you’re reading - this post it means everything worked fine, but anyway, let’s have a look at what the market can offer for my +<p>All this for less than 10$/month, ideally 5$, on shared hosting. I already made my choice and if you're reading + this post it means everything worked fine, but anyway, let's have a look at what the market can offer for my needs. I only went for US-based hosts: Italian hosts are terrible and US hosts are normally more reliable and cheaper.</p> <p style="float:left;"><img src="/images/pictures/dreamhost.gif" alt="" /></p>@@ -47,17 +47,17 @@ <li>Subversion and <span class="caps">CVS</span></li>
<li>…and more</li> </ul> <p>For 7.95 if you pay two years in advance. And the first time you can get up to 97$ off by using one of the thousands - referrer’s coupons available on the net. OK, where’s the catch? Well, there’s a <a + referrer's coupons available on the net. OK, where's the catch? Well, there's a <a href="http://futurosity.com/231/why-dreamhost-sucks">bad review</a> about them which points out that their reliability is not too great, for example, and that the seem to be rather dodgy in general. “They are - overselling, they’ll soon enforce <span class="caps">CPU</span> restrictions” etc. etc. <br /> - <em>…let’s move along</em> + overselling, they'll soon enforce <span class="caps">CPU</span> restrictions” etc. etc. <br /> + <em>…let's move along</em> </p> <p style="float:right;"><img src="/images/pictures/rails.gif" alt="" /></p> <p>I might try out Ruby on Rails someday, so perhaps I thought it would be wise to choose a host supporting it, for a change. The first Rails friendly I thought about was <a href="http://www.railsplayground.org">RailsPlayground</a>, which started off as <span class="caps">FREE</span> Rails host and then ended up offering interesting commercial - hosting plans. They are not bad, and I’d have probably gone with them if I had only one site to manage: for + hosting plans. They are not bad, and I'd have probably gone with them if I had only one site to manage: for 60$ a year you get:</p> <ul> <li>3GB of space</li>@@ -70,18 +70,18 @@ <li><span class="caps">FTP</span> and <span class="caps">SSH</span> access</li>
<li>Subversion and <span class="caps">CVS</span></li> <li>…and more</li> </ul> -<p>Well, the only reason why I didn’t go with them was that I did slightly more space, only that. The plan for 5GB +<p>Well, the only reason why I didn't go with them was that I did slightly more space, only that. The plan for 5GB of space costs 11$/month, which was too expensive for my liking.</p> <p style="float:left;"><img src="/images/pictures/textdrive.gif" alt="" /></p> -<p>Since we’re talking about Rails, why not <a href="http://www.textdrive.com">Textdrive</a>? Founded by 200 IT - professional, hosts high quality sites, it’s the official Rails host… An “elite” solution, - here’s what you get:</p> +<p>Since we're talking about Rails, why not <a href="http://www.textdrive.com">Textdrive</a>? Founded by 200 IT + professional, hosts high quality sites, it's the official Rails host… An “elite” solution, + here's what you get:</p> <ul> <li>Use Apache and Lighttpd web servers side-by-side</li> <li>Host PHP4 and PHP5 web pages and applications</li> <li>Host a weblog using Textpattern, Wordpress, MovableType, Typo, etc</li> <li>Host Ruby and Ruby on Rails applications (including <span class="caps">FCGI</span> and hundreds of gems)</li> - <li>Host Perl applications (including 100’s of Perl modules)</li> + <li>Host Perl applications (including 100's of Perl modules)</li> <li>Host Python applications like Django</li> <li>Manage your code base with version control (Subversion, <span class="caps">SVK</span>, Darcs, Monotone & Arch)</li>@@ -97,10 +97,10 @@ <li>Host Mailman mailing lists complete with archives</li>
<li>Use MySQL (default), PostgreSQL, SQLite and Berkeley databases</li> </ul> <p>Plans start at 12$/month for 1GB of space and one website… The 3GB one is 40$/month, for 20 sites in total. Too - bad it’s too expensive for me as they are truly the top for shared hosting – I think.</p> + bad it's too expensive for me as they are truly the top for shared hosting – I think.</p> <p><a href="http://www.hostgator.com/">Host Gator</a>, which seems to be one of the most frequently recommended at SitePoint.com forums, is not bad either. They have a “hatchling” plan for 3,5GB at 6.95, which - wasn’t bad, but it only allows one domain to be hosted. The “Baby” plan allows unlimited domains + wasn't bad, but it only allows one domain to be hosted. The “Baby” plan allows unlimited domains and is 9.95$/month, which is kinda dear. You get:</p> <ul> <li>5GB of space</li>@@ -113,7 +113,7 @@ <li><span class="caps">FTP</span> access</li>
<li>…and more</li> </ul> <p>No <span class="caps">SSH</span>, no <span class="caps">SVN</span> and no Rails: out.</p> -<p><a href="http://www.site5.com/">Site5</a> is also one of SitePoint’s favourite, but still has limitations on +<p><a href="http://www.site5.com/">Site5</a> is also one of SitePoint's favourite, but still has limitations on the number of sites. I would have got the SuperHosting <span class="caps">XTREME</span>, for 7,77$/month:</p> <ul> <li>11GB of space</li>@@ -130,12 +130,12 @@ <div style="float:right; padding:3px;">
<script src="http://www.bluehost.com/src/js/h3rald/CODE2/488x160/1.jpg"></script> </div> <p>This site is currently hosted on <a href="http://www.bluehost.com">BlueHost</a>, a hosting company established in - 1996, which seems to be reliable enough (not many complaints on the net) and seems serious enough. They don’t + 1996, which seems to be reliable enough (not many complaints on the net) and seems serious enough. They don't offer subversion and WebDAV for “security reasons” and in order to get a shell account you have to send - them a copy of an ID card. Annoying? Well, perhaps for some: this made me understand that they don’t allow - just anybody to get <span class="caps">SSH</span> access unconditionally, and I didn’t mind. I sent them a + them a copy of an ID card. Annoying? Well, perhaps for some: this made me understand that they don't allow + just anybody to get <span class="caps">SSH</span> access unconditionally, and I didn't mind. I sent them a scansion of my ID card and I got a friendly support email after a few minutes, confirming that it was activated. - Here’s what I got:</p> + Here's what I got:</p> <ul> <li>15GB of space</li> <li>400GB bandwidth</li>@@ -147,4 +147,4 @@ <li><span class="caps">FTP</span> and <span class="caps">SSH</span> access</li>
<li>…and more</li> </ul> <p>For 6,65$/month, 2 years pre-payment. One of the good things is that they are not fussy about giving the money back - if you cancel. Anyhow… let’s hope for the best, so far, so good.</p> + if you cancel. Anyhow… let's hope for the best, so far, so good.</p>
@@ -4,16 +4,16 @@ content-type: article
timestamp: 1146317340 tags: "cakephp|rails|webdevelopment" ----- -<p>Today I decided to do something different, something I’ve been dying to do since before coming across CakePHP: +<p>Today I decided to do something different, something I've been dying to do since before coming across CakePHP: give Rails a <em>proper</em> try. Like many other <span class="caps">PHP</span> developers out there, when <a href="http://www.rubyonrails.org">Ruby on Rails</a> came out I felt damn jealous and terribly tempted to learn Ruby <em>only</em> to start using such an amazing web development framework. At the time I actually even started reading various tutorials about it, and I was literally amazed at how RoR revolutioned the way of developing web applications.</p> <p style="float:left;"><img src="/images/pictures/rails.gif" alt="" /></p> -<p>One of the main problems which made me – sadly – abandon Rails was Ruby itself: personally I’ve +<p>One of the main problems which made me – sadly – abandon Rails was Ruby itself: personally I've never seen a programming language with a cleaner and more elegant syntax, but also – at least at the time - – there weren’t many hosts supporting it. LuckilyI found CakePHP quickly after that…<br /> + – there weren't many hosts supporting it. LuckilyI found CakePHP quickly after that…<br /> Now however, more and more hosting companies boast full Rails support, and so when recently I <a href="/articles/21/">had to move</a> to a new host, I made sure it was Rails-friendly, <em>just in case I wanted to give Rails another try, someday</em>.<br />@@ -40,9 +40,9 @@ structure.txt<br />
test/<br /> tmp/<br /> vendor/</p> -<p>That’s familiar: it’s very similar to what CakePHP’s directory structure used to look like. Now +<p>That's familiar: it's very similar to what CakePHP's directory structure used to look like. Now Cake <em>evolved</em> and adopted its own schema, which – I must say – seems more functional than - RoR’s, at least at a first glance:</p> + RoR's, at least at a first glance:</p> <ul> <li>app/ <ul>@@ -67,11 +67,11 @@ <li>vendors/</li>
</ul> <p style="float:right;"><img src="/images/pictures/cakephp.png" alt="" /></p> <p>Cake felt the necessity to divide what you can mess with (<code>app/</code>, <code>vendors/</code>) from what - you’d better not touch (<code>cake/</code>). Rails just left everything on the same level.</p> + you'd better not touch (<code>cake/</code>). Rails just left everything on the same level.</p> <p>After creating my database and the necessary tables I have to edit <code>config/database.yml</code>, which - corresponds to Cake’s <code>app/config/database.php</code>. Then things start to become a bit different from + corresponds to Cake's <code>app/config/database.php</code>. Then things start to become a bit different from Cake, as Rails offers some very handy built in scripts which can be used to automatically create your - application’s files, i.e. executing <code>ruby script/generate controller Recipe</code> creates the controller + application's files, i.e. executing <code>ruby script/generate controller Recipe</code> creates the controller and other bits:</p> <pre><code>exists app/controllers/ exists app/helpers/@@ -81,7 +81,7 @@ create app/controllers/recipe_controller.rb
create test/functional/recipe_controller_test.rb create app/helpers/recipe_helper.rb</code></pre> <p>And so on. Anyhow… I followed the tutorial and yes, it was a nice read. CakePHP borrowed a lot from Rails but - not everything. Inevitably Ruby’s syntax is less verbose and looks very very clean:</p> + not everything. Inevitably Ruby's syntax is less verbose and looks very very clean:</p> <p><% highlight :ruby do %><br /> class RecipeController < ApplicationController<br /> scaffold :recipe</p>@@ -95,41 +95,41 @@ end<br />
end<br /> <% end %> </p> -<p>While CakePHP’s, simply because it uses <span class="caps">PHP</span> and not Ruby, looks less pretty:</p> +<p>While CakePHP's, simply because it uses <span class="caps">PHP</span> and not Ruby, looks less pretty:</p> <p><% highlight :php do %><br /> class RecipesController extends AppController<br /> {<br /> var $scaffold;</p> <p>function list()<br /> {<br /> - $this→set(‘recipes’, $this→Recipe→findAll());<br /> + $this→set(‘recipes', $this→Recipe→findAll());<br /> }</p> <p>function edit($id)<br /> {<br /> - $this→set(‘recipe’, $this→Recipe→find(“id = $id”));<br /> - $this→set(‘categories’, $this→Category→findAll());<br /> + $this→set(‘recipe', $this→Recipe→find(“id = $id”));<br /> + $this→set(‘categories', $this→Category→findAll());<br /> }</p> <p>}<br /> <% end %></p> <p>CakePHP Development Team did a great job translating some of Rails functionalities into <span - class="caps">PHP</span>, and the while CakePHP’s syntax is <strong>much</strong> cleaner if compared to - PHP’s standard spaghetti-code approach, Ruby just looks much more clear, sorry. <em>Imagine a world without - funny unnecessary brackets, pointless semicolons and where everything just looks better</em>: that’s Ruby. + class="caps">PHP</span>, and the while CakePHP's syntax is <strong>much</strong> cleaner if compared to + PHP's standard spaghetti-code approach, Ruby just looks much more clear, sorry. <em>Imagine a world without + funny unnecessary brackets, pointless semicolons and where everything just looks better</em>: that's Ruby. </p> <p>Sigh. Now I do understand why Rails was built in Ruby and not in <span class="caps">PHP</span>: simply because a - PHP’s Rails would have been outscored by its “Ruby port”!</p> + PHP's Rails would have been outscored by its “Ruby port”!</p> <p>One thing I liked about Rails which has not been ported in Cake (yet) is a somehow smarter way of scaffolding. While - the Ruby code above actually works, the CakePHP’s edit method doesn’t, or better, it does but not as + the Ruby code above actually works, the CakePHP's edit method doesn't, or better, it does but not as expected: when you remove <code>var $scaffold</code> the scaffold is just plain gone, and you have to code everything yourself, while in Ruby you can leave the scaffold and then develop methods one by one, and still be able - to use scaffolded methods if you didn’t define the custom ones.</p> + to use scaffolded methods if you didn't define the custom ones.</p> <p>The other thing I noticed about RoR is that it definitely handles errors better! This is probably another language issue. I basically forgot to set a category for the recipes, and when executing my custom list of recipes I got a very, very well structured error page showing something like:</p> <p><% highlight :ruby do %><br /> NoMethodError in Recipe#index</p> <p>Showing app/views/recipe/index.rhtml where line #18 raised:</p> -<p>You have a nil object when you didn’t expect it!<br /> +<p>You have a nil object when you didn't expect it!<br /> The error occured while evaluating nil.name</p> <p>Extracted source (around line #18):</p> <p>15: <% @recipes.each do |recipe| <span>><br />@@ -143,6 +143,6 @@ 21: <</span> end <span>><br />
<</span> end %></p> <p>I took a screenshot of the page, because it was too nice: <a href="/images/pictures/rails_error.jpg">check it out</a>. - This error page really tells you what’s wrong, and even prints the lines of code around the error! It also + This error page really tells you what's wrong, and even prints the lines of code around the error! It also lets the developer check the full backtrace and every sort of information… Can we have this in CakePHP please? I actually started to develop something like this, but seemed quite hard to do in <span class="caps">PHP</span>.</p>
@@ -4,80 +4,80 @@ content-type: article
timestamp: 1146483766 tags: "" ----- -<p>CakePHP is <span class="caps">THE</span> perfect <span class="caps">PHP</span> framework, so <em>we</em> don’t +<p>CakePHP is <span class="caps">THE</span> perfect <span class="caps">PHP</span> framework, so <em>we</em> don't need anything else. Oh well, no. I personally love CakePHP, but I do believe other <span class="caps">PHP</span> - frameworks can be interesting and maybe even useful, so today I thought I’d have a look at the Simfony Project. + frameworks can be interesting and maybe even useful, so today I thought I'd have a look at the Simfony Project. This framework seems to be mentioned here and there on the Net - in many different ways, someone said it can do wonders, some said it’s more advanced, others said something like + in many different ways, someone said it can do wonders, some said it's more advanced, others said something like <em>“qcodo sucks.. cake stinks.. symfony rocks!!!!!”</em>, so it <span class="caps">OUGHT</span> TO be pretty cool, definitely. </p> <p style="float:left;"><img src="/images/pictures/symfony.gif" alt="" /> <em>Know thy enemy</em> someone said (OK, bad - joke), so let’s have a look at this interesting alternative to CakePHP. <em>No dude, not another <span + joke), so let's have a look at this interesting alternative to CakePHP. <em>No dude, not another <span class="caps">MVC</span>-like, pseudo-Rails, <span class="caps">AJAX</span>-worshipping framework!</em> Yes, another one. Actually Symfony is more than that: while people <em>can</em> say CakePHP is similar to RoR for some features and for the strong <span class="caps">MVC</span> architecture, Symfony chose another road. Yes, <span class="caps">MVC</span> is still there, but the first thing I noticed after reading their <a - href="http://www.symfony-project.com/tutorial/my_first_project.html">beginners’ tutorial</a> was that one of - the things which Symfony seems to use quite regularly (and Cake doesn’t)is code generators. Things like + href="http://www.symfony-project.com/tutorial/my_first_project.html">beginners' tutorial</a> was that one of + the things which Symfony seems to use quite regularly (and Cake doesn't)is code generators. Things like executing <code>symfony propel-build-sql</code> or even <code>symfony propel-generate-crud frontend post Post</code> from command line to generate your code automagically, which CakePHP – except for our little <em>bake</em> - script – doesn’t use. <br /> + script – doesn't use. <br /> <em>See? Simfony is <span class="caps">MUCH</span> better and <span class="caps">MUCH</span> more advanced than Cake!</em> No, hang on a minute… I just listed one thing which Symfony has more than Cake, is there any more? Yes, there is, for now: i18n – internationalization. Symfony comes with native multi-lingual support and Cake - doesn’t – yet – although there are rumors that i18n for Cake 2.0 is <em>almost done</em>. This is - not speculation, re-read the sentence: First off I’m referring to Cake <em>2.0</em> (which means it will take a + doesn't – yet – although there are rumors that i18n for Cake 2.0 is <em>almost done</em>. This is + not speculation, re-read the sentence: First off I'm referring to Cake <em>2.0</em> (which means it will take a while) and also I read it in the <a href="https://trac.cakephp.org/wiki/Proposals/2.0ToDoList">Cake 2.0 ToDo List</a>. </p> <p>One of the most recurring and yet pointless critiques to CakePHP from Symfony enthusiasts is that the sites developed with CakePHP look terrible. I perfectly agree, look at <a href="/">this</a> and tell me if the - developer is not a complete and hopeless idiot when it comes to design and look ‘n’ feel!<br /> - I do agree that some CakePHP sites (mine, mainly) don’t look too good, and probably the Cake Software Foundation + developer is not a complete and hopeless idiot when it comes to design and look ‘n' feel!<br /> + I do agree that some CakePHP sites (mine, mainly) don't look too good, and probably the Cake Software Foundation should pay me to put it offline. I also agree that the Symfony website looks nice and is more pleasant to the eye than - CakePHP’s, but I do hope that the old “design contest” doesn’t get forgotten…</p> + CakePHP's, but I do hope that the old “design contest” doesn't get forgotten…</p> <p style="float:right;"><img src="/images/pictures/askeet.gif" alt="" /> The Symfony team also did something truly remarkable: a comprehensive tutorial, an advent calendar, some great free source code to download and a fully - functional Web 2.0-compliant online application <em>all in one</em>. I’m referring to Askeet, a Symfony-powered + functional Web 2.0-compliant online application <em>all in one</em>. I'm referring to Askeet, a Symfony-powered website which has been built from scratch using the framework and its development is well documented in <a href="http://www.symfony-project.com/askeet">twenty-four tutorials</a>. In one move these guys made an interesting website, some useful documentation and self - promotion… what can I say: for next Christmas we’d better chain PHPnut, gwoo, nate & the others to + promotion… what can I say: for next Christmas we'd better chain PHPnut, gwoo, nate & the others to their chairs, close them in a small room and force them to code something like that in twenty-four days.<br /> - If I were to mention something which Symfony did well I’d certainly say the <a + If I were to mention something which Symfony did well I'd certainly say the <a href="http://www.symfony-project.com/content/documentation.html">documentation</a>. Screencasts, tutorials, advent calendars, a book, a wiki, <span class="caps">API</span> etc. etc. All done, and all good, I must admit that. The good news is that CakePHP is slowly catching up, and now the <a href="http://manual.cakephp.org">manual</a> looks pretty decent.</p> -<p>OK, enough flattering and let’s talk about something I didn’t like about Symfony. I downloaded the thing - and it turns out it’s 1.2MB in size, <em>a hell of a framework!</em> After extracting the beast I had a look +<p>OK, enough flattering and let's talk about something I didn't like about Symfony. I downloaded the thing + and it turns out it's 1.2MB in size, <em>a hell of a framework!</em> After extracting the beast I had a look inside and found three directories: <code>data</code>, <code>lib</code> and <code>bin</code>. Not bad. I opened <code>bin</code> and found the three magic symfony scripts, alright; I opened <code>data</code> and found nine directories, I opened <code>lib</code> (the real deal) and found 25 directories! These guys maybe never heard of - something called <em>“an organized directory structure”</em>, or perhaps I’m just too used to - Cake’s logic and essentiality.<br /> + something called <em>“an organized directory structure”</em>, or perhaps I'm just too used to + Cake's logic and essentiality.<br /> Browsing around I found something like 247 .dat files defining country names and currencies in all the languages of the world, script.aculo.us and prototype libraries, javascript calendars and other wonders… Weeeeheee! <br /> - The good thing is that Symfony seems to include pretty much everything you’d ever need, the bad thing is that + The good thing is that Symfony seems to include pretty much everything you'd ever need, the bad thing is that <em>personally</em> I will never use any of the thirteen Chinese-related .dat files in th i18n directory. This - philosophy is exactly the opposite to Cake: at first i got pissed off when I noticed that CakePHP doesn’t + philosophy is exactly the opposite to Cake: at first i got pissed off when I noticed that CakePHP doesn't include prototype by default, but then I realized that if they started include <em>everything</em> you <em>might</em> - need <em>someday</em> we’d end up like… like Symfony, with 1.2MB of stuff 500KB of which – at least + need <em>someday</em> we'd end up like… like Symfony, with 1.2MB of stuff 500KB of which – at least – will most likely not be of any use for the average developers. </p> <p>The other dangerous consequence of including more and more stuff is the so called <em>widget-temptation</em>: If you include script.aculo.us you <span class="caps">MUST</span> show off and offer some weird toy someone <em>may</em> use… well, Symfony seems to go in that direction, and someone compared it to component-driven frameworks like eZ - Publish rather than more general-purposes projects. I’m sure the <a + Publish rather than more general-purposes projects. I'm sure the <a href="http://www.symfony-project.com/content/book/page/generator.html">admin generator</a> can be damn handy, but - what happens if I’m a terribly annoying guy who’d like to tweak it and change it so that it fits - <em>my</em> needs? In Cake… well, there’s nothing “official” included in the core, and when + what happens if I'm a terribly annoying guy who'd like to tweak it and change it so that it fits + <em>my</em> needs? In Cake… well, there's nothing “official” included in the core, and when you find a third-party helper or component you feel you can take a look and poke around, extend it, or change it - totally. It’s all up to the developers and their needs: personally think that widgets are useful, but some times + totally. It's all up to the developers and their needs: personally think that widgets are useful, but some times people like a bit more flexibility. </p> <p>So the overall impression of Symfony is that – regardless its arguable, self-proclaimed, - <em>enterprise-ready</em> status – it is rather complex, with a steep(er) learning scheme which doesn’t + <em>enterprise-ready</em> status – it is rather complex, with a steep(er) learning scheme which doesn't justify the extra features. </p> <p>From the <a href="http://www.symfony-project.com/tutorial/my_first_project.html">My first Symfony project</a>@@ -114,12 +114,12 @@ <p></code></pre><br />
</small><br /> This code is longer to read than to explain: It describes two tables Post and Comment. </p> - <p>NO! Sorry, no. This is <span class="caps">NOT</span> simple. It is logic, clear and makes perfect sense, it’s - not that I’m retarded and I can’t write or read <span class="caps">XML</span> files, it’s just + <p>NO! Sorry, no. This is <span class="caps">NOT</span> simple. It is logic, clear and makes perfect sense, it's + not that I'm retarded and I can't write or read <span class="caps">XML</span> files, it's just unnecessary. You create this and then call the slave-script to create the model and the corresponding database table… This is exactly the <em>enterprise</em> way of doing things CakePHP made me forget. <em>Convention over configuration</em>. Not hundreds of configuration files.</p> - <p>But there’s more: you can even configure your views with some simple <code>.yml</code> (!) file:<br /> + <p>But there's more: you can even configure your views with some simple <code>.yml</code> (!) file:<br /> <pre><code> default: http_metas:@@ -132,13 +132,13 @@ keywords: symfony, project
language: en </code></pre> </p> - <p>Sure, it’s good. It helps, and it’s certainly useful, but I’d rather code a custom component to + <p>Sure, it's good. It helps, and it's certainly useful, but I'd rather code a custom component to do the same thing with a few arrays. Again, this is arguable.<br /> Validation is done through .yml files, and you can configure your administrator backend through a .yml file too! - Cake has .ini-based <span class="caps">ACL</span>, and that’s about it: if I don’t want to use them I - don’t use them. <br /> - Clearly you probably don’t have to edit all settings in the configuration files, but I just don’t like + Cake has .ini-based <span class="caps">ACL</span>, and that's about it: if I don't want to use them I + don't use them. <br /> + Clearly you probably don't have to edit all settings in the configuration files, but I just don't like the approach, personally.</p> - <p>Oddly enough, Symfony’s slogan seems to be “professional web tools for lazy folks”…</p> + <p>Oddly enough, Symfony's slogan seems to be “professional web tools for lazy folks”…</p> <p>It all depends on what you need. For <em>my</em> needs I chose CakePHP, and <a - href="https://trac.cakephp.org/wiki/Cake/About">here’s why</a>.</p> + href="https://trac.cakephp.org/wiki/Cake/About">here's why</a>.</p>
@@ -6,18 +6,18 @@ tags: "cakephp|webdevelopment"
----- <p>As <a href="http://digg.com/programming/CakePHP_1.0_has_been_released">Digg</a>_ points out, the first <em>stable</em> version of CakePHP was released, yesterday. I should have posted yesterday about it, and no, I - didn’t forget: I was just busy downloading the new version, have a look at the new site, talk to people etc. + didn't forget: I was just busy downloading the new version, have a look at the new site, talk to people etc. </p> -<p>Anyhow, it’s ready, just baked and smells damn good. Go get it if you didn’t already, it’s - available at <a href="http://cakeforge.org/frs/?group_id=23">the usual place</a>, even this time you won’t be +<p>Anyhow, it's ready, just baked and smells damn good. Go get it if you didn't already, it's + available at <a href="http://cakeforge.org/frs/?group_id=23">the usual place</a>, even this time you won't be disappointed. CakePHP now reached the 1.0 milestone, in a way which reminds me a lot about Mozilla Firefox: a lot of people were already using it <em>before</em> it went stable officially!</p> <p style="float:left;"><img src="/images/pictures/CakePHP_1.0.png" alt="" /></p> <p>The CakePHP Team has been humble enough not to declare their product <em>stable</em> before the time. I personally considered CakePHP stable <em>enough</em> since RC2… and considering that this site and many others have been - built on alpha, beta and RC version, I think people can get an idea of Cake’s reliability.<br /> + built on alpha, beta and RC version, I think people can get an idea of Cake's reliability.<br /> Nothing (too) new came out the oven this time: CakePHP 1.0 is mainly a bugfix release, with all the features - we’ve learnt to love. It’s just <em>better_: a lot of things have been fixed, model associations work + we've learnt to love. It's just <em>better_: a lot of things have been fixed, model associations work better, etc. etc. You can read the <a href="http://cakeforge.org/frs/shownotes.php?group_id=23&release">changelog/announcement</a></em>id=85 or have a look below for a quick summary of the new features and most interesting fixes:</p>@@ -55,13 +55,13 @@ Added check for AppController::appError(); will be called if this method
is in AppController. </code></pre> <p style="float:right;"><img src="/images/pictures/cakesite.png" alt="" /></p> -<p>If you’re not too excited about this new release, maybe you should have a look at <a +<p>If you're not too excited about this new release, maybe you should have a look at <a href="http://www.cakephp.org">www.cakephp.org</a>. Different? Damn right it is: it looks like someone listened to our prayers for a new website design. The merciful soul is <a href="http://www.nolimit-studio.com/">Armando - Sosa</a>, the winner of CakePHP’s design contest. He’s a latin-american web designer who had the + Sosa</a>, the winner of CakePHP's design contest. He's a latin-american web designer who had the <span class="caps">GREAT</span> idea of thinking about an <em>innovative</em> design for the Cake site… - Actually my dad didn’t think that way: <em>“That’s not new, that way of advertising was all over - the place when I was a kid!”</em> And he’s right, Armando thought that a fifties-like template would + Actually my dad didn't think that way: <em>“That's not new, that way of advertising was all over + the place when I was a kid!”</em> And he's right, Armando thought that a fifties-like template would have been perfect for Cake. Forget all the smooth, roundy-and-chubby, toons-like “official” Web 2.0 designs (beta), the new Cake site needs to stand out of the crowd… </p>
@@ -6,17 +6,17 @@ tags: "web20|webdevelopment|internet"
----- <p>…So it turns out that my <a href="/articles/rails-inspired-php-frameworks/">last article</a> appeared on <a href="http://www.digg.com">Digg</a> homepage. <br /> - This was quite a pleasant surprise: I didn’t expect that an article submitted to <em>my own site</em> could - make it that far! I thought you’d need a relatively well-known website, mafia’s support, some divine + This was quite a pleasant surprise: I didn't expect that an article submitted to <em>my own site</em> could + make it that far! I thought you'd need a relatively well-known website, mafia's support, some divine intervention and a terrific amount of luck, but it seems that sometimes an interesting article about an interesting - subject can be enough. I’ll probably write a more detailed report of what happened soon, in another article + subject can be enough. I'll probably write a more detailed report of what happened soon, in another article rather than a blog post, but for now I just wanted to post a short summary here.</p> <p>Two days ago I decided to write a roundup of the six Rails-inspired <span class="caps">PHP</span> frameworks, CakePHP, Symfony, <span class="caps">PHP</span> on Trax, Code Igniter, Biscuit and Pipeline. The reason for this was - that I couldn’t find anything comparing all of them and such comparison could have been useful for some new - <em>bakers_. OK, I confess, when I started writing the article I thought I’d submit it to Digg and see what + that I couldn't find anything comparing all of them and such comparison could have been useful for some new + <em>bakers_. OK, I confess, when I started writing the article I thought I'd submit it to Digg and see what happens: I saw that another <a href="http://www.phpit.net/article/ten-different-php-frameworks/">roundup</a> - made it to the first page and people were quoting it everywhere on the net. It’s a nice article, but + made it to the first page and people were quoting it everywhere on the net. It's a nice article, but – in my humble opinion – not too exhaustive. <br /> Then I read a comment by someone to the <a href="http://digg.com/programming/CakePHP_1.0_has_been_released">digg</a></em> of the latest Cake release@@ -24,31 +24,31 @@ stating:
</p> <blockquote> <p>Yes, they are similar – both were inspired by Rails, but Cake has gone further to differentiate themselves. - Here’s a decent (but not great) overview of some frameworks: + Here's a decent (but not great) overview of some frameworks: http://www.phpit.net/article/ten-different-php-frameworks/</p> </blockquote> <p>At that point, I thought that another round up, perhaps more Cake-centric, was in order. The other reason was that in one of my recent <a href="/articles/23/">blog posts</a> I tried to compare CakePHP and Symfony, but obviously my emotions got in the way and in the end I noticed I was kinda <em>attacking</em> Symfony. - That was a blog post though, and that’s half-allowed, but I felt that I should have written a slightly more + That was a blog post though, and that's half-allowed, but I felt that I should have written a slightly more objective <em>article</em> mentioning also all the other competitors.</p> <p>Anyhow, right when I went to submit my article to Digg, it turns out that another guy wrote <a href="http://digg.com/programming/5_Next_Generation_PHP_Frameworks">a similar round up</a>, which made it to - Digg’s homepage. That was an annoying cohincidence, but in the end things didn’t go too bad: his roundup + Digg's homepage. That was an annoying cohincidence, but in the end things didn't go too bad: his roundup was more generic, while mine was more specific and detailed.</p> <p style="float:left;"><img src="/images/pictures/dugg_detail.png" alt="" /></p> -<p>After submitting my article the reaction wasn’t instantaneous… 5, 7, 10, 13 diggs in the first two hours. +<p>After submitting my article the reaction wasn't instantaneous… 5, 7, 10, 13 diggs in the first two hours. Then shortly I made it to 30 and when the 40th visitor dugg it my article was moved to the first page!<br /> I immediately noticed it when I refreshed my stats page: a minute before my girlfriend was here telling me “oh look, over 400 visitors… not too bad”. Then I refreshed the page and it said <em>539</em>, I refreshed again and said 600-something… eeep… Digg effect!</p> <p>A special praise goes to my new hosting company, <a href="http://www.bluehost.com/track/h3rald/CODE5">BlueHost</a>: - the server didn’t go down and it managed the extra traffic fine! A good test for CakePHP as well, since I + the server didn't go down and it managed the extra traffic fine! A good test for CakePHP as well, since I built this site with it.</p> <p>So here I am… over 5000 visitors read my article, about 600 people dugg it, nearly 40 people commented it on digg.com and 20 directly on my site. And – except for the usual <em>Rails-is-better-than-anything-else</em> comments – they were generally positive. Over 250 people bookmarked on del.icio.us and many blogs mentioned it in many different countries.</p> -<p>Money? Didn’t make much with adsense at all: programmers <em>don’t</em> click on ads!<br /> +<p>Money? Didn't make much with adsense at all: programmers <em>don't</em> click on ads!<br /> Bandwidth? About 1GB was gone in the first five hours, now is obviously slowing down: oh well, I still have another 398GB available till the end of the month :P</p>
@@ -14,35 +14,35 @@ already tried to port this functionalities, with mixed results. What about Cake? Oh well, yes, we do have something
like that… something rather different, but still something: the <code>bake.php</code> script.<br /> This cute little thing is located in the <code>cake/scripts/</code> folder and can be used – hear, hear – from command line. You can run Ruby and Perl scripts, so yes, you can actually run <span - class="caps">PHP</span> from command line, although it’s not its primary purpose.</p> + class="caps">PHP</span> from command line, although it's not its primary purpose.</p> <p><img src="/images/pictures/bake.jpg" alt="" /></p> -<p>Cool then, let’s open a *nix shell, Windows command prompt, etc. etc., go into the <code>cake/scripts/</code> +<p>Cool then, let's open a *nix shell, Windows command prompt, etc. etc., go into the <code>cake/scripts/</code> folder and run:</p> <p><code>php bake.php</code></p> <p>Assuming that the php executable is in your <em><span class="caps">PATH</span></em> environment variable – if - not, either you add it or you’ll have to type something like:</p> + not, either you add it or you'll have to type something like:</p> <p><code>D:SERVERphpphp.exe bake.php</code></p> -<p>depending on where your php executable is. You’ll be be greeted by a “<span class="caps">CAKEPHP</span> - <span class="caps">BAKE</span>” text, and then you’ll be asked a few questions. One thing to realize +<p>depending on where your php executable is. You'll be be greeted by a “<span class="caps">CAKEPHP</span> + <span class="caps">BAKE</span>” text, and then you'll be asked a few questions. One thing to realize before proceeding any further: bake.php is <em>not</em> a generator, not in the traditional “Rails” - sense, anyway. It’s rather a handy but more verbose dialogue-based configuration script – which will + sense, anyway. It's rather a handy but more verbose dialogue-based configuration script – which will also generate <em>something</em> eventually if you provide all the necessary details.<br /> A different approach, which may be good or bad according to your taste: personally I think we should also have something faster to use, like a Rails generator, and I opened a <a - href="https://trac.cakephp.org/ticket/768">ticket</a> about it, but let’s see what bake.php can do, for + href="https://trac.cakephp.org/ticket/768">ticket</a> about it, but let's see what bake.php can do, for now. </p> <p>The answer is… nearly anything. It annoying enough to please, but if you follow its directions it can do a - prettu decent job in the end, it’s far from being sentient, but let’s say it’s smart enough for a - script. First of all if you try it out on a fresh Cake install it will notice that you haven’t configured your + prettu decent job in the end, it's far from being sentient, but let's say it's smart enough for a + script. First of all if you try it out on a fresh Cake install it will notice that you haven't configured your database yet, so it will ask for a hostname, username, password, database name etc. etc. and generate your <code>app/config/database.php</code> for you, not a bad start. </p> -<p>Once that’s done – and it won’t go on unless you configure a (MySQL only?) database – you can +<p>Once that's done – and it won't go on unless you configure a (MySQL only?) database – you can proceed with the rest. You can start creating either a controller, model or view; I tried a <code>Posts</code> controller, for example. The script then asks quite a few questions:</p> <ul> - <li>The controller’s name</li> + <li>The controller's name</li> <li>Whether it will use other models besides posts</li> <li>Whether you want to include any helper</li> <li>Whether you want to include any component</li>@@ -58,19 +58,19 @@ //var $scaffold;
var $name = 'Posts';</p> <p>function index()<br /> {<br /> - $this→set(‘data’, $this→Post→findAll());<br /> + $this→set(‘data', $this→Post→findAll());<br /> }</p> <p>function add()<br /> {<br /> - if(empty($this→params[‘data’]))<br /> + if(empty($this→params[‘data']))<br /> {<br /> $this→render();<br /> }<br /> else<br /> {<br /> - if($this→Post→save($this→params[‘data’]))<br /> + if($this→Post→save($this→params[‘data']))<br /> {<br /> - $this→flash(‘Post saved.’, ‘/posts/index’);<br /> + $this→flash(‘Post saved.', ‘/posts/index');<br /> }<br /> else<br /> {<br />@@ -80,19 +80,19 @@ }<br />
}</p> <p>function edit($id)<br /> {<br /> - if(empty($this→params[‘data’]))<br /> + if(empty($this→params[‘data']))<br /> {<br /> - $this→set(‘data’, $this→Post→find(‘Post.id = ’ . $id));<br /> + $this→set(‘data', $this→Post→find(‘Post.id = ' . $id));<br /> }<br /> else<br /> {<br /> - if($this→Post→save($this→params[’data’]))<br /> + if($this→Post→save($this→params['data']))<br /> {<br /> - $this→flash(‘Post saved.’, ‘/posts/index’);<br /> + $this→flash(‘Post saved.', ‘/posts/index');<br /> }<br /> else<br /> {<br /> - $this→set(‘data’, $this→params[‘data’]);<br /> + $this→set(‘data', $this→params[‘data']);<br /> $this→validateErrors($this→Post);<br /> $this→render();<br /> }<br />@@ -100,19 +100,19 @@ }<br />
}</p> <p>function view($id)<br /> {<br /> - $this→set(‘data’, $this→Post→find(’Post.id = ’ . $id));<br /> + $this→set(‘data', $this→Post→find('Post.id = ' . $id));<br /> }</p> <p>function delete($id)<br /> {<br /> $this→Post→del($id);<br /> - $this→redirect(‘/posts/index’);<br /> + $this→redirect(‘/posts/index');<br /> }</p> <p>function postList()<br /> {<br /> $vars = $this→Post→findAll();<br /> foreach($vars as $var)<br /> {<br /> - $list[$var[‘Post’][‘id’]] = $var[‘Post’][‘name’];<br /> + $list[$var[‘Post'][‘id']] = $var[‘Post'][‘name'];<br /> }</p> <p>return $list;<br /> }<br />@@ -120,11 +120,11 @@ }<br />
?><br /> </code></pre><br /> </small></p> -<p>It’s more or less the same with models and views: it will still ask a lot of questions and in the end generate +<p>It's more or less the same with models and views: it will still ask a lot of questions and in the end generate the thing. <br /> This behaviour is more advanced than a standard generator, you can include helpers and components already, if you want, but do you <em>really</em> want that? For models it even asks if you want to include particular associations - and validation rules! Personally, I’d rather a generator script which generates something <em>immediately</em> + and validation rules! Personally, I'd rather a generator script which generates something <em>immediately</em> and accepts maybe some parameters to further customization, like:</p> <p><code>php bake.php scaffold Posts</code><br /> <code>php bake.php controller Posts</code><br />
@@ -5,16 +5,16 @@ timestamp: 1147081800
tags: "cakephp" ----- <p>Right after my <a href="/articles/26">last blog post</a> I decided to log on #cakephp on irc.freenode.org as usual, - and gwoo pops in and says “h3raLd, you didn’t review rdBaker yet!”<br /> - That’s right, I didn’t yet, so I may as well do it today.</p> + and gwoo pops in and says “h3raLd, you didn't review rdBaker yet!”<br /> + That's right, I didn't yet, so I may as well do it today.</p> <p>I remember hearing about rdBaker months ago, waaay before CakePHP 1.0, way before the RCs, I remember someone mentioning it on CakePHP user group in right after the bake.php script was created. <em>“How about having an - online baking utility?”</em> – and that’s precisely what rdBaker is, a more <span + online baking utility?”</em> – and that's precisely what rdBaker is, a more <span class="caps">PHP</span>-ish version of bake.php, which runs like any other <span class="caps">PHP</span> scripts: in your browser.</p> <p>This cute little thing is obviously available for free on <a href="http://cakeforge.org/frs/?group_id=13&release_id=74">CakeForge</a> and is part of <a - href="http://www.rd11.com">gwoo</a> ’s <a href="http://cakeforge.org/projects/rdos/">rdOpenSource</a> project + href="http://www.rd11.com">gwoo</a> 's <a href="http://cakeforge.org/projects/rdos/">rdOpenSource</a> project which includes various other Cake-powered applications.<br /> I personally recommend new (and old) bakers to download them and play with them, try to understand how they were coded, because they can really teach you <em>a lot</em> on how to code a CakePHP application or website properly.</p>@@ -28,16 +28,16 @@ </quote>
<p>Not too hard, innit?</p> <p><img src="/images/pictures/rdbaker.jpg" alt="" /></p> <p>Good. So you try accessing something like <code>http://localhost/php/test/cakephp/cake_test/rdBaker/</code> - (that’s on my own local <span class="caps">WAMP</span> server) and you’ll get a nice page asking you to + (that's on my own local <span class="caps">WAMP</span> server) and you'll get a nice page asking you to “supply your ingredients” via a simple form. <br /> - Unlike its command line cousin, rdBaker doesn’t require you to fill in <em>all</em> the fields, but just the + Unlike its command line cousin, rdBaker doesn't require you to fill in <em>all</em> the fields, but just the full path to the save directory (which is normally already filled in) and of course the name of the model (Post, User, Comment).<br /> Then you can select the type of output and choose whether you want to generate an empty controller, a scaffolded one or the <em>full</em> option including all the most common <acronym title="Create, Retrieve, Update, Delete"><span class="caps">CRUD</span></acronym> methods.<br /> Finally – if you like – you can enter any association or valitation rules for your model, then press the - <em>Bake it!</em> button and voilá, in you’ll find three directories (controllers, models and views) in + <em>Bake it!</em> button and voilá, in you'll find three directories (controllers, models and views) in your save directory containing all the <acronym title="Model View Controller"><span class="caps">MVC</span></acronym> entities you need regarding a particular model: </p>@@ -52,14 +52,14 @@ [4] => edit.thtml created and written. Look in D:SERVERwwwphptestcakephpcake_testtmpviews/notes
[5] => view.thtml created and written. Look in D:SERVERwwwphptestcakephpcake_testtmpviews/notes ) </code></pre> -<p>But there’s more! By checking the appropriate checkbox, you can get all the stuff packed in a zip file!</p> +<p>But there's more! By checking the appropriate checkbox, you can get all the stuff packed in a zip file!</p> <p>Not bad at all, and fast as well.</p> <p>Now the bad things…<br /> - The script works fine, but there’s something which could be improved, perhaps:</p> + The script works fine, but there's something which could be improved, perhaps:</p> <ul> <li>If you choose to put everything in a zip file, the file will be named “baked_by_rdBaker.zip” – not a big deal, but maybe it could be personalized according to the model name entered.</li> - <li>Regardless you want to add validation rules to your model or not, you’ll <em>always</em> find some + <li>Regardless you want to add validation rules to your model or not, you'll <em>always</em> find some validation rules for a <em>title</em> and <em>body</em> field. I checked and they are hardcoded in the template file (rdBaker/views/helpers/templates/full/model.txt):<br /> <pre><code>
@@ -4,27 +4,27 @@ content-type: article
timestamp: 1147580760 tags: "website|writing" ----- -<p>Yes, I know, I’ve been slaking a little bit, and haven’t posted on my blog in a while. Well, I actually - <em>didn’t</em> slack at all in these days getting ready to start my job, looking for a damn fitted kitchen +<p>Yes, I know, I've been slaking a little bit, and haven't posted on my blog in a while. Well, I actually + <em>didn't</em> slack at all in these days getting ready to start my job, looking for a damn fitted kitchen for my house and… writing more articles. </p> <p>Nothing special, and nothing too technical, to be honest, but equally interesting. First of all I updated my <a - href="/articles/ie-lovers-guide-to-firefox/">An IE Lover’s Guide to Firefox</a> a little bit and + href="/articles/ie-lovers-guide-to-firefox/">An IE Lover's Guide to Firefox</a> a little bit and people at SpreadFirefox.com and <a href="http://www.firefoxfacts.com/">FirefoxFacts</a> liked it. Glad to hear that, unfortunately some guy who wrote about <a href="http://mywebpages.comcast.net/SupportCD/FirefoxMyths.html">Firefox - Myths</a> wasn’t too impressed, but at any rate he read it anyway.</p> -<p>OK, this wasn’t a new article at all, but <a href="/articles/the-internet-philosopher/">this one</a> is - fresh, at least. It’s about a Swedish guy who decided to emigrate to India pursuing an ideal: writing for his + Myths</a> wasn't too impressed, but at any rate he read it anyway.</p> +<p>OK, this wasn't a new article at all, but <a href="/articles/the-internet-philosopher/">this one</a> is + fresh, at least. It's about a Swedish guy who decided to emigrate to India pursuing an ideal: writing for his own opinions and ideas. And he gets paid for that too! After reading more about him on his website I decided to write something about him. An interesting and rather unusual read. Pity that some sections of his homepage are in Swedish only.</p> <p>Finally, yesterday I felt inspired and decided to write <a href="/articles/social-bookmarking-services">another roundup</a> featuring ten popular social bookmarking websites. Trying all those services was fun, with a few exceptions of course. The bad news is that there are already various reviews about social bookmarking sites and thus - the Digg folk doesn’t seem to be particularly interested in <a + the Digg folk doesn't seem to be particularly interested in <a href="http://digg.com/software/Ten_popular_social_bookmarking_services_reviewed">reading another one</a>, but - hey! After all I can’t expect of getting dugg for every roundup I write, can’t I?</p> -<p>That’s about it. And what about the CakePHP article I promised <a href="/articles/13/">long ago</a> to CakePHP - beginners? It’s done, written and ready to be published! Unfortunately the magazine I submitted it to is - taking quite a bit to review it and – most important – to tell me whether they’ll publish it or - not. Let’s hope for the best.</p> + hey! After all I can't expect of getting dugg for every roundup I write, can't I?</p> +<p>That's about it. And what about the CakePHP article I promised <a href="/articles/13/">long ago</a> to CakePHP + beginners? It's done, written and ready to be published! Unfortunately the magazine I submitted it to is + taking quite a bit to review it and – most important – to tell me whether they'll publish it or + not. Let's hope for the best.</p>
@@ -5,25 +5,25 @@ timestamp: 1148132820
tags: "cakephp|tutorial" ----- <p>Tutorials are great, articles are helpful, manuals are essential and the <span class="caps">API</span> is your best - friend, but there’s still something missing there… Unfortunately podcasts are not yet available, but the + friend, but there's still something missing there… Unfortunately podcasts are not yet available, but the CakePHP team is proud to announce the creation of two <a href="http://cakephp.org/pages/screencasts">screencasts</a> - in an effort to help new bakers familiarizing with CakePHP’s concepts. <br /> + in an effort to help new bakers familiarizing with CakePHP's concepts. <br /> This is old news now, the screencasts section came together with the <a href="/articles/24">site overhaul</a> but I - only got a chance to take a look at them (one of them only, to be totally honest) recently, and so here’s a - spoil… erhm, a <em>detailed</em> description of John Anderson’s screencast about the <a + only got a chance to take a look at them (one of them only, to be totally honest) recently, and so here's a + spoil… erhm, a <em>detailed</em> description of John Anderson's screencast about the <a href="http://manual.cakephp.org/chapter/18">Blog Tutorial</a>.</p> <p style="float:left;"><img src="/images/pictures/CakePHP_1.0.png" alt="" /></p> -<p>There’s something I’ll never do: a screencast. Recording every mouse movement, every word or piece of +<p>There's something I'll never do: a screencast. Recording every mouse movement, every word or piece of code typed in half an hour? No way! And what happens if I mistype something? People will keep pointing out the fact that I was starting to type <code></h2></code> to close a <code></h1></code> tag, or that I waited an - eternity like five full seconds before deciding what to do. I guess I’m quite paranoid… John did it, and + eternity like five full seconds before deciding what to do. I guess I'm quite paranoid… John did it, and he did it well. Using just bash, vim and Safari he was able to record an excellent 30-minutes screencast featuring the blog tutorial. <br /> Before people start complaining that the blog tutorial should be completed in fifteen minutes, keep in mind that - John’s screencast is meant to show everything clearly to new users, via a trial and error approach if + John's screencast is meant to show everything clearly to new users, via a trial and error approach if necessary.</p> -<p>Here’s what happens in the screencast, nothing new if your read the blog tutorial, but still interesting, - especially if you’re new to Cake. Unfortunately there’s no audio, but the video talks by itself and John +<p>Here's what happens in the screencast, nothing new if your read the blog tutorial, but still interesting, + especially if you're new to Cake. Unfortunately there's no audio, but the video talks by itself and John will occasionally write some comments here and there.</p> <p><em><strong>0:01 – 5:00</strong></em></p> <ul>@@ -95,5 +95,5 @@ <li>edit config/routes.php</li>
<li>set default route to posts/index</li> <li>refresh – all done!</li> </ul> -<p>That’s it. All in a 40MB .mov file. Download it from <a +<p>That's it. All in a 40MB .mov file. Download it from <a href="http://www.archive.org/download/CakePHP_BlogTutorialJohn/BlogTutorial.mov">here</a>.</p>
@@ -4,43 +4,43 @@ content-type: article
timestamp: 1148561820 tags: "writing|tools" ----- -<p>Since in these days (and even more in near future) I’m really writing a lot I thought it would be good to share +<p>Since in these days (and even more in near future) I'm really writing a lot I thought it would be good to share my thoughts on some writing programs and tools I started using for writing these blog posts, articles, and more.</p> -<p>I’m going to examine a few applications which I find useful for different tasks, since I recently came to the +<p>I'm going to examine a few applications which I find useful for different tasks, since I recently came to the conclusion that I cannot use the same editor for everything I write: some magazines require a .doc document, others want just plain text, my site uses the truly excellent <a href="http://http://www.textism.com/">textile</a> markup, zZine Magazine used BBcode, other site use their own “proprietary” styles and so on. One could just give up and use Notepad – or better, <a href="http://notepad-plus.sourceforge.net/uk/site.htm">Notepad++</a> – for everything, while someone else like me might opt for various applications according to the task.</p> <p>One of the few essential requirements for a <em>writer</em> is some spell checking functionality. Sad but true, this - is enough to leave the most popular multi-purpose programming editor out: programmers don’t need a spell + is enough to leave the most popular multi-purpose programming editor out: programmers don't need a spell checker, a highlighter for their favourite language is more than enough. <br /> - I will not mention all the applications I tried to find the Perfect Editor, and I’ll just focus on the + I will not mention all the applications I tried to find the Perfect Editor, and I'll just focus on the programs I ended up using in the end. Some may be well known, others may not, anyway, here we go.</p> <p style="float:left;"><img src="/images/pictures/wp/bill.jpg" alt="" /></p> <p><a href="http://www.microsoft.com/office/preview/default.mspx">Word 2007 Beta 2</a> – Yes, I know that - OpenOffice is free and OO Writer works great, but perhaps at work you’ll be asked to use MS Word. Some editors + OpenOffice is free and OO Writer works great, but perhaps at work you'll be asked to use MS Word. Some editors may require that as well, and their templates may not be correctly rendered by OpenOffice, so in the end - you’ll still have to use Redmond’s most popular Word Processor – <em>if you have it</em>. If you - got it with your laptop (I didn’t) or your auntie gave you 300$ to buy it you’re all set, but if you - don’t? <br /> + you'll still have to use Redmond's most popular Word Processor – <em>if you have it</em>. If you + got it with your laptop (I didn't) or your auntie gave you 300$ to buy it you're all set, but if you + don't? <br /> Oh well, yes, OpenOffice is the right choice perhaps, but at least until February 2007 uncle Bill lets you try the bleeding (quite literally) edge of all the commercial word processors: Word 2007 beta 2. You can download the whole Office Suite (and more) for free, <a href="http://www.microsoft.com/office/preview/beta/overview.mspx">run</a>. I - did it yesterday and well, it’s nice to try this brand-new piece of eye candy. the interface is completely - new, you won’t find the usual drop down menu but with some imagination you’ll manage to save/create/open + did it yesterday and well, it's nice to try this brand-new piece of eye candy. the interface is completely + new, you won't find the usual drop down menu but with some imagination you'll manage to save/create/open a new document by clicking on the big roundy Office logo on the top left corner. More user friendly? Perhaps, once - you get used to it. It <span class="caps">STILL</span> doesn’t have a tabbed interface, so you <span + you get used to it. It <span class="caps">STILL</span> doesn't have a tabbed interface, so you <span class="caps">STILL</span> have to clutter your taskbar if you want to keep more than one document open. <br /> At any rate, it does the job, exactly in the same way as it did in the previous versions. <br /> - I use it if people ask me to, and for writing stuff which doesn’t need to be formatted with a particular + I use it if people ask me to, and for writing stuff which doesn't need to be formatted with a particular markup or style but rather look nice and have pictures embedded.</p> <p style="float:right;"><img src="/images/pictures/wp/writely.gif" alt="" /></p> <p>Writely – Now this is much more fun. A <em>online</em>, <span class="caps">AJAX</span>-powered word processor - recently acquired by Google. IT’s currently in closed + recently acquired by Google. IT's currently in closed beta, but I was lucky enough to get an account before they closed registrations and I can invite people to use it.<br /> - It’s nice. It’s nice if you have to work with MS Word documents or create <span class="caps">PDF</span> + It's nice. It's nice if you have to work with MS Word documents or create <span class="caps">PDF</span> files, and it supports the most essential features offered by desktop word processors, plus some more, really convenient functionalities. <br /> It can import MS Word documents pretty well and also any kind of text file, so that you can edit it online anytime@@ -56,16 +56,16 @@ compare them to highlight differences if you wish: a great feature to keep track of the editing process and know
exactly who edited which. When I noticed it that was it, Writely has become my online <em>repository</em> for my articles and writings.</p> <p style="float:left;"><img src="/images/pictures/wp/cream.png" alt="" /></p> -<p>Cream – I discovered this a while ago, and it’s perhaps the - most multi-purpose editor out there. It’s built on top of Vim (respect+) but it has a friendlier interface by - default, and that’s exactly what I’m using right now for typing this post. The reasons are simple: it - supports <span class="caps">ANY</span> kind of file format and any character encoding. There’s an highlighter +<p>Cream – I discovered this a while ago, and it's perhaps the + most multi-purpose editor out there. It's built on top of Vim (respect+) but it has a friendlier interface by + default, and that's exactly what I'm using right now for typing this post. The reasons are simple: it + supports <span class="caps">ANY</span> kind of file format and any character encoding. There's an highlighter for everything, including BBcode and textile, and of course you can make your own. It also includes spell checking on-the-fly which is missing in many simple editors. <br /> Whenever I have to write something which requires some particular formatting or markup I use Cream, it does the job pretty well, and whenever I feel brave I can always switch to “expert” view and challenge my vi skills ;)</p> -<p>That’s pretty much what I use for writing articles, posts, and other documents… I tried other - alternatives like RoughDraft or similar programs but I’m now really happy with these three applications. - Commercial “writer’s programs”? There are some out there, but who wants to spend 40$ or more for +<p>That's pretty much what I use for writing articles, posts, and other documents… I tried other + alternatives like RoughDraft or similar programs but I'm now really happy with these three applications. + Commercial “writer's programs”? There are some out there, but who wants to spend 40$ or more for something which offer less than MS Word when you can use OpenOffice and Writely for free?</p>
@@ -4,101 +4,128 @@ content-type: article
timestamp: 1149221400 tags: "productivity|writing" ----- -<p>As I thought, my job also represents a great opportunity to learn new things. I don’t mean only new technical stuff, but also a great deal of tips, best practices and methods to efficiently write documentation material in proper English. Some theory about <a href="http://www.infomap.com/">Information Mapping</a> was by far the most interesting topic I learnt about this week.</p> +<p>As I thought, my job also represents a great opportunity to learn new things. I don't mean only new technical stuff, + but also a great deal of tips, best practices and methods to efficiently write documentation material in proper + English. Some theory about <a href="http://www.infomap.com/">Information Mapping</a> was by far the most interesting + topic I learnt about this week.</p> <h3>What is Information Mapping?</h3> <p><strong>Definition<sup class="footnote" id="fnr1"><a href="#fn1">1</a></sup></strong> <br /> -<blockquote>The Information Mapping method is a research-based approach to the analysis, organization, and visual presentation of information.</blockquote></p> +<blockquote>The Information Mapping method is a research-based approach to the analysis, organization, and visual + presentation of information.</blockquote> +</p> <p><strong>Information Mapping is media independent</strong><br /> -<blockquote>The method is both subject matter and media independent; that is, it can be applied to the subject matter of any industry, and it can be presented on paper, on a computer screen, verbally, or in a multimedia presentation. </blockquote></p> +<blockquote>The method is both subject matter and media independent; that is, it can be applied to the subject matter of + any industry, and it can be presented on paper, on a computer screen, verbally, or in a multimedia presentation. +</blockquote> +</p> <p><strong>Key Concepts</strong><br /> -<blockquote>Information Mapping is an integrated set of easy-to-learn principles, techniques, and standards. It enables authors to break complex information into its most basic elements and then present those elements optimally for readers. The result is a set of precisely defined information modules that are consistent from author to author and document to document.</blockquote></p> +<blockquote>Information Mapping is an integrated set of easy-to-learn principles, techniques, and standards. It enables + authors to break complex information into its most basic elements and then present those elements optimally for + readers. The result is a set of precisely defined information modules that are consistent from author to author and + document to document.</blockquote> +</p> <p><strong>Purpose</strong><br /> <blockquote><br /> -The method helps writers analyze, organize, and present information with clarity focus and impact. Information That Works. The goal of the analysis component is to determine the</p> -<ul> - <li>purpose</li> - <li>audience needs, and</li> - <li>information types.</li> -</ul> -<p>The goal of the organization is to create an overall structure for the information, based on the results of your analysis. Finally, the goal of the presentation component is to format the information to make it clear and accessible to your audience.</p> + The method helps writers analyze, organize, and present information with clarity focus and impact. Information That + Works. The goal of the analysis component is to determine the</p> + <ul> + <li>purpose</li> + <li>audience needs, and</li> + <li>information types.</li> + </ul> + <p>The goal of the organization is to create an overall structure for the information, based on the results of your + analysis. Finally, the goal of the presentation component is to format the information to make it clear and + accessible to your audience.</p> </blockquote> -<p class="footnote" id="fn1"><a href="#fnr1"><sup>1</sup></a> Contents were taken from <a href="http://www.infomap.com/index.cfm/TheMethod/">InfoMap.com</a> and were re-formatted and re-organized into an information map.</p> +<p class="footnote" id="fn1"><a href="#fnr1"><sup>1</sup></a> Contents were taken from <a + href="http://www.infomap.com/index.cfm/TheMethod/">InfoMap.com</a> and were re-formatted and re-organized into + an information map.</p> <h3>Key Concepts</h3> <p><strong>Introduction</strong><br /> -<blockquote>The Information Mapping method relies on some important principles according to which information should be organized. This method also defines new units of information to replace paragraphs, sections and chapters and tries to divide information into a few main set types, each with its own rules and structures.</blockquote></p> +<blockquote>The Information Mapping method relies on some important principles according to which information should be + organized. This method also defines new units of information to replace paragraphs, sections and chapters and tries + to divide information into a few main set types, each with its own rules and structures.</blockquote> +</p> <p><strong>Principles</strong><br /> -<blockquote></p> -<table> - <tr> - <td> <strong>Name</strong> </td> - <td> <strong>Explanation</strong> </td> - </tr> - <tr> - <td> Chuncking </td> - <td> Writers should group information into small, manageable units. </td> - </tr> - <tr> - <td> Relevance </td> - <td> Writers should make sure that al information in a chunck relates to one main point (function or purpose). </td> - </tr> - <tr> - <td> Labeling </td> - <td> Writers should provide a label for every unit of information. </td> - </tr> - <tr> - <td> Consistency </td> - <td> Writers should use similar labels, word, formats for similar subject matters. </td> - </tr> - <tr> - <td> Integrated Graphics </td> - <td> The use of tables, images, diagrams and lists is encouraged. </td> - </tr> - <tr> - <td> Accessible Detail </td> - <td> Documents should provide sufficient details where necessary, to make the information more accessible for the readers. </td> - </tr> - <tr> - <td> Hierarchy </td> - <td> Small, relevant units of information should be organized into a hierarchy. </td> - </tr> -</table> +<blockquote> + </p> + <table> + <tr> + <td> <strong>Name</strong> </td> + <td> <strong>Explanation</strong> </td> + </tr> + <tr> + <td> Chuncking </td> + <td> Writers should group information into small, manageable units. </td> + </tr> + <tr> + <td> Relevance </td> + <td> Writers should make sure that al information in a chunck relates to one main point (function or + purpose). </td> + </tr> + <tr> + <td> Labeling </td> + <td> Writers should provide a label for every unit of information. </td> + </tr> + <tr> + <td> Consistency </td> + <td> Writers should use similar labels, word, formats for similar subject matters. </td> + </tr> + <tr> + <td> Integrated Graphics </td> + <td> The use of tables, images, diagrams and lists is encouraged. </td> + </tr> + <tr> + <td> Accessible Detail </td> + <td> Documents should provide sufficient details where necessary, to make the information more accessible + for the readers. </td> + </tr> + <tr> + <td> Hierarchy </td> + <td> Small, relevant units of information should be organized into a hierarchy. </td> + </tr> + </table> </blockquote> <p><strong>Information Types</strong><br /> -<blockquote></p> -<table> - <tr> - <td> <strong>Name</strong> </td> - <td> <strong>Definition</strong> </td> - </tr> - <tr> - <td> Procedure </td> - <td> Set of steps to obtain a specified outcome </td> - </tr> - <tr> - <td> Process </td> - <td> A series of changes through the time for some purpose </td> - </tr> - <tr> - <td> Structure </td> - <td> Something which can be defined into multiple parts </td> - </tr> - <tr> - <td> Concept </td> - <td> Group of physical objects, conditions, relations, … </td> - </tr> - <tr> - <td> Principle </td> - <td> Statement of what should be done, assumptions </td> - </tr> - <tr> - <td> Fact </td> - <td> Statement presented with no supporting evidence </td> - </tr> - <tr> - <td> Classification </td> - <td> The sorting of a group of specimen into classes </td> - </tr> -</table> +<blockquote> + </p> + <table> + <tr> + <td> <strong>Name</strong> </td> + <td> <strong>Definition</strong> </td> + </tr> + <tr> + <td> Procedure </td> + <td> Set of steps to obtain a specified outcome </td> + </tr> + <tr> + <td> Process </td> + <td> A series of changes through the time for some purpose </td> + </tr> + <tr> + <td> Structure </td> + <td> Something which can be defined into multiple parts </td> + </tr> + <tr> + <td> Concept </td> + <td> Group of physical objects, conditions, relations, … </td> + </tr> + <tr> + <td> Principle </td> + <td> Statement of what should be done, assumptions </td> + </tr> + <tr> + <td> Fact </td> + <td> Statement presented with no supporting evidence </td> + </tr> + <tr> + <td> Classification </td> + <td> The sorting of a group of specimen into classes </td> + </tr> + </table> </blockquote> <p><strong>Conclusion</strong><br /> -<blockquote>Although it may initially seem too schematic, Information Mapping is a valid method to organize and present information to those readers who just need “facts” without any unnecessary distraction. This method it is used with some modifications in many technical manuals and documentation written by many companies.</blockquote></p> +<blockquote>Although it may initially seem too schematic, Information Mapping is a valid method to organize and present + information to those readers who just need “facts” without any unnecessary distraction. This method it + is used with some modifications in many technical manuals and documentation written by many companies.</blockquote> +</p>
@@ -7,14 +7,14 @@ -----
<p>Someone recently added a comment to my article about <a href="/articles/rails-inspired-php-frameworks/">Rails-inspired <span class="caps">PHP</span> frameworks</a> pointing out that I forgot another Rails-like framework, in my round-up. He obviously posted a link to this rather - mysterious Rails port in <span class="caps">PHP</span> and spam or not, I’d like to thank this guy for letting + mysterious Rails port in <span class="caps">PHP</span> and spam or not, I'd like to thank this guy for letting me know of the existence of Akelos, a new <span class="caps">PHP</span> framework which seems simply too good to be true.</p> <p style="float:left;"><img src="/images/pictures/frameworks/akelos_framework.png" alt="" /></p> -<p>Let me just spend a few words more before writing more about it though. First off, it’s not available yet. OR - at least it doesn’t seem to be: the author is planning to release his work to the Open Source community - but… well, he’s a bit concerned about the current “<span class="caps">PHP</span> Framework - War”: he wouldn’t like to end up like <a href="http://subway.python-hosting.com/">Subway</a> or just be +<p>Let me just spend a few words more before writing more about it though. First off, it's not available yet. OR + at least it doesn't seem to be: the author is planning to release his work to the Open Source community + but… well, he's a bit concerned about the current “<span class="caps">PHP</span> Framework + War”: he wouldn't like to end up like <a href="http://subway.python-hosting.com/">Subway</a> or just be slagged off by those merciless reviewers who enjoy write round-ups and comparisons about frameworks. <a href="http://www.bermi.org/page/about_me">Bermi Ferrer</a> is “just” a talented <span class="caps">PHP</span> developer who decided to create his own framework and he really enjoyed doing so,@@ -23,12 +23,12 @@ <p><em>“I considered other <span class="caps">PHP</span> ports of Ruby on Rails, but we could not find all we
needed on them. One feature that I needed on the core was internationalization and Unicode support, so I decided to roll my own framework trying to keep most of the original rails interface so most of its documentation could work for it.”</em></p> -<p>Where did I hear that? Nothing new: it’s always the same story of frameworks not being as we want them to be - etc., it’s human. And yes, it’s <em><strong>another</strong></em> attempt to port Ruby on Rails to <span +<p>Where did I hear that? Nothing new: it's always the same story of frameworks not being as we want them to be + etc., it's human. And yes, it's <em><strong>another</strong></em> attempt to port Ruby on Rails to <span class="caps">PHP</span>, and a damn good one — or so it seems.</p> -<p><small>Before proceeding any further, I’d like to write a short warning for a few people who may or may not +<p><small>Before proceeding any further, I'd like to write a short warning for a few people who may or may not want to pop in and start commenting about the Rails-is-better-than-any-<span class="caps">PHP</span>-clone - issue: <strong>If I see a single comment slagging off this framework (or any other) only because it’s a + issue: <strong>If I see a single comment slagging off this framework (or any other) only because it's a port of Rails to <span class="caps">PHP</span>, it will be deleted, may it be David Heinemeier Hansson himself</strong>. Stop it, no seriously, I think it will be counter productive for Rails in the end: I really like RoR and I love the way it works, and yes, I think Ruby is definitely the best language to do that@@ -38,7 +38,7 @@ preaching.</small></p>
<p style="float:right;"><img src="/images/pictures/frameworks/bermi_ferrer.png" alt="" /></p> <p>Right, back to Akelos now. Curious as I am I immediately checked out the official page and all i found was a pretty long list of features which made me dribble, literally… ooops!</p> -<p>Let’s just quote the most juicy ones, shall we?</p> +<p>Let's just quote the most juicy ones, shall we?</p> <p>Active Record [“Model”]</p> <ul> <li>Associations</li>@@ -90,15 +90,15 @@ <li>File handling using <span class="caps">SFTP</span> for shared host running Apache as user nobody (as most CPanel
server do)</li> <li><strong>Distributed sessions using databases</strong></li> </ul> -<p>Impressed? I was, honest. And I’m talking as a CakePHP fanatic here, and I must say that if this framework can +<p>Impressed? I was, honest. And I'm talking as a CakePHP fanatic here, and I must say that if this framework can really offer all this <em>and</em> — and this is what really matters — is also as simple as Cake to learn and well performing… well, this is definitely going to be quite a promising player in the “<span class="caps">PHP</span> Framework War” (but is not a real war, is it?), although the author is quite worried about that:</p> -<p><em>“I’m also concerned about the <span class="caps">PHP</span> Framework war, I don’t want to play +<p><em>“I'm also concerned about the <span class="caps">PHP</span> Framework war, I don't want to play that game. Building this Framework was a great experience, it works great for me and it has helped me to become - a better programmer so I don’t want to spend my time discussing about if this is better or not than other - solutions. That’s the reason I’ll first look for great developers interested in the Framework to + a better programmer so I don't want to spend my time discussing about if this is better or not than other + solutions. That's the reason I'll first look for great developers interested in the Framework to help me releasing it.”</em></p> <p>Really, this will be an interesting project to check out, once it goes open source, and yes, I really wish Bermi all the best. Good luck, <a href="http://www.bermi.org/projects/akelos_framework">Akelos Framework</a>.</p>
@@ -5,7 +5,7 @@ timestamp: 1152688740
tags: "italy" ----- <p><em><strong>Italy has won the World Cup!</strong></em></p> -<p>It doesn’t matter if Zidane first scored on a totally unfair penalty kick at the 7th minute and then, totally +<p>It doesn't matter if Zidane first scored on a totally unfair penalty kick at the 7th minute and then, totally out of his mind, headbutted Materazzi… WE <span class="caps">WON</span>, <span class="caps">AND</span> WE <span class="caps">KICKED</span> <span class="caps">THEIR</span> <span class="caps">ASS</span>, end of story :) </p>@@ -18,8 +18,8 @@ <p style="float:left;"><img src="/images/italy/grosso.jpg" alt="" /></p>
<p>“Italy beat France 5-3 in a penalty shoot-out to win the World Cup after an absorbing 1-1 draw in Berlin. </p> <p style="float:right;"><img src="/images/italy/italy1.jpg" alt="" /></p> - <p>Fabio Grosso scored the winning goal after France’s David Trezeguet missed.</p> - <p>Playing his last game before retiring, Zinedine Zidane’s career ended in disgrace after he was sent off for + <p>Fabio Grosso scored the winning goal after France's David Trezeguet missed.</p> + <p>Playing his last game before retiring, Zinedine Zidane's career ended in disgrace after he was sent off for crazily headbutting Marco Materazzi.</p> <p>Zidane had put France ahead early on with a coolly-taken chipped penalty, before Materazzi levelled with a header from an Andrea Pirlo corner.<br />
@@ -4,8 +4,8 @@ content-type: article
timestamp: 1153789620 tags: "website|cakephp" ----- -<p>Quite a bit of time passed since the last blog post, and I’m actually sorry about that, but as I thought, I - don’t have as much free time as I used to be. Work is work, after all!<br /> +<p>Quite a bit of time passed since the last blog post, and I'm actually sorry about that, but as I thought, I + don't have as much free time as I used to be. Work is work, after all!<br /> This post will be multipurpose as actually I bluid up a few things to write about in the last few days… erhm, ok, <em>weeks</em>.</p> <h3>New Website Design</h3>@@ -15,7 +15,7 @@ guru could provide a new template for this website, and actually in the end I decided to accept the work of
<em><strong>Bartus F. Teipel</strong></em> a Brazilian CakePHP enthusiast.<br /> Bartus is obviously (<span class="caps">MUCH</span>) more talented than me when it comes to design, and I was amazed at the quality of the template he provided, in a really short time. <br /> - Unfortunately he didn’t yet provide a link to his main website/portfolio, but for now all I can show you is + Unfortunately he didn't yet provide a link to his main website/portfolio, but for now all I can show you is his website for party pics, <a href="http://www.circuscircus.com.br/">CircusCircus</a>. </p> <p>The new template sports a more contemporary Web2.0-ish look which I like a lot, and Bartus used libraries like <a@@ -31,7 +31,7 @@ have written anything (yet) about some more advanced topic about CakePHP. This was mostly due to – again
– lack of time to focus on advanced topic and produce some quality examples.</p> <p>However, judging by the positive feedback I received about the articles, I am really happy of the final result: even more people discovered the power of CakePHP and became <em>bakers</em>. Happy baking to all of you!</p> -<p><em>So… no more articles about Cake?</em> Maybe not for a while, I think I’ll be rather busy in the +<p><em>So… no more articles about Cake?</em> Maybe not for a while, I think I'll be rather busy in the following months. Curious? Read on :-)</p> <h3>My biggest and most important project</h3> <p>I actually got really pissed off with Larry, Garret & the other Master Bakers because of what they wrote on the@@ -45,6 +45,6 @@ href="#fn5">5</a></sup> is the man behind these articles. Together with Fabio, we will be writing a book
that will be published […]”</p> </blockquote> <p>After all this time I spent <em>trying desperately not to say a word about it</em> they came out and heralded it out - of nowhere. Sigh… they ruined the surprise effect! Oh well, it’s too late now, isn’t it?</p> -<p>So yes, when I say that I’m spending at least 60% of my time (at work and at home) writing I really mean it. + of nowhere. Sigh… they ruined the surprise effect! Oh well, it's too late now, isn't it?</p> +<p>So yes, when I say that I'm spending at least 60% of my time (at work and at home) writing I really mean it. The rest? Well, I do have a lovely girlfriend after all!!!</p>
@@ -8,7 +8,7 @@ <p>Bermi Ferrer kept his promise, and even if a few were skeptic on the <a href="/articles/34/">pre-announced</a>
features of his upcoming Akelos framework, last week he sent me a “development preview” and a few days ago he opened the development <span class="caps">SVN</span> repository to the public:</p> <p><a href="svn://akelos.org/trunk" target="_blank">svn://akelos.org/trunk</a></p> -<p>Go, get it: it’s worthwhile (see below).</p> +<p>Go, get it: it's worthwhile (see below).</p> <p>“[…] The Akelos Framework is an open-source port of Ruby on Rails to the <span class="caps">PHP</span> programming language.<br /> The main goal of the Akelos Framework is to help programmers to build multilingual database-backed web applications@@ -26,15 +26,15 @@ there are honestly too many for one single language. Look at
Python, <a href="http://www.djangoproject.com/">Django</a> seems to be the only “Rails-inspired” framework available and everyone is happy with it, while as a general rule <span class="caps">PHP</span> folks are never happy with what they already got.</p> -<p>Bermi is undoubtedly one of them, and that’s the reason he decided to code his very own Rails-inspired +<p>Bermi is undoubtedly one of them, and that's the reason he decided to code his very own Rails-inspired framework for <span class="caps">PHP</span>, which is, to date, the most remarkable of the ones I left out (it - wasn’t available at the time) in my <a href="/articles/rails-inspired-php-frameworks/">article</a>.</p> + wasn't available at the time) in my <a href="/articles/rails-inspired-php-frameworks/">article</a>.</p> <h3>Confirmed Features & Contents</h3> -<p>So well, although I didn’t really have a proper chance to play with Akelos I can certainly herald some of its +<p>So well, although I didn't really have a proper chance to play with Akelos I can certainly herald some of its – verified, this time – features.</p> -<p>For one, it’s huge. Take Cake, add <em>every excellent, useful third party library or class you can possibly - thing of</em> and you’ll get Akelos. No kidding. The unzipped source of the whole framework is a massive - 16MB, 8.5 of which constitute the <code>vendors</code> folder. What’s in it? Well, all this:</p> +<p>For one, it's huge. Take Cake, add <em>every excellent, useful third party library or class you can possibly + thing of</em> and you'll get Akelos. No kidding. The unzipped source of the whole framework is a massive + 16MB, 8.5 of which constitute the <code>vendors</code> folder. What's in it? Well, all this:</p> <ul> <li>ADOdb</li> <li>Domit</li>@@ -62,11 +62,11 @@ <li>Window</li>
<li>EventSelectors</li> </ul> <p style="float:left;"><img src="/images/pictures/frameworks/akelos_framework_logo.gif" alt="" /></p> -<p>Good, well, kind of: that’s just what <em>others</em> did, but it’s worth noting that it’s all +<p>Good, well, kind of: that's just what <em>others</em> did, but it's worth noting that it's all there and – apparently – integrated with the framework, hopefully not too tightly. But people are fussy, and do not get excited easily anymore, long gone are the early days of Rails, when the whole Internet shake at hearing about <em>code generators</em>… Aye, there are in Akelos as well, of course!</p> -<p>Coming to the more juicy stuff, <em>lo’ and behold, ye contents of /lib folder (with comments):</em></p> +<p>Coming to the more juicy stuff, <em>lo' and behold, ye contents of /lib folder (with comments):</em></p> <ul> <li>AkActionController (controller)</li> <li>AkActionView (view)</li>@@ -98,20 +98,20 @@ <li>AkRouter</li>
<li>AkZip</li> <li>…</li> </ul> -<p>Well, it’s all there, at any rate. The best way to know if it all works, and <em>how</em> it works, is simply +<p>Well, it's all there, at any rate. The best way to know if it all works, and <em>how</em> it works, is simply to try it out: <a href="http://www.akelos.org/">www.akelos.org</a>.</p> <h3>Remarks</h3> <p>As I said earlier, Akelos looks like <em>CakePHP on steroids</em>: agreed, the Cake philosophy of “no we-may-use-it code in the trunk” has been <em>completely</em> (and intentionally) ignored, but this is our - chance to peek at what CakePHP could have become if such philosophy didn’t become a lifestyle for the Cake Dev + chance to peek at what CakePHP could have become if such philosophy didn't become a lifestyle for the Cake Dev Team. <br /> - Akelos code is Rails-inspired, so yes, it’s <em>very</em> similar to Cake, although with some rough edges and - some re-used parts, but it’s the work of <span class="caps">ONE</span> person with no community support (yet), - don’t forget. Remarkable.</p> -<p>And he needs co-developers, by the looks of it, so there you are then: there’s <em>your</em> chance!</p> + Akelos code is Rails-inspired, so yes, it's <em>very</em> similar to Cake, although with some rough edges and + some re-used parts, but it's the work of <span class="caps">ONE</span> person with no community support (yet), + don't forget. Remarkable.</p> +<p>And he needs co-developers, by the looks of it, so there you are then: there's <em>your</em> chance!</p> <p>My personal opinion about it? Well, I think Akelos can learn from CakePHP and vice-versa: a merge? Well, at least it would reduce the number of Rails-inspired framework for <span class="caps">PHP</span> and <em>possibly</em> meet the needs of more people: those who want just the essentials, as a framework, and those who like to be <em>virtually almighty</em> and be able to do anything, <em>if they wanted to</em>.</p> -<p>Two flavours of the same framework? <em>CakePHP</em> and <em>cAkePHP</em> (note the case)? Bah, let’s stop +<p>Two flavours of the same framework? <em>CakePHP</em> and <em>cAkePHP</em> (note the case)? Bah, let's stop raving now, shall we?</p>
@@ -6,42 +6,42 @@ tags: "web20|ajax|review"
----- <p>The so-called “<span class="caps">AJAX</span> Start Pages” are not a new concept anymore, and like for almost any other offspring of Web 2.0 there is more than one to chose from. Hence the increasing number of - comparative reviews on the Web nowadays (Yes, I’m guilty of that too). I soon learnt that for any “good + comparative reviews on the Web nowadays (Yes, I'm guilty of that too). I soon learnt that for any “good and useful thing” on the web there are at least <em>n</em> clones: consider for example social bookmarking, community-powered news sites, php frameworks…<br /> - And no, you can’t use the word clone because it has a strong negative connotation nowadays so let’s just + And no, you can't use the word clone because it has a strong negative connotation nowadays so let's just say that whenever someone comes up with a new idea, others examine it, process it and in a few weeks (days?) some - <em>very, very similar application</em> comes out, and it’s <em>better</em> than the previous one. <br /> - Now, I don’t know exactly whether <a href="http://www.netvibes.com/">NetVibes</a> was one of the first <span + <em>very, very similar application</em> comes out, and it's <em>better</em> than the previous one. <br /> + Now, I don't know exactly whether <a href="http://www.netvibes.com/">NetVibes</a> was one of the first <span class="caps">AJAX</span> Start Pages created or not, but at any rate – in my very, very, very humble opinion, is the most advanced and the most usable of <a href="http://www.techcrunch.com/2005/12/07/ajax-desktops-wont-stop/">the lot</a>, and an essential tool for lazy - folks like me who want to keep up-to-date with what’s going on without having to visit dozen of websites + folks like me who want to keep up-to-date with what's going on without having to visit dozen of websites everyday. </p> <p style="float:left;"><img src="/images/pictures/netvibes.jpg" alt="" /></p> <p>I can see people jumping up and down shouting “Pageflakes is better”, “Protopage kicks a$$” etc. etc. Well, yes, probably, as you like: different people like different things, and when it comes to <span - class="caps">AJAX</span> Start Pages there’s really a lot to choose from: 3spots has an excellent (and + class="caps">AJAX</span> Start Pages there's really a lot to choose from: 3spots has an excellent (and complete, I believe) <a href="http://3spots.blogspot.com/2006/03/ajax-or-flash-startpages-or-homepages.html">list</a> of all the start pages currently available on the Net, so yes, you can try them out yourself and make out your mind :)</p> -<p>I made up my mind long ago after experimenting a few of those. Why Netvibes? OK, let’s see:</p> +<p>I made up my mind long ago after experimenting a few of those. Why Netvibes? OK, let's see:</p> <ol> <li><strong>Fast to load</strong>: Netvibes is fast. Relatively fast, of course, for sure is not as fast as a plain, - old-style html page, but I think it’s perhaps one of the fastest <span class="caps">AJAX</span> start + old-style html page, but I think it's perhaps one of the fastest <span class="caps">AJAX</span> start pages ever created. As they <a href="http://blog.netvibes.com/?2006/08/17/75-the-future-of-netvibes">pointed out</a>, with a 15 million investment performance can only get better…</li> <li><strong>Tabbed pages</strong>: After tabbed browsing, tabs within a single page seem to gain popularity. Netvibes allows you to create more than one page to prevent cluttering and general chaos: you can create a tab - for CakePHP feeds, one for some cute <span class="caps">AJAX</span> widgets you’ll never use, another for - al that Web 2.0 rubbish you’ll never read — that’s what I do at least.</li> + for CakePHP feeds, one for some cute <span class="caps">AJAX</span> widgets you'll never use, another for + al that Web 2.0 rubbish you'll never read — that's what I do at least.</li> <li><strong>Smart Google Module</strong>: Finally Netvibes has a <em>proper</em> Google search module, which enable users to search with Google and view results <em>on Netvibes</em> instead of opening up a browser tab.</li> <li><strong><span class="caps">RSS</span> done right</strong>: Their <span class="caps">RSS</span> reader is nice: by clicking on a feed title it opens up a <em>virtual window</em> inside the page with the whole story and a menu with links to the other stories included in the feed. This is the most convenient way to read whole - articles like TechCrunch’s ones without leaving the page (and without loading the heavy TechCrunch UI). + articles like TechCrunch's ones without leaving the page (and without loading the heavy TechCrunch UI). </li> <li><strong>Public <span class="caps">API</span> for modules</strong>: For those who – unlike me – has some proper free time and would like to develop their own module, the <a
@@ -9,10 +9,10 @@ “CakePHP Recipes” in Google and discovered – to my astonishment – that my new book about the
CakePHP framework is already for (pre)sale in many popular online bookstores.</p> <p>Up to now I never made any formal announcement myself (although the Cake Software Foundation already did, months ago), nor gave out any juicy details about it, but maybe now the time has come to post something more about it. Yes, - I am indeed writing a book about the CakePHP framework, and yes, you can already buy it but no, you can’t - phisically get it simply because it’s still in progress (miracles of the modern publishing industry!).</p> + I am indeed writing a book about the CakePHP framework, and yes, you can already buy it but no, you can't + phisically get it simply because it's still in progress (miracles of the modern publishing industry!).</p> <p style="float:left;"><img src="/images/cakephp-recipes/cover.jpg" alt="" /></p> -<p>I’d like to point out that I’m not the <em>only</em> author of the book: all the code examples and +<p>I'd like to point out that I'm not the <em>only</em> author of the book: all the code examples and snippets included in the book is provided by the Cake Software Foundation staff, in the person of Larry E. Masters and Garrett J. Woodworth mainly, who will also act as technical editors and first reviewers of the book, together with other trusthworthy CakePHP core developers.<br />
@@ -4,5 +4,7 @@ content-type: article
timestamp: 1168149180 tags: "website" ----- -<p>As a few of you might have noticed, I decided to disable comments on all the sections of this site, as a temporary measure against spam.</p> -<p>Hopefully I’ll try implementing something more effective and less drastic soon, but meanwhile this seems the quickest way to get rid of approx 600-800 spam comments per week.</p> +<p>As a few of you might have noticed, I decided to disable comments on all the sections of this site, as a temporary + measure against spam.</p> +<p>Hopefully I'll try implementing something more effective and less drastic soon, but meanwhile this seems the quickest + way to get rid of approx 600-800 spam comments per week.</p>
@@ -4,10 +4,23 @@ content-type: article
timestamp: 1173231900 tags: "cakephp|writing" ----- -<p>I am sorry to announce that my upcoming book, CakePHP Recipes, will not be published anymore. As a matter of fact, it wasn’t finished because some of the people involved failed to comply with the terms of their contract in delivering material which was suitable for publication.</p> +<p>I am sorry to announce that my upcoming book, CakePHP Recipes, will not be published anymore. As a matter of fact, it + wasn't finished because some of the people involved failed to comply with the terms of their contract in delivering + material which was suitable for publication.</p> <p>To quote an email I received from my publisher a few days ago,</p> -<p><em>“[…] The Cake Software Foundation has informed us they are withdrawing from the CakePHP Recipes project, and returning the advances they’ve received. This means we can no longer count on them for support, nor can we package the book as an official title.</em></p> -<p><em>After careful consideration, we have determined that this renders the book no longer viable for us. So, regrettably we must cancel your contract as well. Please understand that we have no quarrel with your performance; you have been responsive and communicative for the entire time. […]"</em></p> -<p>This is a huge disappointment to me, in particular because I am not responsible for the cancellation. It was going to be my very first book to be published, and due to someone else’s misjudgement and lack of motivation it will never be available to the readers.<br /> -I do not want to put the blame the whole Cake Software Foundation for this: nearly every person involved in the project did his best in reviewing parts of the book or offering me support. Regrettably this wasn’t enough: unfortunately it seems that someone didn’t like the idea of me writing the book and kept doubting not only my coding skills but also my ability as a writer all along.</p> -<p>It is sad to see how certain individuals fail to understand the importance of marketing and public relations not only when working on a team project but also in ordinary life, but it is truly disappointing to see how the thoughts and opinions of a single individual affect the work of a whole team.</p> +<p><em>“[…] The Cake Software Foundation has informed us they are withdrawing from the CakePHP Recipes + project, and returning the advances they've received. This means we can no longer count on them for support, nor + can we package the book as an official title.</em></p> +<p><em>After careful consideration, we have determined that this renders the book no longer viable for us. So, + regrettably we must cancel your contract as well. Please understand that we have no quarrel with your + performance; you have been responsive and communicative for the entire time. […]"</em></p> +<p>This is a huge disappointment to me, in particular because I am not responsible for the cancellation. It was going to + be my very first book to be published, and due to someone else's misjudgement and lack of motivation it will never + be available to the readers.<br /> + I do not want to put the blame the whole Cake Software Foundation for this: nearly every person involved in the + project did his best in reviewing parts of the book or offering me support. Regrettably this wasn't enough: + unfortunately it seems that someone didn't like the idea of me writing the book and kept doubting not only my coding + skills but also my ability as a writer all along.</p> +<p>It is sad to see how certain individuals fail to understand the importance of marketing and public relations not only + when working on a team project but also in ordinary life, but it is truly disappointing to see how the thoughts and + opinions of a single individual affect the work of a whole team.</p>
@@ -19,13 +19,13 @@ mention instead.</p>
<p>Oddly enough, I took a screenshot of the CakePHP website just yesterday <em>“by chance”</em> and my articles were still there:</p> <p><img src="/images/pictures/cake-promo/cakephp-08032007.png" alt="" /></p> -<p>…while this morning they weren’t anymore:</p> +<p>…while this morning they weren't anymore:</p> <p><img src="/images/pictures/cake-promo/cakephp-09032007.png" alt="" /></p> -<p>Of course I can’t provide any proof that I took the screenshot yesterday, and of course I don’t have any +<p>Of course I can't provide any proof that I took the screenshot yesterday, and of course I don't have any proof of the fact that someone in <span class="caps">CSF</span> may have thought that due to my recent <a - href="/articles/42/">bad behavior</a> my articles didn’t deserve to be publicized anymore. I am confident + href="/articles/42/">bad behavior</a> my articles didn't deserve to be publicized anymore. I am confident that the Cake Software Foundation always does its best in keeping its site up-to-date, and I am glad that - yesterday’s accident reminded them that there were far better articles which needed to be featured on their + yesterday's accident reminded them that there were far better articles which needed to be featured on their site. At least I <em>finally</em> did something good for the community!</p> <p>Sarcasm apart, I feel I owe an apology for blowing this whole thing out of proportions: I disclosed embarassing details about our past project which – for the sake of the framework – should have never been made@@ -34,9 +34,9 @@ I want all of you to know that I still think that CakePHP is the best <span class="caps">PHP</span> framework ever
made and I genuinely think that Larry E. Master did outstanding work in all this time, along with the rest of <span class="caps">CSF</span> members and contributors. Best of luck for your future editorial and development projects.</p> -<p>Since now my contributions are no longer “officially recognized”, I think I’d better to move on +<p>Since now my contributions are no longer “officially recognized”, I think I'd better to move on devoting my attention to something else.</p> <p class="footnote" id="fn1"><a href="#fnr1"><sup>1</sup></a> “CakePHP” and “Cake” - <em>seems</em> to be registered trademarks of the Cake Software Foundation Inc. I’m not sure if I’m + <em>seems</em> to be registered trademarks of the Cake Software Foundation Inc. I'm not sure if I'm allowed to use them in this blog — If anyone has any problem with it, please let me know. </p>
@@ -4,6 +4,13 @@ content-type: article
timestamp: 1144335420 tags: "website|webdevelopment|cakephp" ----- -<p>Yes, it works. Perhaps it’s a tiny bit slower than expected but the new h3raLd.com seems to work.<br /> -I’ll probably find some new exciting bugs to fix in the next few hours, as usual – that will be annoying but perfectly normal.</p> -<p><del>The good thing is that the new template seems to load faster, mostly due to the fact that I hardly used images</del> <- [not true, te new site appears to be slower, maybe not due to the images], at any rate, let’s see how it goes. I can imagine I’ll have to implement some sort of caching system for the tagging system in particular, but fortunately <a href="http://www.cakephp.org/">CakePHP</a> apparently comes with a built-in caching mechanism for views, models etc. etc. although the documentation available seems to be <a href="http://groups.google.com/group/cake-php/browse_thread/thread/f0f96751bb61bc7b/bcb43c97e91923c7?q=caching&rnum=1#bcb43c97e91923c7">scarce</a> at the moment, and I’ve been to lazy to investigate any further.</p> +<p>Yes, it works. Perhaps it's a tiny bit slower than expected but the new h3raLd.com seems to work.<br /> + I'll probably find some new exciting bugs to fix in the next few hours, as usual – that will be annoying + but perfectly normal.</p> +<p><del>The good thing is that the new template seems to load faster, mostly due to the fact that I hardly used + images</del> ← [not true, te new site appears to be slower, maybe not due to the images], at any rate, + let's see how it goes. I can imagine I'll have to implement some sort of caching system for the tagging + system in particular, but fortunately <a href="http://www.cakephp.org/">CakePHP</a> apparently comes with a built-in + caching mechanism for views, models etc. etc. although the documentation available seems to be <a + href="http://groups.google.com/group/cake-php/browse_thread/thread/f0f96751bb61bc7b/bcb43c97e91923c7?q=caching&rnum=1#bcb43c97e91923c7">scarce</a> + at the moment, and I've been to lazy to investigate any further.</p>
@@ -4,12 +4,22 @@ content-type: article
timestamp: 1144419238 tags: "" ----- -<p>Today I had my <em>n^th^</em> job interview. Yes, I’m getting used to them by now, and it’s becoming quite entertaining: if they <em>paid</em> me for just take interviews I’d do that for all my life quite happily! <br /> -But since that’s not going to happen I’d better get a move on and find a so called <em>real job</em>. Actually this time it wasn’t the usual complete waste of time and this company <em>nearly</em> made me a proper offer: they’re gonna see me again next week, so let’s hope for the best.</p> -<p>The interview was one of the best ever, no doubts. They were friendly enough, they seemed to like me enough and they were even entertaining enough… one thing which actually <em>never</em> happened to me before: they asked me to solve a sort of pseudo-IQ-test(an annoying semi-pointless riddle, in other words), and here’s a rough translation from Italian, the comments within square brackets are mine:</p> +<p>Today I had my <em>n<sup>th</sup></em> job interview. Yes, I'm getting used to them by now, and it's becoming quite + entertaining: if they <em>paid</em> me for just take interviews I'd do that for all my life quite happily! <br /> + But since that's not going to happen I'd better get a move on and find a so called <em>real job</em>. Actually this + time it wasn't the usual complete waste of time and this company <em>nearly</em> made me a proper offer: they're + gonna see me again next week, so let's hope for the best.</p> +<p>The interview was one of the best ever, no doubts. They were friendly enough, they seemed to like me enough and they + were even entertaining enough… one thing which actually <em>never</em> happened to me before: they asked me to + solve a sort of pseudo-IQ-test(an annoying semi-pointless riddle, in other words), and here's a rough translation + from Italian, the comments within square brackets are mine:</p> <blockquote> -<p><em>You’re alone in a pitch black room […nice intro, eh?] and the only thing you have are two fuses of different length and a lighter [thank God for that, now it’s all much better]. You know that both the fuses can burn in exactly one hour each, although there’s no proportional law which bonds the lenght of the fuses to the time necessary to burn them; how can you measure 45 minutes, exactly?</em></p> + <p><em>You're alone in a pitch black room […nice intro, eh?] and the only thing you have are two fuses of + different length and a lighter [thank God for that, now it's all much better]. You know that both the fuses + can burn in exactly one hour each, although there's no proportional law which bonds the lenght of the fuses + to the time necessary to burn them; how can you measure 45 minutes, exactly?</em></p> </blockquote> <p>I solved that, eventually, and I got the job! Weheee!</p> -<p>No, more or less, but not quite… I’m gonna see them again, and evaluate their offer along with the other(s).</p> -<p>The solution of the riddle? NO <span class="caps">CHANCE</span>! Go and figure it out, it’s not hard.</p> +<p>No, more or less, but not quite… I'm gonna see them again, and evaluate their offer along with the other(s). +</p> +<p>The solution of the riddle? NO CHANCE! Go and figure it out, it's not hard.</p>
@@ -6,106 +6,273 @@ tags: "italy|personal|rant"
pdf: true ----- - <section class="section"> -<p>I found this article today, buried in my mailbox. I wrote it just over five years ago, the evening after failing the last, insignificant exam necessary to get my degree in IT Engineering.</p> -<p>I eventually passed the damn thing, got my B.Sc., and found a great job right afterwards, while all my former fellow students were still studying pointless crap. Maybe some of them are still studying pointless crap right now, and they’re still living with their parents.</p> -<p>I was very lucky. If I didn’t fail that exam perhaps I would have kept studying for my master’s degree for years, and maybe today I wouldn’t even have a job, or be married!</p> -<p>I decided to re-publish this article because it’s part of what I am, and I’m not ashamed of it. I corrected a few of the most obvious spelling and grammar mistakes, but I didn’t edit it or censor it otherwise.</p> -<p>It may be a senseless rant, but my opinion of the Italian Education System is still the same: If I’ll have a child who wants to study anything technical someday, I’ll tell him/her to get the hell out of Italy and go abroad to study in a <em>real</em> university.</p> -<p style="padding-left:15em;"><strong>Fabio Cevasco</strong> — <em>Saturday, July 31st 2010</em></p> <section class="section"> -<header><h1 id="h_1" class="toc">The Pre-computer Age</h1></header> -<p>Who am I? I’m just an Italian student taking the last exams to obtain my B.Sc. in IT Engineering. Obviously I’m quite interested in Information Technology and everything concerning computers or the Internet, and – believe it or not – this probably came from my parents’ original dislike of computers themselves.</p> -<p>in Italy, unlike in most of the other capitalistic countries of the world, kids tends to listen to their parents until they reach their “full maturity”, i.e. 25 years of age at least (by the way, I’m 22), so, to cut a long story short, I was allowed to have a computer at home when I was 16 years old. I couldn’t believe it when the technician brought it at home: sure I’d seen a computer before in my life, but that was mine, and I could use it to do something amazing, as I dreamt many times.</p> -<p>The point is, from another point of view, that I felt behind already compared to my friends who were already boasting their records at various computer games. Fools.<br /> -On another note, I was a bit different from other Italian kids: I always liked writing and reading in English since I was 6, because I found the language to be quite amazing or even magic for the way it sounded, as I used to say to my friends. Friends – the Italian ones, that is – who never really understood me totally, and in particular my<br /> -passion for the Anglo-Saxon cultures: for them, writing and reading in English were just boring and difficult things you had to do at school, while I enjoyed reading The Tempest by Shakespeare when my English teacher didn’t even teach me the past tense, yet. A fool?</p> -<p>My passion for the English language was soon noticed by my parents, who let me go to England a few times, to college: basically a fashonable way for english schools and travel agencies to rob honest families, promising them that their kids would have learnt a new language enjoying themselves. Result: the kids enjoyed their holiday a lot, but basically always spoke Italian to each other (and even to English people over there) and the families were happy when they came back because after spending so much money they must have learnt something…</p> + <p>I found this article today, buried in my mailbox. I wrote it just over five years ago, the evening after failing + the last, insignificant exam necessary to get my degree in IT Engineering.</p> + <p>I eventually passed the damn thing, got my B.Sc., and found a great job right afterwards, while all my former + fellow students were still studying pointless crap. Maybe some of them are still studying pointless crap right + now, and they're still living with their parents.</p> + <p>I was very lucky. If I didn't fail that exam perhaps I would have kept studying for my master's + degree for years, and maybe today I wouldn't even have a job, or be married!</p> + <p>I decided to re-publish this article because it's part of what I am, and I'm not ashamed of it. I + corrected a few of the most obvious spelling and grammar mistakes, but I didn't edit it or censor it + otherwise.</p> + <p>It may be a senseless rant, but my opinion of the Italian Education System is still the same: If I'll have + a child who wants to study anything technical someday, I'll tell him/her to get the hell out of Italy and + go abroad to study in a <em>real</em> university.</p> + <p style="padding-left:2rem;"><strong>Fabio Cevasco</strong> — <em>Saturday, July 31st 2010</em></p> + <section class="section"> + <header> + <h1 id="h_1" class="toc">The Pre-computer Age</h1> + </header> + <p>Who am I? I'm just an Italian student taking the last exams to obtain my B.Sc. in IT Engineering. + Obviously I'm quite interested in Information Technology and everything concerning computers or the + Internet, and – believe it or not – this probably came from my parents' original dislike + of computers themselves.</p> + <p>in Italy, unlike in most of the other capitalistic countries of the world, kids tends to listen to their + parents until they reach their “full maturity”, i.e. 25 years of age at least (by the way, + I'm 22), so, to cut a long story short, I was allowed to have a computer at home when I was 16 years + old. I couldn't believe it when the technician brought it at home: sure I'd seen a computer + before in my life, but that was mine, and I could use it to do something amazing, as I dreamt many times. + </p> + <p>The point is, from another point of view, that I felt behind already compared to my friends who were already + boasting their records at various computer games. Fools.<br /> + On another note, I was a bit different from other Italian kids: I always liked writing and reading in + English since I was 6, because I found the language to be quite amazing or even magic for the way it + sounded, as I used to say to my friends. Friends – the Italian ones, that is – who never really + understood me totally, and in particular my<br /> + passion for the Anglo-Saxon cultures: for them, writing and reading in English were just boring and + difficult things you had to do at school, while I enjoyed reading The Tempest by Shakespeare when my English + teacher didn't even teach me the past tense, yet. A fool?</p> + <p>My passion for the English language was soon noticed by my parents, who let me go to England a few times, to + college: basically a fashonable way for english schools and travel agencies to rob honest families, + promising them that their kids would have learnt a new language enjoying themselves. Result: the kids + enjoyed their holiday a lot, but basically always spoke Italian to each other (and even to English people + over there) and the families were happy when they came back because after spending so much money they must + have learnt something…</p> -</section> -<section class="section"> -<header><h1 id="h_2" class="toc">Using the Computer and the Internet</h1></header> -<p>Back to that amazing and weird magic box called computer: I immediately enjoyed experimenting new stuff, playing with Windows (for me the word “Linux” at the time would have sounded not too different from some names of medicines my grandparents were taking), and even playing games, why not, but in English of course, because I never<br /> -really liked Italian translations (yes, we even dub video games!).<br /> -I remember my biggest fear was not being able to catch up with my friends who had a computer for years: I was so obsessed with that that I often stayed on the PC more than the 2-3 hours allowed by my parents, when they were away. Some time later, and relatively recently, I discovered that I catched up relatively soon, without even noticing it.</p> -<p>I’ve been allowed to access the Internet when I turned 18, because my parents were scared it could be just another bad thing, and still I found myself behind if compared to my friends, who’ve been surfing the web long before.</p> -<p>Only now I notice that perhaps my parents made me discover new things about PCs which my friends never bother learning, even now that they’re graduating. I remember my mum calling me for a silly pseudo-scientific divulgative program where they were describing this new, totally free operating system different from Windows who was supposed to work much better. “It said the name before… it’s Luxi… lixi… lunis…” – Linux.</p> -<p>When I had access to the Internet my life really changed. I do believe that unlike my friends I used the Internet for its very purpose: sharing knowledge, or, in my case, just learning. I also made a vow to myself: to surf <span class="caps">ONLY</span> (unless I had to) English/International websites; a vow which I’m keeping still nowadays, which seemed utterly illogic<br /> -to my friends and Italians in general.</p> -<p>Immediately a whole new universe opened to my eyes: I quickly learnt how to keep up-to-date on the recent events regarding computers, I learnt some rudiments of Internet and Hacking Culture (thanks <span class="caps">ESR</span> for all your papers) and the Open Source movement, and linux, etc. and I noticed two things:</p> -<ul> - <li>I was definetely catching up with my friends’ “knowledge” in computing</li> - <li>I would have <span class="caps">NEVER</span> ever managed to learn even 1/10 of all you need to know about computers: the same as in life, and I was happy with it.</li> -</ul> + </section> + <section class="section"> + <header> + <h1 id="h_2" class="toc">Using the Computer and the Internet</h1> + </header> + <p>Back to that amazing and weird magic box called computer: I immediately enjoyed experimenting new stuff, + playing with Windows (for me the word “Linux” at the time would have sounded not too different + from some names of medicines my grandparents were taking), and even playing games, why not, but in English + of course, because I never<br /> + really liked Italian translations (yes, we even dub video games!).<br /> + I remember my biggest fear was not being able to catch up with my friends who had a computer for years: I + was so obsessed with that that I often stayed on the PC more than the 2-3 hours allowed by my parents, when + they were away. Some time later, and relatively recently, I discovered that I catched up relatively soon, + without even noticing it.</p> + <p>I've been allowed to access the Internet when I turned 18, because my parents were scared it could be + just another bad thing, and still I found myself behind if compared to my friends, who've been surfing + the web long before.</p> + <p>Only now I notice that perhaps my parents made me discover new things about PCs which my friends never bother + learning, even now that they're graduating. I remember my mum calling me for a silly pseudo-scientific + divulgative program where they were describing this new, totally free operating system different from + Windows who was supposed to work much better. “It said the name before… it's Luxi… + lixi… lunis…” – Linux.</p> + <p>When I had access to the Internet my life really changed. I do believe that unlike my friends I used the + Internet for its very purpose: sharing knowledge, or, in my case, just learning. I also made a vow to + myself: to surf <span class="caps">ONLY</span> (unless I had to) English/International websites; a vow which + I'm keeping still nowadays, which seemed utterly illogic<br /> + to my friends and Italians in general.</p> + <p>Immediately a whole new universe opened to my eyes: I quickly learnt how to keep up-to-date on the recent + events regarding computers, I learnt some rudiments of Internet and Hacking Culture (thanks <span + class="caps">ESR</span> for all your papers) and the Open Source movement, and linux, etc. and I noticed + two things:</p> + <ul> + <li>I was definetely catching up with my friends' “knowledge” in computing</li> + <li>I would have <span class="caps">NEVER</span> ever managed to learn even 1/10 of all you need to know + about computers: the same as in life, and I was happy with it.</li> + </ul> -</section> -<section class="section"> -<header><h1 id="h_3" class="toc">The Pre-academic Period</h1></header> -<p>In the meantime I was studying in a Liceo Scientifico, a kind of scientific high school where basically they make you study all sort of subjects (from geography, to maths to phylosopy, to Latin) mainly focusing – they say – on Science-related disciplines. For those who don’t know, in Italy you don’t get to choose what you want to study: in<br /> -High School and University they let you choose basically a type of school, but subjects and courses cannot be changed, apart from a few exceptions.<br /> -I “chose” a particular type of scientific school (…the exception!) where basically I agreed to study an additional subject – Computer Science – in addition to all the rest, for a total of more than 30 hours per week. I studied a lot then, because my parents taught me that Culture was important, and that “if you’re ignorant you can’t do anything nowadays”. No, my parents weren’t ignorant themselves, my dad is a Mechanical Engineer and my mum a Latin/History/Italian professor …and yes, that helped my forma mentis a lot.</p> -<p>I studied a wide range of subjects, including something totally irrelevant with my favourite ones: English and Computing (note: I say “Computing”, not Maths), and I did quite well in the end, graduating from High School with a mark of 100/100. While I was studying Latin, Phylosophy and alikes I was thinking that at least at University I’d have studied something really more specific.<br /> -Until the end I was undecided on which faculty to choose, whether IT Engineering or Foreign Languages. I was very fond of English and languages in general, but I primarly liked computers, so I thought that if I studied IT Engineering I’d have learnt more about computers and my already half-decent knowledge of the English language would<br /> -have helped me in my studies (“Now they <span class="caps">REQUIRE</span> a good knowledge of English, at university”) and in my future, when I’d have started working. <span class="caps">FOOL</span>.</p> + </section> + <section class="section"> + <header> + <h1 id="h_3" class="toc">The Pre-academic Period</h1> + </header> + <p>In the meantime I was studying in a Liceo Scientifico, a kind of scientific high school where basically they + make you study all sort of subjects (from geography, to maths to phylosopy, to Latin) mainly focusing + – they say – on Science-related disciplines. For those who don't know, in Italy you + don't get to choose what you want to study: in<br /> + High School and University they let you choose basically a type of school, but subjects and courses cannot + be changed, apart from a few exceptions.<br /> + I “chose” a particular type of scientific school (…the exception!) where basically I + agreed to study an additional subject – Computer Science – in addition to all the rest, for a + total of more than 30 hours per week. I studied a lot then, because my parents taught me that Culture was + important, and that “if you're ignorant you can't do anything nowadays”. No, my + parents weren't ignorant themselves, my dad is a Mechanical Engineer and my mum a + Latin/History/Italian professor …and yes, that helped my forma mentis a lot.</p> + <p>I studied a wide range of subjects, including something totally irrelevant with my favourite ones: English + and Computing (note: I say “Computing”, not Maths), and I did quite well in the end, graduating + from High School with a mark of 100/100. While I was studying Latin, Phylosophy and alikes I was thinking + that at least at University I'd have studied something really more specific.<br /> + Until the end I was undecided on which faculty to choose, whether IT Engineering or Foreign Languages. I was + very fond of English and languages in general, but I primarly liked computers, so I thought that if I + studied IT Engineering I'd have learnt more about computers and my already half-decent knowledge of + the English language would<br /> + have helped me in my studies (“Now they <span class="caps">REQUIRE</span> a good knowledge of English, + at university”) and in my future, when I'd have started working. <span class="caps">FOOL</span>. + </p> -</section> -<section class="section"> -<header><h1 id="h_4" class="toc">Alice in Wonderland</h1></header> -<p>That was it, I remember exactly when I went to sign my pre-enrollment papers: IT Engineering. I was so happy to have made it! Now finally I would have studied what I was meant to.</p> -<p>On a side note, I was never too good at Maths, I don’t know why. I just didn’t like it because it felt too theorethical for me, and not as useful as I thought,<br /> -especially for programming. In High School I was taught a bit of the Pascal 3 programming language, and that turned out to be perhaps one of the most useful things I’ve ever studied.</p> -<p>The first disappointment came from the courses that they setup for the first year: two <span class="caps">BIG</span> Maths-oriented exams in particular, and Chemistry(!). What Chemistry has to do with Computer Science remained a mystery to me, people claimed that we might be asked in the future to do some programs to help studying the structure of matter and doing<br /> -chemical analysis… yes, and following the same logic I should have been studying the structure of languages, because AI programs and translators would certainly become key applications in the future.</p> -<p>Oddly enough, they made us just study Chemistry.</p> -<p>“But next year will be better” — I was thinking, after getting fairly poor results in the Maths exams — “next year we’ll study something more exciting”.</p> -<p>Economics.</p> -<p>They made us study Economics because they think that it’s useful to know something about finance and salaries, especially when you start working. That makes sense, to an extent, of course, and it was kind of interesting even. But still I didn’t study anything really useful.</p> -<p>This is a little lie, actually, because we actually had two programming exams (out of 17) in which they taught us a bit of C++, and <span class="caps">THAT</span> was interesting, and I even managed to get 30/30 out of the last one: I liked it.</p> -<p>I actually remember when the teacher came in, and insisted for us to use a unix emulator (Cygwin) to compile our C++ programs: people thought that “emulators” were used for running games released for a gaming console on the PC, and what the hell was unix? It looks like – they said – a bad copy of <span class="caps">DOS</span> with more difficult commands. (No comment)</p> -<p>I lived my years at University (three, counting this one which will be the last one) feeling superior to my friends for knowing more about computers but at the same time inferior to them when it came to exams: I didn’t really like most of the subjects, especially some rather abstract mathematical models which <span class="caps">COULD</span> BE useful, but – let’s<br /> -say it all – most people outside Italy don’t really give a sh…illing about. What’s the point in learning the demonstration of Cauchy theorem? Just use it maybe, and it would have a sense… No, they wanted you to study the demonstration and tell them about it, without missing a passage, which normally – for 2/3 of people at least – meant<br /> -“learn it by heart”.</p> -<p>Also, unlike in other countries, professors are more similar to Gods than clever people, apart from a few exceptions. Every professor decides how the students have to take the exams, some of them opt for having some <em>compitini</em> (little tests) during the semester and then the average mark on all of them (normally two or three) represents the<br /> -exam’s final mark: that’s the best, probably, but it could also mean that people can cheat trying to copy from their collegues, etc.</p> -<p>Normal, get on, it’s Italy!</p> -<p>Some professors might allow you to use the notes you took during classes, but that’s often considered a bad thing because people can potentially copy from one another (“What’s that piece of paper, is it your friend’s?” – “No, it’s part of my notes”), and they often do. On the other hand, if a professor doesn’t allow notes to be used, students<br /> -normally do their best to sneak and use them anyway.</p> -<p>This is Italy, after all, the place where everything can be sorted out if you’re cunning enough.</p> -<p>But why do some people cheat? Oh well, simply because either you devote 3 full years of your life to studying pointless crap and forgetting that you’re wasting the best years of your existence, or you have to do something to pass 10 exams a year. Because we <span class="caps">REALLY</span> do take 10 exams a year.</p> -<p>My girlfriend (who’s English and living in Italy, by the way) told me that her brother wanted to study Computing at University but switched to Politics & Journalism because they wanted him to learn Java on the very first year. I’ve never been taught Java — I had to learn it all by myself for my final thesis (see below) — but instead I learnt a ton of demonstrations of theorems and mathematical models. Great, isn’t it?</p> -<p><em>“But you knew you were going to take those exams, because they are publicly available before enrolling”.</em></p> -<p>That’s true and it makes sense, and I probably should have chosen Computer Science instead of IT Engineering if only it was considered equally important. In Italy if you study Engineering you can (after taking yet another exam) become an Engineer, which — unlike other countries — is not a competent person who knows how to fix stuff and can solve problems. Rather, he’s someone who got an important academic title who is treated like a demi-god because he knows (or should know) what’s a differential system and how can be solved but — sometimes — doesn’t know how to use it.</p> -<p>But he’s an Engineer, and he can find work when others can’t.</p> -<p>To explain this concept to non-Italian, I can summarize all this with the following:</p> -<p>In Italy Academic (Skool) Titles rulez – You ain’t got none? You ain’t nothin’ coz I got one and I own you.</p> -<p>And that’s that. In Italy knowledge is dead. (This is an exaggeration, but please try to get my point).</p> -<p>If you need to be competent in something, when you’re working you’ll have to do a practical course (even paying for it yourself) if some “knowledge” is needed. If there’s no risk that things can blow up, you can remain ignorant.</p> + </section> + <section class="section"> + <header> + <h1 id="h_4" class="toc">Alice in Wonderland</h1> + </header> + <p>That was it, I remember exactly when I went to sign my pre-enrollment papers: IT Engineering. I was so happy + to have made it! Now finally I would have studied what I was meant to.</p> + <p>On a side note, I was never too good at Maths, I don't know why. I just didn't like it because it + felt too theorethical for me, and not as useful as I thought,<br /> + especially for programming. In High School I was taught a bit of the Pascal 3 programming language, and that + turned out to be perhaps one of the most useful things I've ever studied.</p> + <p>The first disappointment came from the courses that they setup for the first year: two <span + class="caps">BIG</span> Maths-oriented exams in particular, and Chemistry(!). What Chemistry has to do + with Computer Science remained a mystery to me, people claimed that we might be asked in the future to do + some programs to help studying the structure of matter and doing<br /> + chemical analysis… yes, and following the same logic I should have been studying the structure of + languages, because AI programs and translators would certainly become key applications in the future.</p> + <p>Oddly enough, they made us just study Chemistry.</p> + <p>“But next year will be better” — I was thinking, after getting fairly poor results in the + Maths exams — “next year we'll study something more exciting”.</p> + <p>Economics.</p> + <p>They made us study Economics because they think that it's useful to know something about finance and + salaries, especially when you start working. That makes sense, to an extent, of course, and it was kind of + interesting even. But still I didn't study anything really useful.</p> + <p>This is a little lie, actually, because we actually had two programming exams (out of 17) in which they + taught us a bit of C++, and <span class="caps">THAT</span> was interesting, and I even managed to get 30/30 + out of the last one: I liked it.</p> + <p>I actually remember when the teacher came in, and insisted for us to use a unix emulator (Cygwin) to compile + our C++ programs: people thought that “emulators” were used for running games released for a + gaming console on the PC, and what the hell was unix? It looks like – they said – a bad copy of + <span class="caps">DOS</span> with more difficult commands. (No comment) + </p> + <p>I lived my years at University (three, counting this one which will be the last one) feeling superior to my + friends for knowing more about computers but at the same time inferior to them when it came to exams: I + didn't really like most of the subjects, especially some rather abstract mathematical models which + <span class="caps">COULD</span> BE useful, but – let's<br /> + say it all – most people outside Italy don't really give a sh…illing about. What's + the point in learning the demonstration of Cauchy theorem? Just use it maybe, and it would have a + sense… No, they wanted you to study the demonstration and tell them about it, without missing a + passage, which normally – for 2/3 of people at least – meant<br /> + “learn it by heart”. + </p> + <p>Also, unlike in other countries, professors are more similar to Gods than clever people, apart from a few + exceptions. Every professor decides how the students have to take the exams, some of them opt for having + some <em>compitini</em> (little tests) during the semester and then the average mark on all of them + (normally two or three) represents the<br /> + exam's final mark: that's the best, probably, but it could also mean that people can cheat + trying to copy from their collegues, etc.</p> + <p>Normal, get on, it's Italy!</p> + <p>Some professors might allow you to use the notes you took during classes, but that's often considered a + bad thing because people can potentially copy from one another (“What's that piece of paper, is + it your friend's?” – “No, it's part of my notes”), and they often do. On + the other hand, if a professor doesn't allow notes to be used, students<br /> + normally do their best to sneak and use them anyway.</p> + <p>This is Italy, after all, the place where everything can be sorted out if you're cunning enough.</p> + <p>But why do some people cheat? Oh well, simply because either you devote 3 full years of your life to studying + pointless crap and forgetting that you're wasting the best years of your existence, or you have to do + something to pass 10 exams a year. Because we <span class="caps">REALLY</span> do take 10 exams a year.</p> + <p>My girlfriend (who's English and living in Italy, by the way) told me that her brother wanted to study + Computing at University but switched to Politics & Journalism because they wanted him to learn Java on + the very first year. I've never been taught Java — I had to learn it all by myself for my final + thesis (see below) — but instead I learnt a ton of demonstrations of theorems and mathematical models. + Great, isn't it?</p> + <p><em>“But you knew you were going to take those exams, because they are publicly available before + enrolling”.</em></p> + <p>That's true and it makes sense, and I probably should have chosen Computer Science instead of IT + Engineering if only it was considered equally important. In Italy if you study Engineering you can (after + taking yet another exam) become an Engineer, which — unlike other countries — is not a competent + person who knows how to fix stuff and can solve problems. Rather, he's someone who got an important + academic title who is treated like a demi-god because he knows (or should know) what's a differential + system and how can be solved but — sometimes — doesn't know how to use it.</p> + <p>But he's an Engineer, and he can find work when others can't.</p> + <p>To explain this concept to non-Italian, I can summarize all this with the following:</p> + <p>In Italy Academic (Skool) Titles rulez – You ain't got none? You ain't nothin' coz I + got one and I own you.</p> + <p>And that's that. In Italy knowledge is dead. (This is an exaggeration, but please try to get my point). + </p> + <p>If you need to be competent in something, when you're working you'll have to do a practical + course (even paying for it yourself) if some “knowledge” is needed. If there's no risk + that things can blow up, you can remain ignorant.</p> -</section> -<section class="section"> -<header><h1 id="h_5" class="toc">The Vanishing Cheshire Cat</h1></header> -<p>Up to today I could leave with it, I knew that abroad the situation was hopefully different, but I started to cope with the fact that I would have got my B. Sc. and in addition I knew more stuff than some of the others who got the degree at the same time. A few months ago I had just a few exams left and I started going to the lab for my thesis project, with a friend of mine.</p> -<p>At that point — oddly enough — I was told to develop an application in Java, using some libraries, and actually make something fully functional and (somewhat) useful. I couldn’t believe it! I was happy on one side, and angry on the other, because <span class="caps">NOBODY</span> ever taught us about Java or about creating an useful application.</p> -<p>The Ph.D. Student who was appointed to help us with the project told us: “That’s the way it works, it’s normal that you don’t know Java, but you know a bit of C++, and now it’s time to research”. That was again very shocking: it was the first time that someone ever told me something like this, and in the end we agreed on the project.</p> -<p>Despite the fact we had to implement some new features and test them relatively at the last minute, we succeeded in developing the program. In particular, I actually played an important part being the one who actually researched something on Java already, and knew more about programming.</p> -<p>Oddly enough, my collegue would have graduated with a higher mark than me, even if he originally thought that “<span class="caps">SSH</span>” was nothing but a sound used to shut people up and that <span class="caps">HTML</span> was a proprietary standard introduced by Microsoft having something to do with web pages. If you’re reading all this mate, don’t get angry at me: I have nothing against you, I just hate the System, as usual.</p> -<p>He still probabally thinks that POP3 is something like the name of a band and that a shell can be found only at the sea. Mate, it’s not your fault, don’t blame me if I say this, blame the System!</p> -<p>I mean, I don’t consider myself an expert, but at least I’m better than that. I met students, at uni, who haven’t the faintest idea of what a sever was. And that’s pretty sad, if you ask me.</p> -<p>Let’s now come to the end of this apparently endless flow of thoughts: I still had an exam to pass in order to get the degree. Such exam counts 3/180 of the whole stuff we had to study in these three years (it is literally quantified like this on paper), and it’s about Digital Controls. Cool, you may think, but it actually means <span class="caps">MORE</span> mathematical models to solve complex(?) situations, more theorems and other crap, even if — I admit — I had to take exams worse than this one.</p> -<p>I admit I constantly underestimated the exam and took it various times without passing it: “it’s so small, I’ll have to pass it eventually”.</p> -<p>This was just the way of thinking they made us adopt, nothing more, nothing less.</p> -<p>I was quite busy testing my program and writing the thesis in this period, although we were literally told not to worry too much about it: “just google a bit on the net, copy and paste, and change some words if you feel guilty…”</p> -<p>To the guy who told me to do so: it’s just an example that is bad to read, but it’s true, you can’t deny it. I don’t blame you, because you’ve really taught me a lot about working on “proper” projects (and this is <span class="caps">NOT</span> sarcastic, really), I blame the System.</p> -<p>In the meantime I spent days running around here and there trying to sort out all the bureaucracy necessary to have all the papers ready for my degree, and I also talked to the professor who commissioned the project: he’s by far the most helpful and altruistic professor I’ve ever met, and obviously offered his complete availability for helping<br /> -us for the preparation of the degree.</p> -<p>I just needed to pass my last exam. It was the last one, not as complex as others I took, and this time I studied more than the previous times…</p> -<p>I didn’t pass it.</p> -<p>I don’t blame the professor, because probably he’s the only one who’s normal in the whole lot: he’s like me, I think, because I suspect he’s aware that abroad students don’t cheat and professors are not “flexible” on marks. I got 12/30, and I didn’t pass, that was it, I didn’t know his subject enough and he didn’t feel he had to help me to get the degree at all. And he’s right. I can’t blame him, but I DO blame such a “flexible” system which in the end is totally absurd. I learnt the hard way that I shouldn’t have “trusted” the Italian Way, because it has flaws.</p> -<p>Oddly enough, people who can’t even connect a network cable get their B.Sc., and all I get after spending months learning useful things and developing is just a load of B.S.</p> -<p>I learnt my lesson and I’ll probably re-take the exam, pass it, and maybe get the degree: my collegue and friend just emailed me telling me that I <span class="caps">HAVE</span> to help him doing the missing chapters of the thesis because he can’t write them, he’s not good at writing stuff, and doesn’t know what to write either. He’ll get his B.Sc. on September 23rd, provided that I actually decide to help him.</p> -<p>I hope people who read this can understand my frustration apart from blaming me for being “lazy” when it came to exams and expecting help when technically I didn’t deserve it. I probably won’t win the nobel prize or get rich like those two american students who own the most profitable Internet business ever conceivable. I’m not as special, and I don’t deserve anything special, and I never dreamt about it.</p> -<p>All I dreamt was being able to learn, and do something useful. It looks like it will remain just a dream, here in Italy.</p> + </section> + <section class="section"> + <header> + <h1 id="h_5" class="toc">The Vanishing Cheshire Cat</h1> + </header> + <p>Up to today I could leave with it, I knew that abroad the situation was hopefully different, but I started to + cope with the fact that I would have got my B. Sc. and in addition I knew more stuff than some of the others + who got the degree at the same time. A few months ago I had just a few exams left and I started going to the + lab for my thesis project, with a friend of mine.</p> + <p>At that point — oddly enough — I was told to develop an application in Java, using some + libraries, and actually make something fully functional and (somewhat) useful. I couldn't believe it! + I was happy on one side, and angry on the other, because <span class="caps">NOBODY</span> ever taught us + about Java or about creating an useful application.</p> + <p>The Ph.D. Student who was appointed to help us with the project told us: “That's the way it + works, it's normal that you don't know Java, but you know a bit of C++, and now it's time + to research”. That was again very shocking: it was the first time that someone ever told me something + like this, and in the end we agreed on the project.</p> + <p>Despite the fact we had to implement some new features and test them relatively at the last minute, we + succeeded in developing the program. In particular, I actually played an important part being the one who + actually researched something on Java already, and knew more about programming.</p> + <p>Oddly enough, my collegue would have graduated with a higher mark than me, even if he originally thought that + “<span class="caps">SSH</span>” was nothing but a sound used to shut people up and that <span + class="caps">HTML</span> was a proprietary standard introduced by Microsoft having something to do with + web pages. If you're reading all this mate, don't get angry at me: I have nothing against you, I + just hate the System, as usual.</p> + <p>He still probabally thinks that POP3 is something like the name of a band and that a shell can be found only + at the sea. Mate, it's not your fault, don't blame me if I say this, blame the System!</p> + <p>I mean, I don't consider myself an expert, but at least I'm better than that. I met students, at + uni, who haven't the faintest idea of what a sever was. And that's pretty sad, if you ask me. + </p> + <p>Let's now come to the end of this apparently endless flow of thoughts: I still had an exam to pass in + order to get the degree. Such exam counts 3/180 of the whole stuff we had to study in these three years (it + is literally quantified like this on paper), and it's about Digital Controls. Cool, you may think, but + it actually means <span class="caps">MORE</span> mathematical models to solve complex(?) situations, more + theorems and other crap, even if — I admit — I had to take exams worse than this one.</p> + <p>I admit I constantly underestimated the exam and took it various times without passing it: “it's + so small, I'll have to pass it eventually”.</p> + <p>This was just the way of thinking they made us adopt, nothing more, nothing less.</p> + <p>I was quite busy testing my program and writing the thesis in this period, although we were literally told + not to worry too much about it: “just google a bit on the net, copy and paste, and change some words + if you feel guilty…”</p> + <p>To the guy who told me to do so: it's just an example that is bad to read, but it's true, you + can't deny it. I don't blame you, because you've really taught me a lot about working on + “proper” projects (and this is <span class="caps">NOT</span> sarcastic, really), I blame the + System.</p> + <p>In the meantime I spent days running around here and there trying to sort out all the bureaucracy necessary + to have all the papers ready for my degree, and I also talked to the professor who commissioned the project: + he's by far the most helpful and altruistic professor I've ever met, and obviously offered his + complete availability for helping<br /> + us for the preparation of the degree.</p> + <p>I just needed to pass my last exam. It was the last one, not as complex as others I took, and this time I + studied more than the previous times…</p> + <p>I didn't pass it.</p> + <p>I don't blame the professor, because probably he's the only one who's normal in the whole + lot: he's like me, I think, because I suspect he's aware that abroad students don't cheat + and professors are not “flexible” on marks. I got 12/30, and I didn't pass, that was it, I + didn't know his subject enough and he didn't feel he had to help me to get the degree at all. + And he's right. I can't blame him, but I DO blame such a “flexible” system which in + the end is totally absurd. I learnt the hard way that I shouldn't have “trusted” the + Italian Way, because it has flaws.</p> + <p>Oddly enough, people who can't even connect a network cable get their B.Sc., and all I get after + spending months learning useful things and developing is just a load of B.S.</p> + <p>I learnt my lesson and I'll probably re-take the exam, pass it, and maybe get the degree: my collegue + and friend just emailed me telling me that I <span class="caps">HAVE</span> to help him doing the missing + chapters of the thesis because he can't write them, he's not good at writing stuff, and + doesn't know what to write either. He'll get his B.Sc. on September 23rd, provided that I + actually decide to help him.</p> + <p>I hope people who read this can understand my frustration apart from blaming me for being “lazy” + when it came to exams and expecting help when technically I didn't deserve it. I probably won't + win the nobel prize or get rich like those two american students who own the most profitable Internet + business ever conceivable. I'm not as special, and I don't deserve anything special, and I never + dreamt about it.</p> + <p>All I dreamt was being able to learn, and do something useful. It looks like it will remain just a dream, + here in Italy.</p> -</section> + </section> </section>
@@ -6,7 +6,7 @@ tags: "php|rails|cakephp|frameworks"
----- <p>I <a href=/articles/34">already</a> <a href=/articles/38">covered</a> the Akelos <span class="caps">PHP</span> framework in - the past, but for those who don’t know it, Akelos seems to be one of the few <a + the past, but for those who don't know it, Akelos seems to be one of the few <a href="/articles/rails-inspired-php-frameworks">Rails-inspired <span class="caps">PHP</span> frameworks</a> still worth mentioning, besides CakePHP and Symphony of course.</p> <p>I recently has a look at their recently-relaunched <a href="http://www.akelos.org/">community website</a> and I@@ -46,7 +46,7 @@ <p>After that point, whenever I had a problem to solve while coding my customers applications I turned to Rails and they
usually had the most elegant solution available. So I did like the idea of digging into Rails code to learn more Ruby and bringing Rails magic to the <span class="caps">PHP</span> world. It also helped the fact that Rails inline documentation is excellent so it could be easily adapted for Akelos.</p> -<h4><em>What’s new since last time I posted about Akelos?</em></h4> +<h4><em>What's new since last time I posted about Akelos?</em></h4> <p>The biggest change is the direction that the project has taken. Until now we have not dedicated time to promote Akelos, we just used it for our internal projects and we have been adding features as needed without a fixed roadmap or advocacy.</p>@@ -87,13 +87,13 @@ <p>A standalone webserver like WebBrick, <span class="caps">RJS</span>, has and belongs to many through associations,
string/number/date extensions and Active Resource.</p> <p>Ruby-powered features like modules, runtime class overriding and blocks will never be available in Akelos.</p> <p>Scaffolds in Akelos work by generating code, I found quite useless to enable $scaffold = true; and have magic - functionality that you can’t modify, so I decided not to invest my time on that one.</p> + functionality that you can't modify, so I decided not to invest my time on that one.</p> <h4><em>I noticed quite a few generators available for Akelos, do they work as a Rails developer may expect them to work?</em></h4> <p>The ones that are available do pretty much the same as in RoR.</p> <h4><em>How does Akelos compare to other similar <span class="caps">PHP</span> frameworks like, say, CakePHP? What - features does Akelos offer which Cake doesn’t offer and vice-versa?</em></h4> -<p>I’m not aware of Cake’s functionalities. At the time I started porting Rails my feelings about CakePHP + features does Akelos offer which Cake doesn't offer and vice-versa?</em></h4> +<p>I'm not aware of Cake's functionalities. At the time I started porting Rails my feelings about CakePHP were that they missed the simplicity point in favor of architectural discussions that lead to confusing code, but that was long ago.</p> <p>Akelos (and Rails) do not implement <span class="caps">ACL</span> like Cake does, as that is a business logic@@ -106,7 +106,7 @@ href="http://en.wikipedia.org/wiki/Optimistic_concurrency_control">optimistic locking</a>, <a
href="http://www.martinfowler.com/eaaCatalog/lazyLoad.html">lazy loading</a>, <a href="http://www.martinfowler.com/eaaCatalog/singleTableInheritance.html">table inheritance</a>, counters, automatic transactions, really powerful validations, calculations…, and I think most of these advanced - features are still missing on Cake, but maybe I’m wrong.</p> + features are still missing on Cake, but maybe I'm wrong.</p> <h4><em>Did you include unit tests for all the framework classes?</em></h4> <p>The main components are fully unit tested, and no new code or patch gets into the trunk without unit tests.</p> <h4><em>Did you or someone do any performance test or benchmarks on Akelos already?</em></h4>@@ -114,7 +114,7 @@ <p>During the last month a lot of code was refactored to improve performance with the help of <a
href="http://xdebug.org/">Xdebug</a>, <a href="http://kcachegrind.sourceforge.net/">Kcachegrind</a> and <a href="http://httpd.apache.org/docs/2.0/programs/ab.html">ab</a>. We significantly improved the performance in one of our most complex intranet applications, a <a href="http://www.basecamphq.com/">basecamp</a>-like system.</p> -<p>Akelos also implements caching at many levels, so it’s very easy to increase performance as we did with a new +<p>Akelos also implements caching at many levels, so it's very easy to increase performance as we did with a new <span class="caps">CMS</span> that can handle +200 requests per second using <a href="http://www.apache.org/">Apache</a> in a cheap shared server environment. </p>@@ -123,7 +123,7 @@ framework?</em></h4>
<p><a href="http://www.akelos.org/docs/tutorials/booklink#mvc">Akelos <span class="caps">MVC</span> implementation</a> and <a href="http://www.akelos.org/docs/tutorials/booklink#workflow">workflow</a> are really easy to understand.</p> <p>In Akelos all the methods and interfaces are thoroughly selected, so whenever you need to do something you just need - to type what you think. Default options are selected with care so you don’t need to set any configuration + to type what you think. Default options are selected with care so you don't need to set any configuration unless you want to modify the default behavior.</p> <p>Coding multilingual applications, building complex relationships within models, distributing databases changes within your development team, building Ajax interfaces, unit testing your code and many other common tasks for <span@@ -142,7 +142,7 @@ href="http://www.3ev.com/">3rd Eye Vision (3ev)</a> is using Akelos. </p>
<p>The <a href="http://www.akelos.org/">Akelos.org</a> site is running a <span class="caps">CMS</span> named Editam which we will release as Open Source in a near future.</p> <p>Some small websites like <a href="http://www.fundaciocaixacarlet.com/">Fundacio Caixa Carlet</a> and many - intranet/extranet sites that we’ve been coding during the last 2 years.</p> + intranet/extranet sites that we've been coding during the last 2 years.</p> <h4><em>What are your future plans for Akelos? Anything new on the way?</em></h4> <p>A new manual, and a better <span class="caps">API</span> interface are the main priorities right now.</p> <p>Continuing bringing Rails functionality as needed.</p>
@@ -4,22 +4,39 @@ content-type: article
timestamp: 1198132860 tags: "website|rails" ----- -<p>Yesterday I got a rather annoying early Christmas present: when visiting my site, I noticed that the raw source code of my dispatch.fcgi file (yes, I’m on shared hosting with FastCGI, for now) was displayed “as it is” instead of being interpreted.</p> -<p>After the initial moment of anger and stress (I immediately realized it was BlueHost’s fault, not mine), I opened two tickets and went to bed, hoping to see everything solved in the morning.</p> -<p>Unluckily it wasn’t the case, so I posted on BlueHost forum trying to be as polite as possible complaining because the issue wasn’t being dealt with. It turns out that for such issues you’re supposed to use the “Live Chat” feature instead of the tickets, so that’s what I did.</p> -<p>After a quick chat with “Christian”, it turns out that BlueHost decided to perform a server upgrade “silently” upgrading to Apache2, PHP5, MySQL4.1, etc. etc.<br /> -Cool, pity that nobody told me that!</p> -<p>I was expecting some sort of <span class="caps">PHP</span> upgrade (not that I care like that), which was supposed to happen according to the last BlueHost newsletter:</p> +<p>Yesterday I got a rather annoying early Christmas present: when visiting my site, I noticed that the raw source code + of my dispatch.fcgi file (yes, I'm on shared hosting with FastCGI, for now) was displayed “as it is” + instead of being interpreted.</p> +<p>After the initial moment of anger and stress (I immediately realized it was BlueHost's fault, not mine), I opened two + tickets and went to bed, hoping to see everything solved in the morning.</p> +<p>Unluckily it wasn't the case, so I posted on BlueHost forum trying to be as polite as possible complaining because + the issue wasn't being dealt with. It turns out that for such issues you're supposed to use the “Live + Chat” feature instead of the tickets, so that's what I did.</p> +<p>After a quick chat with “Christian”, it turns out that BlueHost decided to perform a server upgrade + “silently” upgrading to Apache2, PHP5, MySQL4.1, etc. etc.<br /> + Cool, pity that nobody told me that!</p> +<p>I was expecting some sort of <span class="caps">PHP</span> upgrade (not that I care like that), which was supposed to + happen according to the last BlueHost newsletter:</p> <blockquote> -<p><em>“To alleviate any issues in the future with certain scripts that only run on one<br /> -version of <span class="caps">PHP</span> we have developed the ability to run PHP4 and PHP5 on the same server<br /> -simultaneously. This will be rolled out to all users in the next couple of weeks. Some<br /> -servers already have this ability while most will see it in the next two weeks.”</em></p> + <p><em>“To alleviate any issues in the future with certain scripts that only run on one<br /> + version of <span class="caps">PHP</span> we have developed the ability to run PHP4 and PHP5 on the same + server<br /> + simultaneously. This will be rolled out to all users in the next couple of weeks. Some<br /> + servers already have this ability while most will see it in the next two weeks.”</em></p> </blockquote> -<p>But… hang on? Does it say anything about migrating to Apache2? I don’t think so! What’s worse, is that quite a few things changed with Apache2, in particular the way FastCGI handlers are declared:</p> -<div class='text'><pre><code># Apache 1.3: +<p>But… hang on? Does it say anything about migrating to Apache2? I don't think so! What's worse, is that quite a + few things changed with Apache2, in particular the way FastCGI handlers are declared:</p> +<div class='text'> + <pre><code># Apache 1.3: AddHandler fastcgi-script .fcgi # Apache 2: -AddHandler fcgid-script .fcgi</code></pre></div><p>See? Different. This is due to the fact that <a href="http://wiki.rubyonrails.org/rails/pages/Debian+mod_fastcgi+Notes"><code>mod_fcgid</code> is used instead of <code>mod_fastcgi</code> on Apache 2</a>.</p> -<p>The fix was easy, of course, and now my site is up and running again (and actually running faster)… but, I wonder, why the hell wasn’t I informed? Is it acceptable? It sounds like I might end up on a <span class="caps">VPS</span> sooner than expected, unless BlueHost doesn’t roll out some new exciting feature soon, as I think it might…</p> +AddHandler fcgid-script .fcgi</code></pre> +</div> +<p>See? Different. This is due to the fact that <a + href="http://wiki.rubyonrails.org/rails/pages/Debian+mod_fastcgi+Notes"><code>mod_fcgid</code> is used instead + of <code>mod_fastcgi</code> on Apache 2</a>.</p> +<p>The fix was easy, of course, and now my site is up and running again (and actually running faster)… but, I + wonder, why the hell wasn't I informed? Is it acceptable? It sounds like I might end up on a <span + class="caps">VPS</span> sooner than expected, unless BlueHost doesn't roll out some new exciting feature soon, + as I think it might…</p>
@@ -4,17 +4,17 @@ content-type: article
timestamp: 1188442740 tags: "personal|website|writing" ----- -<p>I’m back. I was so eager to go on holiday that I didn’t even bother writing a post about it, too bad. I - actually when on holiday for a week but I thought I’d take three weeks off from my blog duties in favor of - laziness and relax, but unfortunately my laptop decided to go wrong as well, so I didn’t actually manage to +<p>I'm back. I was so eager to go on holiday that I didn't even bother writing a post about it, too bad. I + actually when on holiday for a week but I thought I'd take three weeks off from my blog duties in favor of + laziness and relax, but unfortunately my laptop decided to go wrong as well, so I didn't actually manage to relax that much.</p> -<p>Now everything is fine. I still have to send in my laptop for assistance but it’s usable at least, and I +<p>Now everything is fine. I still have to send in my laptop for assistance but it's usable at least, and I finally found the time (and the money) to buy a desktop PC. I always wanted to build my own, actually, but in the - end I decided to opt for a pre-made Fujitsu Siemens, mainly for economic reasons and time constraints. I won’t - publish the specs, but it’s alright for me and my fiancée.</p> + end I decided to opt for a pre-made Fujitsu Siemens, mainly for economic reasons and time constraints. I won't + publish the specs, but it's alright for me and my fiancée.</p> <p>So what now? Well… the usual: more posts will soon be added to the Simply On Rails series, a Ruby-related article is on the way (it will be edited by the excellent <a href="http://www.cyberarmy.net">CyberArmy</a> Publication Editing Staff this time), I may venture in a site upgrade whenever they decide to release version 4.2 of - Typo which is supposed to be imminent and I’ll eventually complete another pet project of mine, but that will + Typo which is supposed to be imminent and I'll eventually complete another pet project of mine, but that will take more time…</p> <p>Stay tuned.</p>
@@ -4,5 +4,11 @@ content-type: article
timestamp: 1148997020 tags: "cakephp|review|tutorial" ----- -<p><em>“There are many frameworks available for the <span class="caps">PHP</span> programming language nowadays, and especially a lot of <span class="caps">RAD</span> (Rapid Application Development) frameworks which aim to make web development faster, less tedious and more organized. CakePHP was one of the first frameworks to port the <span class="caps">RAD</span> philosophy – which became so popular after Ruby on Rails – to the <span class="caps">PHP</span> programming language. CakePHP v1.0 is now one of the most popular and intuitive solutions for <span class="caps">PHP</span> programming, let’s discover why…”</em></p> -<p><a href="http://hades.phparch.com/ceres/public/article/index.php/art::cakephp::overview">Read the full article</a> on <a href="http://hades.phparch.com/artemis/main/">php|architect article repository</a></p> +<p><em>“There are many frameworks available for the <span class="caps">PHP</span> programming language nowadays, + and especially a lot of <span class="caps">RAD</span> (Rapid Application Development) frameworks which aim to + make web development faster, less tedious and more organized. CakePHP was one of the first frameworks to port + the <span class="caps">RAD</span> philosophy – which became so popular after Ruby on Rails – to the + <span class="caps">PHP</span> programming language. CakePHP v1.0 is now one of the most popular and intuitive + solutions for <span class="caps">PHP</span> programming, let's discover why…”</em></p> +<p><a href="http://hades.phparch.com/ceres/public/article/index.php/art::cakephp::overview">Read the full article</a> on + <a href="http://hades.phparch.com/artemis/main/">php|architect article repository</a></p>
@@ -4,28 +4,47 @@ content-type: article
timestamp: 1240126920 tags: "ruby|concatenative" ----- -<p>Version 0.2.0. of the <a href="/concatenative">Concatenative</a> <span class="caps">DSL</span> has been <a href="http://rubyforge.org/frs/?group_id=8068&release_id=33575">released</a>.</p> +<p>Version 0.2.0. of the <a href="/concatenative">Concatenative</a> <span class="caps">DSL</span> has been <a + href="http://rubyforge.org/frs/?group_id=8068&release_id=33575">released</a>.</p> <p>Here are some highlights from the changelog:</p> <ul> <li>Implemented new combinators: - <ul> - <li>binrec</li> - <li>split</li> - <li>twodip</li> - <li>threedip</li> - </ul></li> + <ul> + <li>binrec</li> + <li>split</li> + <li>twodip</li> + <li>threedip</li> + </ul> + </li> <li>Performance improvements: - <ul> - <li>Stack is never copied.</li> - <li>No symbol/string conversion when processing words.</li> - </ul></li> + <ul> + <li>Stack is never copied.</li> + <li>No symbol/string conversion when processing words.</li> + </ul> + </li> <li>Pseudo-namespace support (e.g. :kernel/:while and :math/:factorial)</li> <li>~ and <= operators to unquote and define words, respectively.</li> <li>No more uppercase words!</li> </ul> -<p>Oddly enough, I realized that it is possible to defined methods named after reserved words like “while” or “if”, so now all the concatenative words (combinators) in <code>kernel.rb</code> are now defined <em>without</em> a leading undersore. Similarly, there’s no real need to use <span class="caps">UPPERCASE</span> symbols, so as a result, method lookup is significantly faster and will use less resources.</p> -<p>Here’s how the lookup works. Say you have the following program:</p> -<div class='ruby'><pre><code>[[1,2,3], [4.5.6], :concat]</code></pre></div><p>If <code>:concat</code> has been defined by the user (<code>:concat <= [...]</code>), that definition will be used, otherwise the <code>Concatenative::Kernel</code> combinator <code>concat</code> will be called. If you want to use the corresponding Ruby method, all you have to do is specifying the arity explicitly using the <code>|</code> operator.</p> -<p>To remove any ambiguity, it is now possible to specify the <em>namespace</em> of a word explicitly, e.g. :kernel/:concat or :ruby/concat. The <code>/</code> operator simply concatenates the two symbols together (<code>:"kernel/concat"</code>) and sets the namespace (<code>:kernel</code>) and name (<code>:concat</code>) of the new symbol. <code>:kernel</code> and <code>:ruby</code> are not meant to be used when defining new words, but you can use anything else you like, for example :math/:factorial or :local/:a, etc.</p> -<p>As I pointed out in the <a href="/articles/concatenative-programming-in-ruby">first article</a> about concatenative, even with the new performance improvement a concatenative program still runs slower than a standard Ruby program, but at least now you won’t run out of stack space (the <em>Ruby</em> stack, in this case) too soon.</p> -<p>If you have any issues to report, feature requests, etc., feel free to use <a href="http://github.com/h3rald/concatenative/issues">GitHub</a> to do so.</p> +<p>Oddly enough, I realized that it is possible to defined methods named after reserved words like “while” + or “if”, so now all the concatenative words (combinators) in <code>kernel.rb</code> are now defined + <em>without</em> a leading undersore. Similarly, there's no real need to use <span class="caps">UPPERCASE</span> + symbols, so as a result, method lookup is significantly faster and will use less resources.</p> +<p>Here's how the lookup works. Say you have the following program:</p> +<div class='ruby'> + <pre><code>[[1,2,3], [4.5.6], :concat]</code></pre> +</div> +<p>If <code>:concat</code> has been defined by the user (<code>:concat <= [...]</code>), that definition will be + used, otherwise the <code>Concatenative::Kernel</code> combinator <code>concat</code> will be called. If you want to + use the corresponding Ruby method, all you have to do is specifying the arity explicitly using the <code>|</code> + operator.</p> +<p>To remove any ambiguity, it is now possible to specify the <em>namespace</em> of a word explicitly, e.g. + :kernel/:concat or :ruby/concat. The <code>/</code> operator simply concatenates the two symbols together + (<code>:"kernel/concat"</code>) and sets the namespace (<code>:kernel</code>) and name (<code>:concat</code>) of the + new symbol. <code>:kernel</code> and <code>:ruby</code> are not meant to be used when defining new words, but you + can use anything else you like, for example :math/:factorial or :local/:a, etc.</p> +<p>As I pointed out in the <a href="/articles/concatenative-programming-in-ruby">first article</a> about concatenative, + even with the new performance improvement a concatenative program still runs slower than a standard Ruby program, + but at least now you won't run out of stack space (the <em>Ruby</em> stack, in this case) too soon.</p> +<p>If you have any issues to report, feature requests, etc., feel free to use <a + href="http://github.com/h3rald/concatenative/issues">GitHub</a> to do so.</p>
@@ -6,23 +6,24 @@ tags: "ruby|concatenative|programming"
----- <p>A while ago, I sat down examining a few <a href="/articles/10-programming-languages">alternative programming languages</a> I might decide to learn someday. Each of those languages has its own peculiarities, and I - didn’t choose them randomly, I chose them based on their popularity, power, paradigm and how actively they are + didn't choose them randomly, I chose them based on their popularity, power, paradigm and how actively they are developed.</p> <p>I included <a href="http://factorcode.org/">Factor</a> as the only representative for <em>concatenative programming</em>, an interesting way to write programs, but seldom used in “recent” languages (except for Factor and a few others).</p> <h3>The Joy of concatenative programming</h3> -<p>If you have absolutely no clue on what I’m talking about, you should consider looking at the home page for the +<p>If you have absolutely no clue on what I'm talking about, you should consider looking at the home page for the <a href="http://www.latrobe.edu.au/philosophy/phimvt/joy.html">Joy Programming Language</a>, or maybe just the <a href="http://www.latrobe.edu.au/philosophy/phimvt/joy/j00ovr.html">overview</a>: it should be enough to tikle - your curiosity.</p> + your curiosity. +</p> <p>Joy is often considered the <em>canonical</em> concatenative programming language: a basic —but working— implementation of a simple programming language to illustrate the fundamentals of concatenative programming. Joy looks like this:</p> <p><code>2 3 + dup *</code></p> <p>This simple programs computes the sum of 2 and 3, pushes it on the stack, duplicates it (using the <code>dup</code> combinator) and then multiplies the two values, obtaining 25 as a result.</p> -<p>Let’s slow down a second. Here’s what happens, exactly:</p> +<p>Let's slow down a second. Here's what happens, exactly:</p> <table> <tr> <th>Element entered </th>@@ -49,7 +50,7 @@ <td> * </td>
<td> <sup class="footnote" id="fnr25"><a href="#fn25">25</a></sup> </td> </tr> </table> -<p>Got it? Let’s take it one step further. When you enter <code>dup</code> and then <code>*</code>, you are +<p>Got it? Let's take it one step further. When you enter <code>dup</code> and then <code>*</code>, you are effectively computing the square of a number, so we can define the function <code>square</code> simply as:</p> <p><code>square == dup *</code></p> <p>In Ruby, this would be:</p>@@ -58,9 +59,9 @@ <pre><code>def square(x)
x*x end</code></pre> </div> -<p>What’s unusual here? — Simple, there are no <em>variables</em> involved. Joy doesn’t need any +<p>What's unusual here? — Simple, there are no <em>variables</em> involved. Joy doesn't need any explicit variable or <em>formal parameters</em> of any sort.</p> -<p>There’s more. Take the following code:</p> +<p>There's more. Take the following code:</p> <p><code>[1 2 3 4] [dup *] map</code></p> <p>The <code>map</code> combinator expects a list and a <em>quoted program</em> (the same one used to compute the square) and produces a new list containing the result of that program applied to each element of the original list.@@ -68,9 +69,9 @@ Basically the equivalent of:</p>
<div class='ruby'> <pre><code>[1,2,3,4].map { |e| e*e }</code></pre> </div> -<p>Do you notice anything different? — Yes, Joy doesn’t need blocks or lambdas either, it uses <em>quoted +<p>Do you notice anything different? — Yes, Joy doesn't need blocks or lambdas either, it uses <em>quoted programs</em> instead, which are nothing but slightly fancier lists (or arrays, as you like).</p> -<p>Let’s recap then, Joy doesn’t need of:</p> +<p>Let's recap then, Joy doesn't need of:</p> <ul> <li>lambda functions or blocks (quotation does the trick)</li> <li>explicit parameters (everything you need is on the stack)</li>@@ -81,18 +82,18 @@ <p>I would consider this one of the best examples of <em>programming minimalism</em>: an incredibly simple syntax, a
very small set of rules, but a good deal of power.</p> <h3>Ruby objects on the stack</h3> <p>After reading about Joy, I realized that implementing something similar in Ruby would be an interesting mini-project - (let’s say a week of lunch breaks) to understand more about concatenative programming. It would also be + (let's say a week of lunch breaks) to understand more about concatenative programming. It would also be pointless, too: a stack-based programming language implemented on top of one of the most high-level programming - languages you can find isn’t going to be fast, is it? Nevertheless, it would still be interesting.</p> + languages you can find isn't going to be fast, is it? Nevertheless, it would still be interesting.</p> <p>Ruby offers everything you need to build a Joy-like <span class="caps">DSL</span>:</p> <ul> <li>You can use arrays as …arrays, but also as quoted programs, and to model the stack itself.</li> <li>You can use integers, strings, etc. as themselves</li> - <li>You can use Symbols as functions (we’ll get to this in a minute)</li> + <li>You can use Symbols as functions (we'll get to this in a minute)</li> </ul> <p>If you think about the following expression in postfix notation:</p> <p><code>2 2 +</code></p> -<p>We <em>could</em> translate it into infix notation (<code>2 + 2</code>), because Ruby supports it, but it’s not +<p>We <em>could</em> translate it into infix notation (<code>2 + 2</code>), because Ruby supports it, but it's not general enough. What you could do is this though:</p> <div class='ruby'> <pre><code>2.send(:+, 2)</code></pre>@@ -108,13 +109,13 @@ and may have 0 or more parameters. Take the following then:</p>
<div class='ruby'> <pre><code>[2, 2, :+]</code></pre> </div> -<p>It’s not too different from Joy, and it’s still Ruby code. All you have to do is use something to do the +<p>It's not too different from Joy, and it's still Ruby code. All you have to do is use something to do the following:</p> <ul> <li>Take an array, and examine each item: <ul> - <li>If it’s an object (non-Symbol), then push it on top of the stack.</li> - <li>If it’s a Symbol, then do something different, i.e.: + <li>If it's an object (non-Symbol), then push it on top of the stack.</li> + <li>If it's a Symbol, then do something different, i.e.: <ul> <li>Find its receiver and its parameters and call a method.</li> <li>Manipulate something on the stack.</li>@@ -123,20 +124,22 @@ </li>
</ul> </li> </ul> -<p>In this case, we have to find :+’s receiver and its parameter and we’re sorted.</p> -<p>Unfortunately Ruby’s <code>arity</code> method isn’t that reliable. For example: +<p>In this case, we have to find :+'s receiver and its parameter and we're sorted.</p> +<p>Unfortunately Ruby's <code>arity</code> method isn't that reliable. For example: <code>"test".instance_method(:sub).arity</code> returns -1, while it should return “2” to be useful. So - we have no choice but find a way to pass the method’s arity explicitly, in some cases.</p> + we have no choice but find a way to pass the method's arity explicitly, in some cases. +</p> <p>For example like this:</p> <div class='ruby'> <pre><code>["Ciao, Fabio", /Ciao/, "Hello", :sub|2]</code></pre> </div> -<p>If we define a | operator for the Symbol class, it’s not too bad after all. It’s heavy, but in this way +<p>If we define a | operator for the Symbol class, it's not too bad after all. It's heavy, but in this way we can use <em>any</em> Ruby method in postfix notation.</p> <h3>Introducing the Concatenative Ruby <span class="caps">DSL</span></h3> <p><a href="/concatenative">Concatenative</a> is a simple Ruby <span class="caps">DSL</span> for concatenative programming. You can write concatenative programs inside ordinary Ruby arrays and execute them by calling either - <code>Array#execute</code> or <code>Kernel#concatenate</code>, like this:</p> + <code>Array#execute</code> or <code>Kernel#concatenate</code>, like this: +</p> <div class='ruby'> <pre><code>require 'concatenative'@@ -154,14 +157,15 @@ perfectly valid Ruby code and it is equivalent to the following Joy code:</p>
<p><code> 10 [0 =] [1 +] [dup 1 -] [*] linrec </code></p> -<p>Granted, Joy looks better, but that’s the tradeoff for not writing a parser for Joy syntax, after all. <br /> +<p>Granted, Joy looks better, but that's the tradeoff for not writing a parser for Joy syntax, after all. <br /> Looking at the code above, there are a few things to keep in mind when programming with Concatenative:</p> <ul> <li>You are using Ruby arrays, so you have to use commas, at least</li> - <li>functions, operators and combinators (let’s just call them <em>words</em>) are available as Ruby symbols + <li>functions, operators and combinators (let's just call them <em>words</em>) are available as Ruby symbols </li> <li>The arity of all Ruby infix operators has been already set to “1” by concatenative using the - <code>set_arity</code> method (which simply stores the arity of a particular symbol in a constant hash)</li> + <code>set_arity</code> method (which simply stores the arity of a particular symbol in a constant hash) + </li> <li>You can specify explicit arities using the | operator (<code>:gsub|2</code>, or <code>:join|1</code>)</li> <li>Unless the arity has been specified, an arity of 0 is assumed.</li> <li>You can define your own concatenative functions using the <code>Symbol#<=</code> method, which expects a@@ -171,7 +175,7 @@ <h3>Performance issues</h3>
<p>In its current form, Concatenative can be very slow, as show the “benchmarks” provided in the /examples folder, especially if you use recursive combinators. This is understandable because everything is implemented in pure Ruby, which is totally unsuitable for low level stuff.</p> -<p>If you are interested, you are more than welcome to submit patches and suggestions to improve Concatenative’s +<p>If you are interested, you are more than welcome to submit patches and suggestions to improve Concatenative's performance, or, if you feel brave enough, you could help me create a C extension instead: things would become much faster then.</p> <p>At any rate, feel free to play with it. You can get the source from <a
@@ -8,21 +8,21 @@ <p>I finally got my hands on a shiny new copy of <em>Design Patterns in Ruby<sup class="footnote" id="fnr1"><a
href="#fn1">1</a></sup></em>. 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.</p> <p>To my surprise, the book is a hardcover edition, which makes it look more professional and more durable than the - average programming book<sup class="footnote" id="fnr2"><a href="#fn2">2</a></sup>. It’s also smaller and + average programming book<sup class="footnote" id="fnr2"><a href="#fn2">2</a></sup>. It's also smaller and shorter than the average programming book<sup class="footnote" id="fnr2"><a href="#fn2">2</a></sup> (340 pages), - which makes it much easier to carry around and less intimidating to read. It’s also <em>not</em> 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.</p> -<p>What is it about? — well, design patters in the Ruby language of course. But it’s not the usual brainwash + which makes it much easier to carry around and less intimidating to read. It's also <em>not</em> 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.</p> +<p>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 <em>plenty</em> of examples of real - code. When I say <em>real code</em> 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 + code. When I say <em>real code</em> 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.<br /> - OK well, there’s an exception perhaps: Russ <em>did</em> 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.</p> -<p>Anyhow, let’s start from the beginning…</p> + OK well, there's an exception perhaps: Russ <em>did</em> 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.</p> +<p>Anyhow, let's start from the beginning…</p> <h3>Part I: Patters and Ruby</h3> <p>The first part of the book serves as a general introduction to the other two parts. If you know the basics of both - design patterns and Ruby, you can safely skip this as you won’t find anything of overwhelming interest here. + design patterns and Ruby, you can safely skip this as you won't find anything of overwhelming interest here. </p> <p>Personally I really liked <strong>Chapter 1</strong> though, “Building better Programs with Patterns”, in which Russ does a great job in summarizing the original GoF book<sup class="footnote" id="fnr3"><a@@ -35,12 +35,13 @@ <li><em>Prefer composition over inheritance.</em></li>
<li><em>Delegate, delegate, delegate.</em></li> </ul> <p>Also, although it does not come from the Design Patterns book but from building real systems, the author adds the - <span class="caps">YAGNI</span> (You Ain’t Gonna Need It) principle<sup class="footnote" id="fnr4"><a + <span class="caps">YAGNI</span> (You Ain't Gonna Need It) principle<sup class="footnote" id="fnr4"><a href="#fn4">4</a></sup> as a reminder to resist the temptation of implementing things which <em>may</em> be needed <em>later on</em>, even if they are not needed right now.<br /> The chapter ends with an outline of the patterns which will be presented throughout the book: 14 out of the original 23 patterns by the Gand of Four will be discussed in Part II and 3 bonus “Ruby-only” patterns will be - examined in Part <span class="caps">III</span>, as a special treat.</p> + examined in Part <span class="caps">III</span>, as a special treat. +</p> <p><strong>Chapter 2</strong> (<em>Getting started with Ruby</em>) feels perhaps a bit out of place. As others pointed out<sup class="footnote" id="fnr5"><a href="#fn5">5</a></sup>, why does a book on advanced Ruby programming techniques include a 35-page-long introduction on the Ruby language? The answer was given by Russ himself in an@@ -54,16 +55,17 @@ But I do think that someone with experience in other languages could read my book and come away knowing about
Ruby, understanding what all the shouting is about.”</p> </blockquote> <p>I admit, I skipped this chapter during my first reading because I was eager to move on to the main part of the book, - but I did read it afterwards (I had to write this review after all!). It’s quite a nice introduction aimed at + but I did read it afterwards (I had to write this review after all!). It's quite a nice introduction aimed at the average .<span class="caps">NET</span>/Java developer: Russ provides a step-by-step presentation of the main features of the language while holding the reader by hand when something weird or scary comes about:</p> <blockquote> <p>The slightly strange-looking syntax in this code is actually a tip-off something deep and important: In Ruby, everythng — and I mean <em>everything</em> — is an object.</p> </blockquote> -<p>Of course Chapter 2 won’t turn you into a Ruby guru, but it definitely fulfills one of the author’s +<p>Of course Chapter 2 won't turn you into a Ruby guru, but it definitely fulfills one of the author's goals: bringing developers of other languages closer to Ruby, and give them a tiny taste of how Ruby can be - <em>wickedly powerful</em>.</p> + <em>wickedly powerful</em>. +</p> <h3>Part II: Patterns in Ruby</h3> <p>Part II constitutes the bulk of the book, describing 14 GoF patterns in 220 pages. The patterns covered are the following:</p>@@ -120,31 +122,33 @@ <p>Patterns are often overused and misused, and some people normally end up wondering if they should be used at all,
after all. This section (present as a matter of fact in <em>every</em> chapter of part II an <span class="caps">III</span>) examines the pitfalls of the pattern and the most common mistakes developer make when applying it.<br /> - It is by far the most useful section of each chapter, and that’s what I’ll be reading and re-reading - every time I’m thinking about using a particular pattern in my code. As a matter of fact, these sections make + It is by far the most useful section of each chapter, and that's what I'll be reading and re-reading + every time I'm thinking about using a particular pattern in my code. As a matter of fact, these sections make you realize that <em>every</em> pattern has its own inherent flaws and dangers, and that it is far from being a - Silver Bullet. Even when you’re <em>supposed</em> to use a pattern to accomplish something, be aware that - <em>something nasty</em> can happen unless you’re extra careful: this, perhaps, is the true Golden Rule - conveyed throughout the whole book.</p> + Silver Bullet. Even when you're <em>supposed</em> to use a pattern to accomplish something, be aware that + <em>something nasty</em> can happen unless you're extra careful: this, perhaps, is the true Golden Rule + conveyed throughout the whole book. +</p> <h4><Pattern>s in the Wild</h4> <p>This is another very interesting section which is included in every chapter of part II and <span class="caps">III</span>. After describing what a pattern does, how it <em>can</em> be used and how it - <em>should</em> be used, you’ll finally find some interesting examples taken from real world + <em>should</em> be used, you'll finally find some interesting examples taken from real world applications.<br /> By “real world application” I mean something like ActiveRecord<sup class="footnote" id="fnr7"><a href="#fn7">7</a></sup> (Observer, Command, Adapter, …), DRb<sup class="footnote" id="fnr8"><a href="#fn8">8</a></sup> (Proxy) or FXRuby<sup class="footnote" id="fnr9"><a href="#fn9">9</a></sup> (Composite), for example, i.e. important programs and libraries which are used in production environments.<br /> Personally, I was really glad to find such examples in this book: it definitely helps you feeling design patterns as - something more practical and useful than pure software architecture theories.</p> + something more practical and useful than pure software architecture theories. +</p> <h4>Wrapping it Up</h4> <p>“Wrapping it Up” is the title of the last section of each chapter of Part II and <span - class="caps">III</span>. It’s basically a summary of the whole chapter and thus a useful way to recap the + class="caps">III</span>. It's basically a summary of the whole chapter and thus a useful way to recap the most important concepts. I found this section particularly useful when using the book as a design pattern reference, after reading it for the first time: this section provides a quick and essential overview of each pattern — - and the most important DOs and DON’Ts, too.</p> + and the most important DOs and DON'Ts, too.</p> <h3>Part <span class="caps">III</span>: Patterns for Ruby</h3> -<p>By the time you get to Part <span class="caps">III</span> you’ll definitely feel that Ruby can do <em>more_. +<p>By the time you get to Part <span class="caps">III</span> you'll definitely feel that Ruby can do <em>more_. Some of the Ruby implementation of certain patterns described in the book make extensive use of blocks and Proc objects, and the @method</em>missing@ method (although potentially dangerous unless extra care is taken) gives us a more immediate way to obtain delegation, for example when creating Proxies. <br />@@ -167,25 +171,25 @@ for creating file backups. This can be particularly useful for people who never tried creating DSLs before, but also
for developers who tried, but want to improve their skills.</p> <p>Chapter 18 (Convention Over Configuration) is sufficiently clear and detailed, perhaps even too much if you already know how Rails was developed (and all the hype which follwed).</p> -<p>On the other hand, I was a bit disappointed by Chapter 17 (Meta-Programming). Maybe it’s because I built up +<p>On the other hand, I was a bit disappointed by Chapter 17 (Meta-Programming). Maybe it's because I built up extremely high expectations about it while reading the rest of the book, but it just felt too short and not detailed enough for my liking. If I had to write such a chapter (which would have been actually very hard), I would have started from an excellent post by Ola Bini<sup class="footnote" id="fnr11"><a href="#fn11">11</a></sup> which introduces <em>eleven</em> meta-programming techniques, and built up content and examples from there. The only - reason why — I think — Russ didn’t do it in his book was length/balance constraint: a <em>properly + reason why — I think — Russ didn't do it in his book was length/balance constraint: a <em>properly detailed</em> chapter about meta-programming in Ruby could easily take up over forty pages!</p> <h3>The Verdict</h3> <p>As I said in the beginning: this is not meant to be a complete, in-depth, reference book on everything you may want - to know about design patterns in Ruby. That’s why, as a matter of fact, you can actually read this book all + to know about design patterns in Ruby. That's why, as a matter of fact, you can actually read this book all the way through without getting utterly bored. Russ uses an informal, yet appropriate style to turn potentially complex, theorethical computer science principles into easy-to-understand, <em>useful</em> tools which can truly improve the way you code.</p> <p>The whole book flows very very nicely. I actually recommend reading this book in sequence, without skipping chapters, because each pattern is described in a way that is somehow linked to the following ones, so that you can understand and learn about the pros and cons of each one in a more natural and useful way.</p> -<p>OK, I would have loved to see Part <span class="caps">III</span> as long as Part II, probably, but overall I’m +<p>OK, I would have loved to see Part <span class="caps">III</span> as long as Part II, probably, but overall I'm very, very satisfied of what the book taught me. The only problem is that it also made me suddenly realize all the - naive design mistakes I’ve been making when coding in Ruby, so I’ll now feel compelled to fix at least + naive design mistakes I've been making when coding in Ruby, so I'll now feel compelled to fix at least some of them…</p> <p>Definitely a worthwhile read, I just hope to see more books like this, or even a second edition of this one soon!</p> <h3>Notes</h3>@@ -193,15 +197,16 @@ <p class="footnote" id="fn1"><a href="#fnr1"><sup>1</sup></a> <a
href="http://www.informit.com/store/product.aspx?isbn=0321490452">Design Patterns in Ruby</a> by Russ Olsen, Addison Wesley Professional, 2007.</p> <p class="footnote" id="fn2"><a href="#fnr2"><sup>2</sup></a> Think of <a - href="http://www.pragprog.com/titles/ruby">Programming Ruby: The Pragmatic Programmer’s Guide, 2nd Ed.</a> + href="http://www.pragprog.com/titles/ruby">Programming Ruby: The Pragmatic Programmer's Guide, 2nd Ed.</a> by Dave Thomas with Chad Fowler and Andy Hunt, Pragmatic Programmers, 2004.</p> <p class="footnote" id="fn3"><a href="#fnr3"><sup>3</sup></a> <a href="http://www.informit.com/store/product.aspx?isbn=0201633612">Design Patterns: Elements of Reusable Object-Oriented Software</a>, by By Erich Gamma, Richard Helm, Ralph Johnson, John M. Vlissides (a.k.a. the - <em>Gang of Four</em>), Addison Wesley Professional, 1994.</p> + <em>Gang of Four</em>), Addison Wesley Professional, 1994. +</p> <p class="footnote" id="fn4"><a href="#fnr4"><sup>4</sup></a> For more information on the <span class="caps">YAGNI</span> principle, visit <a - href="http://www.xprogramming.com/Practices/PracNotNeed.html">You’re <span class="caps">NOT</span> gonna + href="http://www.xprogramming.com/Practices/PracNotNeed.html">You're <span class="caps">NOT</span> gonna need it</a>, Ronald E Jeffries.</p> <p class="footnote" id="fn5"><a href="#fnr5"><sup>5</sup></a> See <a href="http://on-ruby.blogspot.com/2007/12/design-patterns-in-ruby-review.html">Design Patterns in Ruby, a
@@ -11,10 +11,11 @@ <section class="section">
<p>Back when I read <em><a href="http://www.pragprog.com/titles/ruby/programming-ruby">Programming Ruby</a></em> for the first time, I distinctly remember a short reference to <a href="http://ruby-doc.org/stdlib/libdoc/drb/rdoc/index.html">dRb</a>, the <strong>D</strong>istributed - <strong>R</strong>u<strong>b</strong>y library included in the Standard Library.</p> + <strong>R</strong>u<strong>b</strong>y library included in the Standard Library. + </p> <p><em>“Cool!”</em> — I thought</p> <p>…and that was pretty much it. The documentation for DRb was pretty much nonexistent (at the time), I - didn’t need it, so I pretty much forgot about it altogether until this book came out.</p> + didn't need it, so I pretty much forgot about it altogether until this book came out.</p> <p><em><a href="http://www.informit.com/store/product.aspx?isbn=0321638360">Distributed Programming with Ruby</a></em> fills a very particular niche of the Ruby programming world: <em>distributed</em> programming. Moreover, this book is somehow <em>justified</em> by the scarce documentation on the subject:</p>@@ -24,10 +25,10 @@ little or no attention (or documentation). This has led to a lot of <span class="caps">FUD</span> (fear,
uncertainty, and doubt) about what these libraries can and cannot do, and when they are appropriate to use (if at all).</p> </blockquote> - <p style="padding-left:4em;">— Mark Bates, <em><a + <p style="padding-left:2rem;">— Mark Bates, <em><a href="http://www.informit.com/store/product.aspx?isbn=0321638360">Distributed Programming with Ruby</a></em></p> - <p>But there’s more. This book gives the reader a complete overview of what’s out there, in the Ruby + <p>But there's more. This book gives the reader a complete overview of what's out there, in the Ruby world, to support distributed programming. This includes quite a few gems and libraries besides the ones provided in the standard library.</p> <section class="section">@@ -38,7 +39,7 @@ <img src="/images/pictures/distributed-programming-with-ruby.jpg" style="float:right;" />
<p>The book is organized into four parts, each dealing with a particular set of Ruby libraries related to distributed programming.</p> <p>The author, <a href="http://www.metabates.com/">Mark Bates</a>, does a good job maintaining a sort of - continuity in the examples throughout the book: you’ll get accustomed to a <em>Logger</em> class of + continuity in the examples throughout the book: you'll get accustomed to a <em>Logger</em> class of some kind being punctually re-implemented more or less once per chapter, using a different library.</p> <p>Additionally, the libraries described in the book are ordered by “reverse preference” in each part of the book, so normally the libraries described later on in a part fix some of the shortcomings of the@@ -63,7 +64,7 @@ <section class="section">
<header> <h1 id="h_3" class="toc">Part II: Third-Party Frameworks and Libraries</h1> </header> - <p>If you read part I, you’re probably a bit disappointed by DRb and Rinda and the amount of code you + <p>If you read part I, you're probably a bit disappointed by DRb and Rinda and the amount of code you have to write to make simple things work in a distributed environment. The good news is that there are some Ruby gems out there that can make life simpler:</p> <ul>@@ -87,7 +88,8 @@ <li><a href="http://rubyforge.org/projects/starling/">Starling</a>, originally used by Twitter.</li>
<li><a href="http://github.com/tmm1/amqp"><span class="caps">AMQP</span></a>, an implementation of the <a href="http://www.amqp.org/"><span class="caps">AMQP</span></a> protocol in Ruby, that can be used in conjunction with <a href="http://www.rabbitmq.com/">RabbitMQ</a>, an Erlang-based messaging - system.</li> + system. + </li> </ul> </section>@@ -112,20 +114,22 @@ </header>
<p>Unlike other technical books, this one can (must?) be read sequentially. Generally each chapter focuses on a library, describes how to install it and use it, and highlights its pros and cons. Typically, the “cons” are solved in the following chapter by another library, and so on…</p> - <p>The book is not meant to contain a full technical reference of each library, and it’s quite short (256 - pages), so you really get the most out of it if you read it all, from start to finish. I didn’t + <p>The book is not meant to contain a full technical reference of each library, and it's quite short (256 + pages), so you really get the most out of it if you read it all, from start to finish. I didn't realize there were so many different libraries in this particular niche of Ruby programming, and Mark does a good job demistifying some of them.</p> - <p>One thing that really struck me out of this book is the focus on gems. We’re not talking about + <p>One thing that really struck me out of this book is the focus on gems. We're not talking about <em>mainstream</em> frameworks like Rails or Merb here, but rather of some rather specialized, smaller - libraries that fullfill very specific tasks. Personally, I don’t remember any other Ruby book doing - this in the same way, and I was quite happy about it.</p> + libraries that fullfill very specific tasks. Personally, I don't remember any other Ruby book doing + this in the same way, and I was quite happy about it. + </p> <p>On the other hand, gems are a double-edged sword: while some of them are really cool and well-maintained, others may disappear tomorrow with no prior notice. I was actually very surprised to see even some of the - <em>quirks</em> of these gems documented in the book:</p> + <em>quirks</em> of these gems documented in the book: + </p> <p><strong>p91</strong>: <em>“Notice that we added client { } to the bottom of the server file. The reason for this appears to be a bug or flaw in the Starfish architecture.”</em></p> - <p>Really? Hasn’t it be fixed now? Apparently not, that’s the way it works, so no, you can’t + <p>Really? Hasn't it be fixed now? Apparently not, that's the way it works, so no, you can't blame the author of the book for this.</p> <section class="section">@@ -133,17 +137,17 @@ <header>
<h1 id="h_7" class="toc">Formatting and Readability</h1> </header> <p>As I pointed out earlier, this book is somehow meant to be read sequentially, and Mark does a good job - making sure you don’t get bored. Chapters and sections are quite short and there’s a good - text/code ratio: the examples are short and clear, and you don’t have to try them out yourself, - because most of the time the author does it for you. It’s not infrequent for the author to tell - you to run “wrong” code, but that’s a great way to show you how to do the right thing + making sure you don't get bored. Chapters and sections are quite short and there's a good + text/code ratio: the examples are short and clear, and you don't have to try them out yourself, + because most of the time the author does it for you. It's not infrequent for the author to tell + you to run “wrong” code, but that's a great way to show you how to do the right thing right afterwards.</p> <p>Sidebars and boxes are used properly and they do provide actual value-added content: some information on a non-Ruby technology, some tips and tricks on how to run things smoothly, etc. On the other hand, one - thing I couldn’t stand were the <em>endnotes</em>. I must say I don’t like endnotes at the - best of times, but when they are pointless I just can’t suffer them. Each chapter has its own fair + thing I couldn't stand were the <em>endnotes</em>. I must say I don't like endnotes at the + best of times, but when they are pointless I just can't suffer them. Each chapter has its own fair share of endnotes, but unfortunately most of them are just URLs to Wikipedia pages or RubyForce/GitHub - projects: I would have preferred the URLs inline with the rest of the text, but that’s just me. + projects: I would have preferred the URLs inline with the rest of the text, but that's just me. </p> </section>@@ -155,14 +159,14 @@ <p>Mark has a nice, informal writing style. Exactly what you expect from a programming book nowadays, even
if sometimes it feels a bit too informal:</p> <p><strong>p86</strong>: <em>“I think I understand what Eric means by all that. However, that is as deep as the documentation goes on the subject. I have not been able to test what I think he means, - so I won’t make any grand promises about what the library can and cannot do in regards to + so I won't make any grand promises about what the library can and cannot do in regards to expiring/renewing registrations.”</em></p> - <p>Although this is not something you’d see in a professional book everyday, it definitely helps to + <p>Although this is not something you'd see in a professional book everyday, it definitely helps to connect with the reader: Mark is one of us after all, even if he happens to have created quite a few <a href="http://github.com/markbates">interesting projects</a>, like the Mack framework, the Distribunaut library (which is also mentioned in his book, but in a very impartial way) and Configatron. - From his book you understand that he’s neither one of those rockstar developers nor one of those - famous authors who just writes books for a living: he’s a competent programmer who knows quite a + From his book you understand that he's neither one of those rockstar developers nor one of those + famous authors who just writes books for a living: he's a competent programmer who knows quite a bit about a particular, but relevant, niche of Ruby programming.</p> </section>@@ -173,15 +177,16 @@ <section class="section">
<header> <h1 id="h_9" class="toc">Final Thoughts</h1> </header> - <p>This is one of those books I’d like to see a second edition of. Partly because there are some + <p>This is one of those books I'd like to see a second edition of. Partly because there are some relatively new gems which have been left out (<a href="http://github.com/kwi/BrB">BrB</a>, for example), partly because this is a rather hot topic at the moment, and different solutions are popping out at a rather extreme rate.</p> - <p>The decision to write about mainly about gems was bold but necessary, and I’d really like to see more - authors doing that, but with extra care. From reading this book, you understand that there’s no + <p>The decision to write about mainly about gems was bold but necessary, and I'd really like to see more + authors doing that, but with extra care. From reading this book, you understand that there's no <em>silver bullet</em> when it comes to Distributed Programming, but rather different tools to do different - jobs.</p> - <p>The thing I missed the most? A proper conclusion to the book. You’re left with two chapter about + jobs. + </p> + <p>The thing I missed the most? A proper conclusion to the book. You're left with two chapter about Rails-specific libraries which could have easily become appendixes, and nothing else. I would have liked a sort of “summing up” end chapter (re-)highlighting the pros and cons of each library and a sort of feature matrix.</p>
@@ -5,7 +5,7 @@ timestamp: 1200890820
tags: "ruby|review|books" ----- <p style="float:right;"><img src="/images/efficient_ruby_shortcut.jpeg" alt="" /></p> -<p>The second shortcut from Addison-Wesley Professional series I’m going to review is called <a +<p>The second shortcut from Addison-Wesley Professional series I'm going to review is called <a href="http://www.informit.com/store/product.aspx?isbn=0321540034">Writing Efficient Ruby Code</a>. A very promising title, especially considering that this book is only 50 pages long.</p> <p>As usual, this shortcut can be intended as a sort of programmer-friendly detailed cheatsheet: like the other ones in@@ -13,7 +13,7 @@ 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.</p> <h3>The Author</h3> <p><a href="http://railsexpress.de/blog/">Dr. Stefan Kaes</a>, the author, contributed a lot to improve Ruby on - Rails’ performance by refactoring portions of its core and try to “get maximum speed out of + Rails' performance by refactoring portions of its core and try to “get maximum speed out of performance-critical sections of code”. This short but interesting shortcut groups together a lot of performance tweaks, tips and tricks but also some “anti-patterns” Kaes was able to identify through his career as programming teacher Ruby software consultant and key Rails contributor.</p>@@ -21,8 +21,8 @@ <h3>The Contents</h3>
<p>Like with the previously-covered <a href="/articles/mongrel-shortcut-review">Mongrel shortcut</a>, <em>Writing Efficient Ruby Code</em> always goes straight to the point when it comes to identify problems. The first one mentioned is of course that the <em>Ruby Interpreter is Slow</em>, most people are aware of that, due to their - direct experience or because this argument is normally used by non-Rubyists to argue the language’s usability - in commercial projects. What you may not know is why that is so, and that’s where the first part of this book + direct experience or because this argument is normally used by non-Rubyists to argue the language's usability + in commercial projects. What you may not know is why that is so, and that's where the first part of this book comes into play.</p> <blockquote> <p><em>“Ruby is a highly dynamic language: Almost all language entities are first-class citizens in that they@@ -42,27 +42,29 @@ same method over and over: this should definitely be avoided.</p>
<p>Other useful tips include, for example:</p> <ul> <li>Use syntax constructs (e.g. assignments) as expressinons. Use evaluation precedences.</li> - <li>Use interpolated strings <code>"... #{string_variable}"</code> (there’s also no performance difference if + <li>Use interpolated strings <code>"... #{string_variable}"</code> (there's also no performance difference if constant strings are used between <code>"</code> or <code>'</code>)</li> <li>Use operators which update the data structure without copying it (when possible). Use <code>update</code> or - <code>merge</code> to update hashes.</li> + <code>merge</code> to update hashes. + </li> <li>Iterating using <code>for a in A</code> is slightly faster than performing the same iteration using - <code>each</code>, (it is the opposite in Ruby 1.9 though)</li> + <code>each</code>, (it is the opposite in Ruby 1.9 though) + </li> <li>do not use <code>return</code> unless you have to</li> <li>test in order of expected case frequency</li> <li>Use parallel assignment (<code>a, b = 5, 6</code>) where applicable</li> <li>If a module gets included in only one other class (or module), it’s preferable to open the class instead.</li> </ul> -<p>I deliberately chose not to elaborate any further on the tips listed above because otherwise I’ll give a big +<p>I deliberately chose not to elaborate any further on the tips listed above because otherwise I'll give a big chunk of the contents of the book itself. If you know Ruby enough, you may already know why such reccommendations - make sense, but if you don’t, <em>Writing Efficient Ruby Code</em> can be a short but very interesting read. + make sense, but if you don't, <em>Writing Efficient Ruby Code</em> can be a short but very interesting read. </p> <h3>The Good</h3> <p>For each of the 30 “coding patterns” (and consequent anti-patterns) described in the book, the author does a great job explaining the reasons of doing something in a particular way, also through examples and benchmarks, where possible.</p> <p>Furthermore, this <em>shortcut</em> can really be useful to grasp a few difference between Ruby 1.8.5, 1.8.6 and 1.9 - in terms of performance: not all the patters apply to all Ruby implementations, and when that’s the case it is + in terms of performance: not all the patters apply to all Ruby implementations, and when that's the case it is clearly stated.</p> <h3>The Bad</h3> <p>My only complaint about the book is probably the lack of details and more “specialized” patterns.
@@ -8,33 +8,33 @@ tags: "browsers|review|opera|firefox"
----- <blockquote> <p><strong>Note:</strong> This article can be considered a sequel for <a - href="/articles/ie-lovers-guide-to-firefox">An IE Lover’s Guide to Firefox</a>, + href="/articles/ie-lovers-guide-to-firefox">An IE Lover's Guide to Firefox</a>, 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 + 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.</p> </blockquote> -<p>I am a Firefox fan. I’ve been using Firefox since it was named “Firebird” and calling it +<p>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.</p> -<p>Because I’m addicted to trying out new tools, however, I always kept testing new browsers I discovered here and +<p>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 + about 2 hours, only to realize that it wasn't – and it still isn't – usable at all, mainly due to sporadic crashes.</p> <p style="float:right;"><img src="/images/opera/fast.jpg" alt="" /></p> -<p>Similarly, I’ve been trying out <a href="http://www.opera.com/">Opera</a> 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 +<p>Similarly, I've been trying out <a href="http://www.opera.com/">Opera</a> 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 <a href="http://www.opera.com/products/desktop/next/">Opera - 9.5b</a> (“Kestrel”) doesn’t seem to have this sort of problems at all.h3. Planning the Switch + 9.5b</a> (“Kestrel”) doesn't seem to have this sort of problems at all.h3. Planning the Switch </p> <p>Firefox has extensions. Plenty of them actually. Some are useful, like the newish Del.icio.us one made by Yahoo, and - also crappy ones you’ll never use unless you want to have a fancy button on one of your over-cluttered + also crappy ones you'll never use unless you want to have a fancy button on one of your over-cluttered toolbars which enables you to interface more easily with X or Y web services you hardly ever use.</p> <p>By contrast, Opera never attempted to add full-blown extension support to its venerable and yet very powerful browser. Instead, they kept building more and more features right into its core, being careful not to undermine the - browser’s two proverbial qualities: <em>speed</em> and <em>stability</em>. What seemed a doomed philosophy at + browser's two proverbial qualities: <em>speed</em> and <em>stability</em>. What seemed a doomed philosophy at first turned out to be a good thingin the long run. More and more people are getting more and more worried about - Firefox’s memory issues and begin to <em>wander off</em> to explore new things, exactly like I did.</p> + Firefox's memory issues and begin to <em>wander off</em> to explore new things, exactly like I did.</p> <p>The first step to switch from Firefox to Opera is to reduce the number of Firefox extensions to the bare minimum you need:</p> <ul>@@ -46,35 +46,35 @@ <li>Gmail Manager</li>
<li>Secure Login</li> <li>Del.icio.us</li> </ul> -How many extensions do you <em>actually</em> use? Here’s a short analysis for the ones above: +How many extensions do you <em>actually</em> use? Here's a short analysis for the ones above: <ul> - <li>The first three are related to Web Development only, which means that I don’t need them unless I’m - doing some web-development tests during which I’m always going to have more than one browser open anyway. + <li>The first three are related to Web Development only, which means that I don't need them unless I'm + doing some web-development tests during which I'm always going to have more than one browser open anyway. <strong><span class="caps">UPDATE</span>:</strong> there are a few <a href="http://widgets.opera.com/search/?order=name&q=ruler">Ruler</a> widget which can be used instead of MeasureIt <em>(thanks <strong>Ameer</strong>)</em>. </li> <li>SearchStatus gives me Alexa Rank and Google Pagerank: I think I can survive without those for a while. - <strong><span class="caps">UPDATE</span>:</strong> if not, there’s always <a + <strong><span class="caps">UPDATE</span>:</strong> if not, there's always <a href="http://www.puzzleclub.ru/files/seobar/">SEObar</a> <em>(thanks <strong>Ameer</strong>)</em>. </li> - <li>I use Gmail Manager because my girlfriend uses Gmail on the same computer. I’m switching to Opera and - she’ll stick with Firefox, so no problem there…</li> - <li>Secure Login? It’s called <em>Wand</em> and it has been built-in into Opera for the last decade or so. + <li>I use Gmail Manager because my girlfriend uses Gmail on the same computer. I'm switching to Opera and + she'll stick with Firefox, so no problem there…</li> + <li>Secure Login? It's called <em>Wand</em> and it has been built-in into Opera for the last decade or so. </li> - <li>Del.icio.us – OK, I won’t be able to access my favorite tags as quickly, but <a + <li>Del.icio.us – OK, I won't be able to access my favorite tags as quickly, but <a href="http://erlang.no/2005/10/06/delicious-opera-buttons-2/">someone</a> already came out with a few handy buttons for a better integration with the popular social bookmarking service.</li> </ul> <blockquote> <p><strong><span class="caps">UPDATE</span>:</strong> For a list of the features provided by Firefox extensions - which are included in Opera, see Rijk’s <a href="http://files.myopera.com/Rijk/blog/extensions.html">Top + which are included in Opera, see Rijk's <a href="http://files.myopera.com/Rijk/blog/extensions.html">Top 150 Popular Firefox Extensions and Opera</a></p> </blockquote> <p style="float:right;"><img src="/images/opera/opera_navigation.png" alt="" /></p> -<p>Because I’m addicted to betas, I immediately downloaded <a - href="http://www.opera.com/products/desktop/next/">Opera Kestrel</a>, i.e. Opera 9.50 beta 1. I never actually - liked Opera’s default theme, so I started looking around for <strong><a +<p>Because I'm addicted to betas, I immediately downloaded <a href="http://www.opera.com/products/desktop/next/">Opera + Kestrel</a>, i.e. Opera 9.50 beta 1. I never actually + liked Opera's default theme, so I started looking around for <strong><a href="http://my.opera.com/community/customize/skins/">new skins</a></strong> (yes, eye-candy matters sometimes) and came across the Ximple series by <a href="http://my.opera.com/community/customize/skins/author/?id=serafins">serafins</a>. In particular, <a@@ -96,14 +96,14 @@ <li>History</li>
<li>Page Links</li> </ul> <p>I think this is a great feature and Firefox should definitely consider it: v3.0 comes with new download and bookmark - managers, but they’re still dialogs. Yes, I know, there’s probably some extension which allows you to - display them in the sidebar, but that’s not the point: Opera brings more consistency to the overall browsing + managers, but they're still dialogs. Yes, I know, there's probably some extension which allows you to + display them in the sidebar, but that's not the point: Opera brings more consistency to the overall browsing experience by using tabs wherever they should be used.</p> <p>Additionally, Opera tabs…</p> <ul> <li>Can be rearranged, exactly like Firefox tabs</li> <li>Can be restored, if closed accidently, by re-opening them from the Trash can</li> - <li>Can be locked, meaning that they can’t be closed accidently</li> + <li>Can be locked, meaning that they can't be closed accidently</li> <li>Can be duplicated</li> <li>Can be saved in groups (sessions) and re-opened later on</li> <li>Can be restored if Opera crashes</li>@@ -120,12 +120,12 @@ <li>Display preview of each slot (which is cached and can be updated by refreshing the page)</li>
<li>Allow users to quickly access pages saved in the Speed Dial via CTRL+1 .. CTRL+9 or simply by clicking them. </li> </ul> -<p>Simple and effective. Once you get going with it, you’ll overcome the initial feeling of imposition and - you’ll use it more and more: I literally can’t live without it now!</p> +<p>Simple and effective. Once you get going with it, you'll overcome the initial feeling of imposition and + you'll use it more and more: I literally can't live without it now!</p> <h3>Right-click goodies</h3> <p>While I was testing Opera, my girlfriend came along and asked me to look something up on <a href="http://www.imdb.com/"><span class="caps">IMDB</span></a>. I normally had <span class="caps">IMDB</span> as - custom search engine in Firefox, but unfortunately Opera didn’t seem to allow users to customize their search + custom search engine in Firefox, but unfortunately Opera didn't seem to allow users to customize their search engines…</p> <p>Totally wrong. Not only Opera lets you add any search engine to the search bar, it also does it with style and in the easiest way possible:</p>@@ -136,7 +136,7 @@ <li>Right click the search field</li>
<li>Click <strong>Create Search…</strong></li> <li>Specify a name and a keyword for your search engine</li> </ol> -<p>Done. You’ll now be able to search that particular site directly from the search bar. As you can see, I added +<p>Done. You'll now be able to search that particular site directly from the search bar. As you can see, I added Wikipedia, <span class="caps">IMDB</span> and even the <a href="http://www.uesp.net/wiki/Main_Page">Unofficial Elder Scrolls Pages</a> in this way.</p> <p>Besides creating searches, Opera lets you do a lot by right-clicking anywhere on a page:</p>@@ -152,10 +152,10 @@ the <em>current web site only</em>.</li>
<li>View source, reload page every X seconds/minutes, send by email, etc.</li> </ul> <h3>Widgets</h3> -<p><a href="http://widgets.opera.com/">Opera Widgets</a> must not be considered as Opera’s counterpart to Firefox - extensions. Instead, Opera Widgets can be used as <em>poor man’s Vista Gadgets</em> on Windows XP, and they do +<p><a href="http://widgets.opera.com/">Opera Widgets</a> must not be considered as Opera's counterpart to Firefox + extensions. Instead, Opera Widgets can be used as <em>poor man's Vista Gadgets</em> on Windows XP, and they do their job most remarkably.</p> -<p>I’m personally very fond of these ones:</p> +<p>I'm personally very fond of these ones:</p> <ul> <li><a href="http://widgets.opera.com/widget/3683/">The Free Dictionary</a></li> <li><a href="http://widgets.opera.com/widget/8461/">Wikipedia</a></li>@@ -168,7 +168,7 @@ </ul>
<p>They all have a common trait: they all behave as standalone programs, as they should be. The Wikipedia one, for example, can display Wikipedia entries directly inside the widget, unlike some others which just take you to Wikipedia, which is rather pointless.</p> -<p>Although widgets live within Opera, they can be displayed “always behind”, which means they’ll be +<p>Although widgets live within Opera, they can be displayed “always behind”, which means they'll be glued to your desktop and therefore will be visible whenever Opera and other applications are minimized.</p> <p>Needless to say that anyone brave enough can make widgets for Opera by following a simple <a href="http://dev.opera.com/articles/opera-widgets-specification-1-0/">Widget Specification</a>.</p>@@ -177,16 +177,16 @@ <p>The term <em>browser</em> applied to Opera is somehow misleading. Personally I would have called it something like
“Internet Suite”, because that would be a better choice due to the features it offers and the things it can do.</p> <p>Traditionally speaking, a web browser can be used to browse web pages, read feeds (sometimes) and navigate through - <span class="caps">FTP</span> directories. Here’s what Opera can handle: + <span class="caps">FTP</span> directories. Here's what Opera can handle: </p> <p style="float:right;"><img src="/images/opera/files.png" alt="" /></p> <ul> <li>Web Pages – No need of explanations here.</li> <li><span class="caps">FTP</span> – <span class="caps">FTP</span> directories are listed very clearly, - overriding server’s settings with a more user-friendly layout.</li> + overriding server's settings with a more user-friendly layout.</li> <li>Local Files – This was a surprise for me. Typing <code>file://</code> will automatically load a list of the drives currently available on your machine. Similarly, auto-completion for directory and file names is - supported! I almost started using Opera as my everyday’s file manager (almost).</li> + supported! I almost started using Opera as my everyday's file manager (almost).</li> <li>Feeds – An embedded feed reader can be used to subscribe to <span class="caps">RSS</span>/Atom feeds and view them… in a tab, of course.</li> <li>E-mails – Opera <em>is</em> also a pretty decent email client. As of version 9.5 full <span@@ -203,26 +203,26 @@ href="http://www.opera.com/support/search/view/840/">disable it</a> and still use your favorite BitTorrent
client.</li> </ul> <h3>Portability and Synchronization</h3> -<p>Let’s spend some words about <em>portability</em>. Sure, there are two “Portable Opera” apps out - there, and they work well enough, but one thing I’d like about a web browser is the ability to synchronize my +<p>Let's spend some words about <em>portability</em>. Sure, there are two “Portable Opera” apps out + there, and they work well enough, but one thing I'd like about a web browser is the ability to synchronize my preferences, customizations, themes, passwords etc. etc. across multiple computers. <br /> Firefox is <a href="http://labs.mozilla.com/2007/12/introducing-weave/">getting there</a>, although the technology is still at a very early stage.<br /> Opera is doing something similar through <a href="http://link.opera.com/">Opera Link</a>, which allows you to synchronize automatically your Bookmarks, your Personal Bar and your Speed Dial. All you need is to get a (free) Opera account, login to Opera Link and enable the synchronization feature from the <em>File</em> menu. From now on - every time you’ll modify your Speed Dial or Bookmarks, the changes will be sent to your Opera Link page. + every time you'll modify your Speed Dial or Bookmarks, the changes will be sent to your Opera Link page. Similarly, whenever you start using opera somewhere else, if you login to your Opera Account you should be able to synchronize your Bookmarks and Speed Dial.</p> <p>Here are some thoughts on this type of technology:</p> <ul> - <li>It’s not totally private yet. While it’s great to be able to sync bookmarks and speed dial, the - problems arise when you finish using your friend’s computer for example… what happens to the - bookmarks you just sync’ed? The only way to delete them would be to have your friend to log in to his + <li>It's not totally private yet. While it's great to be able to sync bookmarks and speed dial, the + problems arise when you finish using your friend's computer for example… what happens to the + bookmarks you just sync'ed? The only way to delete them would be to have your friend to log in to his Opera account and re-sync them. Not enough privacy for my liking.</li> <li>Your passwords, notes, widgets, etc. etc. cannot be synchronized yet, but that will hopefully be possible in near future.</li> - <li>Sync’ing bookmarks is pointless for me. Although Opera still hopes to compete with Del.icio.us & Co., + <li>Sync'ing bookmarks is pointless for me. Although Opera still hopes to compete with Del.icio.us & Co., that will be very hard to achieve. I stopped using in-browser bookmarks long ago.</li> <li>Link seems and interesting feature considering that Opera is available on virtually <em>any operating system</em> and a lot of different devices (mobile phones, Nintendo DS & Wii, …).</li>@@ -241,20 +241,20 @@ <ol>
<li>Go to the <a href="http://my.opera.com/community/customize/skins/">Skins Directory</a></li> <li>Download a skin you like</li> <li>Opera will download and apply the skin immediately, <strong>and it will ask you whether you want to keep it or - not</strong>. If you choose not to, it won’t save it in your profile (very useful for quick previews). + not</strong>. If you choose not to, it won't save it in your profile (very useful for quick previews). Neat.</li> </ol> <p>Another quality opera always excelled to is accessibility. Besides using the interface in the traditional way, it is also possible to:</p> <ul> <li><strong>Use <a href="http://www.opera.com/products/desktop/mouse">mouse gestures</a></strong> – I - wasn’t a big fan of this until I bothered reading the excellent documentation Opera provided for them - (which is significantly better than <a href="http://www.mousegestures.org/">the Firefox’s equivalent</a>). + wasn't a big fan of this until I bothered reading the excellent documentation Opera provided for them + (which is significantly better than <a href="http://www.mousegestures.org/">the Firefox's equivalent</a>). It can be quite useful at times.</li> <li><strong>Use <a href="http://www.opera.com/products/desktop/keyboard/">keyboard shortcuts</a></strong> – Believe it or not, you can literally <a href="http://www.opera.com/support/tutorials/nomouse/">use Opera without a mouse</a>.</li> - <li><strong><a href="http://www.opera.com/products/desktop/voice/">Speak</a> to it</strong> – Opera’s + <li><strong><a href="http://www.opera.com/products/desktop/voice/">Speak</a> to it</strong> – Opera's voice integration is getting better and better. Not only you can effectively <a href="http://www.opera.com/support/tutorials/voice/">tell your browser what to do</a>, you can also use the built-in text-to-speech function (Windows only) to have it read entire pages for you. It actually works quite@@ -271,53 +271,53 @@ every image/object cached!), plug-ins, Wand passwords, etc.</li>
<li>Use <strong>Tools > Appearence…</strong> to access and manage appearance-related settings, like skins, toolbars, buttons and panels</li> <li>Use <strong>Tools > Preferences…</strong> to access general preferences (all the rest)</li> - <li>Type in <strong>opera:config</strong> to view and tweak Opera’s internal settings, somehow like - Firefox’s about:config, but much cleaner and easier to use.</li> + <li>Type in <strong>opera:config</strong> to view and tweak Opera's internal settings, somehow like + Firefox's about:config, but much cleaner and easier to use.</li> <li>Download the <strong><a href="http://dev.opera.com/tools/">Developer Console</a></strong> to have a simpler - alternative to Firefox’s Web Developer Toolbar extension, to view <span class="caps">DOM</span> elements, + alternative to Firefox's Web Developer Toolbar extension, to view <span class="caps">DOM</span> elements, <span class="caps">CSS</span> and Javascript information. </li> </ul> <h3>Annoyances</h3> -<p>After using as main browser for a few weeks now, I can say that it’s great but not perfect yet. It’s very +<p>After using as main browser for a few weeks now, I can say that it's great but not perfect yet. It's very advanced, faster and more mature than any other browser, of course,but there are a few things which should be fixed or improved.</p> <p>In particular:</p> <ul> - <li><strong>It’s not open source</strong> – This may not matter to someone, but some people consider - this an essential requirement for their browser, and that’s why Firefox is their most obvious choice. + <li><strong>It's not open source</strong> – This may not matter to someone, but some people consider + this an essential requirement for their browser, and that's why Firefox is their most obvious choice. Although Opera is free, it is proprietary software after all, which means is definitely not as open as you may - want it to be. Personally I’m not too bothered, as I’m starting to think that too much openness may + want it to be. Personally I'm not too bothered, as I'm starting to think that too much openness may lead to too many unuseful and bloated extensions and make the program somehow “unpredictable” and heavy.</li> <li><del><strong>No address bar search</strong> – Amazingly, only Firefox seems to have this feature built-in. - I’m referring to the ability to type whatever in the address bar to be redirected to the site returned - by a Google’s <em>I’m feeling lucky</em> search. It is possible to emulate this feature in Opera - by creating a custom search for <em>I’m Feeling Lucky</em> and assign it a short keyword like + I'm referring to the ability to type whatever in the address bar to be redirected to the site returned + by a Google's <em>I'm feeling lucky</em> search. It is possible to emulate this feature in Opera + by creating a custom search for <em>I'm Feeling Lucky</em> and assign it a short keyword like “l”. In this way, for example, typing in <code>l h3rald</code> should lead you to this website. Not quite as immediate as in Firefox though.</del></li> <li><del><strong>No find as you type</strong> – Another big disappointment for who comes from Firefox or Safari: Opera still uses a dialog box to perform page searches.</del></li> <li><del><strong>No spell clecking</strong> – Again, both Firefox and Safari now offer text fields spell - checking. Opera doesn’t yet.</del></li> - <li><del><strong>No <span class="caps">HTML</span> mail composer</strong> – Opera’s built-in mail client - can display <span class="caps">HTML</span> emails but doesn’t yet allow users to create them.</del> + checking. Opera doesn't yet.</del></li> + <li><del><strong>No <span class="caps">HTML</span> mail composer</strong> – Opera's built-in mail client + can display <span class="caps">HTML</span> emails but doesn't yet allow users to create them.</del> </li> <li><del><strong>Auto-start widgets?</strong> – This is a feature enhancement Opera Dev Team should consider: allow users to configure certain widgets to start automatically when Opera starts.</del></li> <li><del><strong>Google Reader + Flash problems</strong> – Sometimes I experiences some scrolling problems when reading news which contain embedded flash movies on Google Reader.</del></li> <li><strong>Corporate Sites</strong> – Unfortunately some corporate web site do not support Opera or are not - displayed correctly in Opera. Unfortunately there’s nothing much we can do about it but trying to + displayed correctly in Opera. Unfortunately there's nothing much we can do about it but trying to “mask” Opera as another browser (via <strong>right-click > Edit Site Preferences…</strong>) </li> - <li><del><strong>Default Browser Problems</strong> – Setting Opera as default browser on Windows doesn’t + <li><del><strong>Default Browser Problems</strong> – Setting Opera as default browser on Windows doesn't seem to set the file icons accordingly (or worse, it resets them to the default file icon).</del></li> </ul> <p><strong><span class="caps">ERRATA</span>:</strong></p> <ul> <li>It is possible to have Opera to redirect you to the right after typing a few words in thr address bar by setting - Google’s “I’m feeling lucky” as default search engine <em>(thanks + Google's “I'm feeling lucky” as default search engine <em>(thanks <strong>EJ902</strong>)</em>.</li> <li>Spell Checking is <a href="http://www.opera.com/support/tutorials/opera/spellcheck/">supported</a> via <span class="caps">GNU</span> Aspell <em>(thanks <strong>cvm</strong>)</em> or by using <a@@ -329,19 +329,19 @@ <li>It is possible to auto-start widgets by saving a session with all your widget open and reloading it at every
startup [CTRL+F12 > General > Startup > Continue saved sessions] <em>(thanks <strong>Tamil</strong> & <strong>Ameer</strong>)</em>.</li> <li>As of the <a href="http://my.opera.com/desktopteam/blog/">latest snapshot</a>, setting Opera as default browser - and handler for <span class="caps">HTML</span> files doesn’t cause any problems <em>thanks + and handler for <span class="caps">HTML</span> files doesn't cause any problems <em>thanks <strong>Ayush</strong>)</em>.</li> </ul> <h3>Conclusion</h3> <p>Despite the few annoyances listed in the previous section, Opera 9.5 beta 1 truly impressed me. I was waiting for - Opera to get better before switching and now I’ve not been using Firefox for a few weeks.<br /> - Although Opera offers a lot of features, there’s still room for improvements, especially for what concerns + Opera to get better before switching and now I've not been using Firefox for a few weeks.<br /> + Although Opera offers a lot of features, there's still room for improvements, especially for what concerns integration with third party services: I would really like to see some sort of integration with del.icio.us, and that could be possible via widgets at least. <br /> Regarding the new Opera Link feature, it looks very promising and a potential competitor for Mozilla Weave even though it will be used mainly to get more and more users to register to the Opera community (I did, at least), which is indeed very active any way.</p> -<p>To conclude this article, which still barely scratches the surface of this very powerful application, I’d like +<p>To conclude this article, which still barely scratches the surface of this very powerful application, I'd like to praise two more things about Opera:</p> <p><span style="float:right; margin:3px;"><br /> <script type="text/javascript">@@ -352,10 +352,10 @@ </span></p>
<ul> <li>Their website network, and in particular their truly excellent documentation knowledge base, which is very comprehensive of references, tutorials and interesting articles. I am a full time technical writer myself, and - I’ve hardly ever come across better documentation.</li> + I've hardly ever come across better documentation.</li> <li>Their extensive <a href="http://www.opera.com/docs/specs/">support and compliance to web standards</a>, which makes Opera the most advanced browser ever made.</li> </ul> -<p>If you’ve not tried Opera before, or if you’ve always dismissed it because “X browser is +<p>If you've not tried Opera before, or if you've always dismissed it because “X browser is better”, you may want to <a href="http://www.opera.com/products/desktop/">give it another shot</a>: for me it was definitely worthwhile!</p>
@@ -6,13 +6,13 @@ tags: "firefox|browsers|writing|review|books"
----- <p>When the SitePoint staff asked me to write an article summing up all the new features of Firefox 3, I gladly accepted: I wrote about Firefox before, and I thought it was just going to be a 2-3 hours job maximum. <br /> - After diving deeper into Firefox 3 development, reading dozens of different blogs and scouting Mozilla’s web + After diving deeper into Firefox 3 development, reading dozens of different blogs and scouting Mozilla's web sites, I realized I was wrong: Firefox 3 introduced <em>a lot</em> of new things, and keeping track of all of them, I admit, was quite a hard task.</p> <p>Nevertheless, I wrote the article and delivered it to SitePoint in time fore the release, but my editor “complained” that 8,300+ words was about 3 times over the minimum requirements for a feature article! <br /> - <em>“I don’t really think that people can read the whole thing online”</em> —, he said, and + <em>“I don't really think that people can read the whole thing online”</em> —, he said, and I somehow agreed. </p> <p>In the end, they decided to pack my “article” into a 30-pages <span class="caps">PDF</span> eBook which@@ -31,7 +31,8 @@ <p>I would like to thank the whole SitePoint staff for giving me the opportunity to write this eBook, and in particular
<strong><a href="http://magain.com/blog/">Matthew Magain</a></strong> for his help and support (and for creating the <span class="caps">PDF</span> on a Sunday evening!).<br /> Additionally, I would also like to thank the Mozilla Development Team for their awesome job with Firefox 3 and - everyone else who made this eBook possible.</p> + everyone else who made this eBook possible. +</p> <p><strong>Update:</strong> Feel free to <strong><a href="http://digg.com/software/FireFox_3_Revealed_Free_ebook_from_SitePoint">digg</a></strong> this eBook! </p>
@@ -16,7 +16,7 @@ <li>A web server, like Apache or <span class="caps">IIS</span></li>
<li><span class="caps">PHP</span> 5.3.0 or higher</li> <li>Git (not required, but all example projects are on git repos, so you may as well have it)</li> </ul> -<p>For this tutorial, more specifically, you need to download (just download, don’t install anything!):</p> +<p>For this tutorial, more specifically, you need to download (just download, don't install anything!):</p> <ul> <li><a href="http://code.google.com/p/mongoose/">mongoose</a>, a tiny, standalone (as <em>in one single file</em>), cross-platform web server.</li>@@ -26,14 +26,14 @@ <li><a href="http://rad-dev.org/lithium/versions">Lithium</a> (version 0.1, at the time of writing)</li>
<li>The <a href="http://rad-dev.org/li3_docs">li3_docs plugin</a>.</li> </ul> <p>To get the li3_docs plugin you need to <a href="http://rad-dev.org/users/add">register</a> on rad-dev.org, and clone - the li3_docs git repository. If you don’t have git installed or you don’t want to read <a + the li3_docs git repository. If you don't have git installed or you don't want to read <a href="http://spheredev.org/wiki/Git_for_the_lazy">another awesome tutorial</a> to install it and learn how to - use it, I’ll save you the hassle and let you download the plugin from <a href="/files/li3_docs.zip">here</a>, + use it, I'll save you the hassle and let you download the plugin from <a href="/files/li3_docs.zip">here</a>, for this time ony.</p> <p><b>Note:</b> This tutorial assumes that you are on Windows. If you are not, some things may be a bit different depending on your platform.</p> <h3>Setting up the environment</h3> -<p>Choose a directory on your sistem (let’s call it <b>D:\lithium_test</b> from now on). We’ll do everything +<p>Choose a directory on your sistem (let's call it <b>D:\lithium_test</b> from now on). We'll do everything in here, and you can move it anywhere you like afterwards, even on a <span class="caps">USB</span> stick, without breaking anything.</p> <ol>@@ -41,7 +41,7 @@ <li>Unzip Lithium in <b>D:\lithium_test</b>, so that it contains the following files and directories:
<ul> <li>app/</li> <li>libraries/</li> - <li>.htaccess (it won’t actually be used in this tutorial)</li> + <li>.htaccess (it won't actually be used in this tutorial)</li> </ul> </li> <li>Unzip <span class="caps">PHP</span> 5.3.0 somewhere and copy the following files to the <b>D:\lithium_test</b>@@ -76,7 +76,7 @@ <p>Double click <b>mongoose.exe</b> and point your browser of choice to <a
href="http://localhost:8080/app/webroot/index.php">http://localhost:8080/app/webroot/index.php</a>. You should see the Lithium temporary homepage (yes, I expected something fancier too):</p> <p><img src="/images/pictures/lithium/temp_homepage.png" alt="" /></p> -<p>Now, let’s see if we can get the li3_docs plugin running as well:</p> +<p>Now, let's see if we can get the li3_docs plugin running as well:</p> <ol> <li>Unzip <b>li3_docs.zip</b> and copy the <b>li3_docs</b> folder in <b>D:\lithium_test\app\libraries\plugins</b>. </li>@@ -89,13 +89,13 @@ <p>Go to <a
href="http://localhost:8080/app/webroot/index.php?url=docs">http://localhost:8080/app/webroot/index.php?url=docs</a>, you should see something like this:</p> <p><img src="/images/pictures/lithium/li3_docs.png" alt="" /></p> -<p>Congratulation, you’re now running your first Lithium application!</p> +<p>Congratulation, you're now running your first Lithium application!</p> <h3>Fixing URLs</h3> -<p>Once the initial excitement wears off you’ll notice that none of the links on the docs page works.</p> -<p>That’s because the mongoose web server does not support <span class="caps">URL</span> rewriting (and Lithium +<p>Once the initial excitement wears off you'll notice that none of the links on the docs page works.</p> +<p>That's because the mongoose web server does not support <span class="caps">URL</span> rewriting (and Lithium needs it badly right now), so we have to change the way URLs are created. <a href="http://twitter.com/nateabele">@nateabele</a> gave me <a - href="http://pastium.org/view/3a966c1446fcbd1d4f5a94d882256987">some tips</a> on how to do this; it’s very + href="http://pastium.org/view/3a966c1446fcbd1d4f5a94d882256987">some tips</a> on how to do this; it's very simple:</p> <ol> <li>Create a directory called <b>action</b> in <b>D:\lithium_test\app\extensions</b>.</li>@@ -113,17 +113,17 @@ }
} ?></code></pre> </div> -<p>We’re basically extending the <code>\lithium\action\Request</code> with a custom class, telling Lithium how to +<p>We're basically extending the <code>\lithium\action\Request</code> with a custom class, telling Lithium how to create the base <span class="caps">URL</span>.</p> <p>After doing so, open <b>D:\lithium_test\app\webroot\index.php</b> and change:</p> <p><code>echo lithium\action\Dispatcher::run();</code></p> <p>into:</p> <code>echo lithium\action\Dispatcher::run(new app\extensions\action\Request());</code> -<p>In this case, we’re instructing the dispatcher to use our custom Request class instead of the default one.</p> +<p>In this case, we're instructing the dispatcher to use our custom Request class instead of the default one.</p> <p>Now everything should work as expected. Reload the docs page (<a href="http://localhost:8080/app/webroot/index.php?url=docs">http://localhost:8080/app/webroot/index.php?url=docs</a>) and verify that the links work by navigating to <code>Lithium</code>, then <code>action</code> and finally <code>Controller</code>. </p> -<p>Now you can use Lithium to display its own <span class="caps">API</span> locally (if things didn’t work out, - there’s always <a href="http://li3.rad-dev.org/docs">http://li3.rad-dev.org/docs</a>).</p> +<p>Now you can use Lithium to display its own <span class="caps">API</span> locally (if things didn't work out, + there's always <a href="http://li3.rad-dev.org/docs">http://li3.rad-dev.org/docs</a>).</p>
@@ -4,48 +4,95 @@ content-type: article
timestamp: 1216095480 tags: "programming" ----- -<p><em>“This is a <strong>local</strong> shop for <strong>local</strong> people, we want no trouble here!”</em></p> +<p><em>“This is a <strong>local</strong> shop for <strong>local</strong> people, we want no trouble + here!”</em></p> <p>— Edward, <a href="http://en.wikipedia.org/wiki/League_of_gentlemen">The League of Gentlemen</a></p> -<p>I’m normally quite cautious when it comes to IT novelties like new frameworks, new methodologies and similar, especially when it feels like they’re over-hyped. Especially nowadays, it is sometimes very hard to tell whether something new is over-hyped or really a Good Thing™ without spending some time looking into it. And especially nowadays, finding the time to look into something new can be a real challange.</p> -<p>I deliberately didn’t look into Git properly since it went “mainstream” (maybe I shouldn’t use this word), but when <a href="http://www.spheredev.org/wiki/Git_for_the_lazy">this tutorial</a> came out I couldn’t resist. Sure, I knew Git was an amazingly fast distributed version control system, that <a href="http://github.com/">GitHub</a> offered free accounts, that all the cool guys were slowly starting to use it in place of Subversion, etc. etc.</p> -<p>What I didn’t realize though, that the most obvious advantage of this <span class="caps">DVCS</span> was the fact that it was <strong>distributed</strong>, i.e., it <em>didn’t need</em> a centralized server.</p> -<p>Let me repeat this: <strong>Git <em>doesn’t need</em> a centralized server.</strong></p> -<p>Really.h3. …But it’s not user-friendly!</p> -<p>If you’re a Windows user and you used Subversion before, chances are that you got accustomed to <a href="http://tortoisesvn.tigris.org/">TortoiseSVN</a>, too. TortoiseSVN is — in a way — a nice graphical fron-end to <span class="caps">SVN</span> which provides seamless Windows Explorer integration. <br /> -Git doesn’t have anything like that yet. There’s something in the works, sure, but nothing really comparable to TortoiseSVN. Therefore, you are <em>kindly suggested</em> to get on and use the command line for all your git stuff.</p> -<p>Oh well, I personally love using command line interfaces for certain tasks, event if I spend more time on Windows than on any other OS and well, the <span class="caps">DOS</span> prompt is no way near to bash & Co.</p> -<p>For the <del>lazy gits</del> Windows users, <a href="http://code.google.com/p/msysgit/">MSysGit</a> is the answer to all your problems. <em>Officially</em> you have to install Cygwin and all its crap to be able to use Git on Windows. Not that Cygwin is bad, but I personally don’t like the extra layer it creates between you and an OS symulation which is not really what’s on your machine.It would be great if you could get all the Bash goodies natively, without the hassle.</p> -<p>that’s basically what you get for free when you install MSysGit: the best (to date) version of Bash you could possibly dream of for Windows, along with a few handy Gnu tools and of course all git commands.<br /> -In a few click, you’ll be able to use Git (and Bash!) right away: no tricks, no hassle, no kidding.</p> -<p>And stop moaning about the command line not being user friendly. You want a new repository <em>anywhere</em>? Just type in the following:</p> -<div class='text'><pre><code>git init +<p>I'm normally quite cautious when it comes to IT novelties like new frameworks, new methodologies and similar, + especially when it feels like they're over-hyped. Especially nowadays, it is sometimes very hard to tell whether + something new is over-hyped or really a Good Thing™ without spending some time looking into it. And especially + nowadays, finding the time to look into something new can be a real challange.</p> +<p>I deliberately didn't look into Git properly since it went “mainstream” (maybe I shouldn't use this + word), but when <a href="http://www.spheredev.org/wiki/Git_for_the_lazy">this tutorial</a> came out I couldn't + resist. Sure, I knew Git was an amazingly fast distributed version control system, that <a + href="http://github.com/">GitHub</a> offered free accounts, that all the cool guys were slowly starting to use + it in place of Subversion, etc. etc.</p> +<p>What I didn't realize though, that the most obvious advantage of this <span class="caps">DVCS</span> was the fact + that it was <strong>distributed</strong>, i.e., it <em>didn't need</em> a centralized server.</p> +<p>Let me repeat this: <strong>Git <em>doesn't need</em> a centralized server.</strong></p> +<p>Really.h3. …But it's not user-friendly!</p> +<p>If you're a Windows user and you used Subversion before, chances are that you got accustomed to <a + href="http://tortoisesvn.tigris.org/">TortoiseSVN</a>, too. TortoiseSVN is — in a way — a nice + graphical fron-end to <span class="caps">SVN</span> which provides seamless Windows Explorer integration. <br /> + Git doesn't have anything like that yet. There's something in the works, sure, but nothing really comparable to + TortoiseSVN. Therefore, you are <em>kindly suggested</em> to get on and use the command line for all your git stuff. +</p> +<p>Oh well, I personally love using command line interfaces for certain tasks, event if I spend more time on Windows + than on any other OS and well, the <span class="caps">DOS</span> prompt is no way near to bash & Co.</p> +<p>For the <del>lazy gits</del> Windows users, <a href="http://code.google.com/p/msysgit/">MSysGit</a> is the answer to + all your problems. <em>Officially</em> you have to install Cygwin and all its crap to be able to use Git on Windows. + Not that Cygwin is bad, but I personally don't like the extra layer it creates between you and an OS symulation + which is not really what's on your machine.It would be great if you could get all the Bash goodies natively, without + the hassle.</p> +<p>that's basically what you get for free when you install MSysGit: the best (to date) version of Bash you could + possibly dream of for Windows, along with a few handy Gnu tools and of course all git commands.<br /> + In a few click, you'll be able to use Git (and Bash!) right away: no tricks, no hassle, no kidding.</p> +<p>And stop moaning about the command line not being user friendly. You want a new repository <em>anywhere</em>? Just + type in the following:</p> +<div class='text'> + <pre><code>git init git add . -git commit</code></pre></div><p>This will create your new repository in the current directory, add all your files and filders recursively, and perform the initial commit. What’s so hard in this? Nothing. And it’s faster than <span class="caps">SVN</span>, for sure.</p> +git commit</code></pre> +</div> +<p>This will create your new repository in the current directory, add all your files and filders recursively, and + perform the initial commit. What's so hard in this? Nothing. And it's faster than <span class="caps">SVN</span>, for + sure.</p> <h3>Are you local?</h3> -<p>“Being local” has its own advantages: you know where you stand, you know what to expect, you don’t depend on other people. What I didn’t fully realize about Git is that it can be a 100% <em>local</em> repository.</p> -<p>The three Git commands I mentioned earlier can be used to create a repository <em>there</em>, exactly where you are: not on a server far, far away.<br /> -Let’s see what this means:</p> +<p>“Being local” has its own advantages: you know where you stand, you know what to expect, you don't depend + on other people. What I didn't fully realize about Git is that it can be a 100% <em>local</em> repository.</p> +<p>The three Git commands I mentioned earlier can be used to create a repository <em>there</em>, exactly where you are: + not on a server far, far away.<br /> + Let's see what this means:</p> <ol> - <li>You don’t need an Internet connection anymore to use a <span class="caps">VCS</span></li> - <li>You don’t get a .svn folder in <em>every</em> damn directory of your project, with a load of crappy files in it.</li> - <li>You get only a .git folder <em>at top level</em>, and that’s where your repository actually is. Granted, there are going to be quite a few files in there, but they’re not going to be scattered all over the place</li> + <li>You don't need an Internet connection anymore to use a <span class="caps">VCS</span></li> + <li>You don't get a .svn folder in <em>every</em> damn directory of your project, with a load of crappy files in it. + </li> + <li>You get only a .git folder <em>at top level</em>, and that's where your repository actually is. Granted, there + are going to be quite a few files in there, but they're not going to be scattered all over the place</li> <li>You can physically copy your repository anywhere and still use it</li> - <li>You don’t need to signup to GitHub for an account, if you only want your own <span class="caps">VCS</span></li> + <li>You don't need to signup to GitHub for an account, if you only want your own <span class="caps">VCS</span></li> </ol> -<p>OK, this is an extreme scenario, but sometimes you may want your <em>own</em> local repository for your stuff. You may want a place to version your documents, or a place to version your own little pet programming project nobody knows about.<br /> -With Git, you can get all the advantages of a <span class="caps">VCS</span> (and an <em>incredibly fast</em> <span class="caps">VCS</span>) without having to setup any server infrastructure: just install Git on your machine, and you’re done. No server processes, no hassle.</p> -<h3>Don’t connect, synchronize</h3> -<p>All the information your repository needs is stored in that little .git folder, nowhere else. You can copy your files and that folder, and you’ll still get your repository back wherever you are. Maybe you can zip it before copying it, and then unzip it where you need a <span class="caps">VCS</span>, event.</p> -<p>I tried using some synchronization utilities like SyncToy or RoboCopy on Windows to keep my files synchronized on multiple computers: it all started off from the fact that I can’t use <span class="caps">SSH</span> at work, so I wouldn’t be able to push my commits back to a central repository online like GitHub.</p> -<p>So here’s what I did:</p> +<p>OK, this is an extreme scenario, but sometimes you may want your <em>own</em> local repository for your stuff. You + may want a place to version your documents, or a place to version your own little pet programming project nobody + knows about.<br /> + With Git, you can get all the advantages of a <span class="caps">VCS</span> (and an <em>incredibly fast</em> <span + class="caps">VCS</span>) without having to setup any server infrastructure: just install Git on your machine, + and you're done. No server processes, no hassle.</p> +<h3>Don't connect, synchronize</h3> +<p>All the information your repository needs is stored in that little .git folder, nowhere else. You can copy your files + and that folder, and you'll still get your repository back wherever you are. Maybe you can zip it before copying it, + and then unzip it where you need a <span class="caps">VCS</span>, event.</p> +<p>I tried using some synchronization utilities like SyncToy or RoboCopy on Windows to keep my files synchronized on + multiple computers: it all started off from the fact that I can't use <span class="caps">SSH</span> at work, so I + wouldn't be able to push my commits back to a central repository online like GitHub.</p> +<p>So here's what I did:</p> <ol> <li>I setup a local repository for my project on a local folder at work.</li> <li>I started working on my project, did a few commits.</li> - <li>After performing the last commit for the day (you are encouraged to commit often by Git, really), I synchronized that folder with my <span class="caps">USB</span> key, via SyncToy.</li> - <li>Back at home, I used SyncToy again to synchronize my files (including the repository) between the <span class="caps">USB</span> key and my home computer.</li> - <li>Performing a <code>git status</code> showed that some files have been modified (all of them, actually): that’s because Git detected that they weren’t the same files which were committed, presumably because of different timestamps etc.</li> - <li>All I did was a <code>git reset --hard</code> to get <em>exactly</em> the same files I committed at work, with absolutely no information loss.</li> + <li>After performing the last commit for the day (you are encouraged to commit often by Git, really), I synchronized + that folder with my <span class="caps">USB</span> key, via SyncToy.</li> + <li>Back at home, I used SyncToy again to synchronize my files (including the repository) between the <span + class="caps">USB</span> key and my home computer.</li> + <li>Performing a <code>git status</code> showed that some files have been modified (all of them, actually): that's + because Git detected that they weren't the same files which were committed, presumably because of different + timestamps etc.</li> + <li>All I did was a <code>git reset --hard</code> to get <em>exactly</em> the same files I committed at work, with + absolutely no information loss.</li> </ol> -<p>Isn’t it a bad thing to move your git folder back and forth and let another program to synchronize files within it? Maybe, but it seems to work so far. A safer option, in this case, may be zipping the folder before synchronizing it, just to be sure.</p> +<p>Isn't it a bad thing to move your git folder back and forth and let another program to synchronize files within it? + Maybe, but it seems to work so far. A safer option, in this case, may be zipping the folder before synchronizing it, + just to be sure.</p> <h3>Conclusion</h3> -<p>Git can do much more than this. Git offers some really interesting branching features, for example, which I didn’t mention in this article, of course, like several dozens of other commands. What I tried to point out was that Git can be used by <em>anyone</em>, as a fast, simple and very effective private <em>local</em> repository. In case you need one, that is (if you are really <em>local</em>).</p> +<p>Git can do much more than this. Git offers some really interesting branching features, for example, which I didn't + mention in this article, of course, like several dozens of other commands. What I tried to point out was that Git + can be used by <em>anyone</em>, as a fast, simple and very effective private <em>local</em> repository. In case you + need one, that is (if you are really <em>local</em>).</p>
@@ -8,11 +8,11 @@ -----
<section class="section"> <p>I am very pleased to announce the second release of the <a href="/glyph/">Glyph Document Authoring Framework</a>. - For those who don’t know, Glyph is a pure-Ruby, extensible solution to author documents like books or + For those who don't know, Glyph is a pure-Ruby, extensible solution to author documents like books or articles using a simple, fully-customizable markup language.</p> <p>Since the <a href="/articles/introducing-glyph/">first release</a>, came out, last month, a lot happened. Plenty of bugs were fixed and new features implemented, as shown by the <a - href="http://github.com/h3rald/glyph/blob/master/CHANGELOG.textile">changelog</a>. Here’s a brief + href="http://github.com/h3rald/glyph/blob/master/CHANGELOG.textile">changelog</a>. Here's a brief rundown of the most notable changes.</p> <section class="section"> <header>@@ -20,12 +20,13 @@ <h1 id="h_1" class="toc">What Glyph code looks like</h1>
</header> <p>Earlier this week I <a href="http://blog.h3rald.com/making-a-custom-vim-syntax-file">blogged</a> about my new <a href="http://github.com/h3rald/stash/blob/master/.vim/syntax/glyph.vim">Glyph vim syntax file</a>. - I’ve been using it for a while, and all I can say is that it really helps! Here’s what it looks - like:</p> + I've been using it for a while, and all I can say is that it really helps! Here's what it looks + like: + </p> <p><img src="/images/pictures/glyph_syntax.png" /></p> - <p>I’m sorry for the Emacs and TextMate folks, but I only use Vim, so I only made a Vim syntax file. + <p>I'm sorry for the Emacs and TextMate folks, but I only use Vim, so I only made a Vim syntax file. Anyhow, Glyph grammar is very simple, so rolling out your own syntax file for your favorite editor - shouldn’t be too hard.</p> + shouldn't be too hard.</p> </section> <section class="section"> <header>@@ -47,21 +48,22 @@ <section class="section">
<header> <h1 id="h_4" class="toc">Programmatic usage</h1> </header> - <p>The second most notable feature is the possibility to use Glyph as a Ruby library, i.e. as you’d + <p>The second most notable feature is the possibility to use Glyph as a Ruby library, i.e. as you'd use a filter like RedCloth or MarkDown. Additionally, it is also possible to compile single files programmatically, so you can, for example, create <span class="caps">PDF</span> files for your articles - from the same source file. Don’t believe me? Feel free to click the <em>Download <span + from the same source file. Don't believe me? Feel free to click the <em>Download <span class="caps">PDF</span></em> and <em>View Source</em> links on this very page to see for yourself…</p> <p>For those of you using the awesome <a href="http://nanoc.stoneship.org">nanoc</a> static site generator, - here’s a few source files you may want to take a look at:</p> + here's a few source files you may want to take a look at:</p> <ul> <li><a href="http://github.com/h3rald/h3rald/blob/master/lib/glyph-data.rb">lib/glyph-data.rb</a> — How to update configuration settings.</li> <li><a href="http://github.com/h3rald/h3rald/blob/master/lib/glyph-filter.rb">lib/glyph-data.rb</a> — a simple Glyph filter.</li> <li><a href="http://github.com/h3rald/h3rald/blob/master/Rules">Rules</a> — a rule using the - <code>Glyph#compile</code> method to generate <span class="caps">PDF</span> files.</li> + <code>Glyph#compile</code> method to generate <span class="caps">PDF</span> files. + </li> </ul> </section> <section class="section">@@ -69,8 +71,8 @@ <header>
<h1 id="h_5" class="toc">Auto-regeneration</h1> </header> <p>Another very interesting feature is the possibility to auto-regenerate your output files automatically - whenever a source file is changed. Just run <code>glyph compile --auto</code> and you’re away. - I’d like to thank <a href="http://koraktor.github.com">Sebastian Staudt</a> for proposing, + whenever a source file is changed. Just run <code>glyph compile --auto</code> and you're away. + I'd like to thank <a href="http://koraktor.github.com">Sebastian Staudt</a> for proposing, implementing, and testing this feature.</p> </section> <section class="section">@@ -93,10 +95,10 @@ </section>
</section> <section class="section"> <header> - <h1 id="h_7" class="toc">What’s next?</h1> + <h1 id="h_7" class="toc">What's next?</h1> </header> <p>Release 0.3.0 is currently being planned, and so are its <a - href="http://github.com/h3rald/glyph/issues">features</a>. For now, I’d like to thank the + href="http://github.com/h3rald/glyph/issues">features</a>. For now, I'd like to thank the following individuals for contributing to Glyph:</p> <ul> <li><a href="http://www.jabbslad.com">Jamie Atkinson</a> (Jabbslad), for spotting and fixing some bugs and@@ -111,21 +113,22 @@ <p>Although still in its infancy, Glyph is becoming more and more usable everyday. If you are interested, you
can contribute in many different ways to the project, such as:</p> <ul> <li>By participating to discussions on the <a href="http://groups.google.com/group/glyph-framework">user - group</a> (it’s a bit quiet of there for now…)</li> + group</a> (it's a bit quiet of there for now…)</li> <li>By spreading the word on Twitter, on your blog, or wherever you like.</li> - <li>By installing it, using it, reporting bugs and proposing new features (it’s just a - <code>gem install glyph</code> away!).</li> - <li>By actually contributing to its development (it’s <a + <li>By installing it, using it, reporting bugs and proposing new features (it's just a + <code>gem install glyph</code> away!). + </li> + <li>By actually contributing to its development (it's <a href="http://wiki.github.com/h3rald/glyph/contribution-guidelines">easy</a>!).</li> </ul> - <p>Additionally, if you don’t like coding:</p> + <p>Additionally, if you don't like coding:</p> <ul> <li>feedback on the current documentation and on the <a href="http://github.com/h3rald/glyph/raw/master/book/output/pdf/glyph.pdf">Glyph book</a> is appreciated</li> - <li>if you are good with <span class="caps">CSS</span>, I’m looking for some nice new <span + <li>if you are good with <span class="caps">CSS</span>, I'm looking for some nice new <span class="caps">CSS</span> styles to include in the standard Glyph distribution.</li> - <li>if you’re good with graphics, Glyph needs a good-looking logo…</li> + <li>if you're good with graphics, Glyph needs a good-looking logo…</li> </ul> <p>Any form of contribution will be credited in some way, e.g. by links and tweets.</p> </section>
@@ -6,17 +6,27 @@ timestamp: 1283535900
tags: "glyph|ruby|opensource" ----- - <section class="section"> -<p>This new release of Glyph introduces an unusually large number of features, improvements and bugfixes. Not so much in terms of new macros maybe (no index or bibliography support for now, but it will come, don’t worry!), but rather… pretty much everything else!</p> +<section class="section"> + <p>This new release of Glyph introduces an unusually large number of features, improvements and bugfixes. Not so + much in terms of new macros maybe (no index or bibliography support for now, but it will come, don't worry!), + but rather… pretty much everything else!</p> -<section class="section"> -<header><h1 id="h_1" class="toc">Web Output</h1></header> -<p>By far the biggest feature of this release is support for multi-file output, i.e. the possibility to transform your book into a web site. You’ve asked for it, I needed it too, and now it’s finally here.</p> -<p>An example? Sure. Take the <a href="http://github.com/downloads/h3rald/glyph/glyph.pdf">Glyph Book</a> (now a 98-page <span class="caps">PDF</span> file) for instance. My only regret was that a long <span class="caps">PDF</span> is quite heavy to digest and peruse, especially if you’re in a hurry. It would be so much nice to have it available online, in chunks of more manageable size.</p> -<p>Well, <a href="/glyph/book/">here it is</a>. That’s the very same document, split in several <span class="caps">HTML</span> files with a custom layout that matches this site’s. The good news is that you can do it too:</p> - -<div class="code"> -<pre> + <section class="section"> + <header> + <h1 id="h_1" class="toc">Web Output</h1> + </header> + <p>By far the biggest feature of this release is support for multi-file output, i.e. the possibility to + transform your book into a web site. You've asked for it, I needed it too, and now it's finally here.</p> + <p>An example? Sure. Take the <a href="http://github.com/downloads/h3rald/glyph/glyph.pdf">Glyph Book</a> (now a + 98-page <span class="caps">PDF</span> file) for instance. My only regret was that a long <span + class="caps">PDF</span> is quite heavy to digest and peruse, especially if you're in a hurry. It would + be so much nice to have it available online, in chunks of more manageable size.</p> + <p>Well, <a href="/glyph/book/">here it is</a>. That's the very same document, split in several <span + class="caps">HTML</span> files with a custom layout that matches this site's. The good news is that you + can do it too:</p> + + <div class="code"> + <pre> <code> section[ @title[This title is compulsory]@@ -25,45 +35,81 @@ @src[topic_file.glyph]
] </code> </pre> -</div> - <p>Note the <code>@src</code> attribute? It basically includes the specified topic file. So by creating a <code>document.glyph</code> file like <a href="http://github.com/h3rald/glyph/blob/master/book/document.glyph">this</a>, you can create a tidy table of contents (not a single <code>include</code> macro) <em>and</em> get a website for free. Glyph, as usual, takes care of anything for you, especially links between topics. Just link away like you did so far, nothing changes from previous versions, it will just work as expected (<a href="/glyph/book/compiling/compiling.html#web_output">read more</a>).</p> + </div> + <p>Note the <code>@src</code> attribute? It basically includes the specified topic file. So by creating a + <code>document.glyph</code> file like <a + href="http://github.com/h3rald/glyph/blob/master/book/document.glyph">this</a>, you can create a tidy + table of contents (not a single <code>include</code> macro) <em>and</em> get a website for free. Glyph, as + usual, takes care of anything for you, especially links between topics. Just link away like you did so far, + nothing changes from previous versions, it will just work as expected (<a + href="/glyph/book/compiling/compiling.html#web_output">read more</a>).</p> -</section> -<section class="section"> -<header><h1 id="h_2" class="toc">HTML5 Output</h1></header> -<p>Compared to Web output, HTML5 support was trivial and only took a few hours to implement and test. You can now produce single-file HTML5-compliant documents (<code>html5</code> output format) or even HTML5-compliant web sites (<code>web5</code> output). Just using <code>section</code> tags instead of <code>div</code> tags made it worth it.</p> -<p>Of course, the default <span class="caps">CSS</span> files have been updated to be compatible with HTML5 output too.</p> + </section> + <section class="section"> + <header> + <h1 id="h_2" class="toc">HTML5 Output</h1> + </header> + <p>Compared to Web output, HTML5 support was trivial and only took a few hours to implement and test. You can + now produce single-file HTML5-compliant documents (<code>html5</code> output format) or even HTML5-compliant + web sites (<code>web5</code> output). Just using <code>section</code> tags instead of <code>div</code> tags + made it worth it.</p> + <p>Of course, the default <span class="caps">CSS</span> files have been updated to be compatible with HTML5 + output too.</p> -</section> -<section class="section"> -<header><h1 id="h_3" class="toc">Project Statistics</h1></header> -<p>Anoher big thing was a shiny new command, <code>glyph stats</code>, which brings — guess — stats. No more chasing after bookmark references, just type <code>glyph stats --bookmark=#web_output</code> and you’ll know where the <code>#web_output</code> bookmark was defined <em>and</em> what links to it. Similar stats are available for:</p> -<ul> - <li>macros</li> - <li>links</li> - <li>files</li> - <li>snippets</li> -</ul> -<p><code>glyph stats -m</code> tells me that I used 3236 macro instances throughout the Glyph book. Just so you know.</p> + </section> + <section class="section"> + <header> + <h1 id="h_3" class="toc">Project Statistics</h1> + </header> + <p>Anoher big thing was a shiny new command, <code>glyph stats</code>, which brings — guess — stats. + No more chasing after bookmark references, just type <code>glyph stats --bookmark=#web_output</code> and + you'll know where the <code>#web_output</code> bookmark was defined <em>and</em> what links to it. Similar + stats are available for:</p> + <ul> + <li>macros</li> + <li>links</li> + <li>files</li> + <li>snippets</li> + </ul> + <p><code>glyph stats -m</code> tells me that I used 3236 macro instances throughout the Glyph book. Just so you + know.</p> -</section> -<section class="section"> -<header><h1 id="h_4" class="toc">Custom tasks and commands</h1></header> -<p>“Glyph is extensible”, “Glyph lets you create your own macros”, …great, but kinda limited right? No more. Glyph now lets you create <em>custom Rake tasks</em> and even <em>custom commands</em>.</p> -<p>Have a look at <a href="/glyph/book/extending/commands_tasks.html">this page</a> for more information on what you can do and how. You can now extend Glyph in any way you like (including adding custom output formats) without having to touch its core, just do it <em>within your own project</em>.</p> + </section> + <section class="section"> + <header> + <h1 id="h_4" class="toc">Custom tasks and commands</h1> + </header> + <p>“Glyph is extensible”, “Glyph lets you create your own macros”, …great, but + kinda limited right? No more. Glyph now lets you create <em>custom Rake tasks</em> and even <em>custom + commands</em>.</p> + <p>Have a look at <a href="/glyph/book/extending/commands_tasks.html">this page</a> for more information on what + you can do and how. You can now extend Glyph in any way you like (including adding custom output formats) + without having to touch its core, just do it <em>within your own project</em>.</p> -</section> -<section class="section"> -<header><h1 id="h_5" class="toc">wkhtmltopdf</h1></header> -<p>Last but not least, you no longer need Prince <span class="caps">XML</span> to produce <span class="caps">PDF</span> file. Granted, Prince is awesome and the <span class="caps">PDF</span> it produces are very, very nice… but if you want to produce PDFs commercially and want to same some money, you can now use <a href="http://code.google.com/p/wkhtmltopdf/">wkhtmltopdf</a>: it’s <em>free</em> and <em>open source</em>, and it keeps getting better and better.</p> + </section> + <section class="section"> + <header> + <h1 id="h_5" class="toc">wkhtmltopdf</h1> + </header> + <p>Last but not least, you no longer need Prince <span class="caps">XML</span> to produce <span + class="caps">PDF</span> file. Granted, Prince is awesome and the <span class="caps">PDF</span> it + produces are very, very nice… but if you want to produce PDFs commercially and want to same some + money, you can now use <a href="http://code.google.com/p/wkhtmltopdf/">wkhtmltopdf</a>: it's <em>free</em> + and <em>open source</em>, and it keeps getting better and better.</p> -</section> -<section class="section"> -<header><h1 id="h_6" class="toc">...and more to come!</h1></header> -<p>After this release I’m going to take a small break from Glyph. Nothing major, I just want to redesign my site (again) and find the time to write a proper Glyph tutorial. This doesn’t mean that development will be halted or anything, just that it will take a few months for Glyph 0.5.0 to come out.</p> -<p>Meanwhile, there may be bugfix releases (depends how many bugs turn up). It would be a good time to come out of the closet and propose/vote on new <a href="http://github.com/h3rald/glyph/issues">features</a>!</p> -<p>Hope you enjoy using Glyph 0.4.0, and if you need anything or feel social, remember that the doors of the <a href="http://groups.google.com/group/glyph-framework">Glyph User Group</a> are always open!</p> + </section> + <section class="section"> + <header> + <h1 id="h_6" class="toc">...and more to come!</h1> + </header> + <p>After this release I'm going to take a small break from Glyph. Nothing major, I just want to redesign my site + (again) and find the time to write a proper Glyph tutorial. This doesn't mean that development will be + halted or anything, just that it will take a few months for Glyph 0.5.0 to come out.</p> + <p>Meanwhile, there may be bugfix releases (depends how many bugs turn up). It would be a good time to come out + of the closet and propose/vote on new <a href="http://github.com/h3rald/glyph/issues">features</a>!</p> + <p>Hope you enjoy using Glyph 0.4.0, and if you need anything or feel social, remember that the doors of the <a + href="http://groups.google.com/group/glyph-framework">Glyph User Group</a> are always open!</p> -</section> + </section> </section>
@@ -22,7 +22,7 @@ <h1 id="h_1" class="toc">Calibre Integration</h1>
</header> <p><a href="https://github.com/tammycravit">Tammy Cravit</a> proposed (and more or less implemented) an interesting new feature: integrate <a href="http://calibre-ebook.com/">Calibre</a> to generate ebooks in <span - class="caps">EPUB</span> and <span class="caps">MOBI</span> format from Glyph’s native standalone <span + class="caps">EPUB</span> and <span class="caps">MOBI</span> format from Glyph's native standalone <span class="caps">HTML</span> output format.</p> <p>Although the support is still somewhat rough, you can, as a matter of fact, generate ebooks with Glyph, using Calibre.</p>@@ -61,7 +61,8 @@ level of nesting.</p>
<p>Additionally, I used this features to create an <code>xml</code> macro dispatcher that can be used to render raw <span class="caps">XML</span> tags, and an <code>s</code> macro dispatcher that basically is able to call nearly all the instance methods of the Ruby String class. So you can write things like - <code>s/sub[This feature makes my life easier|/my/|your]</code> and similar.</p> + <code>s/sub[This feature makes my life easier|/my/|your]</code> and similar. + </p> </section> <section class="section">@@ -95,7 +96,8 @@ </div>
</div> <p>Not that you <em>need</em> to be able to calculate factorials in your documents, but know that now you - <em>can</em>. An you can also define lexically scoped variables, err… <em>attributes</em>, like this:</p> + <em>can</em>. An you can also define lexically scoped variables, err… <em>attributes</em>, like this: + </p> <div class="CodeRay"> <div class="code"> <pre><span class="line-numbers"><a href="#n1" name="n1">1</a></span>let[@@ -117,7 +119,8 @@ <header>
<h1 id="h_4" class="toc">Embeddable fragments</h1> </header> <p>Too lazy to create snippets? Feel the urge to re-use something you already wrote somewhere? Use a - <em>fragment</em> and embed it, as follows:</p> + <em>fragment</em> and embed it, as follows: + </p> <div class="CodeRay"> <div class="code"> <pre><span class="line-numbers"><a href="#n1" name="n1">1</a></span>Snippets and fragments ##[good_way|are a good way to reuse] small chunks of content,@@ -136,17 +139,18 @@ </header>
<p>To sum up:</p> <ul> <li><code>snippets.yml</code> is no more, define all your snippets inside your document instead.</li> - <li>New “invisible space separator”: <code>\/</code> instead of <code>\.</code>. Because it’s + <li>New “invisible space separator”: <code>\/</code> instead of <code>\.</code>. Because it's slightly prettier, nothing else.</li> <li>The <code>rewrite:</code> macro has been replaced by the <code>define:</code> macro, which also allows recursion, so be careful!</li> <li>If you want to render raw <span class="caps">XML</span> tags, use <code>xml/tag_name</code> instead of - <code>=tag_name</code>.</li> + <code>=tag_name</code>. + </li> <li>No more <code>match</code> macro, use <code>s/match</code> instead.</li> </ul> <p>For the full list of the issues fixed in this release, see the <a href="/glyph/book/changelog.html">Changelog</a>.</p> - <p>Hope you’ll enjoy this new release of Glyph. If you want to contribute, go ahead and <a + <p>Hope you'll enjoy this new release of Glyph. If you want to contribute, go ahead and <a href="https://github.com/h3rald/glyph">fork the repo</a>!</p> </section>
@@ -8,11 +8,12 @@ <p>A while ago Google started offering services like <a href="http://mail.google.com/mail/">Google Mail</a> (Gmail) and
<a href="http://www.google.com/calendar/">Google Calendar</a> 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 <something><code>gmail.com or <something></code>googlemail.com. Not a big deal? Well, sure, not really, but it - really depends on the people using the service and how fussy they are:</p> + really depends on the people using the service and how fussy they are: +</p> <ul> - <li>small/medium business wouldn’t like this: @gmail.com gives farless credibility than @domain.com</li> + <li>small/medium business wouldn't like this: @gmail.com gives farless credibility than @domain.com</li> <li>When using Gmail with the Send As feature, messages will be sent “on behalf of”, and this can - potentially mess things up as some spam filters don’t like it.</li> + potentially mess things up as some spam filters don't like it.</li> </ul> <p>Now it seems to be <a href="http://seattlepi.nwsource.com/business/1700AP_Google_Business_Applications.html">official</a>: Google is@@ -21,7 +22,7 @@ service.<br />
What does this mean? Well, it can be the (free and easy) definitive web solution for small business, kids, grandmas and everyone who wants to establish a presence on the web by paying only the annual domain renewal fees…</p> <h3>Included applications</h3> -<p>Note the title: <a href="https://www.google.com/a/">Google Apps</a> for your domain, not only Gmail. Here’s +<p>Note the title: <a href="https://www.google.com/a/">Google Apps</a> for your domain, not only Gmail. Here's what you get:</p> <ul> <li><a href="http://mail.google.com/">Gmail</a> – You know what it offers: a state-of-the art <span@@ -30,34 +31,34 @@ (labels) stars and all the rest.</li>
<li><a href="http://www.google.com/calendar/">Google Calendar</a> – One of the best online calendar available. Features and <span class="caps">AJAX</span> interface, full integration with Gmail, ability to create private and public calendars, reminders,</li> - <li><em>Google Chat</em> – Google’s instant messenger, available through <a + <li><em>Google Chat</em> – Google's instant messenger, available through <a href="http://www.google.com/talk/">Google Talk</a> desktop application or online, seamlessly integrated in your Gmail interface.</li> - <li><a href="http://pages.google.com/">Google Web Pages</a> – aka Google’s page creator, easily create - webpages using Google’s <span class="caps">WYSIWYG</span> online editor.</li> + <li><a href="http://pages.google.com/">Google Web Pages</a> – aka Google's page creator, easily create + webpages using Google's <span class="caps">WYSIWYG</span> online editor.</li> </ul> <p>Now, try imagining these four services combined and (almost) fully customizable… Still no idea? Well, keep reading for a list of all the included features.</p> <h3>Included Features</h3> <p>In order to use Google Apps for your domain, you must of course own a domain. The next step involves changing your - domain’s MX entry to “<span class="caps">ASPMX</span>.L.<span class="caps">GOOGLE</span>.<span + domain's MX entry to “<span class="caps">ASPMX</span>.L.<span class="caps">GOOGLE</span>.<span class="caps">COM</span>”, and follow the instructions to create an administration account for your Google - applications, and after a while every email sent to your domain’s accounts will be routed to your new - Google-powered inbox. Similarly, in order to use Google Page Creator on your domain, you’re required to change + applications, and after a while every email sent to your domain's accounts will be routed to your new + Google-powered inbox. Similarly, in order to use Google Page Creator on your domain, you're required to change the <span class="caps">CNAME</span> record of your <span class="caps">DNS</span> to “ghs.google.com”. </p> <blockquote> - <p>Note: in order to avoid inconveniences especially if a lot of users use your domain’s email, it is - recommended that you pay attention on Google’s instructions on how to set the whole thing up. For further + <p>Note: in order to avoid inconveniences especially if a lot of users use your domain's email, it is + recommended that you pay attention on Google's instructions on how to set the whole thing up. For further information refer to the official <a href="https://www.google.com/a/FAQ"><span class="caps">FAQ</span></a>. In order to be able to use Google Page Creator on your domain, you must setup an <span class="caps">URL</span> to publish your webpages: of course do <span class="caps">NOT</span> set this to “www.yourdomain.com” or any subdomain currently in use or your visitors will access the pages you created with Google Page Creator. </p> </blockquote> -<p>Here’s what you get:<br /> +<p>Here's what you get:<br /> <img src="/images/pictures/gmail-hosted/gmail.png" alt="" /> <br /> - For a bigger image click <a href="/images/pictures/gmail-hosted/gmail_full.png">here</a>. Let’s now have a + For a bigger image click <a href="/images/pictures/gmail-hosted/gmail_full.png">here</a>. Let's now have a look at what are the main differences from the standard Gmail. </p> <p><u><em><strong>Include your own logo</strong></em></u><br />@@ -66,30 +67,30 @@ </p>
<p>Your own logo will be displayed on the upper left corner of every page. And this is truly sweet. All you have to do to change it is uploading a 143×59 <span class="caps">PNG</span> or <span class="caps">GIF</span> image from your domain management panel (see below).</p> -<p><u><em><strong>Use your company name instead of Google’s</strong></em></u><br /> +<p><u><em><strong>Use your company name instead of Google's</strong></em></u><br /> <img src="/images/pictures/gmail-hosted/links.png" alt="" /> </p> <p>Besides a custom logo, it is possible to set a company name to be used instead of “Google” or - “Gmail” in page titles and links. I chose “H3RALD.com Mail” and that’s displayed + “Gmail” in page titles and links. I chose “H3RALD.com Mail” and that's displayed everywhere, including on the sign-in page.</p> <p><u><em><strong>Control Panel</strong></em></u><br /> All the custom settings can easily be managed through an easy-to use control panel:</p> <p><img src="/images/pictures/gmail-hosted/options_panel.png" alt="" /></p> -<p>It’s really easy to use and has wizards to setup all the included services and options like setting up user +<p>It's really easy to use and has wizards to setup all the included services and options like setting up user accounts, settings etc.</p> <p><img src="/images/pictures/gmail-hosted/domain.png" alt="" /></p> <p><u><em><strong>User Accounts</strong></em></u><br /> Through the control panel you can add new users and modifying existing user accounts to access your services. You can create administrators who are able to access administrative domain-wide settings, and standard users. Every user - gets 2048MB of space for their emails, and that’s pretty generous considering that it seems that you’re + gets 2048MB of space for their emails, and that's pretty generous considering that it seems that you're able to create around 25 user accounts.</p> -<p>Already have a list of users you’re like to import? Just save them in <span class="caps">CSV</span> format and +<p>Already have a list of users you're like to import? Just save them in <span class="caps">CSV</span> format and upload them.</p> <p>Would you like to be able to contact all your users at once, e.g. via a newsletter? Google thought about this as well, and you can create your own personal newsletters which can be sent out automatically to your @yourdomain.com email accounts.</p> <p><u><em><strong>Internal Messaging System</strong></em></u><br /> - But there’s more. We all know Google Talk: yes it’s nice, but probably <span class="caps">MSN</span> has + But there's more. We all know Google Talk: yes it's nice, but probably <span class="caps">MSN</span> has more features, smileys and all the rest but it still remains a perfectly usable instant manager, which also allows file transfer. Your users can use Google Talk to communicate with each other <em>or</em> simply chat through their webmail interface, More features? Well, for example <a@@ -97,15 +98,15 @@ href="https://www.google.com/support/hosted/bin/answer.py?answer=34143">you can setup Google Talk to work on
federated networks</a>.</p> <p><u><em><strong>Appointments/Projects management</strong></em></u><br /> Google Calendar is an excellent online calendar, and now you can use it within your own domain as well. This means, - for example, that it can be used to set your company’s appointments, reminder, project deadlines by creating + for example, that it can be used to set your company's appointments, reminder, project deadlines by creating an unlimited number of custom calendars to share with your collaborators.</p> <p><u><em><strong>Design your own site</strong></em></u><br /> I know a lot of restaurants, shops and people who would like to have a small site for their business or activity, - but they can’t develop web application themselves. So the most obvious solution is to hire some professional + but they can't develop web application themselves. So the most obvious solution is to hire some professional web developer to rip them off… erhm, to create a website for them. Now it is not necessary: by setting the correct <span class="caps">DNS</span> parameters, you can allow users to create their own webpages using a foolproof and advanced web editor powered by Google: <a href="http://pages.google.com/">Google Page Creator</a>. <br /> - I didn’t set it up on my own domain, but a preview of what you can do with Google Page Creator is available <a + I didn't set it up on my own domain, but a preview of what you can do with Google Page Creator is available <a href="http://h3rald.googlepages.com/home">here</a>.</p> <h3>Scenario</h3> <p>After considering all this, I came to the conclusion that what Google did can help a lot of people and at the same@@ -122,8 +123,8 @@ <li>Your own “corporate instant messenger”</li>
<li>Your own calendar to manage appointments, meetings etc.</li> <li>An intuitive and advanced web page creator – not like Geocities</li> </ul> -<p>All this for free. Yes, with ads (I’m not here to discuss <a href="http://www.gmail-is-too-creepy.com/">privacy - concerns</a>), but after all they’re not displayed on your main site.</p> +<p>All this for free. Yes, with ads (I'm not here to discuss <a href="http://www.gmail-is-too-creepy.com/">privacy + concerns</a>), but after all they're not displayed on your main site.</p> <p><em>What about Server Side technologies for my sites?</em></p> <p>OK kid, now that would be a little bit too much, even if I can foresee some possible “Google Web Widgets” at some point. “Create your <em>interactive and dinamic</em> website within minutes, no programming knowledge
@@ -5,38 +5,39 @@ timestamp: 1220401860
tags: "browsers|review|google" ----- <p style="float:left;"><img src="/images/google-chrome/chrome-logo.jpg" alt="" /></p> -<p>It looks like there’s a <a href="http://www.google.com/chrome">new open source browser</a> in town. As usual, +<p>It looks like there's a <a href="http://www.google.com/chrome">new open source browser</a> in town. As usual, nearly everything about it <a href="http://blogoscoped.com/archive/2008-09-01-n47.html">leaked</a> <a href="http://www.techcrunch.com/2008/09/01/first-public-screen-captures-of-google-chrome/">before</a> its <a href="http://www.google.com/chrome">release</a>. Every blog that matters is talking about it, so if you - didn’t hear anything about it, you’d better take a look yourself. Don’t be fooled by the usual <a + didn't hear anything about it, you'd better take a look yourself. Don't be fooled by the usual <a href="http://www.techcrunch.com/2008/09/01/meet-chrome-googles-windows-killer/">senseless ravings</a> of some - weird, overly-hyped blogger though: a <em>browser</em> just came out, nothing more and nothing less. It’s not - the end of Windows, it’s not the end of the Internet, it’s not the end of the world as we know it. - It’s just a new player in the Browser Wars.</p> + weird, overly-hyped blogger though: a <em>browser</em> just came out, nothing more and nothing less. It's not + the end of Windows, it's not the end of the Internet, it's not the end of the world as we know it. + It's just a new player in the Browser Wars.</p> <p>I particularly recommend reading the official <a href="http://books.google.com/books?id=8UsqHohwwVYC&printsec=frontcover#PPP1,M1">Google Comic Book</a> about - Chrome, however I included some of the most interesting parts of it in this article. It’s a nice 40-page comic + Chrome, however I included some of the most interesting parts of it in this article. It's a nice 40-page comic booklet explaining how the browser works in a friendly way… I found it quite amusing and an interesting way to - <del>leak</del> distribute info on a new project.</p> + <del>leak</del> distribute info on a new project. +</p> <h3>Getting the damn thing</h3> -<p>You can freely download Google Chromm from <a href="http://www.google.com/chrome">here</a>. You’ll get a tiny +<p>You can freely download Google Chromm from <a href="http://www.google.com/chrome">here</a>. You'll get a tiny 474KB setup file which installs the browser automatically. When I say automatically I mean automatically: you double - click it, and it won’t ask <em>anything</em>: it will just install it in Program Files by itself. Idiot proof. + click it, and it won't ask <em>anything</em>: it will just install it in Program Files by itself. Idiot proof. Clever. Some people may like it, I damn hated it.</p> <p>I downloaded it and installed it fine from home, on Vista, and it was blazing fast (on <em>Vista_, imagine!). I tried - to do the same thing from work and I couldn’t. The damn installer is supposed to pick up the proxy + to do the same thing from work and I couldn't. The damn installer is supposed to pick up the proxy settings from your default browser, but if the proxy uses authentication (like 99% of corporate proxies) it - simply won’t work. As far as I know, there’s <a + simply won't work. As far as I know, there's <a href="http://groups.google.com/group/google-chrome-help-troubleshooting/browse">no way around this</a></em>thread/thread/4c07ec5124f2eebc.</p> -<p>This is the reason why this article won’t have any chrome screenshots… to protest against Google’s +<p>This is the reason why this article won't have any chrome screenshots… to protest against Google's stupid way of doing things “too user-friendly”.</p> <p><strong>Update 1:</strong> Actually, it is now possible to download the full Chrome setup from <a href="http://cache.pack.google.com/chrome/install/149.27/chrome_installer.exe">here</a> (Thanks <a href="http://www.thecrazyaustralian.com/installing-google-chrome-behind-a-proxy/">Crazy Australian</a>).</p> -<p><strong>Update 2:</strong> After installing Chrome, if your company uses an automatic proxy script you won’t be - able to browser web sites using Chrome. If that’s your case, make sure you change IE’s proxy settings by +<p><strong>Update 2:</strong> After installing Chrome, if your company uses an automatic proxy script you won't be + able to browser web sites using Chrome. If that's your case, make sure you change IE's proxy settings by specifying your proxy address and port explicitly.</p> <h3>How Google “re-invented” the browser</h3> <p>Why did Google bother? Officially because…</p>@@ -56,92 +57,92 @@ <p>All major browsers <em>evolved</em> through the years, but they never really changed: so why not to start from
scratch?</p> <p>Starting from scratch has a lot of advantages:</p> <ul> - <li>You can learn from other people’s mistakes, and try to fix them</li> + <li>You can learn from other people's mistakes, and try to fix them</li> <li>You can <em>get things right</em> from the very start</li> <li>You do not have to worry about breaking compatibility with previous versions</li> - <li>People won’t have extremely high expectations, and they’ll be prepared for a relatively unstable + <li>People won't have extremely high expectations, and they'll be prepared for a relatively unstable product</li> </ul> <p>Obviously building a browser from the ground up is not a weekend project, but things changed since the nineties and starting fresh does not necessarily means re-inventing the wheel!</p> <h3>An “old” Rendering Engine</h3> -<p>Let’s just say that the main work was already done for Google by the <a href="http://webkit.org">WebKit</a> - guys. The rendering engine which now powers Safari, the Nokia Series 60 browser, Gnome’s Epiphany, Adobe <span +<p>Let's just say that the main work was already done for Google by the <a href="http://webkit.org">WebKit</a> + guys. The rendering engine which now powers Safari, the Nokia Series 60 browser, Gnome's Epiphany, Adobe <span class="caps">AIR</span> has been picked by the Google guys for Chrome.</p> <p style="float:right;"><img src="/images/google-chrome/chrome-javascript.gif" alt="" /></p> <p>This is a fairly obvious choice, if you ask me. Why?</p> <ul> - <li>Presto (Opera’s engine) is proprietary</li> - <li>Trident (IE’s engine) is proprietary, and it sucks</li> - <li>Gecko (Mozilla’s engine) is open source, but a bit bulky</li> + <li>Presto (Opera's engine) is proprietary</li> + <li>Trident (IE's engine) is proprietary, and it sucks</li> + <li>Gecko (Mozilla's engine) is open source, but a bit bulky</li> <li>WebKit is open source, and arguably the fastest rendering engine to date</li> </ul> -<p>The rendering engine, after all, may be considered one of the most important parts of the browser: it’s +<p>The rendering engine, after all, may be considered one of the most important parts of the browser: it's responsible of what users see, after all. <br /> Google made the right choice, in my opinion: WebKit is also the most “embeddable” and lightweight engine available, and it is also used on the Android platform for this very reason.</p> <h3>A “new” Javascript</h3> <p>Mozilla has a <a href="http:http://www.mozilla.org/js/spidermonkey/Javascript">fast</a> engine, which will soon become <a href="http://ejohn.org/blog/tracemonkey/">much faster</a>. WebKit has a <a - href="http://webkit.org/projects/javascript/">blazing fast</a> Javascript engine too, don’t forget. So why - Google didn’t just use that?</p> + href="http://webkit.org/projects/javascript/">blazing fast</a> Javascript engine too, don't forget. So why + Google didn't just use that?</p> <p>…Because they wanted something <em>much</em> faster than that, in their own way (as someone already <a href="http://null-logic.net/blog/2008/09/02/javascript-performance-comparison-with-chrome/">pointed out</a>). </p> -<p>Meet <strong>V8</strong>, Chrome’s very own Javascript Virtual Machine. When reading the Chrome Comic, I was +<p>Meet <strong>V8</strong>, Chrome's very own Javascript Virtual Machine. When reading the Chrome Comic, I was particularly impressed of two improvements introduced by this new javascript VM:</p> <p style="float:right;"><img src="/images/google-chrome/chrome-javascript-gc.gif" alt="" /></p> <ul> <li>It actually compiles Javascript to machine code via a Just-In-Time compiler (<span class="caps">JIT</span>). - This means that whenever you refresh a page containing Javascript the browser won’t re-interpret the whole + This means that whenever you refresh a page containing Javascript the browser won't re-interpret the whole script, but it will simply run the compiled version of it which was generated the first time the page was loaded. New concept? Not really, Mozilla is going <em>exactly</em> in the same direction with their own engine, and <span class="caps">JIT</span> compilation will be added as of Firefox 3.1.</li> - <li>V8’s incremental garbage collection looks like a much better alternative to the current conservative - garbage collection methods used for Javascript. Because of V8’s new concept of Hidden Class Transitions, + <li>V8's incremental garbage collection looks like a much better alternative to the current conservative + garbage collection methods used for Javascript. Because of V8's new concept of Hidden Class Transitions, V8 knows <em>exactly</em> when something is no longer needed and thus it is able to garbace-collect it more effectively.</li> </ul> <p>While there has been some initial <a href="http://nexus.zteo.com/2008/09/01/google-chrome-an-index-of-what-developers-need-to-know-good-and-bad/">skepticism</a> - on this new Javascript implementation, it looks like Google did it right. If you don’t believe it you can <a - href="http://code.google.com/apis/v8/intro.html">download</a> V8’s C++ code and try it out yourself.</p> + on this new Javascript implementation, it looks like Google did it right. If you don't believe it you can <a + href="http://code.google.com/apis/v8/intro.html">download</a> V8's C++ code and try it out yourself.</p> <h3>One Process per Tab</h3> -<p>Google Chrome is the first multi-process browser. The idea is that <em>each tab</em> (because you can’t do +<p>Google Chrome is the first multi-process browser. The idea is that <em>each tab</em> (because you can't do browsers without tabs, these days, right?) has its own phisical process and it is therefore independent from each other.</p> <p style="float:right;"><img src="/images/google-chrome/chrome-processes.gif" alt="" /></p> -<p>Hang on, isn’t that what IE 5 did? A new instance of the browser for each window? No, not quite: there’s +<p>Hang on, isn't that what IE 5 did? A new instance of the browser for each window? No, not quite: there's a single instance of the browser and <em>multiple</em> tab instances. Each tab is independent in the sense that it - has its own address bar, but it’s just a tab, at the end of the day.</p> + has its own address bar, but it's just a tab, at the end of the day.</p> <p>This is what Internet Explorer could have done, <em>before</em> Internet Explorer 7, as an answer to the traditional concept of tabs promoted by Mozilla and Opera.</p> <p>Actually, it turns out that <a href="http://blogs.msdn.com/ie/archive/2008/03/11/ie8-and-loosely-coupled-ie-lcie.aspx">this is <em>exactly</em> - what’s planned for Internet Explorer 8</a>, as <a + what's planned for Internet Explorer 8</a>, as <a href="http://www.sriramkrishnan.com/blog/2008/09/thoughts-on-new-browser-wars.html">someone</a> already pointed out!</p> <p>Additionally, Google thought of building in a mini task manager to let users monitor the <span class="caps">CPU</span> and memory usage of each tab. This is interesting, but it has a few implications discussed later on in this article.</p> -<p>What’s truly remarkable about this is that each tab seems to have an initial overhead of 1-2KB, which of course +<p>What's truly remarkable about this is that each tab seems to have an initial overhead of 1-2KB, which of course grows according to the site it loads. You can see all this in the task manager, which also picks up similar stats for any other browser running at the same time on your machine. <br /> This was another clever move by Google: by looking at their own task manager, and running more than one browser together, you have everything you need to instantly compare browser performance (thus discovering that Chrome does an outstanding job, it seems).</p> -<p>What’s also remarkable about Chrome’s tabs is the way you can interact with them:</p> +<p>What's also remarkable about Chrome's tabs is the way you can interact with them:</p> <ul> <li>You can move them around smoohtly, exactly like with Safari</li> <li>You can detach them by drag and drop</li> <li>You can re-attach them by drag and drop (which is truly awesome!)</li> </ul> <h3><del>AwesomeBar</del> <em>OmniBox</em> and <del>Speed Dial</del> <em>New Tab Page</em></h3> -<p>Did you like Mozilla’s AwesomeBar? Well, I personally did, others didn’t so much. Meet OmniBox™ - Google’s very own, semi-sentient address bar which really understands you.</p> -<p>Here’s what you can do with it:</p> +<p>Did you like Mozilla's AwesomeBar? Well, I personally did, others didn't so much. Meet OmniBox™ + Google's very own, semi-sentient address bar which really understands you.</p> +<p>Here's what you can do with it:</p> <ul> - <li>Type in URLs and view web sites (it would be damn funny if it couldn’t do that)</li> + <li>Type in URLs and view web sites (it would be damn funny if it couldn't do that)</li> <li>Get <del>extra Google crap</del> useful suggestions while typing. This includes, but it is not limited to: <ul> <li>Pages you visited</li>@@ -153,51 +154,51 @@ <li>Custom searches: search <span class="caps">IMDB</span>, Wikipedia, Amazon and google itself with a few clicks
</li> </ul> <p><img src="/images/google-chrome/chrome-bar.gif" alt="" /></p> -<p>Unlike Firefox’s AwesomeBar, Google’s OmniBox seems more “evolved”: it doesn’t get too - much in your way, it lets you go where you want to go, and it’s smart about searching. Apparently Mozilla is +<p>Unlike Firefox's AwesomeBar, Google's OmniBox seems more “evolved”: it doesn't get too + much in your way, it lets you go where you want to go, and it's smart about searching. Apparently Mozilla is already planning to remove the search bar completely and incorporate it in the AwesomeBar… but Google released it first, sorry guys.</p> <p>The other handy thing they <del>stole</del> kindly borrowed from Opera is the <em>New Tab Page</em>, basically like - Opera’s Speed Dial, but with two interesting things:</p> + Opera's Speed Dial, but with two interesting things:</p> <ul> - <li>It displays the nine <em>most visited</em> pages: you don’t have to configure it!</li> + <li>It displays the nine <em>most visited</em> pages: you don't have to configure it!</li> <li>It displays search boxes for the most visited sites where you searched something on.</li> </ul> <p>While I really like how this works (it requires no configuration whatsoever), I kinda miss dragging my favorite pages - in the New Tab Page. If you come from Opera, you’ll miss this too: the pages I have in my speed dial are <span + in the New Tab Page. If you come from Opera, you'll miss this too: the pages I have in my speed dial are <span class="caps">NOT</span> necessarily the pages I visited the most!</p> -<p>I guess I’ll get used to it, though…</p> -<h3>Relax, it’s Google!</h3> +<p>I guess I'll get used to it, though…</p> +<h3>Relax, it's Google!</h3> <p>Google is not Evil™. Google is good to everyone, from their own employees to developers and end users: and the funniest part of this whole thing is that everything they make <em>looks</em> good for you. You have absolutely no reason to fear Google.</p> <p>They did it again: they apparently released a new browser which definitely looks inherently more secure than competitors. <br /> - Here’s why:</p> + Here's why:</p> <ul> <li>It has an <em>Incognito</em> mode, which lets you browse everything you want without logging anything anywhere. </li> <li>It confines popups to the tab they belong, minimized. You can then seletively decide to drag them out and promote them to their own window.</li> <li>Each tab is sandboxed: i.e., it has no rights to write anything to your PC. Absolutely no chance. When plugins - for Java and Flash are used, however, this doesn’t apply.</li> - <li>Chrome continuously downloads lists of malicious sites, so that you’re protected against phishing in real + for Java and Flash are used, however, this doesn't apply.</li> + <li>Chrome continuously downloads lists of malicious sites, so that you're protected against phishing in real time.</li> </ul> <p style="float:left;"><img src="/images/google-chrome/chrome-blame.gif" alt="" /></p> -<p>Now, if everything goes wrong, you know it’s definitely <em>someone else who did it</em>. If you read the comic - book between the lines, you’ll notice a not-so-subtle message to the end users:</p> +<p>Now, if everything goes wrong, you know it's definitely <em>someone else who did it</em>. If you read the comic + book between the lines, you'll notice a not-so-subtle message to the end users:</p> <ul> <li>The browser is sandboxed, so if anything goes wrong, blame others (Adobe for Flash, Sun for Java, Microsoft for some other crap)</li> <li>You can monitor the resource consumption of each tab, <em>ergo</em> what <em>each website</em> uses. This means - that if a site is slow is definitely the web developer’s fault.</li> + that if a site is slow is definitely the web developer's fault.</li> </ul> <p>This is basically what <a href="http://ejohn.org/blog/google-chrome-process-manager/">John Resig</a> immediately pointed out when the comic came out.</p> <h3>How it feels</h3> -<p>Google Chrome is clearly a very nice product to use. It’s as intuitive as IE for the average Windows user, it - has the best of Firefox and Opera features and it’s even more sleek than Safari. The UI, in my opinion, is a +<p>Google Chrome is clearly a very nice product to use. It's as intuitive as IE for the average Windows user, it + has the best of Firefox and Opera features and it's even more sleek than Safari. The UI, in my opinion, is a true masterpiece and feels well though out.</p> <p>Everything is aimed to be intuitive and does not get in your way: it just works. You want to download a file? You can just do it, without worrying about where to save it: it will appear in a “download bucket” at the bottom@@ -214,9 +215,9 @@ <p>The overall impression is that Google wanted to target end users with this browser, but also appeal geeks, too. This
makes sense from a marketing point of view. While 90% of geeks switched from IE to another browser, ordinary people are still stuck with IE. Why? Because alternative browsers have gained a reputation of being geek-friendly (which, by popular belief, does not mean user-friendly).</p> -<p>Google’s marketing strategy is quite clear, and it doesn’t seem to be failing on any point:</p> +<p>Google's marketing strategy is quite clear, and it doesn't seem to be failing on any point:</p> <ul> - <li>They targeted Windows first, because that’s what the bulk of IE aficionados uses.</li> + <li>They targeted Windows first, because that's what the bulk of IE aficionados uses.</li> <li>They did their best to make it as user-friendly as possible: the sleek <span class="caps">GUI</span>, the comic book, etc.</li> <li>They spread the world like crazy: every blog is talking about it, but also major news sites like <span@@ -224,25 +225,25 @@ class="caps">BBC</span> and <span class="caps">CNN</span>. When I got to work, a collegue of mine asked me
if I tried the new Google browser and if I read the comic. She heard it at the radio. Here <em>in Italy</em>! </li> <li>At the same time, they made the whole thing open source, released APIs and emphasized this, so that - “computer fiddlers” couldn’t resist.</li> + “computer fiddlers” couldn't resist.</li> </ul> <p>To me, it looks like Google Chrome stands a good chance to succeed where others have failed: drive most of the Internet population away from Internet Explorer.</p> <h3>Open Source, testing and quality</h3> -<p>Google is well known for its massive infrastructure. Moreover, Google is the only “entity” (let’s +<p>Google is well known for its massive infrastructure. Moreover, Google is the only “entity” (let's call it that way, shall we) who <em>knows</em> and <em>visited</em> almost every web page on the Internet. If - something is not “on Google”, it may well not exist at all: this is not strictly true, but it’s - the user perspective and ad the end of the day that’s all that matters.<br /> + something is not “on Google”, it may well not exist at all: this is not strictly true, but it's + the user perspective and ad the end of the day that's all that matters.<br /> Google, as a consequence, has virtually unlimited resources (compared to any other possible competitor) and virtually unlimited knowledge of the Internet, which makes automated testing no more than a joke.</p> <p>From the Google Chrome Comic:</p> <p><em>“Within 20-30 minutres of each new browser build, we can teswt it on tens of thousands of different web pages”</em></p> -<p>…and that’s certainly not an understatemend: you can believe that.</p> +<p>…and that's certainly not an understatemend: you can believe that.</p> <p><img src="/images/google-chrome/chrome-tests.gif" alt="" /></p> <p>Google seems very concerned of building a “rock-solid” browser rather than being the coolest guy in town, - and that’s a good sign. Google is <em>smart</em>, remember?</p> -<p>As if it weren’t enough, the entire thing (the rendering engine, the javascript implementation and the whole + and that's a good sign. Google is <em>smart</em>, remember?</p> +<p>As if it weren't enough, the entire thing (the rendering engine, the javascript implementation and the whole code of the broswer) is 100% open source which means, in a nutshell:</p> <ul> <li>Free testers</li>@@ -250,44 +251,44 @@ <li>Free developers</li>
<li>Good publicity</li> </ul> <p><img src="/images/google-chrome/chrome-os.gif" alt="" /></p> -<p>If things go as planned, Chrome may become the most widely tested piece of software in the world. Let’s just +<p>If things go as planned, Chrome may become the most widely tested piece of software in the world. Let's just see how the community takes this.</p> <h3>Why it matters</h3> <p>Everyone seems to have gone crazy about Chrome, even long before it was made available. Why does it matter, anyway? - Isn’t it just a browser, at the end of the day? Well, yes, but:</p> + Isn't it just a browser, at the end of the day? Well, yes, but:</p> <ul> - <li>It’s 100% open source. If you like something of it, you can get it, modify it, bundle it in another - project and redistribute it. Give it a few weeks and extensions which use some of Google’s new <span - class="caps">API</span> will flock to the ’fox like crazy.</li> - <li>It’s small, fast and very promising. Sure, it’s not perfect, but <span class="caps">YOU</span> can + <li>It's 100% open source. If you like something of it, you can get it, modify it, bundle it in another + project and redistribute it. Give it a few weeks and extensions which use some of Google's new <span + class="caps">API</span> will flock to the 'fox like crazy.</li> + <li>It's small, fast and very promising. Sure, it's not perfect, but <span class="caps">YOU</span> can help improving it. Get it?</li> - <li>It’s on Windows, so it will reach the majority of Internet users… in theory.</li> + <li>It's on Windows, so it will reach the majority of Internet users… in theory.</li> </ul> <p>Last but not least, it comes bundled with <a href="http://gears.google.com/">Gears</a>, i.e. what Google would like - you to use for RIAs. That’s perhaps the only “subliminal” message they are trying to send to their + you to use for RIAs. That's perhaps the only “subliminal” message they are trying to send to their users (for now, at least).<br /> As a matter of fact, nothing prevents them from using Chrome as a way to promote their technology and products. But at the same time nothing prevents a random developer to just fork the project and distribute a <em>neutral</em> and unbranded version of Chrome.</p> -<p>See? Google is not evil at all, it’s just smarter than others.</p> +<p>See? Google is not evil at all, it's just smarter than others.</p> <h3>The Bottom Line</h3> <p>Google showed us once more that their “innovation” can be summarized with the following:</p> <p><em><strong>“Do not invent new things, just make them better”</strong></em></p> -<p>They didn’t invent Internet search: they just made it better and smarted. The same philosophy applies to +<p>They didn't invent Internet search: they just made it better and smarted. The same philosophy applies to Chrome, too. Some examples? Sure:</p> <ul> - <li>They didn’t create a new rendering engine, they used an existing one</li> - <li>They analyzed Safari’s neat <span class="caps">GUI</span> tricks and implemented something even better. + <li>They didn't create a new rendering engine, they used an existing one</li> + <li>They analyzed Safari's neat <span class="caps">GUI</span> tricks and implemented something even better. </li> <li>They added an IE8-like domain highlight in the <span class="caps">URL</span>.</li> - <li>They got the Firefox’s AwesomeBar and improved it.</li> - <li>They got Opera’s Speed Dial and improved it.</li> - <li>They got IE8’s one-process-per-tab architecture and improved it.</li> - <li>They didn’t think of a Javascript <span class="caps">JIT</span> first, they just made it widely-available + <li>They got the Firefox's AwesomeBar and improved it.</li> + <li>They got Opera's Speed Dial and improved it.</li> + <li>They got IE8's one-process-per-tab architecture and improved it.</li> + <li>They didn't think of a Javascript <span class="caps">JIT</span> first, they just made it widely-available first.</li> - <li>They didn’t think about merging the address bar with the search bar, Mozilla announced it first, but + <li>They didn't think about merging the address bar with the search bar, Mozilla announced it first, but Google released it before they did.</li> - <li>Safari 4 allows users to create shortcuts for their favorite web apps, but unfortunately it’s only out for + <li>Safari 4 allows users to create shortcuts for their favorite web apps, but unfortunately it's only out for developers…</li> </ul> <p>Google did it, again. Exactly as planned.</p>
@@ -13,10 +13,10 @@ simple:</p>
<ul> <li>No more sidebars – Who needs them anyway? Who wants to see my <a href="http://www.delicious.com/h3rald">delicious bookmarks</a> on <em>every single page</em>? Who wants to - see that annoying Web 2.0-ish tag cloud listing all the tags I’ve ever used from 2006 onwards? I suddently + see that annoying Web 2.0-ish tag cloud listing all the tags I've ever used from 2006 onwards? I suddently realized that the right column was nothing more than wasted space, so I removed it altogether.</li> - <li>No more differentiation between <em>articles</em> and <em>blog posts</em> – As a matter of fact, I’m - not posting little pointless tidbits everyday, it’s more likely just once a week or even once a month. + <li>No more differentiation between <em>articles</em> and <em>blog posts</em> – As a matter of fact, I'm + not posting little pointless tidbits everyday, it's more likely just once a week or even once a month. When I post though, I tend to make it worthwhile both for me and the readers by writing about something which may interest people, for a change. In short: this may not be a “traditional blog” anymore, just a publishing platform for my articles.</li>@@ -25,12 +25,12 @@ page, in the archives and even when searching. If you want to read an article, all you have to do is click on
its title. No more “Read More” links.</li> <li>Just three main pages: <a href="">Home</a>, Archives, and <a href="/about">About</a>. Although there may be some more for special projects, at some point.</li> - <li>Use the Archives to find my articles. There you’ll find a list of the 20 most used tags, a search form, + <li>Use the Archives to find my articles. There you'll find a list of the 20 most used tags, a search form, and a timeline listing <em>all</em> my articles from 2006 onwards.</li> <li>Use the tiny palette on the left side of each page to perform common actions like bookmarking, scroll up and down, etc. You can read more about it on the <a href="/about">About</a> page.</li> </ul> -<p>I hope you like the new design, or at least I hope it makes my articles more readable. However, I’m open to +<p>I hope you like the new design, or at least I hope it makes my articles more readable. However, I'm open to suggestions, as usual.</p> <p>P.S.: I dropped with Internet Explorer 6 compatibility According to my stats, less than 5% of my visitors use it, so - it’s not worth the extra hassle.</p> + it's not worth the extra hassle.</p>
@@ -12,8 +12,8 @@ web site. The biggest change then was abandoning the Rails-powered <a
href="http://wiki.github.com/fdv/typo/">Typo</a> blogging platform in favor of <a href="http://nanoc.stoneship.org/">nanoc</a>, arguably the most versatile static site generator out there. </p> - <p>A year later, I am still very happy with nanoc, hence there’s no need for another major release. - Nonetheless, I decided to improve the site’s overall design and image, making it (hopefully) easier to use + <p>A year later, I am still very happy with nanoc, hence there's no need for another major release. + Nonetheless, I decided to improve the site's overall design and image, making it (hopefully) easier to use and more pleasant to the eye.</p> <p>I always had a problem finding the right theme for my web site. I always wanted to find something related to the word <em>herald</em>, so in the last release I went for a herandry-oriented theme. For this release, I decided@@ -26,7 +26,7 @@ <section class="section">
<header> <h1 id="h_1" class="toc">Browser Compatibility</h1> </header> - <p>Although I shouldn’t really say this, the site is meant to be viewed with a WebKit-based browser, + <p>Although I shouldn't really say this, the site is meant to be viewed with a WebKit-based browser, really. It works in other (modern) browsers (read: no IE6), and it degrades more or less gracefully if a particular feature is not supported.</p> <p>That being said:</p>@@ -37,14 +37,14 @@ <li>Firefox 3+ renders pretty much everything right.</li>
<li>Safari and Chrome render the site as it is actually meant to be rendered</li> </ul> <p>Nobody ever died from not being able to see CSS3 rounded corners anyhow. The most important thing about this - site is its content, and I made sure that whatever browser you’re using you can still read it.</p> + site is its content, and I made sure that whatever browser you're using you can still read it.</p> </section> <section class="section"> <header> <h1 id="h_2" class="toc">Columns and hyphenation</h1> </header> - <p>As I previously stated, I couldn’t wait to try out CSS3 columns so I kinda went crazy on the home page, + <p>As I previously stated, I couldn't wait to try out CSS3 columns so I kinda went crazy on the home page, but just there. Some may argue that they are not suitable for web use of course, but I think they contribute to give the site layout a unique feeling.</p> <p>The problem with having columns is of course text alignment: justified text looks good, but unless you
@@ -7,7 +7,7 @@ tags: "website|webdevelopment"
----- <section class="section"> - <p>One of the many things that really bothered me about my web site was the fact that it didn’t look good on + <p>One of the many things that really bothered me about my web site was the fact that it didn't look good on my iPhone, or any small screen for that matter.</p> <p>Years ago I <a href="http://www.alistapart.com/articles/responsive-web-design/">read about</a> responsive web design, media queries, etc., but I never had the will or the time to dive into the subject. Then <a@@ -56,7 +56,7 @@ <td><button class="btn">Click Me!</button></td>
</p> </tr> </table> - <p>That’s grey with black text. Boring. Want it red? Sure, add the <code>.btn-danger</code> class:</p> + <p>That's grey with black text. Boring. Want it red? Sure, add the <code>.btn-danger</code> class:</p> <table> <tr> <td>@@ -90,7 +90,7 @@ <td><button class="btn btn-danger btn-small">Click Me!</button></td>
</p> </tr> </table> - <p>Wouldn’t it be nice to have a nice icon in it? Add an empty <code><i></code> element with a + <p>Wouldn't it be nice to have a nice icon in it? Add an empty <code><i></code> element with a suitable class and there you have a nice <a href="http://twitter.github.com/bootstrap/base-css.html#icons">Glyphicon</a> before the button text (or you can use other icon fonts, like <a href="http://fontawesome.io/">FontAwesome</a>).</p>@@ -113,24 +113,24 @@ </table>
<p>…You get the picture. And it works surprisingly well — if you embrace its philosophy, that is. Just like Rails & Co.: an <em>opinionated</em> framework.</p> <p>The only thing that bugged me about all this was that by adding smart <span class="caps">CSS</span> classes - to elements you’re actually specifying how something looks like by polluting <span - class="caps">HTML</span> code. Granted, if your stylesheet doesn’t include a - <code>.btn-inverse</code> your buttons won’t automagically become black, but you know what I mean. - Although in a very nice way, by following Bootstrap’s way of doing things you are no longer separating - content from presentation. And in the next six months, when I’ll ditch Bootstrap for something better, - all the previews of the code snippets above won’t work unless I keep using the Bootstrap stylesheet or + to elements you're actually specifying how something looks like by polluting <span class="caps">HTML</span> + code. Granted, if your stylesheet doesn't include a + <code>.btn-inverse</code> your buttons won't automagically become black, but you know what I mean. + Although in a very nice way, by following Bootstrap's way of doing things you are no longer separating + content from presentation. And in the next six months, when I'll ditch Bootstrap for something better, + all the previews of the code snippets above won't work unless I keep using the Bootstrap stylesheet or at least some of its button classes. </p> <p>The real problems arise for the stylesheets provided for general elements. By default, Bootstrap styles tables with no borders or colors. What if I wanted just ordinary tables to be striped and bordered? Sure, I can add the <code>.table-striped</code> and <code>.table-bordered</code> classes to all tables, and - that’s it. In <span class="caps">EVERY</span> table. Or of course undo bootstrap’s magic by + that's it. In <span class="caps">EVERY</span> table. Or of course undo bootstrap's magic by overriding the <span class="caps">CSS</span> rules for ordinary tables, to include the rules specified for - <code>.table-striped</code> and <code>.table-bordered</code>. Copy & paste someone else’s code? + <code>.table-striped</code> and <code>.table-bordered</code>. Copy & paste someone else's code? Not nice. </p> <p>Luckily, using <a href="http://sass-lang.com/"><span class="caps">SASS</span></a> finally paid off, and - here’s how to do it in a nice and tidy way:</p> + here's how to do it in a nice and tidy way:</p> <div class="code"> <pre>@@ -163,17 +163,17 @@ <li>The search input box (powered by <a href="http://www.google.com/cse/">Google Custom Search Engine</a>
</li> <li>A <em>responsive</em> navigation bar with links to all the main sections of the site</li> </ul> - <p>As far as the navigation bar goes, that’s pure Bootstrap goodness, nothing new there (except the serif + <p>As far as the navigation bar goes, that's pure Bootstrap goodness, nothing new there (except the serif font), <a href="http://twitter.github.com/bootstrap/components.html#navbar">look it up</a>.</p> <p>For the logo… Well, I had this nice plan of using just plain <span class="caps">CSS</span> and web - fonts to make it (hell, it’s basically the word “H3RALD”, with the 3 slightly bigger and - moved a bit). It worked mostly fine (in webkit browser and in Opera), but Firefox didn’t like it much, - and IE… well, some old versions of IE don’t play nice with web fonts, so I decided to make a + fonts to make it (hell, it's basically the word “H3RALD”, with the 3 slightly bigger and + moved a bit). It worked mostly fine (in webkit browser and in Opera), but Firefox didn't like it much, + and IE… well, some old versions of IE don't play nice with web fonts, so I decided to make a nice <span class="caps">PNG</span> image and stick it there instead. Less hassle, it works everywhere, job done.</p> <p>The search input box was a bit more of a challenge. I read up on the new <a href="https://developers.google.com/custom-search/docs/element">Custom Search Element Control <span - class="caps">API</span></a>, discovered that Google decided that web designers don’t know + class="caps">API</span></a>, discovered that Google decided that web designers don't know Javascript or <span class="caps">CSS</span> nowadays and proposed a new <span class="caps">API</span> that has numerous advantages like:</p> <blockquote>@@ -181,14 +181,14 @@ <ul>
<li>Easy to use syntax—no JavaScript knowledge required.</li> <li>Custom Search elements (search boxes and results pages) are rendered based on settings stored on the <span class="caps">CSE</span> servers (along with any client-side customization). Server-side - changes don’t require you to copy and paste any new code into your site<br /> + changes don't require you to copy and paste any new code into your site<br /> </blockquote> </li> </ul> <p>Thanks Google. Now every time I change my stylesheet I have to remember to go back to your page and change the link colors etc. And if I decide to hide the page <span class="caps">URL</span> underneath the link in - the results? I can’t. And that’s why I decided to reverse engineer their <span - class="caps">CSS</span> and provide my overrides. Nasty, but at least I have some control! They’re + the results? I can't. And that's why I decided to reverse engineer their <span class="caps">CSS</span> and + provide my overrides. Nasty, but at least I have some control! They're all <a href="https://github.com/h3rald/h3rald/blob/master/content/styles/_vendor.scss">here</a>, if you are curious.</p>@@ -211,9 +211,9 @@ already know how to share items using bookmarklets or browser extensions. No need to plague my web site
with their nasty buttons, badges, ribbons & alike.</li> <li>No ads! I have a full-time job, my site uses free and open source technologies, and I write because I like to do so, not to make money. And I can afford the few bucks necessary to pay the hosting provider. - That’s why there are NO <span class="caps">ADS</span> on H3RALD.com anymore <sup>(*)</sup>.</li> + That's why there are NO <span class="caps">ADS</span> on H3RALD.com anymore <sup>(*)</sup>.</li> </ul> - <p><sup>(*)</sup>: For now, that is. Then I’ll probably change my mind, but until then enjoy the true + <p><sup>(*)</sup>: For now, that is. Then I'll probably change my mind, but until then enjoy the true no-ads experience!</p> </section>
@@ -5,25 +5,42 @@ timestamp: 1182515880
tags: "website|rails" ----- <p>…or better, on <a href="http://www.rubyonrails.org">Rails</a>_. <br /> -Yep, this 7th (!) version of the H3RALD website is powered by the overly-popular Ruby web framework <em>and</em> by the <a href="http://www.typosphere.org">Typo</a> blogging platform.</p> -<p>Nope, I decided not to re-develop my website entirely from scratch this time, although I was tempted to, for three simple reasons:</p> + Yep, this 7th (!) version of the H3RALD website is powered by the overly-popular Ruby web framework <em>and</em> by + the <a href="http://www.typosphere.org">Typo</a> blogging platform.</p> +<p>Nope, I decided not to re-develop my website entirely from scratch this time, although I was tempted to, for three + simple reasons:</p> <ol> - <li>My “coding time” is close to non-existent nowadays, and even with a framework like Rails re-developing a site from scratch would have taken at least <em>some</em> time, which at the moment I don’t have.</li> - <li>Typo is a fairly robust and feature-rich blogging platform, and after learning a little bit of Rails I could customize it to my needs straight away. URLs didn’t break thanks to Rails’ routing system, migration was easy enough, and developing the missing bits (like a rudimentary BBCode parser and a TextLinkAds sidebar) wasn’t hard at all.</li> + <li>My “coding time” is close to non-existent nowadays, and even with a framework like Rails + re-developing a site from scratch would have taken at least <em>some</em> time, which at the moment I don't + have.</li> + <li>Typo is a fairly robust and feature-rich blogging platform, and after learning a little bit of Rails I could + customize it to my needs straight away. URLs didn't break thanks to Rails' routing system, migration was easy + enough, and developing the missing bits (like a rudimentary BBCode parser and a TextLinkAds sidebar) wasn't hard + at all.</li> <li>I wanted to take a break from my site, not code it again.<br /> -<em>Fair enough, but why the new site anyway?</em></li> + <em>Fair enough, but why the new site anyway?</em> + </li> </ol> -<p>Again, there’s more than one answer:</p> +<p>Again, there's more than one answer:</p> <ul> - <li>Lately I didn’t feel comfortable sporting a Cake-powered website \- that makes sense, to an extent, right? Good.</li> - <li>I got fed up with spam. I wanted to re-open comments but I didn’t want to implement spam protection for the old site.</li> - <li>To be totally honest, I got fed up with <span class="caps">PHP</span> itself as well, after trying out Ruby for a few days and ordering and reading the 2nd edition of the <a href="http://www.pragmaticprogrammer.com/titles/ruby/">PickAxe</a>, which I <em>highly</em> recommend.</li> + <li>Lately I didn't feel comfortable sporting a Cake-powered website \- that makes sense, to an extent, right? Good. + </li> + <li>I got fed up with spam. I wanted to re-open comments but I didn't want to implement spam protection for the old + site.</li> + <li>To be totally honest, I got fed up with <span class="caps">PHP</span> itself as well, after trying out Ruby for + a few days and ordering and reading the 2nd edition of the <a + href="http://www.pragmaticprogrammer.com/titles/ruby/">PickAxe</a>, which I <em>highly</em> recommend.</li> </ul> -<p>…But let’s say something about what’s new in this new release, shall we?</p> +<p>…But let's say something about what's new in this new release, shall we?</p> <ul> - <li>A new, black (and red) theme. Something completely different. Probably not that good, but quite useful: Every day I check my site from my laptop at work, and if it looks like a big black blob I know that I have to regulate my monitor. I showed it to my parents on their old monitor, and they realized that perhaps it’s time to buy an <span class="caps">LCD</span> one…</li> - <li>Comments, trackbacks, desktop client support, theme support, a cool admin area and everything else Typo offers.</li> - <li>Full <span class="caps">RSS</span> feeds. With no ads. So you don’t need to see this black blob anymore, if you really don’t like it.</li> - <li>No projects or bookmarks, just my blog and my articles. Let’s keep it simple.</li> + <li>A new, black (and red) theme. Something completely different. Probably not that good, but quite useful: Every + day I check my site from my laptop at work, and if it looks like a big black blob I know that I have to regulate + my monitor. I showed it to my parents on their old monitor, and they realized that perhaps it's time to buy an + <span class="caps">LCD</span> one…</li> + <li>Comments, trackbacks, desktop client support, theme support, a cool admin area and everything else Typo offers. + </li> + <li>Full <span class="caps">RSS</span> feeds. With no ads. So you don't need to see this black blob anymore, if you + really don't like it.</li> + <li>No projects or bookmarks, just my blog and my articles. Let's keep it simple.</li> </ul> <p>More to come…</p>
@@ -5,11 +5,16 @@ timestamp: 1258029269
tags: "programming|vim" ----- <p style="float:right;"><img src="/images/herald.vim/0.2.1_release.png" alt="" /></p> -<p><span class="dropcap">I</span> just updated the <a href="/herald-vim-color-scheme/">Herald Vim color scheme</a> to improve the readability of delimiters and search results.</p> -<p>Delimiters are now red (the same color as operators) instead of yellow, so that you can tell the start and end of a string or regular expression more easily. Additionally, search results are no longer highlighted with black text on an orange background for two reasons:</p> +<p><span class="dropcap">I</span> just updated the <a href="/herald-vim-color-scheme/">Herald Vim color scheme</a> to + improve the readability of delimiters and search results.</p> +<p>Delimiters are now red (the same color as operators) instead of yellow, so that you can tell the start and end of a + string or regular expression more easily. Additionally, search results are no longer highlighted with black text on + an orange background for two reasons:</p> <ul> <li>the orange background is a bit too strong</li> - <li>the black foreground causes letters to become <em>completely hidden</em> by the <em>cursorline</em> and <em>cursorcolumn</em></li> + <li>the black foreground causes letters to become <em>completely hidden</em> by the <em>cursorline</em> and + <em>cursorcolumn</em></li> </ul> <p>Search results now have a gray background and a yellow background, as shown in the screenshot on the right.</p> -<p>If you have any constructive suggestion on how to improve this color scheme, don’t hesitate to add a comment to this post!</p> +<p>If you have any constructive suggestion on how to improve this color scheme, don't hesitate to add a comment to this + post!</p>
@@ -6,33 +6,33 @@ popular: true
timestamp: 1245211860 tags: "programming|vim" ----- -<p>I use <a href="http://www.vim.org">Vim</a> a lot. It’s my editor of choice when I code (mainly in Ruby), and +<p>I use <a href="http://www.vim.org">Vim</a> a lot. It's my editor of choice when I code (mainly in Ruby), and also when I write my blog post and articles (mainly in Textile).</p> -<p>One thing I always liked about Vim was it powerful syntax highlighting: there’s probably a syntax highlighting +<p>One thing I always liked about Vim was it powerful syntax highlighting: there's probably a syntax highlighting file for every programming language ever created, even the new ones (<a href="http://force7.de/nimrod/index.html">Nimrod</a>? Sure, <a href="http://www.vim.org/scripts/script.php?script_id=2632">here</a>!).</p> -<p>Furthermore, Vim allows you to create color schemes, and that’s surprisingly easy to do. Everything you need to +<p>Furthermore, Vim allows you to create color schemes, and that's surprisingly easy to do. Everything you need to do is in the <a href="http://vimdoc.sourceforge.net/htmldoc/syntax.html">docs</a>, but that may put you off, so you - can just start by editing an existing one — that’s what I did.h3. InfiniteRed Black</p> -<p>I’ve been using the <a href="http://blog.infinitered.com/entries/show/8">ir_black</a> color scheme for near - enough a year. It’s an excellent color scheme, recommended especially for writing Ruby code:</p> + can just start by editing an existing one — that's what I did.h3. InfiniteRed Black</p> +<p>I've been using the <a href="http://blog.infinitered.com/entries/show/8">ir_black</a> color scheme for near + enough a year. It's an excellent color scheme, recommended especially for writing Ruby code:</p> <p><img src="/images/herald.vim/ir_black_vim_example.png" alt="" /></p> <p>I honestly thought this was the best Vim color scheme until I discovered Moria…</p> <h3>Moria</h3> <p>Recently I switched to <a href="http://www.vim.org/scripts/script.php?script_id=1464">moria</a>, mainly because I - find it easier on the eyes. It’s a matter of taste, of course:</p> + find it easier on the eyes. It's a matter of taste, of course:</p> <p><img src="/images/herald.vim/moria_vim_example.png" alt="" /></p> -<p>The trick is in the background: it’s not completely black. Still, I didn’t quite like the colors, so I +<p>The trick is in the background: it's not completely black. Still, I didn't quite like the colors, so I decided to write my own…</p> <h3>Herald</h3> <p>Meet <strong> <a href="/files/herald.vim">herald.vim</a> </strong> (this is a direct link to the raw file, but you may also want to check my <a href="http://github.com/h3rald/stash/tree/master">stash</a> on GitHub or the <a href="http://www.vim.org/scripts/script.php?script_id=2684">script page</a> on Vim.org):</p> <p><img src="/images/herald.vim/herald_vim_example.png" alt="" /></p> -<p>To sum up, here’s the <em>features</em> offered by this new color scheme:</p> +<p>To sum up, here's the <em>features</em> offered by this new color scheme:</p> <ul> - <li>It’s easier to differentiate syntax elements; in particular reserved words like <code>if</code> or + <li>It's easier to differentiate syntax elements; in particular reserved words like <code>if</code> or <code>end</code>, constants (symbols) and identifiers (instance variables). </li> <li>Operators are highlighted and easier to notice.</li>
@@ -4,22 +4,22 @@ content-type: article
timestamp: 1191383580 tags: "ruby|review|books" ----- -<p>After reading the very first paragraph of Mr. Neighborly’s <a - href="http://www.humblelittlerubybook.com/">Humble Little Ruby Book</a> (<span class="caps">HLRB</span> for +<p>After reading the very first paragraph of Mr. Neighborly's <a href="http://www.humblelittlerubybook.com/">Humble + Little Ruby Book</a> (<span class="caps">HLRB</span> for short, from now on) it was very clear to me that it was going to be quite an unconventional read:</p> <blockquote> <p>“Yes, there is a Chapter 0. There is a little bit of introductory stuff we need to talk about before <br /> - we set you loose on Ruby. You wouldn’t want to get psyched about a new gadget, get it home, <br /> + we set you loose on Ruby. You wouldn't want to get psyched about a new gadget, get it home, <br /> and then figure out you need batteries, a grapefruit, and the ability to speak three languages to <br /> even open the box would you?”</p> </blockquote> -<p>That reminded me immediately of <a href="http://poignantguide.net/ruby/">Why’s Poignant Guide to Ruby</a>. - 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 +<p>That reminded me immediately of <a href="http://poignantguide.net/ruby/">Why's Poignant Guide to Ruby</a>. + 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 <span class="caps">HLRB</span>, just some very well made (although still pretty unconventional) diagrams like this one:</p> <p><img src="/images/hlrb_diagram.png" alt="" /></p> -<p>Got the picture? Good. Let’s move on…h3. Chapter 0: What’chu talkin’ ’bout, mister?</p> +<p>Got the picture? Good. Let's move on…h3. Chapter 0: What'chu talkin' 'bout, mister?</p> <p>Chapter 0 is like an introduction to the book <em>and</em> a place to put all the boring stuff you have to talk about in a book about a programming language:</p> <ul>@@ -34,34 +34,35 @@ <blockquote>
<p>“This section aims to introduce the syntactic sugar and linguistic misfortunes of Ruby in the <br /> quickest manner that will still allow for a full education on the subject.”</p> </blockquote> -<p>As the first two lines of this chapter say, it’s time to learn the basics of Ruby. You’ll be quickly +<p>As the first two lines of this chapter say, it's time to learn the basics of Ruby. You'll be quickly guided through strings, numbers, collections and variables. Every section with tons of code examples for your to - play with. You won’t find a full list of all the 876 methods of the String class, but you’ll certainly - learn the 10 most common ones at least (numbers are random, so no, don’t count them). <br /> + play with. You won't find a full list of all the 876 methods of the String class, but you'll certainly + learn the 10 most common ones at least (numbers are random, so no, don't count them). <br /> Sure, yes, right, whatever… <em>if you really want</em> you can skip this chapter too, but if you are already - a Ruby Guru there’s probably no need for you to read books about Ruby, right? Beginners need to read this - chapter. It’s compulsory, really, and pretty enjoyable, too.</p> + a Ruby Guru there's probably no need for you to read books about Ruby, right? Beginners need to read this + chapter. It's compulsory, really, and pretty enjoyable, too.</p> <h3>Chapter 2: Break it down now!</h3> <p>Or “learn how to segment your code” using methods, and… blocks & <code>Proc</code> objects! Gosh. Our poor newbies will probably have a heart attack if they never heard about blocks and closures before. I almost got scared myself, because this is normally regarded as a pretty tough topic. Despite, at page 25 of the book - you’ll have to face your fears and dive into it. You’ll survive, anyway.</p> + you'll have to face your fears and dive into it. You'll survive, anyway.</p> <p><strong>Purist Warning:</strong> Please be aware that sometimes the author may decide to use certain terms and construct which may not sound 100% right to your ears. Just move on, beginners will understand more things like <em>“Think of Proc objects as blocks that are pushed into variables.”</em> than anything else, - guaranteed.</p> -<p>After this section you’ll finally be introduced to Ruby classes. Now, this can piss someone off, no doubt. Ruby + guaranteed. +</p> +<p>After this section you'll finally be introduced to Ruby classes. Now, this can piss someone off, no doubt. Ruby is a <em>fully OO language</em>, so people <em>must</em> learn about classes before anything else. I must admit I - was a bit confused by the ordering of the topics at first, but if someone comes from a non-OO background he’ll + was a bit confused by the ordering of the topics at first, but if someone comes from a non-OO background he'll probably find this particular order more suitable. <br /> This section will cover class and object basics in Ruby like defining classes, instantiating objects, access - control, methods, attributes, scope, duck typing. Finally, you’ll briefly look into modules as well.</p> + control, methods, attributes, scope, duck typing. Finally, you'll briefly look into modules as well.</p> <h3>Chapter 3: Hustle and flow (control)</h3> <p>Finally, the author will deal with flow control. So things like <code>if</code>, <code>case</code>, conditional operators, loops and statement modifiers. In my opinion this section is truly excellent: it introduces all the control structures in a very simple and crystal clear way, often using flowcharts. A great chance even for absolute beginners to understand these basic but powerful concepts.<br /> - Towards the end of the chapter, you’ll also learn how exceptions work: a clever way to tell people “you + Towards the end of the chapter, you'll also learn how exceptions work: a clever way to tell people “you have to learn how to use exceptions from the very beginning”. Really nicely done.</p> <h3>Chapter 4: The system beneath…</h3> <p>Here comes the juicy stuff. Up to now you learnt the usual boring things you need to know when learning a new@@ -80,11 +81,11 @@ <h3>Chapter 5: Looking beyond home</h3>
<p>More juicy stuff. If you are looking for a tutorial to learn the basics about networking, from from sockets to <span class="caps">FTP</span> to <span class="caps">POP</span> and web services, look no further: this chapter does a very remarkable job introducing various network-related libraries, with the usual well written code examples.<br /> - If that’s still not enough, you’ll also have a chance to explore the wonderful world of distributed Ruby - and of databases. Granted, this chapter won’t tell you about the 1567 methods available in ActiveRecord (buy a + If that's still not enough, you'll also have a chance to explore the wonderful world of distributed Ruby + and of databases. Granted, this chapter won't tell you about the 1567 methods available in ActiveRecord (buy a copy of <a href="http://www.pragmaticprogrammer.com/title/rails/">Agile Web Development with Rails</a> for this), but will tell you enough to get started.</p> -<h3>Chapter 6: It’s a Library!</h3> +<h3>Chapter 6: It's a Library!</h3> <p>The final chapter will go more in depth on some more advanced topics, like:</p> <ul> <li>Strings</li>@@ -98,18 +99,19 @@ <h3>The Appendices</h3>
<p>Last but not least, a <span class="caps">HUGE</span> collection of links and resources to learn more about Ruby, and a quick digression on C/C++ extensions… not much, but enough to wet your appetite.</p> <h3>The bottom line</h3> -<p><span class="caps">HLRB</span> is not <em>the only</em> book you need to read about Ruby. It’s better to make - this clear otherwise I’ll be hunted forever by Dave Thomas, Chad Fowler, <span class="caps">DHH</span> and all +<p><span class="caps">HLRB</span> is not <em>the only</em> book you need to read about Ruby. It's better to make + this clear otherwise I'll be hunted forever by Dave Thomas, Chad Fowler, <span class="caps">DHH</span> and all the other excellent Ruby hackers who also wrote very successful books (which I bought as well). <span class="caps">HLRB</span> is <span class="caps">LITTLE</span> and <span class="caps">HUMBLE</span>, after all: it - doesn’t aim at becoming the official Ruby Bible anytime soon (although a bird told me it may get updated - <em>someday</em> and include more stuff), but it is still a worthwhile reading.</p> + doesn't aim at becoming the official Ruby Bible anytime soon (although a bird told me it may get updated + <em>someday</em> and include more stuff), but it is still a worthwhile reading. +</p> <p>And of course I came to the very end of this review without mentioning the most important thing: this little wonder is free. All you need is to register to InfoQ (for free) and grab your <a href="http://www.infoq.com/minibooks/ruby/">free copy</a>. If you want you can buy a printed copy for just $9.95, if you feel in a good mood (please do).</p> <p>The most obvious strengths of this book are the abundance of code examples and very useful working snippets, and the unconventional style which makes it very readable and not boring at all. If I were to name some of its weaknesses - (but only if you force me to), I’d say some parts should be expanded and more info on other libraries should + (but only if you force me to), I'd say some parts should be expanded and more info on other libraries should be provided… but you never know what the future will bring us!</p> <p>Well done, <a href="http://www.jeremymcanally.com/">Mr. Neighborly</a>!</p>
@@ -5,10 +5,10 @@ timestamp: 1240530840
tags: "personal" ----- <p><img src="/images/sessarego/outside.jpg" style="float:left; border: 1px solid #B80000; margin-right: 10px;" /></p> -<p>Part of my family house in the countryside is now available for rent! It’s located in the small village of <a +<p>Part of my family house in the countryside is now available for rent! It's located in the small village of <a href="http://italia.indettaglio.it/eng/liguria/genova_bogliasco_sessarego.html">Sessarego</a>, a few minutes away from the coast, on the Italian Riviera.<br /> - We’ve been living there recently for 6 months when I started working and then moved to the city in order to be + We've been living there recently for 6 months when I started working and then moved to the city in order to be nearer to my workplace, but we still go there on holidays or on the odd week end, sometimes.</p> <p>The house is fully furnished, it has been recently renovated, and offers all major comforts and services (utilities, TV, internet, phone, etc.). It can be ideal as a holiday house for writers, programmers, or anyone who would like to
@@ -4,12 +4,17 @@ content-type: article
timestamp: 1211101440 tags: "personal|review|programming" ----- -<p>I’ve been neglecting my blog, I know. The truth is that I’m quite busy in this period: I have more responsibilities in my daily full-time jobs, my lunch breaks are getting shorter and I don’t have much free time. At any rate, here’s what’s going on:</p> +<p>I've been neglecting my blog, I know. The truth is that I'm quite busy in this period: I have more responsibilities + in my daily full-time jobs, my lunch breaks are getting shorter and I don't have much free time. At any rate, here's + what's going on:</p> <ul> - <li>I’m writing a new article for an online magazine (assuming I’m gonna finish it)</li> + <li>I'm writing a new article for an online magazine (assuming I'm gonna finish it)</li> <li>I signed up for a freelance technical reviewing job, for a new Ruby book which will come out soon-ish</li> - <li>I’m getting ready to finally visit Rome (again), this time with my fiancée, for our fifth anniversary.</li> - <li>I’m slowly preparing a version 1.0 of <a href="http://code.google.com/p/redbook/">RedBook</a>, which involves quite a lot of refactoring (and hopefully better documentation and tests).</li> - <li>I’m trying to learn a little bit of Haskell: it seems to be one of the few non .<span class="caps">NET</span> languages able to produce standalone .exe files, nowadays…</li> + <li>I'm getting ready to finally visit Rome (again), this time with my fiancée, for our fifth anniversary.</li> + <li>I'm slowly preparing a version 1.0 of <a href="http://code.google.com/p/redbook/">RedBook</a>, which involves + quite a lot of refactoring (and hopefully better documentation and tests).</li> + <li>I'm trying to learn a little bit of Haskell: it seems to be one of the few non .<span class="caps">NET</span> + languages able to produce standalone .exe files, nowadays…</li> </ul> -<p>Last but not least, I now decided to use <a href="http://twitter.com">Twitter</a> regularly, so you can follow me <a href="http://twitter.com/h3rald/">there</a>, if you wish!</p> +<p>Last but not least, I now decided to use <a href="http://twitter.com">Twitter</a> regularly, so you can follow me <a + href="http://twitter.com/h3rald/">there</a>, if you wish!</p>
@@ -7,7 +7,7 @@ timestamp: 1156307004
tags: "travelling" ----- <p>This summer I finally had a chance to spend <em>a whole week</em> in London. The city itself was not new to me, since - I visited it 6 times before this one, but this summer was different, in a word: Roxy (my fiancee)’s brother + I visited it 6 times before this one, but this summer was different, in a word: Roxy (my fiancee)'s brother Caspar was happy to host us at his place, for free.<a name="top"></a></p> <h3>Table of Contents</h3> <ul>@@ -38,18 +38,18 @@ </ul>
<p><a name="pre"></a> <a href="#top">[Back to Top]</a></p> <h3>Preamble</h3> <p>This summer I finally had a chance to spend <em>a whole week</em> in London. The city itself was not new to me, since - I visited it 6 times before this one, but this summer was different, in a word: Roxy (my fiancee)’s brother + I visited it 6 times before this one, but this summer was different, in a word: Roxy (my fiancee)'s brother Caspar was happy to host us at his place, for free.</p> -<p>Although we obviously had to pay for our flight, transport, food, etc. etc., we didn’t have to pay for +<p>Although we obviously had to pay for our flight, transport, food, etc. etc., we didn't have to pay for accommodation, which was indeed quite an achievement, considering the prices of hotels and flats in London. The bad news is that this Guide, although already lacking a lot of information (try describing everything you can do in London in a single, not-too-boring article), will not contain any particular hints and tips on how to find accommodation in one of the most interesting cities in Europe – unless of course you get to stay at - Caspar’s place.</p> + Caspar's place.</p> <p><a name="trans"></a> <a href="#top">[Back to Top]</a></p> <h3>Transportation</h3> -<p>Getting there is relatively easy and if you come from Europe there’s a quick answer to the universal - traveller’s question:</p> +<p>Getting there is relatively easy and if you come from Europe there's a quick answer to the universal + traveller's question:</p> <p><em>“Is there any cheap, reliable and on-time airline?”</em></p> <p><a name="planes"></a> <a href="#top">[Back to Top]</a></p> <h4>Planes</h4>@@ -57,14 +57,15 @@ <p>Yes, there is. Apparently some Irish man thought he could make millions by buying loads of Boeing 737-800 and selling
cheap flight tickets to everyone going to or from London, and he actually did. <a href="http://www.ryanair.com">RyanAir</a> is the answer: a cheap-but-reliable airline which will make you arrive even early than you expected by paying tickets as low as 1p (plus 20-30 Euro airport taxes). Unfortunately they - don’t provide full meals aboard, they don’t have any cutlery on board for you to steal, unlike <a + don't provide full meals aboard, they don't have any cutlery on board for you to steal, unlike <a href="http://www.britishairways.com/travel/globalgateway.jsp/global/public/en">BA</a><em>, and flight attendants are not hot either, unlike <a href="http://www.britishairways.com/travel/globalgateway.jsp/global/public/en">BA</a></em>, but since - I’m happily engaged and Roxanne doesn’t fancy me stealing BA cutlery it’s better this way indeed. + I'm happily engaged and Roxanne doesn't fancy me stealing BA cutlery it's better this way indeed. <br /> Unfortunately we booked only a month before and thus the flight for both of us (return) was about 80 Euro in the - end, but still not bad.</p> + end, but still not bad. +</p> <p>Luggage check? Not bad, unless you plan to arrive or depart right after an unfoiled bomb plot like I did: I had to take off my shoes, got checked everywhere, they emptied out my hand luggage, turned on and off my laptop and confiscated my gel-ink pen. Way to go!</p>@@ -72,12 +73,12 @@ <p><a name="trains"></a> <a href="#top">[Back to Top]</a></p>
<h4>Trains, coaches and cabs</h4> <p style="float:left;"><img src="/images/pictures/london/cab.jpg" alt="" /></p> <p>The next question of the London newbie arriving in Stansted airport is:</p> -<p><em>“Cool, now I’m in the middle of nowhere in England, where’s London then?”</em></p> +<p><em>“Cool, now I'm in the middle of nowhere in England, where's London then?”</em></p> <p>Nice innit? They sell you a cheap flight and then it seems you still have a 45-minutes journey to get to the actual city, and this is possible – apparently – only through the Stansted Express, the <em>fastest</em> way to get to London from Stansted. Dear as hell (about 25 <span class="caps">ENGLISH</span> <span class="caps">POUNDS</span> return, per head!). <br /> - Luckily there’s an alternative in the form of an endless amount coaches going from Stansted to London and + Luckily there's an alternative in the form of an endless amount coaches going from Stansted to London and vice-versa every now and then. I went with <a href="http://www.terravision.it/">Terravision</a> but there are many others. Significantly cheaper (34 Euro for two people return!).<br /> The Stansted Express is the first example of how trains in the UK can be a lot dearer than you expect, especially if@@ -99,15 +100,15 @@ the night should not cost more than 6 pounds…</p>
<p><a name="tube"></a> <a href="#top">[Back to Top]</a></p> <h4>The tube and buses</h4> <p>Here are some tips for smooth travalling via the underground or buses:<br /> - 1. Do not use a bus unless you can’t use the Tube for some particular reason (e.g. you need to go to Zone 3 or + 1. Do not use a bus unless you can't use the Tube for some particular reason (e.g. you need to go to Zone 3 or 4 and your Oyster card can be used only in zone 1 and 2)<br /> 2. Do not catch the Circle Line, always try a combination of two or more (e.g. District and Central) instead, because delays are frequent<br /> - 3. Get down at Leicester Square if you’re going to Covent Garden: it’s just 300 metres away and Covent + 3. Get down at Leicester Square if you're going to Covent Garden: it's just 300 metres away and Covent Garden station is small and packed<br /> - 4. Always check whether the line you’re catching is marked with “Good Service”, try another route + 4. Always check whether the line you're catching is marked with “Good Service”, try another route if there delays are expected<br /> - 5. Keep right on escalators – there’s always some lunatic running up/down on the left side, from time to + 5. Keep right on escalators – there's always some lunatic running up/down on the left side, from time to time, and trust me, he <span class="caps">WILL</span> mind being stopped for no valid reason<br /> 6. Mind the gap! (Especially at Bank station)<br /> 7. Mind the sweaty guys wearing suite and holding a briefcase, at peek hours, they can be deadly especially on@@ -118,21 +119,21 @@ <p>I already noticed this during the previous visits: in London you can eat everywhere. Quite literally, both in the
city centre and surrounding areas. If you can – and also if you feel brave enough to try at random – the areas surrounding the city centre are probably cheaper than the 4-million different food chains providing any kind of meal near Oxford Street & Co. and possibly – arguably – more tasty.</p> -<p>If you dare to venture in the land of the Turkish/Bangladesh/Indian food shops you’re more than welcome to do - so, but be prepared to a potentially long trial-and-error process: in the end you’ll eventually find the right +<p>If you dare to venture in the land of the Turkish/Bangladesh/Indian food shops you're more than welcome to do + so, but be prepared to a potentially long trial-and-error process: in the end you'll eventually find the right one. Caspar recommended a particular one, and the <a href="http://www.astray.com/recipes/?show=Humus%20sandwich%20spread">humus sandwitch</a> was really great. Doner - Kebab? Roxy insisted with the rumors they use roadkill for those (she’s vegetarian anyway) so she didn’t + Kebab? Roxy insisted with the rumors they use roadkill for those (she's vegetarian anyway) so she didn't let me have one, aww.</p> <p><a name="rubbish"></a> <a href="#top">[Back to Top]</a></p> <h4>Rubbish Food</h4> <p>I recently came across an interesting <a href="http://www.princeton.edu/%7Eina/infographics/starbucks.html">image</a> which gave me a better picture of how horrendously sick the world has become when it comes to rubbish food. <br /> - Yes, <a href="http://www.mcdonalds.com/">McDonald’s</a>, <a href="http://www.starbucks.com/">Starbucks</a> + Yes, <a href="http://www.mcdonalds.com/">McDonald's</a>, <a href="http://www.starbucks.com/">Starbucks</a> & their nasty friends (<a href="http://www.pizzahut.com/">Pizza Hut</a>, <a href="http://www.kfc.com/"><span class="caps">KFC</span></a>, <a href="http://www.bk.com/">Burger King</a>…) are still there making millions at every corner, in London as well. Well, not quite: I noticed they were less last time, and apart from a - few kids fretting for their <em>Happy Meal</em>, they weren’t so packed. I was pleased to notice that a load + few kids fretting for their <em>Happy Meal</em>, they weren't so packed. I was pleased to notice that a load of new-ish healthier alternative are now available (see next section).</p> <p><a name="healthy"></a> <a href="#top">[Back to Top]</a></p> <h4>Healthy Food</h4>@@ -146,12 +147,12 @@ believe</a> in the importance of healthy food and fight a silent – but effective – quest against
aforementioned Rubbish Food Giants.</p> <p>bq.<br /> “Pret operates a bit like a restaurant. Every Pret has its own kitchen (except for one or two of the tiny - ones). You won’t find ‘sell by’ dates on our fresh sandwiches and salads. We don’t sell - ‘factory’ stuff. We offer our food to charity at the end of each day rather than keep it over.” + ones). You won't find ‘sell by' dates on our fresh sandwiches and salads. We don't sell + ‘factory' stuff. We offer our food to charity at the end of each day rather than keep it over.” </p> <p>Sounds like a good plan. The food is indeed very nice and tasty and they even <em>apologize</em> for charging <span class="caps">VAT</span> when eating in. A carefully-thought marketing campaign or the just plain simple truth - (Wot!)? Only time will tell, let’s hope for the best.<br /> + (Wot!)? Only time will tell, let's hope for the best.<br /> Another example of healthy food around London? Well, real, tasty <a href="http://www.westcornwallpasty.co.uk/flash.html">Cornish pasties</a> can be bought for a few quid around in the biggest stations and streets, for example. Freshly baked in Cornwall, and brought all over England the same day@@ -165,12 +166,12 @@ <p><a name="brick"></a> <a href="#top">[Back to Top]</a></p>
<h4>Brick Lane</h4> <p><em>“Come in my restaurant… good food, cheap…”</em><br /> “No.”<br /> - <em>“C’mon, I make a discount for you”</em><br /> + <em>“C'mon, I make a discount for you”</em><br /> “How much?”<br /> <em>“15% off”</em><br /> “No way mate, last time it was 25% with a free round of drinks!”<br /> - <em>“You came here before? Impossible, we don’t do 25% off, we do 20% off maximum”</em><br /> - “No, 25% off, it was 25% off, but doesn’t matter, I’ll go somewhere else…”<br /> + <em>“You came here before? Impossible, we don't do 25% off, we do 20% off maximum”</em><br /> + “No, 25% off, it was 25% off, but doesn't matter, I'll go somewhere else…”<br /> <em>“No wait, 20% off and free drinks, ok?”</em><br /> “25%”<br /> <em>“OK, 25% and free drinks, but you come in OK? Good food!”</em>@@ -185,17 +186,18 @@ dishes were absolutely fabulous. Price? 11 pounds per head for a filling (and spicy!) dinner.</p>
<p><a name="enter"></a> <a href="#top">[Back to Top]</a></p> <h3>Entertainment</h3> <p>So what can you do in London, other than meandering with the underground to get the most out of your Oyster card and - eat out every day? Well, you can have fun of course! There’s loads to do for every taste. This is an - <em>incomplete</em> guide, so I’ll just mention a few possibilities, but be aware that there’s much, - much more than this.</p> + eat out every day? Well, you can have fun of course! There's loads to do for every taste. This is an + <em>incomplete</em> guide, so I'll just mention a few possibilities, but be aware that there's much, + much more than this. +</p> <p><a name="club"></a> <a href="#top">[Back to Top]</a></p> <h4>Clubbing</h4> <p>Each weekend, the following equation holds, for the average Londoner aged 20-30 at least:</p> <p><code>100 pounds + Club + Friends = Loads of booze + Fun + Terrible hangover and amnesia the day after</code></p> -<p>That’s basically what the traditional Londoners (or maybe we shall generalise to all of England…) do - every saturday night: they get trashed. Why? It’s not clever, it’s not good… but it’s bloody +<p>That's basically what the traditional Londoners (or maybe we shall generalise to all of England…) do + every saturday night: they get trashed. Why? It's not clever, it's not good… but it's bloody good fun!<br /> - Clubs, pubs and bars are the best place for this kind of activity: they are comfortable, there’s normally cool + Clubs, pubs and bars are the best place for this kind of activity: they are comfortable, there's normally cool music on, air conditioning, totally hyper staff, and a huge bouncer too! <br /> We went to <a href="http://www.ditchbar.com/">The Ditch</a>, a recently renovated place in Shoreditch (obviously). I must say I really liked the environment more than any club in Italy:</p>@@ -208,60 +210,60 @@ <li>A competent bouncer who kindly reminded us to “watch over” one of our friends, after she suddenly
ordered four Vodka-RedBull at once…</li> </ul> <p>No wonders why Caspar & his friends carefully picked this place as their ideal candidate for their own upcoming - DJ mini-event in November: it’s an ideal place to spend your night.</p> + DJ mini-event in November: it's an ideal place to spend your night.</p> <p>Pity that English blokes (and birds too!) get way too trashed in the end: I reckon if you could place a single - half-sober, decent-looking Italian guy in a club like that, he’d have pulled almost all the (decent-looking) - girls available by the end of the night. I’ll definetely recommend some of my <em>free</em> (not as in + half-sober, decent-looking Italian guy in a club like that, he'd have pulled almost all the (decent-looking) + girls available by the end of the night. I'll definetely recommend some of my <em>free</em> (not as in software) friends to go over to London next summer.</p> <p><a name="museums"></a> <a href="#top">[Back to Top]</a></p> <h4>Museums</h4> -<p>Enough clubbing and equally shallow activities, let’s focus on culture, at once!<br /> +<p>Enough clubbing and equally shallow activities, let's focus on culture, at once!<br /> London is the best city in Europe (OK, <em>followed</em> by Paris) for museums, and the best thing is that they are - (nearly) all free. This time we didn’t go to the <a href="http://www.thebritishmuseum.ac.uk/">National + (nearly) all free. This time we didn't go to the <a href="http://www.thebritishmuseum.ac.uk/">National Gallery</a>, which hosts one of the most outstanding painting galleries in all over the world, because we already visited it too many times, so we went straight for the <a href="http://www.thebritishmuseum.ac.uk/">British Museum</a>. I originally went there a few years ago, and I forgot what was in it, exactly, and yes, I was amazed and perplexed at the same time:</p> <p style="float:left;"><img src="/images/pictures/london/rosetta.jpg" alt="" /></p> -<p>I was amazed at the amount of stuff those British folks <em>nicked</em> from all over the world: I’m not +<p>I was amazed at the amount of stuff those British folks <em>nicked</em> from all over the world: I'm not talking about a few mummies from Egypt like we did in for our mini Egyptian museum in Turin, but rather stuff like the original sarcophagus of Cleopatra (& others), the Rosetta Stone, the Ur Standard, whole monuments from Greece, gargantuan gateways from some Assirian city, and <em><span class="caps">ALL</span> <span class="caps">THE</span> <span class="caps">SCULPTURE</span> <span class="caps">DECORATIONS</span> OF - ATHEN’S <span class="caps">PARTHENON</span>!</em> That was shocking really, but after all it was Napoleon + ATHEN'S <span class="caps">PARTHENON</span>!</em> That was shocking really, but after all it was Napoleon who stole the Monna Lisa from us. Damn the French. (No discrimination intended, please mind the sarcasm)</p> -<p>The <a href="http://www.tate.org.uk/modern/">Tate Modern</a> was impressive as well for a few Dali’s and - Kandinski’s paintings etc. etc., but I don’t think it can ever be as breath-taking as the other ones. I - certainly don’t understand certain kinds of modern art, but I can’t understand how a random guy could +<p>The <a href="http://www.tate.org.uk/modern/">Tate Modern</a> was impressive as well for a few Dali's and + Kandinski's paintings etc. etc., but I don't think it can ever be as breath-taking as the other ones. I + certainly don't understand certain kinds of modern art, but I can't understand how a random guy could get loads of money and ovation for the critics for putting a few basket-balls in a glass box. Clever.</p> <p style="float:right;"><img src="/images/pictures/london/nh.jpg" alt="" /></p> -<p>To conclude this brief and silly overview of London’s most remarkable museums, let’s say something about +<p>To conclude this brief and silly overview of London's most remarkable museums, let's say something about the <a href="http://www.nhm.ac.uk/">National History Museum</a>. <br /> First of all it must be noted that we have a decent equivalent in Genoa, so Roxy and I visited it not long prior to our departure for England. She liked it, and was impressed by the amount of stuffed animals on display, but she told me that the National History Museum in London was supposed to be <em>way better</em>.<br /> We both expected, especially judging from outside this enourmous building which was built for the purpose, big halls - full of taxidermist’s masterpieces, but alas, nothing like this at all. Yes, sure, there were a few stuffed + full of taxidermist's masterpieces, but alas, nothing like this at all. Yes, sure, there were a few stuffed animals here and there, and the minerals section was truly outstanding for completeness. The rest – in my very, very humble opinion – was a real insult to Science and to the dignity of the visitors over five years old.<br /> They insisted in “renovating” the interior of a marvellous building, making almost every room pitch black only to allow a kid in a million to press a button to highlight a five-lines explanation for a absolutely - pointless diagram. Well done. That was a real achievement, wasn’t it? I really don’t understand who + pointless diagram. Well done. That was a real achievement, wasn't it? I really don't understand who could ever conceive such an abomination: a formerly very respected museum turned into a poorly-designed theme park.<br /> OK, they probably wanted to involve younger generations into scientifical subjects through - “interactivity”, and that’s understandable – in theory. In practice though, there are a few - elements which weren’t obviously considered when developing such a subtly cunning marketing strategy:</p> + “interactivity”, and that's understandable – in theory. In practice though, there are a few + elements which weren't obviously considered when developing such a subtly cunning marketing strategy:</p> <ul> <li>The average kid up to 5 years old enjoys pushing buttons, listening to sounds and looking at easy-to-understand - (but <span class="caps">ARE</span> <span class="caps">THEY</span>?) pictures, but alas, can’t really + (but <span class="caps">ARE</span> <span class="caps">THEY</span>?) pictures, but alas, can't really bother to read, right?</li> <li>The average kid over 5 years old would probably like reading some explanation about some weird phenomena, but - alas, he really can’t be bothered to push button, move levers, etc. etc. only to highlight some text. Wake + alas, he really can't be bothered to push button, move levers, etc. etc. only to highlight some text. Wake up dude, we never heard of Computer Graphics? Animation? even Educational Software, maybe with things like touchscreens etc. These kids are from the <span class="caps">XXI</span> century, not from the seventies ffs! - Grow up (the museum’s managers, not the kids of course)!</li> + Grow up (the museum's managers, not the kids of course)!</li> <li>Instead of ruining an historical building, they could have devoted just a few rooms to kids, investing in something slightly more amazing than out-of-fashin “interactive” toys.</li> </ul>@@ -270,41 +272,42 @@ <p>And you know why? You know what are all these people queueing for? For a damn cheesy T-rex <a
href="http://science.howstuffworks.com/animatronic.htm">animatronic</a>! Yes, really! And no, not the one from Jurassic Park, but only its rather shitty English-made cousin. <br /> The funniest thing of the whole visit? They tell you to donate “at least” three quid for their wonders, - same as for the British Museum and the National Gallery. You know what? I’d rather give <em>thirty</em> quid + same as for the British Museum and the National Gallery. You know what? I'd rather give <em>thirty</em> quid to a random kid if he promise not to visit such “museum”…</p> <p><a name="theatres"></a> <a href="#top">[Back to Top]</a></p> <h4>Theatres</h4> -<p>Luckily London theatres are still great. Unfortunately I didn’t have a chance to go to a musical this time, but - I’ll definitely try to make it for one during my next visit. Adverts for the shows are all over the place, +<p>Luckily London theatres are still great. Unfortunately I didn't have a chance to go to a musical this time, but + I'll definitely try to make it for one during my next visit. Adverts for the shows are all over the place, from streets to underground stations, and there are truly a lot of places where it is possible to buy tickets at - discounted price while apparently buying full price tickets doesn’t seem to be possible…<br /> - Anyhow, not only we didn’t manage to go to a musical, but we also missed another theatrical performance by <a - href="http://www.imdb.com/name/nm0001772/">Patrick Stewart</a>, who, for those who don’t know, happens to - be one of the best Shakespearean actors alive… when he doesn’t <a + discounted price while apparently buying full price tickets doesn't seem to be possible…<br /> + Anyhow, not only we didn't manage to go to a musical, but we also missed another theatrical performance by <a + href="http://www.imdb.com/name/nm0001772/">Patrick Stewart</a>, who, for those who don't know, happens to + be one of the best Shakespearean actors alive… when he doesn't <a href="http://en.wikipedia.org/wiki/Star_Trek:_First_Contact">fight against the Borg</a> or <a href="http://en.wikipedia.org/wiki/X-Men_(film)">plays funny tricks on a wheelchair</a>, of course (cheesy, cheesy joke).</p> -<p>Nevertheless we <em>did</em> manage to go and see a play, namely Shakespeare’s Antony and Cleopatra at the <a +<p>Nevertheless we <em>did</em> manage to go and see a play, namely Shakespeare's Antony and Cleopatra at the <a href="http://www.shakespeares-globe.org/navigation/framesetNS.htm">Globe</a>. The Globe Theatre is an - almost-perfect reconstruction of the famous London Theatre where Shakespeare’s plays used to be acted. Like in + almost-perfect reconstruction of the famous London Theatre where Shakespeare's plays used to be acted. Like in the <span class="caps">XVII</span> century, you have two choices:</p> <p>a. Book your seat (26 pounds)<br /> b. Stand up on the ground, near the stage (5 pounds)</p> <p style="float:left;"><img src="/images/pictures/london/globe.jpg" alt="" /></p> -<p>We obviously went for option b, of course, since we didn’t fancy the idea of paying that much – although - it can be worthwhile. Only one thing to keep in mind: <em>always check the duration of the play you’re going - to see beforehand</em> – if you don’t like standing up for a long time, you have to go for option a. +<p>We obviously went for option b, of course, since we didn't fancy the idea of paying that much – although + it can be worthwhile. Only one thing to keep in mind: <em>always check the duration of the play you're going + to see beforehand</em> – if you don't like standing up for a long time, you have to go for option a. <br /> - We obviously <em>didn’t</em> check how long the play was going to be – although we could have imagined + We obviously <em>didn't</em> check how long the play was going to be – although we could have imagined it – so we ended up standing up for approx three hours (with a 15 minutes break). And you <em>have</em> to - stand up, you can’t sit on the stairs and neither on the floor, and the staff is ready to enforce this rule at + stand up, you can't sit on the stairs and neither on the floor, and the staff is ready to enforce this rule at all costs: a 70-year-old lady brought a folded chair and decided to sit on it, only to be <em>kindly reminded</em> - by the staff that it wasn’t allowed to do so. Go figure. <br /> - Anyhow, after all I must say it was the cheapest and the very best Shakespeare play I’ve ever been to so far, - although I must also say that most of the ones I’ve been to before were acted in (yikes!) Italian (yes, we do + by the staff that it wasn't allowed to do so. Go figure. <br /> + Anyhow, after all I must say it was the cheapest and the very best Shakespeare play I've ever been to so far, + although I must also say that most of the ones I've been to before were acted in (yikes!) Italian (yes, we do dub theatrical works, <em>as well</em>). A really, really good idea for students and half-broke youth who - shouldn’t be denied of the pleasure of watching Shakespeare’s masterpieces at the theatre. Please, keep - it up.</p> + shouldn't be denied of the pleasure of watching Shakespeare's masterpieces at the theatre. Please, keep + it up. +</p> <p><a name="shop"></a> <a href="#top">[Back to Top]</a></p> <h4>Shopping</h4> <p>Last but not least, I felt compelled to include a short section about <em>shopping</em> in London. The universal@@ -320,11 +323,11 @@ Biggest bookshop? Definitely <a
href="http://www.amazon.co.uk/exec/obidos/tg/stores/static/-/waterstones/waterstones-info/202-4070483-1661418">Waterstone</a> although the biggest bookshop in London (and in Europe) is the Waterstone one in Piccadilly, just round the corner.<br /> - <a href="http://www.harrods.com/Cultures/en-GB/homepageindex.htm">Harrods</a>? – it’s not far from + <a href="http://www.harrods.com/Cultures/en-GB/homepageindex.htm">Harrods</a>? – it's not far from there. </p> <p>What if you like more traditional and less glamorous shopping? <a href="http://www.coventgardenlife.com/">Covent Garden</a> and its whereabouts is probably the best choice, also for souvenirs.</p> -<p>Had enough yet? Well, yes, let’s call it a day for this article, but be aware that there’s much, <span - class="caps">MUCH</span> more to see and do in London than you can ever imagine. Unless you’re from the +<p>Had enough yet? Well, yes, let's call it a day for this article, but be aware that there's much, <span + class="caps">MUCH</span> more to see and do in London than you can ever imagine. Unless you're from the US, of course.</p>
@@ -4,22 +4,38 @@ content-type: article
timestamp: 1205128740 tags: "ruby|programming|opensource|rawline" ----- -<p>One of the many things I like about Ruby is its cross-platform nature: as a general rule, Ruby code runs on everything which supports Ruby, regardless of its architecture and platform (yes, there are quite a few exceptions, but let’s accept this generalization for now).</p> -<p>More specifically, I liked the fact that I could use the <a href="http://tiswww.case.edu/php/chet/readline/rltop.html"><span class="caps">GNU</span> Readline library</a> with Ruby seamlessly on both Windows and Linux.<br /> -Readline offers quite a lot of features which are useful for those people like me who enjoy creating command-line scripts, in a nutshell, it provides:</p> +<p>One of the many things I like about Ruby is its cross-platform nature: as a general rule, Ruby code runs on + everything which supports Ruby, regardless of its architecture and platform (yes, there are quite a few exceptions, + but let's accept this generalization for now).</p> +<p>More specifically, I liked the fact that I could use the <a + href="http://tiswww.case.edu/php/chet/readline/rltop.html"><span class="caps">GNU</span> Readline library</a> + with Ruby seamlessly on both Windows and Linux.<br /> + Readline offers quite a lot of features which are useful for those people like me who enjoy creating command-line + scripts, in a nutshell, it provides:</p> <ul> <li>File/Word completion</li> <li>History support</li> <li>Custom key bindings which can be modified via .inputrc</li> <li>Emacs and Vi edit modes</li> </ul> -<p>Basically it makes your command-line interface fast and powerful, and that’s not an overstatement. Ruby’s own <span class="caps">IRB</span> can be enhanced by enabling readline and completion, and it works great — at least on *nix systems.</p> -<p>For some weird reason, some people had problems with Readline on Windows: in particular, things get nasty when you start editing long lines. Text gets garbled, the cursor goes up one or two lines and doesn’t come back, and other similar leprechaun’s tricks, which are not that funny after a while.</p> -<p>Apparently there’s no alternative to Readline in the Ruby world. If you wan’t tab completion that’s it, you’re stuck. Would it be difficult to implement <em>some</em> of Readline functionality natively in Ruby? Maybe, but the problem is that for some reason the Ruby Standard Library doesn’t have low level methods to operate on keystrokes…</p> -<p>…but luckily, the <a href="http://highline.rubyforge.org/">HighLine</a> gem does! James Edward Gray II keeps pointing out here and here that HighLine’s own <code>get_character</code> method does just that: it returns the corresponding character code(s) right when a key is pressed, unlike <code>IO#gets()</code> which waits for the user to press <span class="caps">ENTER</span>.</p> +<p>Basically it makes your command-line interface fast and powerful, and that's not an overstatement. Ruby's own <span + class="caps">IRB</span> can be enhanced by enabling readline and completion, and it works great — at least + on *nix systems.</p> +<p>For some weird reason, some people had problems with Readline on Windows: in particular, things get nasty when you + start editing long lines. Text gets garbled, the cursor goes up one or two lines and doesn't come back, and other + similar leprechaun's tricks, which are not that funny after a while.</p> +<p>Apparently there's no alternative to Readline in the Ruby world. If you wan't tab completion that's it, you're stuck. + Would it be difficult to implement <em>some</em> of Readline functionality natively in Ruby? Maybe, but the problem + is that for some reason the Ruby Standard Library doesn't have low level methods to operate on keystrokes…</p> +<p>…but luckily, the <a href="http://highline.rubyforge.org/">HighLine</a> gem does! James Edward Gray II keeps + pointing out here and here that HighLine's own <code>get_character</code> method does just that: it returns the + corresponding character code(s) right when a key is pressed, unlike <code>IO#gets()</code> which waits for the user + to press <span class="caps">ENTER</span>.</p> <p>Believe it or not, that tiny method can do wonders…h2. Reverse-engineering escape codes</p> -<p>So here’s a little script which uses <code>get_character()</code> in an endless loop, diligently printing the character codes corresponding to a keystroke:</p> -<div class='ruby'><pre><code>#!/usr/local/bin/ruby -w +<p>So here's a little script which uses <code>get_character()</code> in an endless loop, diligently printing the + character codes corresponding to a keystroke:</p> +<div class='ruby'> + <pre><code>#!/usr/local/bin/ruby -w require 'rubygems' require 'highline/system_extensions'@@ -37,56 +53,87 @@ when ?\C-x: print "Exiting..."; exit;
else puts "#{char.chr} [#{char}] (hex: #{char.to_s(16)})"; end -end</code></pre></div><p>A pretty harmless little thing. Try to run it and press some keys, and see what you get:</p> +end</code></pre> +</div> +<p>A pretty harmless little thing. Try to run it and press some keys, and see what you get:</p> <div style="font-family: Monospace"> -<p>Press a key to view the corresponding <span class="caps">ASCII</span> code(s) (or <span class="caps">CTRL</span>-X to exit).</p> -<p>=> a <sup class="footnote" id="fnr96"><a href="#fn96">96</a></sup> (hex: 61)</p> -<p>=> 1 <sup class="footnote" id="fnr49"><a href="#fn49">49</a></sup> (hex: 31)</p> -<p>=> Q <sup class="footnote" id="fnr81"><a href="#fn81">81</a></sup> (hex: 51)</p> -<p>=> α <sup class="footnote" id="fnr224"><a href="#fn224">224</a></sup> (hex: e0)</p> -<p>=> K <sup class="footnote" id="fnr75"><a href="#fn75">75</a></sup> (hex: 4b)</p> + <p>Press a key to view the corresponding <span class="caps">ASCII</span> code(s) (or <span + class="caps">CTRL</span>-X to exit).</p> + <p>=> a <sup class="footnote" id="fnr96"><a href="#fn96">96</a></sup> (hex: 61)</p> + <p>=> 1 <sup class="footnote" id="fnr49"><a href="#fn49">49</a></sup> (hex: 31)</p> + <p>=> Q <sup class="footnote" id="fnr81"><a href="#fn81">81</a></sup> (hex: 51)</p> + <p>=> α <sup class="footnote" id="fnr224"><a href="#fn224">224</a></sup> (hex: e0)</p> + <p>=> K <sup class="footnote" id="fnr75"><a href="#fn75">75</a></sup> (hex: 4b)</p> </div> <p>Hang on, what are the last two codes? <em>A left arrow key on Windows</em>, apparently.</p> <p><strong>Welcome to the wonderful world of input escape sequences!</strong></p> -<p>To cut a long story short, both Windows and *nix system “terminals” translate special keystrokes into sequences of two or more codes. This applies to things like <span class="caps">DEL</span>, <span class="caps">INSERT</span>, arrows, etc. etc.<br /> -For some ideas, check out:</p> +<p>To cut a long story short, both Windows and *nix system “terminals” translate special keystrokes into + sequences of two or more codes. This applies to things like <span class="caps">DEL</span>, <span + class="caps">INSERT</span>, arrows, etc. etc.<br /> + For some ideas, check out:</p> <ul> - <li><a href="http://www.microsoft.com/whdc/device/input/Scancode.mspx">Windows Scancodes</a> (Thanks <a href="http://64.223.189.234/node/92">Huff</a>)</li> - <li><a href="http://www.connectrf.com/Documents/vt220.html">VT220 Terminal Input Sequences</a> (Thanks <a href="http://www.grayproductions.net/">James</a>)</li> + <li><a href="http://www.microsoft.com/whdc/device/input/Scancode.mspx">Windows Scancodes</a> (Thanks <a + href="http://64.223.189.234/node/92">Huff</a>)</li> + <li><a href="http://www.connectrf.com/Documents/vt220.html">VT220 Terminal Input Sequences</a> (Thanks <a + href="http://www.grayproductions.net/">James</a>)</li> </ul> -<p>Let’s now assume that we’re smart and we can write a program which can parse keystroke properly, including handling different input escape sequences according to the OS, what can it be used for?<br /> -Well:</p> +<p>Let's now assume that we're smart and we can write a program which can parse keystroke properly, including handling + different input escape sequences according to the OS, what can it be used for?<br /> + Well:</p> <ul> - <li>For normal characters, just print them back to the screen (<code>get_character</code> doesn’t print anything, it “steals” the keystroke)</li> + <li>For normal characters, just print them back to the screen (<code>get_character</code> doesn't print anything, it + “steals” the keystroke)</li> <li>For special characters, do something nice!</li> </ul> -<p>We could setup <span class="caps">TAB</span> to auto-complete the current word according to an array of matches, or bind the up arrow to load the last line typed in by the user, for example, that’s basically something Readline does, right?</p> +<p>We could setup <span class="caps">TAB</span> to auto-complete the current word according to an array of matches, or + bind the up arrow to load the last line typed in by the user, for example, that's basically something Readline does, + right?</p> <h2>RawLine: how it works and what it does</h2> -<p>I created a small project on RubyForge called <a href="http://rubyforge.org/projects/rawline/">RawLine</a> (not to be confused with RubyInline, a completely different thing altogether, sorry about that) to play around with the possibilities offered by the <code>get_character</code> method. The library is just a preview of things which can be done, but it’s already usable, provided that you’re brave enough to try it out, that is.</p> -<p>The basic idea behind RawLine is to be able to parse keystrokes properly on different platforms and re-bind them to a set of predefined, cross-platform actions or a user-defined code block.</p> +<p>I created a small project on RubyForge called <a href="http://rubyforge.org/projects/rawline/">RawLine</a> (not to be + confused with RubyInline, a completely different thing altogether, sorry about that) to play around with the + possibilities offered by the <code>get_character</code> method. The library is just a preview of things which can be + done, but it's already usable, provided that you're brave enough to try it out, that is.</p> +<p>The basic idea behind RawLine is to be able to parse keystrokes properly on different platforms and re-bind them to a + set of predefined, cross-platform actions or a user-defined code block.</p> <h3>Basic line-editing operations</h3> -<p>The first challenge was to re-invent the wheel, i.e. re-bind keystrokes to their typical actions: a left arrow moves the cursor left, a backspace deletes the character at the left of the cursor and so on. Yes, because <code>get_characters</code> gives you the right character codes at the price of <em>cancelling their normal effects</em>, which is a great thing, as you’ll soon find out.</p> -<p>Printing a character on the screen was one of the easiest tasks (at first). <code>IO#putc</code> does the job pretty well: it prints a character out.<br /> -What about moving left? Easy: print a non-descructive backspace (\b) and hope it is really not destructive. I did some tests and it seems to do as it’s told and move the cursor back by one position.</p> -<p>Moving right was a little trickier: the easiest thing I found was to re-print the character under the cursor, which will then move the cursor forward (as naive as it may seem, it does the job!). If there’s nothing under the cursor, then we must be at the end of the line and it shouldn’t move anywhere, so there we go.</p> -<p>What if I move left a bit and then start typing normal characters? Well, everything is rewritten of course: this will be our “character replace mode”. Unfortunately users don’t like this behavior that much, so what I did was this:</p> +<p>The first challenge was to re-invent the wheel, i.e. re-bind keystrokes to their typical actions: a left arrow moves + the cursor left, a backspace deletes the character at the left of the cursor and so on. Yes, because + <code>get_characters</code> gives you the right character codes at the price of <em>cancelling their normal + effects</em>, which is a great thing, as you'll soon find out.</p> +<p>Printing a character on the screen was one of the easiest tasks (at first). <code>IO#putc</code> does the job pretty + well: it prints a character out.<br /> + What about moving left? Easy: print a non-descructive backspace (\b) and hope it is really not destructive. I did + some tests and it seems to do as it's told and move the cursor back by one position.</p> +<p>Moving right was a little trickier: the easiest thing I found was to re-print the character under the cursor, which + will then move the cursor forward (as naive as it may seem, it does the job!). If there's nothing under the cursor, + then we must be at the end of the line and it shouldn't move anywhere, so there we go.</p> +<p>What if I move left a bit and then start typing normal characters? Well, everything is rewritten of course: this will + be our “character replace mode”. Unfortunately users don't like this behavior that much, so what I did + was this:</p> <ol> <li>Copy all characters from the one at the left of the cursor till the end of the line</li> <li>Print the character to be inserted</li> <li>Re-print the previously-copied characters</li> <li>Move the cursor back at the right place</li> </ol> -<p>Again, a primitive solution which works seamlessly on all platforms, and yes, it’s fast enough that you don’t notice the difference.</p> +<p>Again, a primitive solution which works seamlessly on all platforms, and yes, it's fast enough that you don't notice + the difference.</p> <p>As you may have guessed, this of course means that I always had to keep track of:</p> <ul> <li>The cursor position within the line</li> <li>The text currently printed to the screen</li> </ul> -<p>Backspace and delete were implemented in a similar way, you can figure it out yourself or look at the source code: I won’t bore you any further!</p> +<p>Backspace and delete were implemented in a similar way, you can figure it out yourself or look at the source code: I + won't bore you any further!</p> <h3>History management</h3> -<p>The next step was to implement a history for both the characters inputted by the user (to allow undoing and redoing operations) and for the whole lines. This was just an ordinary programming exercise: a simple buffer with some extra controls here and there, nothing too scary.</p> -<p>So every “modification” to the current line being typed is saved in a line history buffer and all the lines entered are saved in another history buffer. All is left is to allow users to navigate through these buffers back and forth. <br /> -Nothing impossible: all I had to do was keeping track of the current element of the history being retrieved and then overwrite the current line with a new line stored in the buffer? How’s this line overwriting done? Same old:</p> +<p>The next step was to implement a history for both the characters inputted by the user (to allow undoing and redoing + operations) and for the whole lines. This was just an ordinary programming exercise: a simple buffer with some extra + controls here and there, nothing too scary.</p> +<p>So every “modification” to the current line being typed is saved in a line history buffer and all the + lines entered are saved in another history buffer. All is left is to allow users to navigate through these buffers + back and forth. <br /> + Nothing impossible: all I had to do was keeping track of the current element of the history being retrieved and then + overwrite the current line with a new line stored in the buffer? How's this line overwriting done? Same old:</p> <ol> <li>Move the cursor to the beginnig of the line</li> <li>Print X spaces, where X is the line length, so that the characters are no longer displayed in the console</li>@@ -97,22 +144,35 @@ <p>Easy and naive, as usual. But again, it works well enough.</p>
<h3>Word completion</h3> <p>The other challange was word completion. The current implementation can be summarized as follows:</p> <ul> - <li>If <span class="caps">TAB</span> (or another character, if you wish) is pressed, call a user-defined <code>completion_proc</code> method which returns an array and show the first element of the array (in this case I actually used a cyclic RawLine::HistoryBuffer, not an array)</li> - <li>If the user presses <span class="caps">TAB</span> again, show another match, and so <em>ad infinitum</em> if the user keeps pressing <span class="caps">TAB</span>.</li> + <li>If <span class="caps">TAB</span> (or another character, if you wish) is pressed, call a user-defined + <code>completion_proc</code> method which returns an array and show the first element of the array (in this case + I actually used a cyclic RawLine::HistoryBuffer, not an array)</li> + <li>If the user presses <span class="caps">TAB</span> again, show another match, and so <em>ad infinitum</em> if the + user keeps pressing <span class="caps">TAB</span>.</li> <li>If the user presses another key, accept the default completion and move on.</li> </ul> <p>Obviously this means that:</p> <ul> - <li>RawLine has to keep track of the current “word”. A word is everything separated by a user defined <code>word_separator</code>, which can obviously modified at runtime, with care.</li> - <li>Regarding the <code>completion_proc</code>, typically you may want to return only the elements matching the word which is currently being written, so that’s given as default parameter for your proc. Exactly like with ReadLine, the only difference is that you can access other things like <em>the whole line</em> and <em>the whole history</em> in real time, which can be really handy at times!</li> + <li>RawLine has to keep track of the current “word”. A word is everything separated by a user defined + <code>word_separator</code>, which can obviously modified at runtime, with care.</li> + <li>Regarding the <code>completion_proc</code>, typically you may want to return only the elements matching the word + which is currently being written, so that's given as default parameter for your proc. Exactly like with + ReadLine, the only difference is that you can access other things like <em>the whole line</em> and <em>the whole + history</em> in real time, which can be really handy at times!</li> </ul> -<p>Here’s a simple example:</p> -<div class='ruby'><pre><code>editor.completion_proc = lambda do |word| +<p>Here's a simple example:</p> +<div class='ruby'> + <pre><code>editor.completion_proc = lambda do |word| if word ['select', 'update', 'delete', 'debug', 'destroy'].find_all { |e| e.match(/^#{Regexp.escape(word)}/) } end -end</code></pre></div><h3>Custom key bindings</h3> -<p>All these pretty things are obviously bound to some keystrokes. If the key corresponds to only one code, everything is fine, but because special keys typically aren’t so it was necessary to implement a mechanism to track an escape key (e.g. 0xE0 and 0 on Windows and \e on Linux) and listen to further characters, in case a known sequence is found. Anyhow, the final result of the method used for character binding is the following:</p> +end</code></pre> +</div> +<h3>Custom key bindings</h3> +<p>All these pretty things are obviously bound to some keystrokes. If the key corresponds to only one code, everything + is fine, but because special keys typically aren't so it was necessary to implement a mechanism to track an escape + key (e.g. 0xE0 and 0 on Windows and \e on Linux) and listen to further characters, in case a known sequence is + found. Anyhow, the final result of the method used for character binding is the following:</p> <p><code>bind(key, &block)</code></p> <p>Where key can be:</p> <ul>@@ -123,13 +183,17 @@ <li>A <code>Symbol</code> corresponding to a known escape sequence or key</li>
<li>A <code>Hash</code> to define a new key or escape sequences</li> </ul> <p>So, in the end you can do things like this:</p> -<div class='ruby'><pre><code>editor.bind(:left_arrow) { editor.move_left } +<div class='ruby'> + <pre><code>editor.bind(:left_arrow) { editor.move_left } editor.bind("\etest") { editor.overwrite_line("Test!!") } editor.bind(?\C-z) { editor.undo } -editor.bind([24]) { exit }</code></pre></div><p>Which, for Rubyists, it’s far sexier and more flexible than editing an .inputrc file.</p> +editor.bind([24]) { exit }</code></pre> +</div> +<p>Which, for Rubyists, it's far sexier and more flexible than editing an .inputrc file.</p> <h3>How do I use it, anyway?</h3> <p>A code example is better than a thousand words, right? So here you are:</p> -<div class='ruby'><pre><code>#!/usr/local/bin/ruby -w +<div class='ruby'> + <pre><code>#!/usr/local/bin/ruby -w require 'rubygems' require 'rawline'@@ -155,19 +219,31 @@ end
loop do puts "You typed: [#{editor.read("=> ").chomp!}]" -end</code></pre></div><p>This example can be found in examples/rawline_shell.rb within the RawLine source code or gem package.</p> +end</code></pre> +</div> +<p>This example can be found in examples/rawline_shell.rb within the RawLine source code or gem package.</p> <h2>Current status and availability</h2> -<p>I currently <a href="http://rubyforge.org/forum/forum.php?forum_id=22543">released</a> RawLine 0.1.0 on <a href="http://rubyforge.org/projects/rawline">SourceForge</a>, and it can be installed via:</p> +<p>I currently <a href="http://rubyforge.org/forum/forum.php?forum_id=22543">released</a> RawLine 0.1.0 on <a + href="http://rubyforge.org/projects/rawline">SourceForge</a>, and it can be installed via:</p> <p><code>gem install -r rawline</code></p> <p>The RDoc documentation is available <a href="http://rawline.rubyforge.org/">here</a>.</p> -<p>Feel free to try it out. First of all try the <code>rawline_shell.rb</code> example, and see if it works on your machine. If it doesn’t than maybe you try re-binding some keys (use <code>key_tester.rb</code> to “reverse-engineer” your terminal’s input escape sequences), and let me know!</p> +<p>Feel free to try it out. First of all try the <code>rawline_shell.rb</code> example, and see if it works on your + machine. If it doesn't than maybe you try re-binding some keys (use <code>key_tester.rb</code> to + “reverse-engineer” your terminal's input escape sequences), and let me know!</p> <p>Status information and limitations:</p> <ul> - <li>It has been tested on Windows (XP, using the usual command prompt) and on Linux (ZenWalk, using <span class="caps">XFCE</span> Terminal).</li> - <li>It can handle lines no longer than the maximum terminal width – 2. This is to ensure that the cursor never “falls down” to the next line.</li> - <li>On Windows, the cursor doesn’t blink immedialy when moving left, but it moves, don’t worry.</li> - <li>On Linux, you should really consider installing the <a href="http://raa.ruby-lang.org/project/ruby-termios/">Termios</a> library for a faster experience (otherwise <code>get_character</code> won’t parse characters correctly if you press and hold a key, and that, trust me, is a real mess!).</li> - <li>RawLine is very far from being a complete replacement for the ReadLine library, and it is currently in alpha stage.</li> + <li>It has been tested on Windows (XP, using the usual command prompt) and on Linux (ZenWalk, using <span + class="caps">XFCE</span> Terminal).</li> + <li>It can handle lines no longer than the maximum terminal width – 2. This is to ensure that the cursor never + “falls down” to the next line.</li> + <li>On Windows, the cursor doesn't blink immedialy when moving left, but it moves, don't worry.</li> + <li>On Linux, you should really consider installing the <a + href="http://raa.ruby-lang.org/project/ruby-termios/">Termios</a> library for a faster experience (otherwise + <code>get_character</code> won't parse characters correctly if you press and hold a key, and that, trust me, is + a real mess!).</li> + <li>RawLine is very far from being a complete replacement for the ReadLine library, and it is currently in alpha + stage.</li> <li>Release 0.1.0 has been created after 2 weeks of sporadic coding during lunch breaks and week-ends.</li> </ul> -<p>For any ideas on where to go from here, comments and feedback, just reply below or send an email to my usual email address.</p> +<p>For any ideas on where to go from here, comments and feedback, just reply below or send an email to my usual email + address.</p>
@@ -4,8 +4,11 @@ content-type: article
timestamp: 1206595800 tags: "ruby|programming|opensource|rawline" ----- -<p>I’ve been kindly asked by the lead developer of <a href="http://www.zenspider.com/ZSS/Products/RubyInline/">RubyInLine</a> to change the name of my <a href="http://rubyforge.org/projects/inline/">InLine</a> project, due to potential confusion and conflicts.</p> -<p>This makes sense, and I’m ready to change the name of my project, although I’m not that good at choosing original and <em>smart</em> names, so well, any suggestion is more than welcome!</p> +<p>I've been kindly asked by the lead developer of <a + href="http://www.zenspider.com/ZSS/Products/RubyInline/">RubyInLine</a> to change the name of my <a + href="http://rubyforge.org/projects/inline/">InLine</a> project, due to potential confusion and conflicts.</p> +<p>This makes sense, and I'm ready to change the name of my project, although I'm not that good at choosing original and + <em>smart</em> names, so well, any suggestion is more than welcome!</p> <p>I was thinking of something like:</p> <ul> <li>RawLine</li>@@ -14,5 +17,7 @@ <li>RawInput</li>
<li>RubyInput</li> <li>RubyLine</li> </ul> -<p>I personally think that <strong>RawLine</strong> is probably the best option, but please, if have any better idea just speak up!</p> -<p>P.S.: “RedLine” is taken, unfortunately, otherwise it would have been my first choice since the beginning.</p> +<p>I personally think that <strong>RawLine</strong> is probably the best option, but please, if have any better idea + just speak up!</p> +<p>P.S.: “RedLine” is taken, unfortunately, otherwise it would have been my first choice since the + beginning.</p>
@@ -4,48 +4,49 @@ content-type: article
timestamp: 1270834239 tags: "glyph|ruby|frameworks|writing" ----- -<p>I’ve been writing technical documents for a living for the past four years, and I can tell you: there is no +<p>I've been writing technical documents for a living for the past four years, and I can tell you: there is no easy way to go about it.</p> <p>For example, you can use:</p> <ul> <li><strong>a Word Processor</strong> like MS Word, for example — anyone can do that, right? Sure, but no, thanks: I strongly believe that Word Processors should not be used for writing technical documents as I firmly - don’t believe GUIs are suitable for doing this at a professional level.</li> + don't believe GUIs are suitable for doing this at a professional level.</li> <li><strong>a Document Authoring Software</strong> like Adobe Framemaker, Robohelp, etc. Still GUIs, only more complicated to use.</li> <li><strong><span class="caps">XML</span>, like <span class="caps">DITA</span> or DocBook, or other markups</strong>, like ReStructuredText. Better, but still not easily extensible and flexible enough.</li> - <li><strong>your company’s tools</strong>, if you have them. That’s great if they are usable enough and + <li><strong>your company's tools</strong>, if you have them. That's great if they are usable enough and the result makes your boss happy.</li> - <li><strong>LaTeX</strong>, and that’s probably your best option, if you know what you’re doing.</li> + <li><strong>LaTeX</strong>, and that's probably your best option, if you know what you're doing.</li> <li><strong><span class="caps">XHTML</span> and CSS3</strong>, in conjunction with a <span class="caps">PDF</span> - renderer like <a href="http://www.