ENOTTY
Posts
-
Five Rules to Remember in Life -
Over-documentationIn general, I agree with you, the exception being concise^Wtoo clever for their own good LINQ expressions like these:
' enumerate Future Queries (go to DB in one request), put resulting KatalogIds into HashSets
Dim katalogErrorResults As Dictionary(Of KatalogErrorType, HashSet(Of Int32?))
katalogErrorResults = katalogErrorFutures _
.AsEnumerable() _
.Select(Function(katErr) _
New KeyValuePair(Of KatalogErrorType, HashSet(Of Int32?)) _
(katErr.Key, katErr.Value.ToHashSet)) _
.ToDictionary(Of KatalogErrorType, HashSet(Of Int32?)) _
(Function(kvp) kvp.Key, Function(kvp) kvp.Value, katalogErrorTypeComparer)' transform results to Dictionary(Of Int32?, KatalogErrorDTO)
Return katalogeIds.ToDictionary(
Function(sourceKatId) sourceKatId,
Function(sourceKatId) New KatalogErrorDTO() With { _
.ArtikelNummerPrefix = artikelNummerPrefix,
.SearchQuery = searchquery,
.Errors = [Enum].GetValues(GetType(KatalogErrorType)) _
.Cast(Of KatalogErrorType) _
.ToDictionary(Function(kErrorType) kErrorType, _
Function(kErrorType) katalogErrorResults(kErrorType) _
.Contains(sourceKatId)) _
}) -
Over-documentationWhat's with the scare quotes?
-
Religious question - MVC benefits vs ASP.NET?Just use Flesk.NET ViewState optimizer http://flesk.net/components/vsoptimizer.aspx[^] It can store Viewstate either in Session State or on disk server side (compression optional).
-
Whats wrong with this code???It should be called TryConvertToDouble with the signature and semantics following the TryXXX functions like TryGetValue(), that is: It should return bool true on successful conversion, false otherwise and the converted value in the out parameter.
-
BAD xmlI know what's wrong with it! It's missing the
-
Programming Preferences+1 And, of course, make sure that objects are serializable (like proper DTOs), so "the next guy" (which is yours truly) doesn't want to come after you wielding an axe because stuffing ListItemCollections and GridViewRows into Session makes the StateServer unhappy . :mad:
-
Number of Database TablesMehGerbil wrote:
3: I've a tendency to put combobox lists into discrete tables so that adding another option is as easy as adding a single row to a table.
Do you put reference data such as this into its own schema?
MehGerbil wrote:
4: I've log tables for everything a user may touch - before and after snapshots of everything.
Same question here.
-
Both Worlds :: Dot Net Development & Open Source DevelopmentMove your ass and your mind will follow. http://blogbrut.wordpress.com/2010/04/17/move-your-ass-and-your-mind-will-follow-the-power-of-positive-action/[^]
-
Back To Pretending I Know How To ProgramCheck out http://filehelpers.sourceforge.net/[^]
-
Citing/Linking WorldNetDaily? Are you fn kidding me?One of todays news items: http://www.codeproject.com/News/22816/NSA-has-total-access-via-Microsoft-Windows.aspx[^] :wtf: Seriously, it has been 14 years already? http://en.wikipedia.org/wiki/NSAKEY[^]
_NSAKEY was a variable name discovered in Windows NT 4 Service Pack 5 (which had been released unstripped of its symbolic debugging data) in August 1999 by Andrew D. Fernandes of Cryptonym Corporation. That variable contained a 1024-bit public key.
-
(Open)VMS - the end of an eraI still have a MicroVAX 3100-80 (and parts of the Orange Wall) sitting next to me. :cool:
-
Tools for enforcing coding guidelines? -
No names, no refences - and not mine.Well, this is keeping with kernel C style, since having one exit point is a well established pattern (not only) there; it makes it easier to argue about the correctness no matter eventual compiler warnings.
-
Developer whose first language is not EnglishYeah, it really should have been:
count(usr.usr_id) AS NumberOfOrphanedCunts
Always strive to make the intent clear. The real weird thing is however the nullable foreign key.
-
No names, no refences - and not mine.:doh: Actually, jumping out of complicated nested code via goto to an error label is fine in the kernel; what did you expect, setjmp/longjmp? For your enlightenment: http://eli.thegreenplace.net/2009/04/27/using-goto-for-error-handling-in-c/[^]
-
OO-DBMSI do need OPP. Just saying.
-
Still people are happy with IE6"No man, no problem."
-
Best Practices turned into Coding Horrors.Also you can fake multiline strings (in VB.NET, say) with an inline XML document, of which the text is then converted to a string.
-
Direct me to USBWell, Universal Short Bus is on topic in Hardware & Devices. As you've already been told.