Click here to Skip to main content
15,178,422 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 Software design epiphany - it might not matter Pin
Chris Boss14-Jan-21 7:08
professionalChris Boss14-Jan-21 7:08 
GeneralRe: OO Software design epiphany - it might not matter Pin
SeattleC++14-Jan-21 7:09
MemberSeattleC++14-Jan-21 7:09 
GeneralRe: OO Software design epiphany - it might not matter Pin
Dale Barnard14-Jan-21 7:18
MemberDale Barnard14-Jan-21 7:18 
GeneralRe: OO Software design epiphany - it might not matter Pin
sasadler14-Jan-21 8:00
Membersasadler14-Jan-21 8:00 
GeneralRe: OO Software design epiphany - it might not matter Pin
Paul Gehrman14-Jan-21 18:23
MemberPaul Gehrman14-Jan-21 18:23 
GeneralRe: OO Software design epiphany - it might not matter Pin
Member 289602014-Jan-21 18:24
MemberMember 289602014-Jan-21 18:24 
GeneralRe: OO Software design epiphany - it might not matter Pin
KateAshman15-Jan-21 6:26
MemberKateAshman15-Jan-21 6:26 
GeneralRe: OO Software design epiphany - it might not matter Pin
BotReject18-Jan-21 5:30
MemberBotReject18-Jan-21 5:30 
I can offer encouragement rather than practical advice (since I have no specifics about the problem you are trying to solve). You are absically correct: encapsulation is the most useful feature of OOP and the only feature code needs to be OO. (Many claim that certain languages are OO simply because they support an optional 'object' construct, but unless encapsulation is enforecd, with the option of strong encapsulation, then a language is not OO in my opinion).

Inheritance should only be used very sparingly - it is good for complex frameworks that have to support a multitude of applications, like teh Java framework, but not useful at all in most cases.

As for generics ... I'm still thinking about that one. I would say that generics are about more than code reuse. Do you really want a type as a parameter in your application? Is it really saving hastle to avoid explicit type casts? Who is the end-user of the code and is it more important to detect type errors at compile-time rather than runtime? In the end you have to weigh-up the hastle to you as coder against the hastle to the user!

That probably doesn't help, but it was an interesting query.
GeneralRe: OO Software design epiphany - it might not matter Pin
charlieg22-Jan-21 12:56
Membercharlieg22-Jan-21 12:56 
GeneralRe: OO Software design epiphany - it might not matter Pin
Martin ISDN1-Feb-21 9:18
MemberMartin ISDN1-Feb-21 9:18 
GeneralHorror videos on youtube! Pin
CodeWraith13-Jan-21 5:05
MemberCodeWraith13-Jan-21 5:05 
GeneralRe: Horror videos on youtube! Pin
OriginalGriff13-Jan-21 5:13
mveOriginalGriff13-Jan-21 5:13 
GeneralRe: Horror videos on youtube! Pin
CodeWraith13-Jan-21 5:42
MemberCodeWraith13-Jan-21 5:42 
GeneralRe: Horror videos on youtube! Pin
dandy7213-Jan-21 5:50
Memberdandy7213-Jan-21 5:50 
GeneralRe: Horror videos on youtube! Pin
den2k8813-Jan-21 5:24
professionalden2k8813-Jan-21 5:24 
GeneralRe: Horror videos on youtube! Pin
CodeWraith13-Jan-21 6:10
MemberCodeWraith13-Jan-21 6:10 
GeneralRe: Horror videos on youtube! Pin
Daniel Pfeffer13-Jan-21 6:28
professionalDaniel Pfeffer13-Jan-21 6:28 
GeneralRe: Horror videos on youtube! Pin
den2k8813-Jan-21 6:38
professionalden2k8813-Jan-21 6:38 
GeneralRe: Horror videos on youtube! Pin
Kris Lantz13-Jan-21 6:39
professionalKris Lantz13-Jan-21 6:39 
GeneralRe: Horror videos on youtube! Pin
den2k8813-Jan-21 6:43
professionalden2k8813-Jan-21 6:43 
GeneralLots of voting for December Article of the Month Pin
Greg Utas13-Jan-21 3:50
mveGreg Utas13-Jan-21 3:50 
GeneralSurveys? Pin
charlieg13-Jan-21 3:29
Membercharlieg13-Jan-21 3:29 
GeneralRe: Surveys? Pin
Marc Clifton13-Jan-21 3:36
mvaMarc Clifton13-Jan-21 3:36 
GeneralRe: Surveys? Pin
Greg Utas13-Jan-21 3:47
mveGreg Utas13-Jan-21 3:47 
GeneralRe: Surveys? Pin
charlieg13-Jan-21 4:31
Membercharlieg13-Jan-21 4:31 

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.