Andrew Wilkinson

Random Ramblings on Programming

Posts Tagged ‘web development

Working in Django, finally!

leave a comment »

For the past day and a half I have been building a website in Django rather than the C++ that is the bulk of my day job. It’s so easy, it makes me sad that I have to go back to C++ this afternoon.

I’ve also discovered that aggregation, the main feature I want from django, aggregation, will be committed to trunk tomorrow. Hurrah!

Written by Andrew Wilkinson

January 14, 2009 at 2:08 pm

Posted in python

Tagged with , , ,

Compiling CSS

leave a comment »

A new compiler called HSS has been released. This tool makes it easier to write concise, maintainable and valid CSS. The two key features are the ability to define variables which are then replaced throughout the file, and to create nested blocks.

Typically you’ll need to write code like this:


.faq {
color: red;
}

.faq h1 {
background-color: black;
}

.faq a {
text-decoration: none;
}

With HSS you can write…

.faq {
color: red;
h1 { background-color: black; }
a { text-decoration: none; }
}

Since you’ll want to automatically run a code minimiser over your CSS code anyway, running HSS as well shouldn’t be a problem.

Unfortunately the tool is written in the little known language Neko (which is a language created by the author of HSS) and is not hosted on any of the of many open source project hosting sites which would help ensure the tool lives on even if the author moves on. Indeed, it’s not even clear from the website what license the tool is released on. These are problems that might need to be solved before it’s worth basing a project around HSS.

Written by Andrew Wilkinson

October 21, 2008 at 12:30 pm

Posted in web development

Tagged with ,