Posted by Stefan Camilleri on {2008.July.16}
/** When I just realise that no matter what, I can never cease to be amazed */
I’m working on some code right now, fixing up some system changes, and I have come across lots of crap, but this one tops it all IMHO {
400 lines of undocumented code in one method!
Go figure… and here I was thinking I was a crappy programmer when I was 20 since I used to commonly put around 50 to a 100 lines of code in my methods.
}
Oh well… just one of those nuisances you know.
Posted in aesthetics, architecture, dev | Leave a Comment »
Posted by Stefan Camilleri on {2008.July.13}
/** Cruising the sea of blogs by the coding monkeys here on WordPress, I cannot fail to realise that there is a good bunch of people out there who have not yet discovered how to use the wordpress way of pasting code into their blogs */
So, in the hope that some will actually read this and take advantage of it, here goes {
Well, it is no rocket science really. All you need to do is to enclose your code in a set of
put your code here
where ‘lingo’ can be any one of {
- cpp
- csharp
- css
- delphi
- html
- java
- jscript
- php
- python
- ruby
- sql
- vb
- xml
}
}
Hope that helps
<h2>Happy blogging</h2>
Posted in aesthetics, blog | 2 Comments »
Posted by Stefan Camilleri on {2008.July.12}
/** So, the never-ending debate as to which is the best typeface to use for programming has also started brewing in my brain. */
I found tons of posts on-line debating what was the best font, and for one, I always felt that Microsoft’s Consolas was by far the best programming font around (and technically it is almost, but not quite, entirely like the best coding font around).
To summarize what sparks the requirement of such a font, it basically boils down to {
- Programmers like fonts that look good at SMALL point sizes. Not because we are masochists (well some of us probably are), but because we want to see as much code as possible on one screen. Which would also explain the phenomenon of why all programmers push their graphics cards to the highest resolutions possible (oh yes, and it also looks gorgeous on a hi-def lcd).
- We spend hours on end reading funny words that make sense solely to us and to lexical analyzers, so we need the font to be VERY legible, and to distinguish clearly among similar characters like 0,O,o, ilL1… among others (oh yes, and the myth is true, most developers, after a full day of code, go home to see…more…code!)
- We use words like ’sexy’, ‘perfect’ and ‘elegant’ to describe an algorithm, so we should also be able to use such terms to describe the font we use to write such algorithms in.
}
So, to cut it short, here are the contestants {
-

Proggy Tiny 10pt
-

ProFont 7pt
-

Envy Code R 7pt
-

Droid Sans Mono 7pt
-

Courier New 8pt
-

Consolas 8pt
-

Bit Stream Vera Sans Mono 8pt
-

}
And that is it really. I have concluded that for now, after testing all these fonts, Consolas remains the one of choice for me. ProFont was terribly inviting, yet the boldness of the font is just way too heavy in comparison to the normal formatting.
Now I’m just hoping to find a font which looks as good as Consolas does in 8pt, but at 7pt, since 8 is just a bit too big for my likes.
Posted in aesthetics | Tagged: dev | 12 Comments »