795 reputation
56
bio website
location
age
visits member for 4 years, 3 months
seen Dec 27 '13 at 19:02

Sep
11
awarded  Good Answer
Dec
25
comment In C++, how much programmer time is spent doing memory management
I find try-with-resources and using to be temporary/band-aid solutions to the problem. Without RAII, every single place you use a class is a suspect in a resource leak. I cannot see how this can be considered easier than C++. Having said that, these mechanisms are big improvements over what we had in the past: calling the right method at the right time explicitly.
Dec
23
awarded  Good Answer
Sep
13
awarded  Yearling
Sep
13
awarded  Yearling
May
1
answered Building software frontend for hardware that does not yet exist
Oct
3
comment In C++, how much programmer time is spent doing memory management
@deadalnix They do have the finalize construct. However, you don't know when it will be called. Will it be before you run out of sockets, or WebResponse objects? You'll find articles aplenty that tell you that you should not rely on finalize - with good reason.
Oct
3
awarded  Nice Answer
Oct
3
comment In C++, how much programmer time is spent doing memory management
@Max The problem with IDisposable/using paradigm is that the lifetime of the resource is still not controlled by the owning class. In C#, you can free the memory of a class, yet leak its internal resources if you forget to enclose allocation within a using block. It doesn't happen with a destructor paradigm. Either the class is still alive (leaked or otherwise), or the resources are freed along with the memory.
Oct
3
answered Is there a pattern for subscribing to fired events/messages at specific intervals?
Oct
3
comment In C++, how much programmer time is spent doing memory management
@coder Exactly what I am talking about. My fingers itch to write a destructor whenever I code in one of these languages.
Oct
3
answered In C++, how much programmer time is spent doing memory management
Oct
1
awarded  Commentator
Oct
1
comment Why is Mercurial considered to be easier than Git?
I want both the GUI and the help. :) What seems intuitive to me is a mess for someone else.
Oct
1
comment Why is Mercurial considered to be easier than Git?
Actually, I prefer a help that is 912 lines long to a help that is 64.
Sep
14
awarded  Yearling
Jul
26
awarded  Mortarboard
Jul
26
awarded  Nice Answer
Jul
26
comment Is it good to keep the bugfix comments within the code?
@Thorbjørn Indeed it is. :) I just mentioned it to point out that even when it is not comfortable and easy, there are benefits to doing it. I am all for using tools that automate away the drudgery.
Jul
26
comment Is it good to keep the bugfix comments within the code?
@Thorbjørn Ah, you've got it easy. I had to do it manually back in the day with CVS/Bugzilla combo (and later SVN/Bugzilla). Add bugfix reference to my commit, and add the commit reference to bugzilla. Error prone process, and developers tended to forget one or the other. But the information came in very handy on a number of occasions.