| bio | website | github.com/CodesInChaos |
|---|---|---|
| location | Munich, Germany | |
| age | ||
| visits | member for | 2 years, 5 months |
| seen | May 18 at 7:50 | |
| stats | profile views | 199 |
- Jabber/XMPP: CodeInChaos@jabber.ccc.de
- IRC: CodesInChaos on freenode
- Email: My nick on gmail
- Blog: codesinchaos.wordpress.com
- GitHub: github.com/CodesInChaos
- Google+
- Twitter @CodesInChaos
|
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". |
|
Mar 1 |
comment |
Will a program ever crash if the main loop is put in a try/catch block For .net the answer is clearly "yes", for example consider stackoverflows. Some exceptions are often unrecoverable (access violations/segfaults) And there are certainly other kinds of crashes than unhandled exceptions, such as deadlocks. |
|
Mar 1 |
comment |
Using natural language grammar in fluent API btw. if you want to use a DSL for querying a database, you could use the already existing DSL called SQL. |
|
Mar 1 |
comment |
Using natural language grammar in fluent API IMO this kind of fluent API is horrible. For example lack of operator precedence is annoying. I'd parse where("name").equals("foo").or("bar") as (name=="foo")or bar. Then it's not clear when a string represents a literal, and when it presents a column name,... |
|
Mar 1 |
comment |
Using natural language grammar in fluent API where is the advantage over Users.Where(u=>(u.Name=="foo")&&(u.Email.StartsWith("foo@"))? |
|
Mar 1 |
comment |
How much usage of “likely” and “unlikely” macros is too much? For application code, I'd add them only if profiling showed that this code is used in a hot path. |
|
Mar 1 |
comment |
Is it safe to assume that one controller will only ever use one primary model? It depends on how you want to design the application. Some people prefer having one controller per resource. |
|
Feb 28 |
awarded | Nice Answer |
|
Feb 28 |
revised |
Dependency Injection and Singleton. Are they two entirely different concepts? added 195 characters in body |