Reputation
219
Next privilege 250 Rep.
View close votes
Badges
3 10
Newest
 Explainer
Impact
~1k people reached

Aug
30
comment Metrics for when to use a hash value?
For reference, the LinqPad test, but it uses my build of DotLisp, which I need to get around to publishing.
Aug
30
comment Metrics for when to use a hash value?
@RobertHarvey I've reproduced that micro-benchmark in LinqPad, and noticed that (1) if you String.Intern the strings first, and so use VB.NET's Is (or C#'s (object)=) you only increase the tip-over point to 5 and (2) if you don't need to otherwise access the list by index, using LinkedList increases the tip-over point to 6 (for normal String =) and about 34 for Interned Strings with Is. What caused me to check the LinkedList was using DotLisp.Cons, with an API designed for interactive interpreter with Object functions had tip-overs at about 5 (=) and about 38 (Is).
Aug
22
answered OPTION STRICT set to off
Aug
21
comment Parsing XML to two separate (WInForm) controls
Note that if you need to cater for multiple transactions in a file, if you just slip <TransactionTotal> inside the <Items>, you can describe multiple transactions with just multiple <Items> groups, and they are read into two tables with an Items_Id to join them.
Aug
21
answered Issues deciding on approach to create object
Aug
12
comment How can I manage trash users?
@durron597 Interestingly, there's 2000 more Alex's but still only nine of them have over 10k rep.
Jul
22
awarded  Explainer
Jul
22
comment Is it acceptable to define a “module” and “class” within a single .VB element?
If you look at the "side-by-side markdown" diff of my edit you'll see I explicitly told it to format in VB in a comment that also forces it to notice a new code block.
Jul
22
revised Is it acceptable to define a “module” and “class” within a single .VB element?
typo
Jul
22
revised Is it acceptable to define a “module” and “class” within a single .VB element?
Code formatting
Jul
22
suggested approved edit on Is it acceptable to define a “module” and “class” within a single .VB element?
Jul
22
revised Is it acceptable to define a “module” and “class” within a single .VB element?
Explain Namespace, with vb formatting
Jul
22
awarded  Yearling
Jul
22
revised Is it acceptable to define a “module” and “class” within a single .VB element?
Explain Namespace
Jul
22
answered Is it acceptable to define a “module” and “class” within a single .VB element?
Jul
14
revised Should the sender of an event always be a generic Object?
Mention the even worse event of multiple versions of events.
Jul
8
comment What design patterns could be used here?
It does depend on what you want to generalise and/or which parts of the algorithm are fixed. The obvious adjustment is to abstract the services, allowing inner loops on services and their results. And then, depending upon if your calculate will never need to know about the other service values and any sort of "transaction" needed for the write calls, you could swap the order of the loops and have a get; barrier; calculate; barrier; write; sequence, where either of the barriers may not be needed, depending upon your situation, and error handling.
Jul
8
comment What is a good design for allowing backwards compatibility of files between different versions of software?
The slight issue with this as a "simple" option is that you'll strip all unexpected attributes (or keep them unchanged) when saving the document. As mentioned in other answers, a better solution at least determines in some version agnostic way as to whether an attribute should be dropped, kept or cause the document to become read-only for the versions that do not understand it.
Jun
19
answered specification regarding a text file
Jun
15
revised SDK/DB isDeleted vs Integration Testing
Mention explicit TestUsers and a delete method.