4,927 reputation
22037
bio website theslice.livejournal.com
location Olathe, KS
age 42
visits member for 4 years
seen 2 hours ago

Just another programmer making his way in the world and hopefully helping others make theirs too.


Oct
4
comment Is it safe to display information about old passwords on login failure?
I would guesstimate it may be worse than that - that it IS a security issue on Facebook. I've seen (admittedly poor) user practices when passwords are changed - a "1" at the end is changed to a "2" and so on. So if "P4ssw0rd1" used to be valid password, Joe Hacker could be emboldened to move forward to try "P4ssw0rd2", etc. until FB lets him in.
Sep
30
comment Is The Free Lunch Over?
I'm going to go on record to say, by a totally non-scientific observation, that there has been such a revolution on the hardware side of things, but the software revolution has been extraordinarily slow-going. Getting quality concurrent tools for all programmers is still a tough gig and concurrency is still something that trips up even seasoned parallel developers in hard-to-reproduce ways.
Sep
26
comment Is try-finally expensive
@stonemetal I hope Python and OCaml exceptions aren't expensive a la Java's or C#'s.
Sep
24
comment Memory allocation of Classes that don't have any global data and locks
Depends. If you're mutating data, you'll need to account for concurrent access. If there is no data mutation (that is shown in your example), no locks are needed.
Sep
24
comment Memory allocation of Classes that don't have any global data and locks
There appears to be no shared data, so no locks are necessary. Memory usage is irrelevant to locking.
Sep
19
comment Well designed Open Source WPF Applications
If it's proficiency in the MVVM pattern and it's associated data binding goodness, you may want to look to a web application using knockout.js javascript library. It has those and has a longer shelf life than WPF at this point.
Sep
19
comment I have to use Visual Studio 2005. What are good alternatives to using LINQ?
There is always win in tapping in a Back to the Future III quote!
Sep
19
revised I have to use Visual Studio 2005. What are good alternatives to using LINQ?
changed class name to MyObject.
Sep
19
awarded  c#
Sep
19
revised I have to use Visual Studio 2005. What are good alternatives to using LINQ?
added some exampleness
Sep
19
answered I have to use Visual Studio 2005. What are good alternatives to using LINQ?
Sep
18
comment C#: Explicitly defining variable data types vs. using the keyword 'var'?
That's extreme, but your company's initiative. Glad it's your "last" job, though! :)
Sep
16
revised Why might an ASP.Net website load slowly?
added a fifth via comments: viewstate explanation.
Sep
10
awarded  Yearling
Sep
4
comment Is try-finally expensive
"if the exceptional situation is rare" - well there's a tautology right there. Exceptional means rare and that's precisely how exceptions should be used. Never should be part of the design or control flow.
Aug
22
comment Instantiating Null Objects with Null-Coalescing Operator
I remember looking at the IL for each of those three forms once. The first and the second were identical, but the third was optimized in a fashion as it could assume null was a comparison.
Aug
10
awarded  Nice Answer
Aug
9
comment Should I make a variable readonly when I modify it, but I don't actually set it outside of the constructor?
The real answer is that C# should add what C++ folks call a "deep-constness" (or deep immutability) idiom. Or use the proper classes/interfaces, as the comment says. Ignorance of the framework isn't really an excuse, in my opinion. I get confused by some code I read; when that happens I research why it is what it is. Not rocket surgery.
Aug
9
answered Should I make a variable readonly when I modify it, but I don't actually set it outside of the constructor?
Jul
26
awarded  Informed