10,441 reputation
42056
bio website
location
age
visits member for 3 years, 3 months
seen 32 mins ago

Oct
18
comment How to avoid module dependency chain nightmare caused by transitive dependencies?
Off hand, transitive dependencies aren't some weird artifact introduced by a weird implementation, there really are dependencies and they really are transitive. They are also common in programming. I'm not sure why it's confusing or a nightmare. Maybe you could elaborate on why this is something to be concerned about?
Oct
17
comment How to perform deferred tasks in backend
I don't think it's clear what your problem actually is. If you only consider them to have gold status if expiration Date>= now then there is no moment you need to "remove" it. So what exactly is the problem that remains?
Oct
17
comment How to perform deferred tasks in backend
Whenever you check the status check the expiration date too?
Oct
9
comment Static and not-static: programmer quantum theory
Is using $this not a "clear and unambiguous mode"? What is the problem you want solved?
Oct
8
comment Why is reading from memory not a side-effect but reading from a file is?
If someone wanted to implement a version of Haskell that did its own memory paging but kept the same public semantics then it would be side effect free (technically the files would have last access time modified and such, but that would not be exposed to the programmer directly) for the purpose of writing programs. The implementation of pure functional languages may, and do, have side effects. If as a programmer you are accessing a file at the level of the program itself you are dealing with a concept, files, that conceptually includes side effects.
Oct
2
comment FizzBuzz on Large Scale
@Doval - I think he did FizzBuzz with a switch statement.
Sep
23
comment Setting publisher information in visual studio express 2013
Belongs on SO but there doesn't seem to be much reason to migrate it.
Sep
19
comment Are Git branches, in fact, “homeomorphic endofunctors mapping submanifolds of a Hilbert space”?
I've always assumed that the author of the joke did get the monad joke but was purposely descending in to gibberish as a parody. One of those things that starts out plausible and becomes steadily less so until only at the end can you be sure its gibberish. It seems uncharitable to conclude he didn't get the monad joke.
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
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.