Reputation
3,987
Top tag
Next privilege 5,000 Rep.
Approve tag wiki edits
Badges
1 13 26
Impact
~77k people reached

  • 0 posts edited
  • 1 helpful flag
  • 170 votes cast
Aug
27
comment Storing a many-to-many relationship between aggregate roots in a document store
RavenDB's documentation seems to say much the same thing, with a few helps in place to make it less painful: ravendb.net/docs/article-page/3.0/csharp/indexes/querying/…
Aug
27
comment Storing a many-to-many relationship between aggregate roots in a document store
It seems like most solutions involve modeling the relationships in a manner very similar to the one that would be used in a relational database, viz. creating an array element that holds the related IDs. That is even what you see when you look at Mongo (seanhess.github.io/2012/02/01/mongodb_relational.html) which does have some other tools that can simplify the process (docs.mongodb.org/manual/reference/database-references/…).
Aug
27
comment Storing a many-to-many relationship between aggregate roots in a document store
There is one feeling I can't shake: if you care about relationships, you ought to use a relational database. I have nothing against NoSQL and I am not trying to troll -- relational databases got their name for a reason. They model and enforce relationships. Wouldn't it be easier to model relationships in a tool that explicitly is based upon them than in a system that has little support for that sort of idea?
Aug
6
reviewed Approve Integer conversion with Console.ReadLine()
Aug
4
reviewed Approve Python classes with only one instance: When to create a (single) class instance and when to work with the class instead?
Jul
28
comment Why is it so difficult to read code?
@DavidArno That sort of hard delineation is simply not true. There is a great deal of code that is clear itself, but the rationale for it is not, being imposed by external or environmental factors. Judicious comments still have value if they explain why something happened.
Jul
27
reviewed Reject Are there any negative side effects of splitting up large modules?
Jul
21
reviewed Approve What security is used by default in WSHttpBinding (service side) or the WCF Test client (client side)?
Jul
21
reviewed Edit Creating two-way object references and keeping data integrity
Jul
21
reviewed Approve What security is used by default in WSHttpBinding (service side) or the WCF Test client (client side)?
Jul
15
comment How to generate Generate Hash incorporating time stamp so it can be unhashed to get the timestamp when it was generated?
Since you mentioned a form submission I assume you are working on a web application. You could always leave the 15 minute concern out of the hash and instead associate the hash with the time the form was originally served in the user session (generating a new hash each time the page is served) and enforce the expiration server-side.
Jul
14
comment Python object oriented programming problems while implementing binary search tree
The Tree class should contain both methods and data. So you would have some properties (left and right I assume from your subsequent snippets) that would represent the value of the nodes, allowing you to say t.left = None.
Jul
6
reviewed Approve Does “Inversion of Control” promote “Anemic Domain Model”?
Jun
19
answered How to choose NOT to use a framework (Caliburn.Micro, etc.) in a given MVVM application?
Jun
19
comment Should one use many small configuration files for script or a single large configuration file?
It would be difficult to comprehensively answer without a better understanding of your job and what it does. That said, 10 files for a single job would be excessive. One config file would be normal. If specialized enough (and not redistributed), it may be fine to leave the variables in source.
Jun
9
comment How to build Data Access Layer independent of Schema Changes
Do you mean schema as in database namespace-like construct (e.g. foo.my_table where foo is the schema) or schema as in the structure of your tables/indexes/etc? If the latter, you can only minimize the impact, not eliminate it.
May
29
comment How to treat bugs that users thought were a feature?
Another great video game example is the ability to cancel moves into other moves in the old versions of Street Fighter (en.wikipedia.org/wiki/…). Originally a bug, it has ascended to be a "feature".
May
29
comment Is the use of one-letter variables encouraged?
Honestly, I've gotten to the point where I won't use one character variable names, period. I try to use names that spell out the usage, even for counters. I would typically use a variable named index when iterating over an array, for example.
Apr
24
awarded  Notable Question
Feb
4
reviewed Approve What do polynomial algorithms entail?