| |
Design Philosophy
|
The developers of CFM keep the following
things in mind at all times:
- Keep It Simple: Can't emphasize this
enough. If you can't explain a concept to somebody without using paper and pencil, it is
complex. Re-think, try to make it simple.
- Code Reuse: Never re-invent the wheel.
Give due credit to the works of standards committees and great developers all over the
world. It's one of the goals of open-source development too.
- Efficiency: Strive to make the
implementation as efficient as possible. Use good judgement to decide when to optimize and
when not to. Don't waste time optimizing your circle plotting routine when you know the
text plotting routine is the one that takes the most time.
- Follow Design Patterns: Stick to proven
concepts. Again, don't re-invent the wheel. Patterns are easy to comprehend and relate to,
especially, when people have come across them somewhere else.
- Extensibility: Keep in mind, somebody is
going to extend your work someday. In C++, extension begets evolution!
More to come later! |
|
|
|
|
|
|
|
|
|
|
|
|
|