10,311 reputation
41956
bio website
location
age
visits member for 2 years, 11 months
seen 4 hours ago

4h
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.
12h
comment Is IT Administration my responsibility as a student Software Developer?
How to refactor the server structure and code is way to broad a question.
1d
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/…
May
7
comment Refactoring a live system that is tightly coupled with improper data models and business logic in the front-end
I would say "Techniques to re-factor garbage and maintain sanity?" is related but not a duplicate.
Apr
30
comment Are random number generators security holes?
en.wikipedia.org/wiki/Random_number_generator_attack
Apr
18
comment Adding field to the class at runtime - design pattern
steve-yegge.blogspot.com/2008/10/universal-design-pattern.html
Apr
15
comment What are appropriate metaphors for the pieces of a word processor?
This question appears to be off-topic because it is about finding metaphors. Design questions would be on topic, but this would probably be too broad anyway even if it asked for a design instead of a metaphor.
Apr
3
comment Observer pattern: “Web of observers” - Is this ever in use?
Mediator isn't the same as what you are suggesting, but relevant.
Apr
3
comment Observer pattern: “Web of observers” - Is this ever in use?
programmers.stackexchange.com/questions/134432/…. stackoverflow.com/questions/9226479/mediator-vs-observer
Mar
14
comment Understanding dependency injection
@JBRWilkinson I mean a class that implements an interface. I should make that clearer. However, the point is that a large app will have classes with dependencies that in turn have dependencies that in turn have dependencies... Setting it all up manually in the Main method is the result of doing lots of constructor injection.
Mar
7
comment How do I deal with global variables in existing legacy code (or, what's better, global hell or pattern hell)?
@ArthurChamz - Your question wasn't primarily about DI vs. a registry, which is another whole discussion. I was suggesting a method compatible with either. I guess I would say constructor DI if the dependency is always needed, parameter DI if it's optional, and Registry if it's too hard to refactor into DI (it might be hard to find a good place to wire all the dependencies up if this is happening deep in a large code base (which yours isn't really)). I agree on avoiding Singletons.
Feb
20
comment Coarse-grained views on server vs fine-grained views assembled on client vs fine-grained views with batching
I actually don't especially want an API that supports external as well as internal clients "But we have no reasonable current expectation that someone without access to the server would want to write another UI.", but it isn't unreasonable for an answer to discuss that. But it's hard to know which parts of the answer you think do apply to the question asked.
Feb
5
comment Meaningful names in weakly typed language like JS
There is always: function getBoxText(searchBox /*element*/) {