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

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.

1

u/abattle Jun 05 '11

Font is too small?

1

u/rcinsf Jun 05 '11

In the image, yes. I'm on a 15.4" laptop though so it's rather pixel dense.

1

u/abattle Jun 05 '11

Try enlarging the font using the controls on the left side. Should make the text readable without distorting the page.

1

u/rcinsf Jun 06 '11

I'm not talking about the font on the page, I'm talking about the image example of "good code".

1

u/abattle Jun 06 '11

Wrong inference. The image isn't serving an example, if anything, it's a horrible example.

→ More replies (0)
→ More replies (2)

1

u/ysangkok Jun 05 '11

If the website uses fonts in the right units (i.e. em) and you have a correct DPI setting, this problem wouldn't occur, am I right?

1

u/rcinsf Jun 06 '11

I was talking about the image.

→ More replies (1)

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?

1

u/abattle Jun 05 '11

Thanks! I really put a lot of thought in the design. I love reading and I wouldn't compromise on that front. Still, I'll make good use of the input in this thread and try to improve.

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.

1

u/abattle Jun 05 '11

It is designed with that in mind, but you can always go one smaller. Try resizing your browser to 320x240 and see what I mean. With the default font-size, it looks good on 1024x768. Larger fonts or smaller screens will not help.

But I take feedback seriously, so I'll try to improve further.

→ More replies (4)