Re: OOP leads to lousy websites?
Uzytkownik "rush" <pipa@rush.aval on.hr> napisal w wiadomosci
news:c11tc4$8qt $1@ls219.htnet. hr...[color=blue]
> I do not think website app programming is very different from any other[/color]
kind[color=blue]
> of programming, so if you find OO a good way to program in general, you
> would also find it to be a good way to develop web apps. And other way
> around, if have never felt comfortable with OO, you will also probably
> incline to use procedural programming for web sites.[/color]
Good programming means finding the best approach for a given problem. I'm
perfectly comfortable with OO, have done plenty of programming in that
manner, and can't think of a different way of writing Windows programs. But
web-programming is very different from writing desktop applications. Scripts
usually finish execution in a blink of an eye. You're not sitting there
waiting for an event or a message. There're no windows or widgets to take
care of. And the scripting engine handles all the resource management.
Web-programming, it can said, is like writing glorified "hello world"
programs.
[color=blue]
> as for reliability, for me OO makes it easier to make code of better[/color]
quality[color=blue]
> and more robust. But that's just my experience. With OO, as with any other
> programming approach you need to have a good measure for it and approach.
> But if you use it just because you have to, you usually get very bad
> results.[/color]
OO makes it easier to make code look better than it actually is.
Encapsulation, more often than not, means stuffing sphaghetti into a
blackbox.
Uzytkownik "rush" <pipa@rush.aval on.hr> napisal w wiadomosci
news:c11tc4$8qt $1@ls219.htnet. hr...[color=blue]
> I do not think website app programming is very different from any other[/color]
kind[color=blue]
> of programming, so if you find OO a good way to program in general, you
> would also find it to be a good way to develop web apps. And other way
> around, if have never felt comfortable with OO, you will also probably
> incline to use procedural programming for web sites.[/color]
Good programming means finding the best approach for a given problem. I'm
perfectly comfortable with OO, have done plenty of programming in that
manner, and can't think of a different way of writing Windows programs. But
web-programming is very different from writing desktop applications. Scripts
usually finish execution in a blink of an eye. You're not sitting there
waiting for an event or a message. There're no windows or widgets to take
care of. And the scripting engine handles all the resource management.
Web-programming, it can said, is like writing glorified "hello world"
programs.
[color=blue]
> as for reliability, for me OO makes it easier to make code of better[/color]
quality[color=blue]
> and more robust. But that's just my experience. With OO, as with any other
> programming approach you need to have a good measure for it and approach.
> But if you use it just because you have to, you usually get very bad
> results.[/color]
OO makes it easier to make code look better than it actually is.
Encapsulation, more often than not, means stuffing sphaghetti into a
blackbox.
Comment