Click here to Skip to main content
15,901,205 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
ExcellentOrg26-Aug-18 22:23 
GeneralRe: Does C++ finally have enough features to make memory leaks a ... memory? Pin
TheGreatAndPowerfulOz27-Aug-18 11:01
TheGreatAndPowerfulOz27-Aug-18 11:01 
GeneralRe: Does C++ finally have enough features to make memory leaks a ... memory? Pin
jschell16-Sep-18 11:04
jschell16-Sep-18 11:04 
GeneralRe: Does C++ finally have enough features to make memory leaks a ... memory? Pin
Munchies_Matt26-Aug-18 2:02
Munchies_Matt26-Aug-18 2:02 
GeneralRe: Does C++ finally have enough features to make memory leaks a ... memory? Pin
jschell25-Aug-18 3:27
jschell25-Aug-18 3:27 
GeneralRe: Does C++ finally have enough features to make memory leaks a ... memory? Pin
CodeWraith24-Aug-18 19:31
CodeWraith24-Aug-18 19:31 
GeneralRe: Does C++ finally have enough features to make memory leaks a ... memory? Pin
Munchies_Matt24-Aug-18 19:46
Munchies_Matt24-Aug-18 19:46 
GeneralRe: Does C++ finally have enough features to make memory leaks a ... memory? Pin
CodeWraith24-Aug-18 20:30
CodeWraith24-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
Munchies_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
Eric 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
Super Lloyd24-Aug-18 19:56 
GeneralRe: Does C++ finally have enough features to make memory leaks a ... memory? Pin
CodeWraith24-Aug-18 20:47
CodeWraith24-Aug-18 20:47 
GeneralRe: Does C++ finally have enough features to make memory leaks a ... memory? Pin
jschell25-Aug-18 3:46
jschell25-Aug-18 3:46 
GeneralRe: Does C++ finally have enough features to make memory leaks a ... memory? Pin
TheGreatAndPowerfulOz25-Aug-18 7:57
TheGreatAndPowerfulOz25-Aug-18 7:57 
GeneralRe: Does C++ finally have enough features to make memory leaks a ... memory? Pin
jschell25-Aug-18 3:33
jschell25-Aug-18 3:33 
GeneralRe: Does C++ finally have enough features to make memory leaks a ... memory? Pin
User 1106097925-Aug-18 4:12
User 1106097925-Aug-18 4:12 
GeneralRe: Does C++ finally have enough features to make memory leaks a ... memory? Pin
TheGreatAndPowerfulOz25-Aug-18 7:58
TheGreatAndPowerfulOz25-Aug-18 7:58 
GeneralRe: Does C++ finally have enough features to make memory leaks a ... memory? Pin
lopatir24-Aug-18 22:43
lopatir24-Aug-18 22:43 
GeneralRe: Does C++ finally have enough features to make memory leaks a ... memory? Pin
User 1106097925-Aug-18 6:07
User 1106097925-Aug-18 6:07 
GeneralRe: Does C++ finally have enough features to make memory leaks a ... memory? Pin
User 58385227-Aug-18 2:07
User 58385227-Aug-18 2:07 
GeneralIs JavaScript the best example of "technical debt"? Pin
swampwiz24-Aug-18 15:45
swampwiz24-Aug-18 15:45 
GeneralRe: Is JavaScript the best example of "technical debt"? Pin
Super Lloyd24-Aug-18 20:02
Super Lloyd24-Aug-18 20:02 
GeneralRe: Is JavaScript the best example of "technical debt"? Pin
Eric Lynch25-Aug-18 2:41
Eric Lynch25-Aug-18 2:41 
GeneralRe: Is JavaScript the best example of "technical debt"? Pin
jschell25-Aug-18 3:50
jschell25-Aug-18 3:50 
GeneralRe: Is JavaScript the best example of "technical debt"? Pin
PIEBALDconsult25-Aug-18 7:41
mvePIEBALDconsult25-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.


Straw Poll

Were you affected by the geomagnetic storms this past weekend?
Communication disruptions, electrified pipes, random unexplained blue-screens in Windows - the list of effects is terrifying.
  Results   502 votes