Jon Mulholland -
Filed under

webdevelopment

 

Interesting Thread on CSS Tricks; Hyphens, Underscores, or CamelCaps?

"I was always a camelcase guy.. but in the last six months or so citing readability as a my reason i’ve migrated to hyphens. Underscores are simply an irritation to type repeatedly and quickly while coding."

This poll on CSS Tricks caught my eye - what's the best format to use for text strings when you can't use spaces; CamelCaps, Hyphens(-) or Underscores(_)?

I've generally always_underscored_strings_together but some of the comments pointed out that this can be a bit irritating if you have to repeatedly type this into your code. Hyphens certainly are quicker, but as I can see it there is one big advantage in using underscores - 'selectability' as Maggie Wolfe Riley calls it.

If you use underscores to chain text together, it's becomes very easy to select. A quick double click in Safari, Firefox or any code editor will select the whole phrase - ready to be moved, copied or whatever. Something that doesn't work with hyphens.

Anyway, vote in the poll on CSS Tricks or leave some comments; the discussion thread is a good read.

Loading mentions Retweet
Filed under  //   css   webdesign   webdevelopment  

Comments [0]

Brilliant approach to CSS coding: The Four Bubbles Model

"This model is thought to help web designers develop optimized, simple to maintain CSS files, minimizing the number of classes and avoiding redundant and inconsistent declarations."

This is the most useful bit of CSS advice I've read in a long time.  Antonio Lupetti walks through the 'Four Bubbles Model' - a really neat, methodical approach to writing CSS in which four phases are used to optimise code:

  • HTML Standard Elements
  • Main Structural Sections
  • Custom Classes
  • Optimization of Developed Code

As one of the commenters on the post says, a definite AHA! moment...

Loading mentions Retweet
Filed under  //   css   webdesign   webdevelopment  

Comments [0]

Misunderstanding Markup: XHTML 2/HTML 5 Comic Strip - Smashing Magazine

I love this explanation. Comics really are one of the best forms of communication...

Loading mentions Retweet
Filed under  //   html5   webdevelopment  

Comments [0]

20 Ruby on Rails Tuts to Rule Them All - Nettuts+

twenty incredible Ruby on Rails tutorials that every developer should consider reading. Whether you're a beginner who prefers video tutorials or an experienced dev, you'll find an applicable tutorial here!

A set of really great resources for getting started with Ruby on Rails development.

Why's (Poignant) Guide to Ruby was were I got started a year or so ago - OTT but fun and funny.

Loading mentions Retweet
Filed under  //   rubyonrails   tutorials   webdevelopment  

Comments [0]

HTML5 and The Future of the Web - Smashing Magazine

Some have embraced it, some have discarded it as too far in the future, and some have abandoned a misused friend in favor of an old flame in preparation. Whatever side of the debate you’re on, you’ve most likely heard all the blogging chatter surrounding the “new hotness” that is HTML5. It’s everywhere, it’s coming, and you want to know everything you can before it’s old news.

A really good clear guide to getting started with HTML5. I'm finding this a really helpful resource.

Loading mentions Retweet
Filed under  //   html5   tutorial   webdevelopment  

Comments [1]