Posts Tagged ‘ruby’

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.


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:


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.


Introduction to Haml For HTML Layouts For Newbs – Part 1: Installing Stasis

Friday, September 2nd, 2011
Introduction to Haml For HTML Layouts For Newbs – Part 1: Installing Stasis

Part one of four

Learning something new is awesome, and writing about what I am learning helps me get it into my head a lot more. Yesterday I started learning how to use Haml, and once I started, I thought I would pass on this newly acquired knowledge on to you. This series is for NON programmers. You might know javascript/jQuery, but the people I am writing this for are not really going to have any real knowledge of programming. If you have just gotten into using Sass, then this is a perfect next step for you. Here are the topics in this four part series:

Haml logoSo what the hell is Haml anyway? Well, imagine taking out the syntax of an HTML document, and replacing it with a cleaner syntax. It also adds a ton of other functionality, but what I’m going to be talking about in this series is just basic HTML layout writing. Mainly because I just got started with it myself, so the other stuff will have to wait.

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:


Ruby and Sass….help me?

Wednesday, April 28th, 2010

So I read a few articles lately, and I’ve seen this stuff before, but now I am really interested. Anyone out there wanna comment on Ruby? The syntax seems easy enough to learn, and I have heard it can be used to create things very quickly. I have also heard by some IT people I know that though it can be quick to create, which is good for prototyping, but hard to change. I’m looking for the run down on why I would want to look at Ruby. And is Rails the same thing? Help coders!

I’m interested in it because of Sass and what you can do with CSS. Here are just some examples I’ve seen with what you can do with Sass (Syntactically Awesome Stylesheets).


!blue = #3bbfce
  border-color = !blue

And this looks just plain awesome:

.highlight {
  border: 1px #666666 solid;
.moreHighlight {
  @extend .highlight;
  background-color: #ff0000;

From what I’ve read, this means that anything with the style of moreHighlight also gets the styles of highlight. There are other things like Mixins and such that look bad ass as well.

What I’m curious about though, is it looks like it is compiled. Does this mean I have to do something every time I make a change to the file? Meaning re-compile it? Again, help me out!