1,689 reputation
2515
bio website github.com/CodesInChaos
location Munich, Germany
age
visits member for 2 years, 6 months
seen yesterday
stats profile views 206

Jan
10
comment Programmer Ethics: Can I fork a project from one code host to another?
An important question is what the license of the original code is. Just because source code is available on some host, does not mean you can modify or redistribute it.
Jan
3
comment Coding together on the same file
Having a broken file almost all the time sounds annoying to me.
Dec
28
comment Should you solve programming puzzles as a routine?
I think they help with solving algorithmic problems, but not with solving architectural problems.
Dec
27
comment is it okay to remove copyright info from a free, open source API even if you are explicitly told not to do so?
When distributing software you need a license from the author. The main point that's unclear is how a court would calculate damages.
Dec
22
comment Better php framework for shared hosting
Doesn't the cost of developing the application dwarf the cost of hosting it on a reasonable server? Unless this is a hobby project where work is considered free.
Dec
6
comment LSP vs OCP / Liskov Substitution VS Open Close
@JoelEtherton Those pairs only violate LSP if they're mutable. In the immutable case, deriving Square from Rectangle does not violate LSP. (But it's probably still bad design in the immutable case since you can have square Rectangles that are not a Square which does not match mathematics)
Dec
2
comment What are the advantages of the delegate pattern over the observer pattern?
What do you mean by "delegate pattern"? If you're talking about something like .net's delegates, you can have as many subscribers as you like.
Nov
27
awarded  Yearling
Nov
19
comment When do you typically write a software module yourself vs. buying an existing product?
I'd avoid buying crypto. The trusted crypto libraries are usually open source or part of the OS. I'd trust my own code over most closed source libraries. I wouldn't use any library that doesn't at least publish a clear and complete specification of how its crypto code works.
Oct
22
comment Is the link between C# programming language and music obvious for English native speaker?
@DavidThornley And then google decided to one-up Microsoft by calling their language "go".
Oct
19
comment Why use other number bases when programming
Of course I'd use a 10-ary tree. What's this weird 2 character you're using?
Aug
28
comment Why C# has no monkeypatching?
What do you mean by "dynamic extending"? Extension methods? And monkey patching isn't a good fit for the type system. You can do when you use types that are designed for dynamic typing together with the dynamic keyword.
Aug
15
comment Should session variables be avoided?
How do you get multiple tab semantics right when using sessions for state involved in your control flow? Sessions work well for login and settings like properties, but they don't have the right semantics for most other uses.
Aug
15
comment Should session variables be avoided?
I agree. Once you think about the desired semantics with multiple tabs it usually becomes obvious if session variables or request parameters are the right choice.
Aug
3
comment Should we ever delete data in a database?
Depends on what kind of data it is. In some cases you must delete it for legal reasons.
Aug
3
comment Storing plaintext passwords for detecting fraud
This system might work if you only check against against the password hashes of known fraudsters, and not against every password hash in your database.
Aug
3
comment Storing plaintext passwords for detecting fraud
@MartijnPieters In a proper password hashing system the number of distinct salts is (almost) equal to the number of users. With a reasonable number of iterations, a single check takes >1ms. So unless you have only a few hundred users, this is too expensive.
Aug
3
comment Storing plaintext passwords for detecting fraud
@MartijnPieters If it's not too expensive, then you either have only a handful of users, or your hash is too fast.
Jul
24
comment How to handle encryption key with a large development team?
What kind of key are you talking about?
Jul
19
comment Why are the arguments for substring functions mismatched?
This isn't really language agnostic. In many languages the second parameter is length and not endIndex.