2,425 reputation
2617
bio website github.com/CodesInChaos
location Frankfurt, Germany
age
visits member for 3 years, 9 months
seen 11 hours ago

Mar
7
comment Open source software with good code documentation to improve design skill
Not exactly what you want, but might be interesting: The Architecture of Open Source Applications
Mar
5
comment Should I test inherited methods?
IMO deriving a Manager class from Employee was the first major mistake.
Mar
5
comment What are some JavaScript selectors?
I don't see a big problem with calling the selectors used by querySelector etc "javascript selectors", just like you often call selectors used in css "css selectors". May not be the most accurate use of terminology, but calling them "morons" for it is a bit over the top.
Mar
4
awarded  Pundit
Mar
3
comment Best practices to avoid fake profiles?
Have the user pay money to register :P
Mar
3
comment Communication between a C# application and C++ DLL
This only works well if the API only exhibits C types. Using an API that exhibits C++ types that way is problematic.
Mar
3
comment Should a method's parameter list contain objects or object identifiers?
Context? Webservice? WCF?
Mar
2
comment Why is the usage of string keys generally considered to be a bad idea?
That specific case is clearly about performance. A "symbol" in this context is still just a string, but one that has a single canonical instance. Which reduces memory use, and allows comparison by simply comparing the reference instead of the value.
Mar
2
comment Why is the usage of string keys generally considered to be a bad idea?
You usually want primary keys that don't change over the lifetime of an object/row. So for example username as the primary key of a users table is probably not the best idea, and you'd prefer an auto-increment id. But that username is a string is only incidental, being a mutable property is the main issue
Mar
2
comment Why is the usage of string keys generally considered to be a bad idea?
Having string keys is not a bad idea in general. I suspect those statements were made in a context where a better key type is available. I have have .net dictionaries with string keys all the time. Can you give some examples of this claim?
Mar
2
comment Why shouldn't a GET request change data on the server?
@Brandon Modern browsers send the host domain in the clear as part of the TLS handshake (known as server name indication), to allow hosting more than one domain per IP address. The path/query part of the url is protected by TLS. There is no difference between GET and other HTTP verbs in that regard.
Mar
2
comment Technology for C#, Windows, 2D game development?
I'd avoid lower level libraries. They tend to require quite a bit of work just to get basic things working.
Mar
2
comment Index independent character comparison within text blocks
en.wikipedia.org/wiki/Levenshtein_distance
Mar
2
comment Why shouldn't a GET request change data on the server?
@JoachimSauer While GET would have saved them from the crawler, the root problem was lack of authentication. Any script kiddy could have POSTed them into oblivion as well.
Mar
2
comment Security and code execution
Is you question just "What damage can an xss vulnerability cause?"?
Mar
2
comment What is the difference between PHP and ASP.NET Web Forms in page size?
@Carson63000 When a diamond mod(such as Yannis Rizos♦) votes to close a question, it gets closed instantly and doesn't require votes from other users.
Mar
2
comment What are the best algorithms out there to retrieve data from a file system?
Why not simple single threaded code? Chances are that you're IO bound anyways, and HDDs don't like you reading data in several places at once.
Mar
2
suggested suggested edit on main() function prototypes
Mar
1
comment Function parameter names
I'd rename the method to Encrypt and the argument to plaintext.
Mar
1
comment Will a program ever crash if the main loop is put in a try/catch block
@Fahim The question in the topic is the opposite of the question on the last line of your question body. The answer to the question in the topic is "yes", and to the one in the body is "no".