3,810 reputation
1537
bio website heinzi.at
location Vienna, Austria
age 34
visits member for 3 years, 4 months
seen 2 hours ago

Apr
29
comment I should have used a factory method instead of a constructor. Can I change that and still be backwards-compatible?
@pdr: 1. Every change to method signatures has to be made at one more place. 2. I can either make the Impl classes inner and private, which is inconvenient if a client wants to access specific functionality only available in, e.g., an Xml data source. Or I can make them public, which means that the clients now have two different ways of doing the same thing.
Apr
29
revised I should have used a factory method instead of a constructor. Can I change that and still be backwards-compatible?
syntax
Apr
29
revised I should have used a factory method instead of a constructor. Can I change that and still be backwards-compatible?
added 201 characters in body
Apr
29
asked I should have used a factory method instead of a constructor. Can I change that and still be backwards-compatible?
Apr
16
comment Why is String immutable in Java?
Technically, it's not a duplicate, but Eric Lippert gives a great answer to this question here: programmers.stackexchange.com/a/190913/33843
Apr
15
comment Do Windows mail clients actually care about the MIME type of binary attachments?
@Oded: Exactly, and that's the whole point of the question: Is there a Windows mail client out there in the wild that actually needs the correct MIME type?
Apr
15
comment Do Windows mail clients actually care about the MIME type of binary attachments?
Thanks, that's a valid point. I'll leave the question open for now, though, since I'm still curious whether there actually is "an implementation that it doesn't work on".
Apr
14
asked Do Windows mail clients actually care about the MIME type of binary attachments?
Apr
6
comment Why it is not possible to Instantiating Types with Wildcards in Java
What do you want to achieve? If you want a linked list that accepts any kind of object, new LinkedList<Object>() is the correct thing to do.
Apr
2
awarded  Enlightened
Apr
2
awarded  Nice Answer
Apr
2
comment What to do when a client asks for something unreasonable (from my point of view)
@StephenOrr: Very good point. Ideally, one should not change the terms of the contract but clarify what was implicitly agreed upon when the contract was made. It will be neither "every browser ever made" nor "only brand-new browsers" -- this will need to be negotiated. In the end, the OP will probably have to support every browser with a significant market share.
Apr
2
revised What to do when a client asks for something unreasonable (from my point of view)
added 203 characters in body
Apr
2
revised What to do when a client asks for something unreasonable (from my point of view)
added 324 characters in body
Apr
2
answered What to do when a client asks for something unreasonable (from my point of view)
Mar
15
comment Should I check integrity in my application code or defer to the database?
How would you perform an SQL injection attack using invalid characters if the developer is correctly using parameterized queries?
Mar
15
revised When and why would we use immutable pointers?
added 51 characters in body
Mar
15
revised When and why would we use immutable pointers?
added 366 characters in body
Mar
15
comment When and why would we use immutable pointers?
@DaveRook: Nope, in .NET string is a reference type as well! See String class and note that the C# keyword string is just an alias for String!
Mar
15
answered When and why would we use immutable pointers?