Drupal coder

Case using for filenames of client side files when developing on LAMP

At this moment I'm integrating the HTML/CSS/JavaScript produced by a design bureau into a Drupal theme. And sometimes I was at the verge of pulling my hair out and calling names to the guy who created the images.

Please! If you know you're developing for Linux servers, check your use of letter cases! Or better... Just use dashes to seperate the words.

An example:

Suppose you have a filename you would like to call like 'BgCanvasLeftSpacesAndWhatever.jpg'. As soon as you mistype one letter (just the case), it won't work on a Linux/Apache server. But you wouldn't notice the difference if you just tested on your local OS X or Windows computer.

Spot the difference between 'BgCanvasleftSpacesAndWhatever.jpg'!!! Practically undoable.

If you would have used dashes, you would have spotted the difference immediately, because no Operating System or web server would allow you to drop the dashes.

So in the example you would have bg-canvas-lef-spaces-and-whatever.jpg.

And it looks better too ;)

January 22, 2008server management

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options