Posts Tagged css

Should a new programmer learn Javascript first?

If you want to be a webmonkey / script-kiddie, sure, learn Javascript first and to heck with a quality skillset. But is that what you want?

On the other hand, if you want to be a quality programmer, that is, a good programmer?—?and not just hope or falsely claim you are one, because hey, you can actually write one— what you have to work through is a six-step language set:
Read the rest of this entry »

Tags: , , , , , , , , , ,

Colored reports for text and HTML in Python

One of the things that I face regularly is report generation. Often they’re free form, by which I mean not tables full of tabulated data.

Output from my htmlAnsii() class

Output from my .htmlAnsii() class

Just “is this ok, is that ok, 27 of the other happened”, that sort of thing. I like to use color — green if everything is ok, red if it isn’t and so on.

I’m often out where I want the report in a web browser. But then again, I’m often at my desk, signed in to a console and I want it there. The environments couldn’t be much more different; HTML tags on the one hand, within the wrapper of a page, and ANSII escape sequences on the other. And they’re both kind of annoying and error-prone to write out explicitly, especially when you’re doing it a lot.

What to do?
Read the rest of this entry »

Tags: , , , , , , , , , ,