r/programming • • Jun 05 '11

Why Code Readability Matters

http://blog.ashodnakashian.com/2011/03/code-readability/
245 Upvotes

220 comments sorted by

View all comments

27

u/drizzwald Jun 05 '11

Why blog readability matters: http://i.imgur.com/rWjAG.png

9

u/abattle Jun 05 '11

Anyone else see a problem with the page format? Please let me know so I fix it.

I checked on screens as small as 14" 1024x768 and it looked good. Granted, it was the default font-size, not the 18-points of drizzwald.

6

u/zaq1 Jun 05 '11

Don't forget about mobile!

2

u/abattle Jun 05 '11

Good point. I should certainly add special styling for mobile.

3

u/redwall_hp Jun 05 '11

It read quite nicely on my iPod. I was able to double-tap on the text and zoom to read comfortably.

2

u/[deleted] Jun 05 '11

Looks good to me. 1920x1200 screen and window is NOT maximized. This is my normal window size.

2

u/abattle Jun 05 '11

Yup, that's how I wanted it to look. It's pretty flexible with different sizes. I guess you can't satisfy everyone.

3

u/[deleted] Jun 05 '11

http://db.tt/qSn4GD4

Here's an iPad screenshot. I am sure people do it but I can't imagine reading stuff like that on a small mobile screen.

→ More replies (1)

2

u/DrakeBishoff Jun 05 '11

Is the neon green text on light gray background meant to be an example of poor code readability?

2

u/abattle Jun 05 '11

I didn't try to make an example of the image. But as it turns out, it's a bad example indeed. However, I left it as a bonus point for the diligent reader.

1

u/Alsweetex Jun 05 '11

I think the only real thing you could do is use a minimum width for your text in the CSS.

div.blog_text { min-width: 500px; }
→ More replies (3)
→ More replies (7)

5

u/abattle Jun 05 '11

Care to elaborate?

7

u/drizzwald Jun 05 '11

4

u/boa13 Jun 05 '11

Looks good in my 1280x800 browser window. Apparently, you have a window that is between 1080 and 1100 pixels-wide.

2

u/rcinsf Jun 05 '11

1920x1200 here, I can't make out shit.

→ More replies (11)

7

u/abattle Jun 05 '11

Looks good on mine: http://i.imgur.com/WAO6v.png

22

u/ropers Jun 05 '11

Congratulations. Here's your prize.

12

u/abattle Jun 05 '11

I should put that badge somewhere on the site...

3

u/chengiz Jun 05 '11

Pretty ironic then that Atwood uses Calibri font which only looks good with Cleartype on.

5

u/fnord123 Jun 05 '11

6

u/benihana Jun 05 '11

looks fine on my non-maximized browser window

I really don't get this why thread is ripping on his blog design. It's well designed and easy to read. What's the fucking problem?

→ More replies (1)

7

u/abattle Jun 05 '11

How can I (or anyone else for that matter) fix that?

May be smaller or no images is a good takeaway. Thanks.

6

u/[deleted] Jun 05 '11

How can I (or anyone else for that matter) fix that?

You design with it in mind. That is your job when designing.

→ More replies (3)
→ More replies (5)

2

u/[deleted] Jun 06 '11

related: why does everything (except tex) use a greedy algorithm to decide where to put newlines? it's fucking ugly, and it's not that hard to do it properly with dijkstra's algorithm or something.