Reputation
27,063
Next tag badge:
93/100 score
19/20 answers
Badges
5 42 108
Impact
~1.1m people reached

Jul
28
awarded  Popular Question
Jun
29
awarded  Good Answer
Jun
25
answered Java - Best way to set properties of an object
Jun
11
awarded  Good Answer
Jun
7
comment Usage of objects in multiple containers in C++
@RaptisDimos: Effectively. The problem with new/delete is that it only works when the programmer puts in a huge amount of effort, which does not scale at all. It's much more effective to use smart pointers- pretty much exclusively. The advantages of C++ over GC are not lost at all by using smart pointers- they are fully deterministic and resource-generic.
Jun
7
answered Usage of objects in multiple containers in C++
Jun
6
comment Program to look at the first say 5 characters of a word and return a string if that string is actually the first 5 characters of a word?
I disagree because you have no idea whether the OP's performance here even matters in the slightest.
May
31
comment Is Non-Deterministic Resource-Management a Leaky Abstraction?
Except cycles are exceedingly rare and practically never occur except in data structures that are explicitly cyclic. The main difference is that destructors in C++ are handled properly everywhere but IDispose rarely handles the problem in .NET.
May
28
comment What is the etymology of the “dot” operator for string concatenation?
I'm not contending that it was not a reasonable choice for Perl considering that they already screwed it up and needed to not screw it up any further than it already is. I'm saying that in general, it's not a terrible choice to use + just because it does not obey every mathematical rule that normally surrounds +.
May
28
comment What is the etymology of the “dot” operator for string concatenation?
@MichaelT: The problem with that is weak typing and has nothing to do with operators. + for concatenation is a fine choice. Nobody expects literally every symbol in a programming language to have completely and only it's strict mathematical meaning (for most anyway I'm sure there's a few where you have to program in Unicode and strictly mathematical notation).
May
23
comment How would you structure your code for a Neural Network?
This is too opinion-based- everybody and their mum would have a design.
May
21
comment Why store flags/enums in a database as strings instead of integers?
This question is fundamentally an appeal to authority.
May
17
comment Does a Completely Full-Featured Intermediate Language Exist?
@Nathan: Of course it's a simple example, but it proves the point and there's no need for a more complex one.
May
16
comment Does a Completely Full-Featured Intermediate Language Exist?
That's not quite the same question because there are some features we clearly don't want, like COMEFROM.
May
13
comment How can I know if my data needs to be a react.js component?
@johnny: Ideally. If your website has a uniform look and feel, there will be lots of things rendered in the same way that can be re-used.
May
12
answered How can I know if my data needs to be a react.js component?
May
6
comment What makes a program cross-platform or not?
@JoshKelley: That is basically nothing compared to what most programs require. Also, some very common compilers like MSVC do implement overloading, SFINAE and name lookup differently with different observable results.
May
5
comment Why does C provide language 'bindings' where C++ falls short?
@prosfilaes: That time is about ten lines of code.
May
5
comment Why does C provide language 'bindings' where C++ falls short?
@prosfilaes: It's trivial to convert exceptions into return codes. You don't need to avoid using classes as those can be easily lowered into a C API and you don't need to avoid using templates in your implementation. And your users don't need to give a shit about C++ ABI clashes unless they're building from source, in which case, you have to deal with the source language no matter what that is.
May
4
comment Why does C provide language 'bindings' where C++ falls short?
@MasonWheeler: That is true but also irrelevant. Only the OP can state what's intended. Also, on Programmers, the community is quite one-sided I find.