Reputation
1,134
Top tag
Next privilege 2,000 Rep.
Edit questions and answers
Badges
4 11
Impact
~23k people reached

  • 0 posts edited
  • 2 helpful flags
  • 90 votes cast
Jul
11
comment How to design a relational database for user following other users?
The overhead is quite limited in this example. The design stores 2 user IDs instead of the 1 that is conceptually necessary. I wouldn't worry about it.
Jul
11
comment My coworker commits and pushes without testing
+1 for the conversation. There has to be a shared understanding that this is a problem and why it is a problem. Only then there can be any success with a technical solution.
Jul
2
comment Creating an interface just to decouple from third party libraries
Did you try that? You need to reference the assembly of the base-type to use a derived type.
Jun
23
comment Algorithm to find the optimal trade route (negative cycle with lowest cost per edge in a digraph)
In the case when start or end of the route are not part of the cycle the infinite solution is the only optimal one. I'd suggest that you focus on the case with a limited number of jumps. It yield solutions that can be applied, not just theoretical results.
Jun
23
comment Algorithm to find the optimal trade route (negative cycle with lowest cost per edge in a digraph)
With no limit to jumps the answer in presence of a negative cycle always is 'enter the cycle and never leave'.
Jun
8
comment std::vector Non-Array Implementation?
Take a look at the "Resizable Arrays in Optimal Time and Space"-paper: citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.36.9607
Apr
28
comment Fastest way to determine if a value is in a list?
Which is important to you: worst case or average case performance? Are false positives or false negatives acceptable?
Mar
10
comment how best structure localization of content type category name
For countries there is an established mapping to numeric IDs: en.wikipedia.org/wiki/ISO_3166-1_numeric
Feb
16
comment Secure Rest api from authenticated user
Don't offer such endpoints. For a game you could have a 'CreateGameInstance' endpoint that gives you a random seed and a 'RateGameInstance' that computes the score given the game instance and the List of player inputs.
Nov
26
comment Managing Database version controlled migrations using a list/table
The 'unique string' written by entity framework is a serialized model of the database schema.
Nov
25
comment Why is it so bad to read data from a database “owned” by a different microservice
When allowing database reads every detail of the database becomes part of the public API. I wouldn't want to maintain compatibility on such a complex API.
Nov
13
comment An algorithm that spreads similar items across a list
I don't understand the 'the duplicates are spread as uniformly as possible' part. Can you specify that more formally?
Nov
4
comment Entity Framework Code First Centralized database deployment
You are assuming that the new software S2 can work with the old database D1 and that the old software S1 is incompatible with the new database D2. Both are assumptions might not be true.
Sep
24
awarded  Autobiographer
Aug
15
awarded  Yearling
Jul
23
comment Observing progress of a distributed system
Some numbers would be good. 1, 10, 100, 1000 sites with controllers? Same with applications. Why is a database needed for the information on job progress? Can't you just put it in a ConcurrentHashMap and be done with it?
Jul
21
comment Deferred execution of Dispose for IDisposable objects
Are you using the .NET4.5 ServerGC? It is a big improvement upon the previous variants of the GC. blogs.msdn.com/b/dotnet/archive/2012/07/20/…
Jul
8
comment How to test and optimize when you can't reproduce the environment?
Can you time-multiplex parts of the production environment between production and testing?
Jul
3
comment Why does C# have much more features than Java?
C# doesn't have the Java "enum values are classes"-feature.
Jul
2
answered Is hierarchical product backlog a good idea in TFS 2012-2013?