The Artima Developer Community
Sponsored Link

Design Forum
Perfect code

2 replies on 1 page. Most recent reply: Feb 14, 2004 5:47 PM by Chris Dailey

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 2 replies on 1 page
Chris Dailey

Posts: 56
Nickname: mouse
Registered: Dec, 2002

Perfect code Posted: Jan 18, 2004 2:42 PM
Reply to this message Reply
Advertisement
Is there a repository for perfect code? How about a single example of perfect code (that is non-trivial)? (Hopefully if someone answers that, they'll do it for a language I understand ... Java, or C# or C++ or C.)

One gotcha with the idea of "perfect code" is that it is a subjective term. What are the criteria for "perfect"? Is there a body of rules where each rule, though subjective, is unambiguous (i.e., any two people would give the same "yes" or "no" answer as to whether a piece of code meets each rule, e.g. the criteria should not be "easy to read")?


David Ramsey

Posts: 34
Nickname: dlramsey
Registered: Apr, 2002

Re: Perfect code Posted: Feb 2, 2004 2:33 PM
Reply to this message Reply
Oh my, what a can of worms. :)

Try reading the following article:
http://www.ams.org/new-in-math/press/kurshan.html

Be sure to follow the link to the PDF file at the end and read that as well.

Perfect code implies many things, perhaps none of which are fully achievable with current languages and tools.

Chris Dailey

Posts: 56
Nickname: mouse
Registered: Dec, 2002

Re: Perfect code Posted: Feb 14, 2004 5:47 PM
Reply to this message Reply
Thanks for the link. It's a bit deep, being heavy on theory and light on examples of practical application of the technique. (Yes, I'm a wimp.)

Anyways, instead of perfect code, I'd settle for examples of really good code. :> And principles for being able to know it when you see it.

I don't know how often I've looked at code someone else had written and been inspired. It hasn't been often, though. Architects and structural engineers have buildings and bridges to study. Why not software developers?

Flat View: This topic has 2 replies on 1 page
Topic: Software Architecture Previous Topic   Next Topic Topic: Problem running Jini client!!!!

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use