Reputation
2,770
Top tag
Next privilege 3,000 Rep.
Cast close & reopen votes
Badges
2 8 19
Newest
 Enthusiast
Impact
~80k people reached

Jun
10
comment What are the differences between a while loop and a for loop?
Which languages are you talking about? C style? In pascal for loops are quite different from C for loops and in some other languages for also allows you to write for each loops.
Jun
7
comment Should you keep a copy of all the code you write?
Related article: Did Goldman Sachs Overstep in Criminally Charging Its Ex-Programmer?. This is also a good example that even if you win in the end, the legal battle itself can hurt a lot.
May
24
comment Refactoring a 1500 LOC method that only builds the graphical UI
One thing I'd change is separating the static setup from the dynamic state.
May
23
comment Why are strong names optional?
Most programs should not be installed into the GAC in the first place. So there is little reason for strong naming in those programs.
May
22
awarded  Nice Answer
May
18
comment Terms in conditions in installer or is on website ok
One important point for including them in the installer is that it's clear which version of your ToS / EULA your user agreed to.
May
16
comment Coding: conciseness/efficiency vs readability
I hope the SecondToken function is a joke.
May
14
comment c# naming - What are common conventions for a suffix to distinguish between read-only and writable interfaces
@KChaloux The latter is a wrapper and can still change its contents through the underlying collection. So it's only readonly, not immutable.
May
14
revised c# naming - What are common conventions for a suffix to distinguish between read-only and writable interfaces
added 15 characters in body
May
14
answered c# naming - What are common conventions for a suffix to distinguish between read-only and writable interfaces
May
14
comment c# naming - What are common conventions for a suffix to distinguish between read-only and writable interfaces
The O in ReadOnly should be uppercase to fit with the existing readonly collections in .NET.
May
11
comment Standard ways of revoking user access to a site
The cookie should consist of a random 128 bit value stored in its own table. That way you can revoke it by deleting it, and a user can have multiple sessions at the same time. Alternatively you can look at whatever session support is built into ASP.NET.
May
10
comment Standard ways of revoking user access to a site
Clearing the cookie isn't even necessary as long as you check in the db if the cookie is valid.
May
8
comment How to “neutralize” those who write bad code on the team?
Guns. Lots of them.
May
8
comment How to extend Constructor Injection?
Adding a required dependency is a breaking change, no matter how you inject that dependency.
May
7
comment How to show to management that unit testing is cheaper in the long run than manual testing?
I think unit testing argument validation just so you get to 100% coverage is very little value for the effort. Doing so may be worthwhile when building a high quality library (like the BCL), but I wouldn't do so in an application.
May
7
comment What has research shown about the effectiveness of comments?
Why have an example code as comment instead of as actual executable code?
May
2
revised If null is bad, why do modern languages implement it?
added 419 characters in body
May
2
answered If null is bad, why do modern languages implement it?
Apr
20
comment Browser security and payments
Even with TLS you need to trust the server which delivers the javascript. This problem can only be solved by improving browsers and even then only in part. For example if a shop website embeds javascript from an ad server it trusts, but the ad server is actually malicious (perhaps it was hacked) that server can send a copy of the CC data to the hacker.