10,410 reputation
42056
bio website
location
age
visits member for 3 years, 1 month
seen 1 hour ago

Sep
16
comment Data model for persisting queries to database
Hmm, what are your UI requirements and target audience? A simple DSL for ANDs and ORs can be easier than a visual query builder (or a fancier interface can do both and have one update the other). Also, it's hard to tell if you are better off storing the query by constituent parts or just saving and parsing a string. Do you need to use SQL to query your saved queries?
Sep
15
comment Data model for persisting queries to database
Who will be creating the queries? How will they be evaluated - does the query need to eventually be expressed in pure SQL or is it up to you? What technologies are you using to implement this (some environments make some techniques easier or harder)?
Sep
15
comment How to change the alignement of contains in a JScrollPane
This question appears to be off-topic because it belongs on stack overflow, but needs a minimum code sample demonstrating the problem
Sep
13
comment How to signal that a method chain should not continue?
Usually you return something representing the invalid state, that can be used to continue the chain later.
Sep
8
comment What is meant by an HTML5 application?
This is somewhat nitpicking, but people also often mean "browser features not actually part of the HTML5 spec per se, but part of some other standard developed at roughly the same time as HTML5". For example, WebGL isn't part of the W3C HTML5 spec. Most people don't need to care about the difference. Most people saying "HTML5 application" are unaware such distinctions are possible to make.
Sep
2
comment What to do if you're stuck on a project because you got dumped in without the information you need?
Do you need to know what it should do or is it figuring out how it does it? (Knowing what it should do includes being able to determine if a change you made broke other existing functionality).
Aug
27
comment Addressing the fact that primary keys are not part of your business domain
business keys are eternally unique - until they aren't. If you are using the business keys as primary when this happens then the change in business rules breaks more stuff.
Aug
22
comment Am I violating LSP if the condition can be checked?
stackoverflow.com/questions/20290834/… has decent answers to almost exactly the same issue.
Jul
25
comment Why would programmers ignore ISO standards?
I'll post an answer as soon as I finish rewriting my database to use ISO dates for its internal date format.
Jul
18
comment Do modern languages still use parser generators?
citation for all real languages are context sensitive please?
Jul
17
comment How should I approach this from a problem-solving point of view?
A Google keyword for this would be Entity Attribute Value (EAV) database. Example stackoverflow.com/questions/870808/…
Jul
11
comment What techniques should I use when implementing infinite scrolling on a website?
Asking for a library is off topic, but directly asking how to do it might be on topic. As for how to do it, you might read the slickgrid source code for some ideas, though there are other libraries out there as well.
Jul
9
comment Is this a good practice or not?
Having a stringly typed text field in the LookupValue class rather than making LookupValue a generic type parameter of the class seems like kind of a bad idea. Also, having serialization that prevents your data from containing ":" isn't ideal.
Jul
1
comment Estimated work remaining doesn't get lower
For political reasons, maybe try putting feature changes down as separate items. Then rather than saying "this feature initially needed 3 days, and after 42 days of work it now needs 11 days" you can say "this feature was estimated at 3 days, and completed in 4. Version 2 was estimated at 5 days and took 5 days. Currently versions 6, 7, 11, and 14 have bugs requiring an estimated 6 total days and version 19 is on day 7 (of 9 estimated) but looks like it will need 4 to finish".
Jun
26
comment How could an expert system get some meaning from a sentence?
Right. But if you're writing an expert system, presumably you know that. You pretty much need to, to write the system. So, what are you asking? How to write an A.I. that can determine the formula for how adding resources to real world projects will affect the completion date?
Jun
26
comment How could an expert system get some meaning from a sentence?
Processing the language is hard. Having a formula for each of your two cases isn't hard. Say, TimeToComplete=BaseTimeToComplete/(SquareRoot(NumberOfProgrammers)). Or whatever you've determined it is.
Jun
26
comment OPTION STRICT set to off
I just recently was working on a single form (similar situation to yours) and spent 3 hours fixing all the resulting compiler errors - without finishing the whole form. I'm staying OPTION STRICT off for the time being, annoying as it is.
May
16
comment How is the Decorator Pattern actually used in practice?
Inheritance is effectively unavailable to you when you would need to inherit from multiple classes. This happens frequently in classes you can change, either because they already need to have a superclass for some unrelated functionality or because you want to compose more than 1 behavior.
May
16
comment How is the Decorator Pattern actually used in practice?
The problem the decorator solves is - an alternative to subclassing. That's it. It doesn't directly solve real world, "concrete" problems. It's like asking for a real world problem solved by addition. Or by polymorphism. The best you will get is when some random application happened to use it. An anecdote about how "addition was vital in my nuclear launch software" won't really tell you much about addition or its purpose. You keep rejecting examples of composition that are as valid as anything you will get.
May
8
comment How do you prevent confused tests?
meta.programmers.stackexchange.com/questions/6629/…