443 reputation
29
bio website
location
age
visits member for 1 year, 8 months
seen 10 hours ago

Apr
11
awarded  Informed
Apr
11
comment Performance Difference between using ToList() vs. new List(IEnumerable<T>)
I would use ToList because it works on many different IEnumerable types. This allows you to change your test array to a different enumerable type if you so choose to in the future, leading to less fragile code. I also find the syntax of ToList more obvious than the constructor argument.
Apr
9
answered Kibibtye or Kilobyte to represent 1024 bytes
Apr
5
comment ASP.net performance code behind vs app_code
If it's an asp.net "web application" and not "web site" then you should see no difference, as asp.net web applications do not use dynamic compilation.
Mar
14
comment Understanding dependency injection
I agree with @Phoshi, when doing Dependency Injection you are moving the responsibility of the creation of the dependency to the most appropriate place. Say you have a form that save an Order, it is certainly not the form's submit handler's responsibility to know what the SQL database's password is. It's not even the form's responsibility to even know that the persistence is an SQL database. It allows your code to operate on the correct level of abstraction.
Mar
10
comment What sort of information can I extract out of a dll file?
you should be able to read the PE file format, which means any imports and exports the DLL has. However, a lot of viruses are packed / compressed to thwart anti-viruses, so their imports / exports are probably minimal.
Mar
6
answered Slugify via helper or store slug on database?
Mar
6
comment Why is quality engineering difficult?
I think it is difficult because there's a near infinite amount of test-cases that could be created to test a system.
Mar
3
comment Web design pattern
Domain name is a web-server level construct, You could have both domain names pointing to the same application, and then within your application code, do Request.Url.Hostname (or whatever it is in php to get the hostname) to differentiate between the two.
Mar
3
answered Web design pattern
Feb
24
comment Apple eating problem
Is the speed of eating based upon the number of apples (apples per minute), or by weight (grams per minute)? If it's apples per minute, sort the list by weight descending, and always eat the largest available. If it's done by weight, then the order in which you eat apples does not matter.
Feb
21
awarded  Editor
Feb
21
revised Why can't native machine code be easily decompiled?
deleted 3 characters in body
Feb
21
comment Why can't native machine code be easily decompiled?
@chuckj thanks for the suggestion
Feb
21
answered Why can't native machine code be easily decompiled?
Jan
15
comment Learning the rules of chess
Could a human learn chess just from observing games? My thought is they would not learn all specific rules of the game. For example, how would a human learn that a pawn can not go backwards? Just because it never happens does not necessarily mean it's not possible to do so.
Jan
2
comment Win loss code that does not make 1-0 record better than someone like 20-3
Check out amix.dk/blog/post/19588 (Reddit ranking algorithm)
Dec
20
answered What is the standard practice for extracting an auto-incrementing primary key?
Dec
12
comment problem with High Cohesion - DRY principle across components
The design documentation should be your unit-tests. Refactoring should be a standard part of your development process.
Nov
25
awarded  Commentator