The Artima Developer Community
Sponsored Link

Design Forum
Perfect code

2 replies on 1 page. Most recent reply: May 6, 2004 11:20 AM by Wim Ahlers

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
mudit

Posts: 10
Nickname: mbhandari
Registered: Feb, 2004

Perfect code Posted: Feb 22, 2004 10:19 PM
Reply to this message Reply
Advertisement
Can Any body help me and tell me how to Create a perfect Code,what are the criteria for that plz help me


Viswanatha Basavalingappa

Posts: 84
Nickname: viswagb
Registered: Nov, 2003

Re: Perfect code Posted: Mar 19, 2004 6:21 AM
Reply to this message Reply
ha ha..

"The only code faster than the fastest code is no code. "

as told by "Bjarne Stroustrup" in one of the article,

I would say.
"The only code which is perfect than the anyone's code is no code. "

viswa
-------

Wim Ahlers

Posts: 3
Nickname: wahlers
Registered: Apr, 2004

Re: Perfect code Posted: May 6, 2004 11:20 AM
Reply to this message Reply
Perfect code is:
1. Absolute correct (and completely fault tolerant).
2. Absolute clear (understandable).
3. Absolute fast enough under all conditions.
4. Absolute runnable on all hardware/software platforms.
5. Very cheap to produce.
6. Can be delivered very quickly.
7. Does the job (whatever the job is...or better yet...can be used for multiple purposes (in other words is generic and therefore reusable).

The cold reality:
1. Correct usable(!) software is an illusion.
2. Clearity is subjective (depends on the knowledge and the experience of both the creator and the reader).
3. Code optimized for a specific system or situation is usually very inefficient for other systems or situations (example: various sort routines).
4. A world, multi-platform standard, is very hard to agree upon and maintain (maybe JAVA comes close...and I am sure already many disagree). By the way, JAVA is a low-level abstraction language.
5. Good (usable(!) software is expensive to create and maintain.
6. Good software systems(!) usually takes thousands of man hours to develop.
7. Generic code with high reusability is the most difficult software to create.

Sorry I forgot your question...would you like to repeat it!!!

Flat View: This topic has 2 replies on 1 page
Topic: Information system Previous Topic   Next Topic Topic: Help: Confusion about text in Design Pattern by GoF

Sponsored Links



Google
  Web Artima.com   

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