Vitaliy wrote: > OOP does not prevent bad programmers from writing bad code, it helps > good programmers write better code. I have made a function from this sentence: void isHLLgood(char *language) { printf("%s does not prevent bad programmers from writing bad code, it helps\n" "good programmers write better code.", language); } Tamas On Fri, Sep 19, 2008 at 6:53 AM, Vitaliy wrote: > Forrest W Christian wrote: > > With assembly, it is quite difficult to encode enough hints into the > > actual code so that you can understand what is going on - especially if > > you are operating without useful comments. That is, the coding is so > > close to the machine level that you almost have to think in assembler to > > make any sense out of it. Most of your maintenance is looking at the > > code and determining how it accomplishes (or not) what the comment says. > > To be honest, I haven't done any serious programming in assembly, but from > what little experience I have you're absolutely right. That's one of the > reasons I don't like assembly. There is a place for it, just not for the > kinds of applications I'm working on. The ratio of the cost of hardware > relative to the cost of programmer time is just too low. > > > With what some people think OOP should be, it's almost as difficult. > > Mainly because often you have to figure out the whole inheritance tree > > to figure out what the (@#*$ is going on. > > OOP does not prevent bad programmers from writing bad code, it helps good > programmers write better code. > > FWIW, I'm successfully using OOP principles to write programs in C for PICs > (so far, without inheritance). > > > Give me a well written chunk of code in a procedural language such as C > > (or basic, or perl, or php for that matter) and I'm happy. > > Chunk of code, sure. Complex system, that's another story. > > At some point, a program written using procedural programming methods, > becomes too complex to understand. With OOP, you are working with bigger > chunks, so there are fewer of them and it's easier to keep them organized. > > Best regards, > > VItaliy > > -- > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist > -- Rudonix DoubleSaver http://www.rudonix.com -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist