LWN.net Logo

Oh, it's easy

Oh, it's easy

Posted Feb 9, 2008 18:38 UTC (Sat) by nicku (subscriber, #777)
In reply to: Oh, it's easy by khim
Parent article: Interview: Mark "Markey" Kretschmann (Not the Gentoo Weekly News)

It's design principle that is evil: the infamous "There is more than one way to do it".
Yes, though it enables us to write code that meets this aim: "Make it concise, have it explain itself, and document it." All our team's code seems to converge to a very similar style, where conciseness with readability are paramount. But yes, your comments are reasonable. Thank you.


(Log in to post comments)

Oh, it's easy

Posted Feb 9, 2008 20:17 UTC (Sat) by chromatic (subscriber, #26207) [Link]

All our team's code seems to converge to a very similar style, where conciseness with readability are paramount.

Yes, but that means that your team members have to be able to communicate with each other, discuss maintainability issues, and agree on some sort of coding standard, else they'll have a lot of trouble writing code -- as if syntax were the difficult part of understanding existing code. (If syntax were the difficult part of understanding existing code, the mantra for comments would be "Comment what the code does, not why.")

Apparently devising loose coding standards is so difficult that some people want the language to enforce them.

Oh, it's easy

Posted Feb 9, 2008 22:58 UTC (Sat) by krishna (subscriber, #24080) [Link]

And Perl::Critic allows your group to enforce one of those ways.  Or not.  It's your team's
choice, not the language designer's.

Copyright © 2008, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds