Re: Do you currently use namespaces?
- Posted by ken mortenson <kenneth_john at ?ahoo.?om> May 26, 2008
- 1016 views
Jeremy Cowgar wrote: > ken mortenson wrote: > > Keep in mind that a programmer can write code in a modular language that > > isn't modular and another could write good modules in a language that isn't > > supportive of that. > > > > Good modules should have certain features. > > > > Decoupling is an important principle as well as the principle of > > information hiding. They don't expose their internal structure but > > do expose an interface. > > [SNIP... story about decoupling] > Hm, that happens anywhere, even in languages that you would consider modular. You are right. However, some features encourage modular programming and some feature work against it. > That has nothing to do with include or with Euphoria. Well, it does. What is a module? It's a black box that does something. Include is a back door to that black box. Can you write modular programs using include? Of course you can. Does include encourage you to think in a modular way? No, I'll give you another example. Sequence is one type of coupling. Remember that a module should be decoupled. Each module is separate and distinct and has it's own (chiselled in stone) interface. Order doesn't matter in calling modules. Order does matter using include.