inicio mail me! sindicaci;ón

Archive for September, 2004

Why Your Code Sucks

Your code sucks if it doesn’t work.

Your code sucks if it isn’t testable.

Your code sucks if it’s hard to read.

Your code sucks if it’s not understandable.

Your code sucks if it dogmatically conforms to a trendy framework at the cost of following good design/implimentation practices.

Your code sucks if it has duplication.

must read: http://www.artima.com/weblogs/viewpost.jsp?thread=71730

nevow pastebin, the final episode

Yeah, I added a global cache to speed up pasting rendering (it speeds up the whole thing a lot, see the rendering times at the bottom of each page). Now also the whole web app validates (it was a nevow’s fault, but with a literally one line patch that I’ve written the problem is fixed). What more? I’ve fixed the CSS a bit to make the pastebin look less ugly under IE (sorry but I don’t use IE except for windows update) so if you want a perfect-looking page under an uncompliant browser, pay me to fix the CSS further, do it yourself or change browser ;)

As usual the online demo is here: http://rhymes.dyndns.org:8083

I think it’s finished, maybe one of those days you will see the source code, hold on ;)

update: the patch now is in the nevow svn tree, so you don’t need to apply it manually