hardmath
Reputation
761
Next privilege 1,000 Rep.
See votes, expandable usercard
 Sep 25 comment How to test the best combination of ratios to fit inside an overarching ratio? I think this is a math problem, but could use some improvements in wording. I suspect the use of ratios will confuse or mislead many Readers. If the idea is that a single instance of Container N can hold an assortment of items given by integer counts, e.g. one of A, two of B, three of C, etc., and you want the smallest number of containers (or some other objective) needed to cover a given shipment, then you should probably ask at Math.SE with greater care about the details. Jun 9 comment Virtual method returning a unique collection - how to ensure and hint? Sure, I'll do a bit of redaction. Jun 8 comment Virtual method returning a unique collection - how to ensure and hint? In your example, strings are often ordered lexicographically, so it might be a good way to test for uniqueness if a virtual method were implemented on a "concrete" string-like class. I often use a lexicographic approach to ordering things to trim the search space from "duplicates" of one kind or another. Jun 8 comment Virtual method returning a unique collection - how to ensure and hint? When the underlying domain has a canonical ordering, like integers, then sorting the "set" is often a way to impose unique items. However you may be thinking of imposing an arrangement of the (distinct) items on a finite collection, e.g. a list or other "container" class. So I'd guess (from the naming) that "OrderedSetOf..." refers to the latter case, where you basically return n items in a specific order, but the arrangement is not necessarily the "sorted" order. If I meant sorted, I'd say "SortedSetOf...". Jun 8 comment Virtual method returning a unique collection - how to ensure and hint? A "unique value collection" is a set in mathematics. Of course "set" by itself can be a (useful) verb, so to avoid ambiguity many times "SetOf" or similar phrasing will be chosen. Dec 25 comment What is a good use case for native XML databases? @RobertHarvey: Yeah, I wanted to work the work "idiosyncratic" into my answer, but it sounded too... idiosyncratic. Jul 28 comment How do I deal with a difficult programmmer joining an open source project? @DeerHunter: I didn't read the order of possibilities as order of preference, but it is useful to have 1,2 listed first as these possibilities can inform the discussion of 3. Jul 27 comment How does a non-technical manager add value to team of self-motivated software developers? @Vector: It brings to mind Dilbert's PHB, but I don't think this is the same as a non-technical manager. May 28 comment Efficient way to shuffle objects This Answer is valuable especially for the case where one does not have the freedom to revise/recode the underlying collection class or structure, e.g. one has to make do with an API to an OS maintained collection. Shuffling the indices is a great insight and stands by itself even if it's not as keen an insight as redoing the underlying design. Apr 23 comment Is deep nesting of control flow in code a studied problem? If "proof by authority" is acceptable, you might use the relevant material from Microsoft's Code Complete (2nd ed.), which IIRC recommends no more than 3 or 4 nesting levels in Sec. 19.4 (arguing clarity of understanding is lost beyond that point). Apr 22 comment What is the best way to prove that in-code documentation is greater than extensive external documentation? Are there dedicated QA resources assigned to the project? Feb 4 comment How do I avoid feature creep on a solo project? Are you a sole developer on this project? Large team projects find it indispensable to have milestones to make delivery schedules manageable, but those of us who fly solo can also benefit from methodologies like feature-driven development. Jan 14 comment Recursion or while loops Recursion means a function whose definition entails calling itself. Jan 11 comment Recursion or while loops Here is a blog by Guido van Rossum as to why he doesn't want tail-recursion optimization in Python (supporting the notion that different languages take distinct tactical approaches). Aug 16 comment SQL Server 2000 vs 2008 Express? A possible duplicate on StackOverflow: Limitations of SQL Server Express. Note that the size limit in SQL Server Express 2008 is up to 10Gb. However performance is constrained by single CPU threading and 1Gb RAM working memory. Jul 19 comment Why does XMLHttpRequest not seem to follow a naming convention? Note that while XML and URL are commonly all-caps, references to lowercase http are ubiquitous in HTML. So `XMLHttpRequest` may be viewed as camel casing of the combined identifiers. Jul 16 comment God Files versus Ravioli Code I agree with this sentiment. The hallmark of a good design is that when bugs need fixing or features need to be added, it is pretty obvious where to make changes, and ideally these changes are well localized and easily tested. "Spaghetti code" is of course frowned upon for failing these expectations. Jan 29 comment A good tool for browser automation/client-side Web scripting @MarkTrapp: Thanks for the courtesy of your reply. I believe you have misunderstood that point in the FAQ, but I'll mention my concern on meta. Jan 28 comment A good tool for browser automation/client-side Web scripting @MarkTrapp: Please note my comment above. I'd appreciate some insight on your vote to close. Jan 28 comment A good tool for browser automation/client-side Web scripting @Matthieu: I'm puzzled as to why a question exists about relating "to software development" in closing this question. Tools like selenium and Watir mentioned in the answers are certainly software development tools. It's frankly bizarre that you'd close this more than a month after an answer was accepted.