Click here to Skip to main content
14,488,436 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: Does C++ finally have enough features to make memory leaks a ... memory? Pin
ExcellentOrg26-Aug-18 22:23
MemberExcellentOrg26-Aug-18 22:23 
GeneralRe: Does C++ finally have enough features to make memory leaks a ... memory? Pin
TheGreatAndPowerfulOz27-Aug-18 11:01
MemberTheGreatAndPowerfulOz27-Aug-18 11:01 
GeneralRe: Does C++ finally have enough features to make memory leaks a ... memory? Pin
jschell16-Sep-18 11:04
Memberjschell16-Sep-18 11:04 
GeneralRe: Does C++ finally have enough features to make memory leaks a ... memory? Pin
Munchies_Matt26-Aug-18 2:02
MemberMunchies_Matt26-Aug-18 2:02 
GeneralRe: Does C++ finally have enough features to make memory leaks a ... memory? Pin
jschell25-Aug-18 3:27
Memberjschell25-Aug-18 3:27 
GeneralRe: Does C++ finally have enough features to make memory leaks a ... memory? Pin
CodeWraith24-Aug-18 19:31
MemberCodeWraith24-Aug-18 19:31 
GeneralRe: Does C++ finally have enough features to make memory leaks a ... memory? Pin
Munchies_Matt24-Aug-18 19:46
MemberMunchies_Matt24-Aug-18 19:46 
GeneralRe: Does C++ finally have enough features to make memory leaks a ... memory? Pin
CodeWraith24-Aug-18 20:30
MemberCodeWraith24-Aug-18 20:30 
Then again, very disciplined C code can already look very object oriented. Think of structs and a number of functions to construct, destruct and change them. They are not members of the struct yet, which could be accomplished with function pointers in the struct. The 'constructor' and 'destructor' would not be called automatically. There also would be no proper encapsulation, inheritance or polymorphism.

Still, that's essentially how C became C++. With this transition also the scope of the programs changed. On a small, limited system I prefer to use C because of the greater degree of control over the spartan resources. On a traditional 8 bit computer even that may still be too much. An 8 bit bus, only a few k memory and C are not a match made in heaven.

C++ allows me to go into the other direction. Object orientation is very much a divide and conquer strategy that allows you to tackle huge tasks. Resources, like memory, are not so limited. Still, C++ retains much of C's control over these things if you need it.
I have lived with several Zen masters - all of them were cats.

His last invention was an evil Lasagna. It didn't kill anyone, and it actually tasted pretty good.

GeneralRe: Does C++ finally have enough features to make memory leaks a ... memory? Pin
Munchies_Matt24-Aug-18 20:51
MemberMunchies_Matt24-Aug-18 20:51 
GeneralRe: Does C++ finally have enough features to make memory leaks a ... memory? Pin
Eric Lynch25-Aug-18 2:16
mvaEric Lynch25-Aug-18 2:16 
GeneralRe: Does C++ finally have enough features to make memory leaks a ... memory? Pin
Super Lloyd24-Aug-18 19:56
MemberSuper Lloyd24-Aug-18 19:56 
GeneralRe: Does C++ finally have enough features to make memory leaks a ... memory? Pin
CodeWraith24-Aug-18 20:47
MemberCodeWraith24-Aug-18 20:47 
GeneralRe: Does C++ finally have enough features to make memory leaks a ... memory? Pin
jschell25-Aug-18 3:46
Memberjschell25-Aug-18 3:46 
GeneralRe: Does C++ finally have enough features to make memory leaks a ... memory? Pin
TheGreatAndPowerfulOz25-Aug-18 7:57
MemberTheGreatAndPowerfulOz25-Aug-18 7:57 
GeneralRe: Does C++ finally have enough features to make memory leaks a ... memory? Pin
jschell25-Aug-18 3:33
Memberjschell25-Aug-18 3:33 
GeneralRe: Does C++ finally have enough features to make memory leaks a ... memory? Pin
0x01AA25-Aug-18 4:12
professional0x01AA25-Aug-18 4:12 
GeneralRe: Does C++ finally have enough features to make memory leaks a ... memory? Pin
TheGreatAndPowerfulOz25-Aug-18 7:58
MemberTheGreatAndPowerfulOz25-Aug-18 7:58 
GeneralRe: Does C++ finally have enough features to make memory leaks a ... memory? Pin
lopatir24-Aug-18 22:43
Memberlopatir24-Aug-18 22:43 
GeneralRe: Does C++ finally have enough features to make memory leaks a ... memory? Pin
0x01AA25-Aug-18 6:07
professional0x01AA25-Aug-18 6:07 
GeneralRe: Does C++ finally have enough features to make memory leaks a ... memory? Pin
NotJosh27-Aug-18 2:07
MemberNotJosh27-Aug-18 2:07 
GeneralIs JavaScript the best example of "technical debt"? Pin
swampwiz24-Aug-18 15:45
Memberswampwiz24-Aug-18 15:45 
GeneralRe: Is JavaScript the best example of "technical debt"? Pin
Super Lloyd24-Aug-18 20:02
MemberSuper Lloyd24-Aug-18 20:02 
GeneralRe: Is JavaScript the best example of "technical debt"? Pin
Eric Lynch25-Aug-18 2:41
mvaEric Lynch25-Aug-18 2:41 
GeneralRe: Is JavaScript the best example of "technical debt"? Pin
jschell25-Aug-18 3:50
Memberjschell25-Aug-18 3:50 
GeneralRe: Is JavaScript the best example of "technical debt"? Pin
PIEBALDconsult25-Aug-18 7:41
professionalPIEBALDconsult25-Aug-18 7:41 

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.