Posts tagged CSS
Learn HTML5 before you learn Rails
"You cannot be a Ruby on Rails developer if you don't know HTML and CSS." I realized that 30 minutes before I was supposed to teach someone Ruby on Rails yesterday. Even if she is a computer science graduate, if her knowledge of HTML and CSS is not good enough then it becomes an exercise in futility to teach Ruby on Rails or even Unix. So on my way, I tried to recall links to resources for HTML5 and CSS3. Jsfiddle helped me out to teach basics of HTML5, CSS and jQuery! Yes, I taught DOM manipulation and how to "google fu." Those were not necessary but I wanted her to understand classes, ID's and how jQuery works. Within one hour and 30 minutes, I also explained the importance of using CSS frameworks and grid design. Most designers are fixated with the idea of designing without a framework/ grid in mind and it is bad for us all.
Continue reading »SCSS Mixins
For Ruby projects (Rails or Sinatra), I've used HAML without SASS until they introduced SCSS. I did use SASS for a re-write project in 2009. But I felt that the syntax is strange and somehow I don't mind the braces. It's also easier to just copy CSS code onto a SCSS file. Of course some would say that I could just find and replace those braces, but ultimately it's a matter of choice. I love those braces so I use SCSS. :)
Continue reading »