Click here to Skip to main content
15,885,044 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: The balance between architecture and code Pin
Marc Clifton27-Apr-21 7:43
mvaMarc Clifton27-Apr-21 7:43 
GeneralRe: The balance between architecture and code Pin
rjmoses28-Apr-21 4:03
professionalrjmoses28-Apr-21 4:03 
GeneralRe: The balance between architecture and code Pin
Mircea Neacsu27-Apr-21 7:49
Mircea Neacsu27-Apr-21 7:49 
GeneralRe: The balance between architecture and code Pin
W Balboos, GHB27-Apr-21 8:08
W Balboos, GHB27-Apr-21 8:08 
GeneralRe: The balance between architecture and code Pin
Gerry Schmitz27-Apr-21 8:20
mveGerry Schmitz27-Apr-21 8:20 
GeneralRe: The balance between architecture and code Pin
Greg Utas27-Apr-21 8:53
professionalGreg Utas27-Apr-21 8:53 
GeneralRe: The balance between architecture and code Pin
Gerry Schmitz27-Apr-21 10:04
mveGerry Schmitz27-Apr-21 10:04 
GeneralRe: The balance between architecture and code Pin
honey the codewitch27-Apr-21 12:03
mvahoney the codewitch27-Apr-21 12:03 
For so long I've been an interface aficionado.

But I keep rediscovering C++ and with it generic programming, and template based metaprogramming which I find profoundly useful for generating efficient flexible code I couldn't easily make otherwise.

The powerful thing about this is that this "polymorphism" is source level, not binary (vtbl based). The problem with this is all of this "polymorphism" is source level, not binary.

The compiler checks it, but only if you use it by instantiating it and that means you might not catch errors in your code until well after your code is being used, even in production, because that part never was compiled.

So you lose a big advantage of interface based programming when you're using generic programming and template based polymorphism to implement your "interfaces" which again are source level, not binary.

I can't resist the urge to use it though. The power. The efficiency. The dark side... it beckons!
Real programmers use butterflies

GeneralRe: The balance between architecture and code Pin
Greg Utas27-Apr-21 15:13
professionalGreg Utas27-Apr-21 15:13 
GeneralRe: The balance between architecture and code Pin
Eddy Vluggen27-Apr-21 9:09
professionalEddy Vluggen27-Apr-21 9:09 
GeneralRe: The balance between architecture and code Pin
David O'Neil27-Apr-21 9:28
professionalDavid O'Neil27-Apr-21 9:28 
GeneralRe: The balance between architecture and code Pin
raddevus27-Apr-21 9:56
mvaraddevus27-Apr-21 9:56 
GeneralRe: The balance between architecture and code Pin
Marc Clifton28-Apr-21 2:51
mvaMarc Clifton28-Apr-21 2:51 
GeneralRe: The balance between architecture and code Pin
honey the codewitch27-Apr-21 11:11
mvahoney the codewitch27-Apr-21 11:11 
GeneralRe: The balance between architecture and code Pin
MSBassSinger27-Apr-21 11:32
professionalMSBassSinger27-Apr-21 11:32 
GeneralRe: The balance between architecture and code Pin
honey the codewitch27-Apr-21 12:18
mvahoney the codewitch27-Apr-21 12:18 
GeneralRe: The balance between architecture and code Pin
Mycroft Holmes27-Apr-21 12:20
professionalMycroft Holmes27-Apr-21 12:20 
GeneralRe: The balance between architecture and code Pin
rob tillaart27-Apr-21 21:42
rob tillaart27-Apr-21 21:42 
GeneralRe: The balance between architecture and code Pin
Fabio Franco27-Apr-21 22:56
professionalFabio Franco27-Apr-21 22:56 
GeneralRe: The balance between architecture and code Pin
KateAshman27-Apr-21 23:45
KateAshman27-Apr-21 23:45 
GeneralRe: The balance between architecture and code Pin
GuyThiebaut27-Apr-21 23:50
professionalGuyThiebaut27-Apr-21 23:50 
GeneralRe: The balance between architecture and code Pin
Dan Sutton28-Apr-21 5:27
Dan Sutton28-Apr-21 5:27 
GeneralThought of the Day Pin
OriginalGriff27-Apr-21 4:53
mveOriginalGriff27-Apr-21 4:53 
GeneralRe: Thought of the Day Pin
jeron127-Apr-21 5:02
jeron127-Apr-21 5:02 
GeneralRe: Thought of the Day Pin
megaadam27-Apr-21 7:16
professionalmegaadam27-Apr-21 7:16 

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.