1,532 reputation
3936
bio website personalnexus.wordpress.com
location Düsseldorf, Germany
age 29
visits member for 1 year, 7 months
seen Jun 7 at 14:56
stats profile views 460

An MBA by training, I now write software for a living.


Feb
22
comment What data structure should I use for this caching strategy?
Good points, the best idea so far, IMHO. I implemented a cache based on this today and will have to profile and see how well it performs tomorrow.
Feb
22
comment What data structure should I use for this caching strategy?
@PeterSmith The two parameters are the main inputs. There are others, but they rarely change. If they do, I would throw the entire cache away. By "shared state" I meant a shared cache for all or a group of items. Since this would need to be locked or synchronized some other way, it would hinder performance. More on the performance implications of shared state.
Feb
22
comment What data structure should I use for this caching strategy?
@jk. Different items will produce very different inputs to the calculation. Since this means that there will be little overlap, I don't think keeping them in a single cache makes sense. Furthermore, different items could live in different threads, so in order to avoid shared state, I would like to keep the caches separate.
Feb
22
comment What data structure should I use for this caching strategy?
Unfortunately, for the time being the calculation algorithm cannot be changed, as it's a third-party library that uses some advanced math which is naturally CPU intensive. If at a later time that will be reworked, I will definitely check out the profiling tools suggested. Furthermore, the calculation will be performer quite often, sometimes with identical inputs, so preliminary profiling has shown a clear benefit even with a very naive caching strategy.
Feb
22
comment What data structure should I use for this caching strategy?
There won't be just one cache, but one per "item" that I am analyzing, and there can be several hundred-thousand of these items.
Feb
13
comment What is the difference between distributed and non-distributed version control?
There is a nice introduction to Mercurial by Joel Spolsky, check out the Subversion Re-education chapter.
Feb
13
comment Right design pattern to use StopWatch class
You may want to look at aspect-oriented programming whose goal is separate cross-cutting concerns (such as logging or maybe profiling) from the main code.
Feb
12
comment What factors should I consider when choosing names for identifiers?
I think with two variable should occupy same space in memory the OP does not mean that they point to same memory location, but instead they require the same amount of memory each (as opposed to the names that require different amounts of memory to store depending on their length).
Feb
12
comment What factors should I consider when choosing names for identifiers?
Agreed, that variable names should mean something to the programmer. However, they are not entirely lost when compiling code, atleast in C#. They do end up in an assembly's metadata (occupying a negligible amount of space) and considering things like named arguments names of identifiers are actually very relevant and form part of your code's public interface.
Feb
12
comment What factors should I consider when choosing names for identifiers?
Check out Microsoft's Guidelines for Names for rules that every .NET developer should follow to be consistent with the platform. I'm not sure though, what you mean by two variable intend to have same space occupied in memory Could you edit your questions to elaborate on that? Also, you might want to do something about your 0% accept rate. Some people are less inclined to provide an answer when you never accept any.
Feb
12
comment Can anybody recomend a good SEO book?
This question would belong on the Webmasters site, if they didn't already have a similar one.
Feb
12
comment Should I add MSDN notes or Stack Overflow links to source code?
@pdr Not an exact duplicate in my mind, as one needs to differentiate between links to documentation like MSDN and links to sites like Stack Overflow. See my answer below.
Feb
11
comment Are utility classes with nothing but static members an anti-pattern in C++?
@cbamber85 to be fair, I had put that line in only after reading the first two answers.
Feb
7
comment Regulation of the software industry
As much as I would like to hear what people have to say on this topic, it sounds to much like a discussion question to me to be a good fit for the Stack Exchange Q&A format.
Feb
6
comment Should I store False as Null in a boolean database field?
Wikipedia says Null is a special marker used in Structured Query Language (SQL) to indicate that a data value does not exist in the database This is the accepted wisdom and you shouldn't redefine what Null means in your application. It will be confusing to everybody else working with your code.
Feb
4
comment How do I preview my mobile web application on a Windows 7 PC?
Have you checked the Quality Assurance & Testing Stack Exchange site (currently in beta)? They actually have a question about tools for testing mobile web apps.
Feb
4
comment How do I best go about updating my programming skills?
Possible duplicate: programmers.stackexchange.com/questions/15449/…
Feb
3
comment Are there any good resources to learn how to write tech specs/design documents
Possible duplicates: programmers.stackexchange.com/questions/49741/… and programmers.stackexchange.com/questions/17696/…
Feb
3
comment How to name a method that behaves differently depending on application state?
verifyAndUpateAppSchemas sounds fine to me. Concise method names are great, but don't be a afraid to make them a little longer, if this aids in understanding their function.
Feb
2
comment C programming in Windows 7
Best tool for C programming on Windows without a doubt: Microsoft Visual Studio. As for the rest of your question: good luck with that.