Re: reusable coding and programming?



+1

And remember: other programmers (which want to re-use Your classes or
libraries), can make mistakes (and You too, of course)!

So, try to make Your classes and libraries "foolproof" as much as possible.

--
Best regards,
Jana.

"Niels Dybdahl" <niels@xxxxxxxxxx> ÓÏÏÂÝÉÌ/ÓÏÏÂÝÉÌÁ × ÎÏ×ÏÓÔÑÈ ÓÌÅÄÕÀÝÅÅ:
news:442cd109$0$27546$edfadb0f@xxxxxxxxxxxxxxxxxxxxxxx

"Kevin" <kaidizhao@xxxxxxxxxxxx> wrote in message
news:1143781613.775581.161970@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hello!~

To make a program or some classes / functions better reuseable (or
other people can easily build their code on them), what are the major
points to pay attention to? Any "fast cooking list and recipe" for it?

- A welldocumented interface
- Default settings that work, so that you do not have to call numerous
"set..." functions to make it work with the simplest task
- Code examples on how to make it work

Niels Dybdahl




.



Relevant Pages

  • Re: Writing bulletproof code
    ... Good software design requires that you put error ... > the 'C' language and the libraries. ... It doesn't actually solve the problem that programmers are ... very few know when the cost will be negligible ...
    (comp.programming)
  • Re: <ctype.h> toLower()
    ... I konow several real world programmers, ... >> And portability is in most cases a very low priority as in most cases ... > the past 10 years I only wrote some specific platform specific software. ... > libraries did their job well). ...
    (alt.comp.lang.learn.c-cpp)
  • Re: How does Require deal with multiple files of the same name in different directories
    ... This meant that programmers developed their own ... libraries had almost the same functionality they have been merged into ... specific implementation details; hopefully that will be improved as ... to add pre-emptive multi-tasking, to have a separate code ...
    (comp.lang.forth)
  • Re: Writing bulletproof code
    ... >> Efficiency is part of good coding. ... the 'C' language and the libraries. ... >> where most programmers seem to go wrong, ... >> triple checking is more important than efficiency. ...
    (comp.programming)
  • Re: google "top coder" contest = stacked against C++ coders
    ... >Let me add a little more on the value of portability even to novice ... >programmers. ... Comeau C/C++ with Dinkumware's Libraries... ...
    (alt.comp.lang.learn.c-cpp)