Click here to Skip to main content
15,894,540 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: OO is not all that and a bag of chips Pin
honey the codewitch30-Mar-20 4:01
mvahoney the codewitch30-Mar-20 4:01 
GeneralRe: OO is not all that and a bag of chips Pin
Stefan_Lang31-Mar-20 4:41
Stefan_Lang31-Mar-20 4:41 
GeneralRe: OO is not all that and a bag of chips Pin
Stuart Dootson31-Mar-20 5:14
professionalStuart Dootson31-Mar-20 5:14 
GeneralRe: OO is not all that and a bag of chips Pin
Stefan_Lang31-Mar-20 5:24
Stefan_Lang31-Mar-20 5:24 
GeneralRe: OO is not all that and a bag of chips Pin
Gary R. Wheeler30-Mar-20 12:57
Gary R. Wheeler30-Mar-20 12:57 
GeneralRe: OO is not all that and a bag of chips Pin
honey the codewitch30-Mar-20 13:14
mvahoney the codewitch30-Mar-20 13:14 
GeneralRe: OO is not all that and a bag of chips Pin
PIEBALDconsult28-Mar-20 13:51
mvePIEBALDconsult28-Mar-20 13:51 
GeneralRe: OO is not all that and a bag of chips Pin
Greg Utas28-Mar-20 13:55
professionalGreg Utas28-Mar-20 13:55 
I find it interesting that you now use objects less than when you first started to code. I would've thought that it would work the other way around. But maybe that's for us dinosaurs who first learned structured programming and later had to think in terms of objects. If you learn objects first, I can see it progressing in the opposite direction.

I'm curious as to what you meant by C++ changing your attitude towards objects. Maybe you started to use them less because C++ has too much boilerplate!

Sure, a standalone piece of code will be smaller, faster, and easier to understand if it isn't broken up into many little objects. But you called it a "little HTTP server". What if it had to be big? Or support other protocols? Or be integrated with a large system?

The larger the system, the more important it is to achieve reuse and abstraction, which means separating concerns and using polymorphism, inheritance, and encapsulation. Without this, developers clone and tweak code that can't be reused because it's admixed with other concerns. It also becomes harder and harder to add new capabilities, because they have to interwork with components that exhibit superfluous diversity. A maze of twisty little passages, all different.

That said, OO can get overused and won't solve everything. It would be great if it could be coupled with aspect-oriented programming, but I haven't seen a good way to do that, and aspects may simply be intractable when it comes to cleanly separating concerns.

GeneralRe: OO is not all that and a bag of chips Pin
honey the codewitch28-Mar-20 14:45
mvahoney the codewitch28-Mar-20 14:45 
GeneralRe: OO is not all that and a bag of chips Pin
Greg Utas28-Mar-20 15:51
professionalGreg Utas28-Mar-20 15:51 
GeneralRe: OO is not all that and a bag of chips Pin
honey the codewitch28-Mar-20 16:09
mvahoney the codewitch28-Mar-20 16:09 
GeneralRe: OO is not all that and a bag of chips Pin
Greg Utas29-Mar-20 0:09
professionalGreg Utas29-Mar-20 0:09 
GeneralRe: OO is not all that and a bag of chips Pin
honey the codewitch29-Mar-20 1:44
mvahoney the codewitch29-Mar-20 1:44 
GeneralRe: OO is not all that and a bag of chips Pin
Mircea Neacsu28-Mar-20 15:35
Mircea Neacsu28-Mar-20 15:35 
GeneralRe: OO is not all that and a bag of chips Pin
honey the codewitch28-Mar-20 16:15
mvahoney the codewitch28-Mar-20 16:15 
GeneralRe: OO is not all that and a bag of chips Pin
Nelek28-Mar-20 22:58
protectorNelek28-Mar-20 22:58 
GeneralRe: OO is not all that and a bag of chips Pin
honey the codewitch29-Mar-20 1:46
mvahoney the codewitch29-Mar-20 1:46 
GeneralRe: OO is not all that and a bag of chips Pin
Martin ISDN28-Mar-20 21:44
Martin ISDN28-Mar-20 21:44 
GeneralRe: OO is not all that and a bag of chips Pin
Greg Utas29-Mar-20 0:29
professionalGreg Utas29-Mar-20 0:29 
GeneralRe: OO is not all that and a bag of chips Pin
Nelek29-Mar-20 1:12
protectorNelek29-Mar-20 1:12 
GeneralRe: OO is not all that and a bag of chips Pin
honey the codewitch29-Mar-20 1:37
mvahoney the codewitch29-Mar-20 1:37 
GeneralRe: OO is not all that and a bag of chips Pin
Greg Utas29-Mar-20 2:01
professionalGreg Utas29-Mar-20 2:01 
GeneralRe: OO is not all that and a bag of chips Pin
Martin ISDN29-Mar-20 13:16
Martin ISDN29-Mar-20 13:16 
GeneralRe: OO is not all that and a bag of chips Pin
Greg Utas29-Mar-20 14:14
professionalGreg Utas29-Mar-20 14:14 
GeneralRe: OO is not all that and a bag of chips Pin
Martin ISDN31-Mar-20 2:08
Martin ISDN31-Mar-20 2:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.