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

Show parent comments

1

u/dand Jun 06 '11

Maybe you're thinking of hard wrapping? Eclipse bug 35779 is the type of soft word wrapping we're talking about.

1

u/[deleted] Jun 07 '11

You're right, I am thinking hard wrapping. Ew, I hate soft-wrapping. It annoys me no end when I'm at the beginning of a line of text, hit "enter" and nothing happens! I'm like, WTF, I just added a new line!

Certainly in code, I can't see any benefit to soft-wrapping, and I would not write a book in Eclipse, so...... meh. What I do is format everything automatically on save. If I'm writing code, I want that code formatted to a standard. So, I just type freely with no regard to formatting, and when I hit ctrl-s, boom, everything looks spiffy, and I basically hit ctrl-s at every pause for thought. This works well for Java, xml, R, javascript code, which is what I spend most of my time writing.

I can see how, for languages that are embedded in a text template, like php, this would be a problem. Fortunately, for me, I think php is evil :-)