977 reputation
48
bio website
location Germany
age
visits member for 1 year, 5 months
seen 1 hour ago
stats profile views 55

please delete me


May
12
answered How much poor quality code should a junior put up with?
May
4
comment Given a situation, and some conditions, verify is that situation is possible
The input is only the number of games played by each team? No info about the opponent? Is there any condition about the teams having to play all at a certain time simultaneously (like on Saturdays)?
Apr
29
comment Pattern for efficiently intersect two vectors
Maybe it's just me but you should explain what is meant by startindex. E.g. by possibly making explicit that, when you are talking about your indices with startindex1 = 4, you intend to say that are considering v1 = (v1[4],...v1[8]). It took me more than five minutes to figure this out -- when I see v1 = [1 2 3 4 5] then for me v1[0] = 0.
Apr
29
comment I should have used a factory method instead of a constructor. Can I change that and still be backwards-compatible?
I'd define an interface publishing the API, and then reuse the existing method by having a factory creating a wrapper around your old code and new ones by having the factory creating corresponding instances of classes implementing the interface.
Apr
29
comment How to port cli c++ program with GNU libraries from windows to Linux
If this is a pure command line tool you still need to understand the difference between managed and unmanaged code. If your original windows program relies heavily on managed code (search for gcnew) then it will be rather tedious to migrate.
Apr
28
comment Coding style (do more, then simplify)
If you use that method to solve small to medium tasks, then, as others told you in their answwers, I'd say there is nothing wrong with it, preferrably with some unit tests as additional quality measure. If you intend to create the architecture of some big solution this way I'd recommend to rethink the approach.
Apr
26
awarded  Enlightened
Apr
26
awarded  Nice Answer
Apr
26
awarded  Critic
Apr
26
comment Why does Donald Knuth write TAOCP using assembly language?
Jerry Coffin succeeded in doing what I wanted to do, he looked it up in the source ;-). I looked in the chapters where MIX and MIXAL are introduced, where I did not find such statements...maybe I should get an electronic copy some day. Anyway, I think the answer tag would be more appropriate for Jerry's reply in this case.
Apr
26
comment Why does Donald Knuth write TAOCP using assembly language?
@KilianFoth yes I know. But I'd expect artificial programming languages to be used in such a book. Probably targetting an MMIX (the second M is not a typo :-) based computer. And ETA of vol. 5 is 2020....
Apr
26
answered Why does Donald Knuth write TAOCP using assembly language?
Apr
23
comment 'delete' operator in dynamic memory allocation
As an example, on my debian gnu linux the result is 0 (compiled with g++ -std=c++11). g++ --version says "g++ (GCC) 4.7.2".
Apr
21
comment How to use lists in equivalence partitioning?
(ctd) you talk about testing -- what is it you want to test? And which is the requirement involving those colors you are talking about? And how are the developers you are mentioning are involved in all this?
Apr
21
comment How to use lists in equivalence partitioning?
I've difficulties to understand what you are asking. However, an equivalence class is simply the set of all elements which are equivalent wrt some eq. relation ~ on a larger set Y. For a relation to be an eq. relation 3 properties have to hold: a~a for each a in Y, a~b => b~a and (a~b and b~c) => a~c. Taking all lines in the plane it is easy to see that being parallel is an eq. relation. A theorem in elementary set theory says that if you have an eq. rel on Y, then Y is the disjoint union of the corresponding eq. classes. If these are finite, they can of course be represented by a lists, but
Apr
20
comment How much experience should a Junior Developer have?
How many of them do you know? After all, it's a junior developer, so there are chances that they will be content with a reasonable match. Is there a contact for the job? Call them and ask them, they will know.
Apr
20
answered How common is it for a team to write everything in-house?
Apr
20
awarded  Enthusiast
Apr
19
comment What is the best approach for overriding fields in a database?
Assuming I understood your question correctly I'd have a threshhold field at the sample and provide a default value (the project threshold) for that field. You will need to provide a means to provide that value on the sample granularity anyway, and with a default value you avoid additional logic at runtime.
Apr
19
comment Is there any difference between interfaces and abstract classes that have abstract methods only?
Yes, I was thinking about something like that, but don't have any experience with it, so could not judge. Thanks for the input.