1,812 reputation
716
bio website ericschaefer.org
location Munich, Germany
age 40
visits member for 3 years, 5 months
seen Mar 2 at 9:49

Feb
16
comment Why function returning by Address can not be a Lvalue?
Aside from why it does or does not work, why would you ever write such code? This code is ugly and hard to read and that is where bugs go to hide...
Oct
22
awarded  Yearling
May
31
comment Can you point me to a nontrivial strategy pattern implementation?
3) "It's sole purpose is to demonstrate patterns usage in real life." That's why I recommended it.
May
31
comment Can you point me to a nontrivial strategy pattern implementation?
2) jhotdraw.org is where it's at
May
31
comment Can you point me to a nontrivial strategy pattern implementation?
1) The question is "can you point me" and a link does exactly that.
Apr
16
answered Is it OK to have a method return different types based on a parameter?
Apr
3
answered Agile: When to re-factor and when to extend while accruing technical debt?
Mar
17
awarded  Good Answer
Feb
19
awarded  Caucus
Nov
11
comment What are the things Java got right?
@Tom Hawtin - tackline C++ even got portable threads now. Oh wait, java had them like 17 years ago... ;-)
Oct
22
awarded  Yearling
Sep
18
comment Purpose of NOP instruction and align statement in x86 assembly
NOP actually does something. It increments the Instruction Pointer.
Aug
9
revised How can I prevent users from merging origin/X into Y in git?
edited body
Aug
8
revised How can I prevent users from merging origin/X into Y in git?
added 1289 characters in body
Aug
7
comment How can I prevent users from merging origin/X into Y in git?
Yes, the mistakes can be corrected, but I am the one who has to do it. This happened multiple times in the last weeks and they noticed the mistake but did not know how to correct it.
Aug
7
comment How can I prevent users from merging origin/X into Y in git?
I don't want to prohibit it on the server. It would be sufficient if users can configure their local repos to warn before such a merge or to disallow it locally.
Aug
7
comment How can I prevent users from merging origin/X into Y in git?
@Ikke: I don't think I understand what you mean. Users can make such merges but I don't want that, because it is almost always by mistake.
Aug
7
asked How can I prevent users from merging origin/X into Y in git?
Aug
6
comment Make use of design patterns in C?
Oskar N. is right. As delnan noted, the pattern is about choice of an implementation (strategy) at runtime and that is what you do with the standard output/error/input streams in C. The user of stdout does not need to know and should not know where its output is written.
Aug
6
comment Make use of design patterns in C?
The strategy pattern: OO languages: polymorphism; prodedural languages: variables; functional languages: functions (doh!)