Archive for the ‘Ruby’ Category

Ruby On Rails – A Beginners Journey – Part 1

Tuesday, November 29th, 2011
Ruby On Rails – A Beginners Journey – Part 1

Let’s document my trip, shall we?

I set myself a goal at the beginning of the year to learn Ruby by the end of it. Well, I finally started doing just that. Actually I’ve tried a couple of times, but didn’t get far into it. By starting with Rails this time, I am actually picking up things a lot quicker. I’ll give all the credit to Michael Hartl, who wrote the book Ruby On Rails 3 Tutorial, which is what I am using, and so far recommend. You can also visit the site here. This isn’t a book review, though I might do later on. This post is the beginning of many that I’m going to use to document my progress. You know, show you where I was being stupid, and the awesome “ah-HA!” moments.

(more…)

Introduction to Haml For HTML Layouts for Newbs – Part 2: Writing Haml

Thursday, September 8th, 2011
Introduction to Haml For HTML Layouts for Newbs – Part 2: Writing Haml

The difference between structure and content

Haml is great! But for what, is the real question. According to Haml’s website, “Markup should be beautiful.” It definitely does make things look clean and easy to read, but there seems to be a catch. Chris Eppstein (creator of Compass) wrote an article that basically says don’t use Haml for content, and I suggest reading it when you are done reading this. Looking at his first example, which I won’t duplicate here, you see what he is driving at right away. For the actual content of the site, Haml starts to look like garbage. What it IS good for though, is the actual structure of the template. Template, file, whatever. The stuff you write in HTML, like this:

<div id="luckDragon"></div>

Haml can do better:

#luckDragon

The lesson to be learned here is that, for the main layout of your site use Haml. For the fluff we’ll use something called Markdown, which I’ll talk about in Part 3 of this series. In this post, we are going to deal with the basics of Haml though.

(more…)

Installing Ruby And Learning It From An Idiot’s Perspective

Thursday, October 28th, 2010
Installing Ruby And Learning It From An Idiot’s Perspective

Picking A Programming Language

I’ve hemmed and hawed over what programming language to learn, and was pretty much settled on PHP…just never got around to learning it. I have put PHP on the side burner for now, because it became obvious on what I should try to pick up. I’m already using Sass, which is a part of Haml, which is a gem….of Ruby. Might as well learn the parent of what I am already starting to use. So, no brainer for me. Is it for you? How the hell would I know? But I’ll tell you my experience so far, which isn’t much.

The Scary Part – Installing it!

NOTE: For people on a PC only as I have no experience doing this on a Mac or Linux machine.
Now that I have installed Ruby three separate times, it has become less intimidating than it was when I first did it. If you are interested in learning Ruby, but have a slight fear in diving in head first, let me tell you what you need to know without all the bullcrap and non-helpful documentation you will read. Ready? Here we go:

(more…)