3,006 reputation
21634
bio website
location
age
visits member for 3 years, 9 months
seen Jul 2 at 14:30

Nov
18
comment exclamation points in error messages
Perfect, except you only included one exclamation
Nov
9
comment Did the developers of Java consciously abandon RAII?
@DanNeely, "the only advantage is being able to call native methods"... only? What about RAII?
Nov
7
comment Did the developers of Java consciously abandon RAII?
I don't know what you mean by "there is no point in RAII"... I think you mean "there is no ability to provide RAII in Java"... RAII is independent of any language... it does not become "pointless" because 1 particular language does not provide it
Nov
7
awarded  Popular Question
Nov
7
awarded  Good Question
Nov
7
comment Did the developers of Java consciously abandon RAII?
@Larry Obrien... once the stack variable goes out of scope the destructor is called.
Nov
7
comment Did the developers of Java consciously abandon RAII?
@Gnawme, but C# didn't learn RAII :)
Nov
7
comment Did the developers of Java consciously abandon RAII?
No... just put the relevant code in the destructor
Nov
7
comment Did the developers of Java consciously abandon RAII?
What about what C++ / CLI (.NET) has done, where the objects on the managed heap also have a stack-based "handle", which provides RIAA?
Nov
7
comment Did the developers of Java consciously abandon RAII?
C++/CLI (.NET) has garbage collection as well as RAII... I wonder if it is unique among languages in that way.
Nov
7
revised Did the developers of Java consciously abandon RAII?
forgot "new"
Nov
7
awarded  Nice Question
Nov
7
comment Did the developers of Java consciously abandon RAII?
First of all Java's "finalize" is non-deterministic... it is not the equivalent of C#'s "dispose" or of C++'s destructors... also, C++ also has a garbage collector if you use .NET
Nov
7
revised Did the developers of Java consciously abandon RAII?
added 134 characters in body
Nov
7
comment Did the developers of Java consciously abandon RAII?
@maple_shaft, exactly my point! That is the advantage of C++ that I am addressing in this question. In C# you need to enclose resources in "using"... in C++ you do not.
Nov
7
asked Did the developers of Java consciously abandon RAII?
Oct
19
comment Purely technical reasons for PHP as a first choice?
@EmmadKareem, right... the point of my question is... taking all that into consideration, what is the advantage of PHP, if any, for any specific type of project
Oct
18
revised Purely technical reasons for PHP as a first choice?
added 315 characters in body
Oct
18
comment Purely technical reasons for PHP as a first choice?
@EmmadKareem, agreed... so lay out for me a specific type of system where the needs would recommend PHP as a first choice
Oct
18
comment Purely technical reasons for PHP as a first choice?
@Renesis, ok, to take hosting provider out of it, let's assume I'm hosting the new system on my own server which has nothing pre-installed, and I can install anything I want on it.