30,739 reputation
244116
bio website google.com
location Germany
age 46
visits member for 3 years, 4 months
seen 3 hours ago

Senior developer, mathematics and CS background. C# / C++ / VB.NET / VBA, but did also some Perl / Python / Javascript / Scheme and other languages in the past.


Apr
2
comment Zero behavior objects in OOP - my design dilemma
Related: programmers.stackexchange.com/questions/224941/…
Apr
2
comment Zero behavior objects in OOP - my design dilemma
I guess the problem lies in the fact that there have been different schools for "Object Orientation" in the past - the way it was originally meant by people like Alan Kay (see geekswithblogs.net/theArchitectsNapkin/archive/2013/09/08/…), and the way is was taught in context of OOA/OOD by those people from Rational (en.wikipedia.org/wiki/Object-oriented_analysis_and_design).
Apr
2
comment Zero behavior objects in OOP - my design dilemma
"This is clearly against the principal idea of OOP" - no, its not, but its a common fallacy.
Apr
1
comment Has there been any formal proof that documentation in general is incomplete and obsolete to a certain grade?
@NikolaiProkoschenko: even if you find such a "formal reference", when you throw such an argument into a discussion, expect that the other persons will take you not seriously and think you are a smart ass (no offense!).
Apr
1
comment Why have private static methods?
@MattFenwick: you should post this as an answer.
Mar
31
comment db data to template: where to escape strings
Honestly, I don't get it - why does option B lead to "escaping done more than once"? You might consider to edit your question and add an example, please.
Mar
31
comment Guideline for managed (C#) and native code (C++) hybrid development
There are no guidelines except the ones that are valid for every question about optimizing code: iheartquotes.com/tags/michael_jackson
Mar
31
awarded  Enlightened
Mar
30
comment Unit Testing a method that contains two output type parameters
@shankbond: that unit test is as simple as it can be without changing signatures. If you want it to be even simpler, change the API of your sut and remove the out parameters.
Mar
29
awarded  Nice Answer
Mar
29
comment Database Schema Data Independence
If you don't want your question to be closed soon, you should seriously consider to give some clarification - in the current form your question invites for wild guessing, and this is not welcome here on this site. For example, you could edit your question and add from which book you took your cite.
Mar
29
comment Database Schema Data Independence
Hello Crizly, we don't know the book you are reading or the context of your cite - and only there is probably the answer to your question.
Mar
28
comment Should I pass array or pointer?
@ThomasEding: that was actually not my point.
Mar
28
comment Should I pass array or pointer?
@zadane: I would probably prefer to use a separate function for querying the size (if you want to avoid the library to do the malloc for the client.) You can also return a specific error code is the provided buffer size is too small, pass the required size in "dataSizeReturned" and let the client make a second try with an increased buffer size.
Mar
28
comment Should I pass array or pointer?
@zadane: please, don't use fixed values like MAX_ITEMS_SIZE, take this recommendation seriously, this will help you to avoid much trouble,
Mar
28
comment Should I pass array or pointer?
@ratchetfreak: throwing an exception is not a good idea when the API shall be kept C compatible, as the OP wrote in another comment.
Mar
28
comment Should I pass array or pointer?
@zadane: its pretty obvious how to change this answer to what you want: int getDate(float* buffer, size_t bufferSize, size_t &dataSizeReturned); where the return code is your error code.
Mar
28
revised Should I pass array or pointer?
edited body
Mar
28
comment Should I pass array or pointer?
@zadane: you did not mention anything of that in your question. But if that's the case, I suggest you use ratchedfreak's answer.
Mar
28
revised Should I pass array or pointer?
added 17 characters in body