30,719 reputation
244115
bio website google.com
location Germany
age 46
visits member for 3 years, 4 months
seen Apr 11 at 10:11

Senior developer, mathematics and CS background. C# / C++ / VB.NET / VBA, but did also some Perl / Python / Javascript / Scheme and other languages in the past.


Apr
11
comment According to software engineering which method are too long?
@Euphoric: that is something one should do regardless of step 1, 2 or 3, so it does not fit well into the above list of refactoring alternatives.
Apr
11
revised According to software engineering which method are too long?
added 40 characters in body
Apr
11
answered According to software engineering which method are too long?
Apr
11
comment How to avoid errors and not miss anything
@AitorGonzalez: programming and testing is typically not a one-man-show. If you forget something, your peer reviewer and/or your tester should hopefully find most of the serious problems.
Apr
11
revised Environment-aware Code
added 809 characters in body
Apr
11
answered Environment-aware Code
Apr
10
comment Export to Excel - threading
I think this answer misses the point of the question. The question is not about improving the performance by parallelization (which is probably out of control of the OP since he uses a third party lib), but about making the excel export an asynchronous job.
Apr
10
comment Export to Excel - threading
Google for "asp.net backgroundworker" and you will find plenty of answers.
Apr
10
comment Does the recent open sourcing of MSFT's C# compiler mean it can be made cross-platform?
The answer is fine, and it shows the false premise of the question, but for the "It just works" statement one has to add - as long as it does not use any .NET library function which is not available in Mono. And any serious real-world code is using a lot of .NET framework libraries. So the And some areas of code may need to be rewritten a little part of the question still holds.
Apr
10
comment How can I approach creating an efficient algorithm for maximizing value with these specific constraints?
This is a variant of the well-known Knapsack problem (en.wikipedia.org/wiki/Knapsack_problem). And as Wikipedia states, use dynamic programming, branch&bound or a combination of both.
Apr
9
revised Maintaining indices for location in a sorted list in database rows
added 1 characters in body
Apr
9
comment For professional designing company, what is the key to design an app elegantly?
Just my 2 cents: if you have enough customers after 3 iterations so you get paid for many more iterations, then you're doing well.
Apr
9
comment Organising data access for dependency injection
Thanks, that's much clearer now. I think what you should read is the unit-of-work pattern (martinfowler.com/eaaCatalog/unitOfWork.html) and the repository pattern (link above). You define repositories for separate parts of your BL and inject them using a repository interface. Your repository will do the data access, using whatever kind of DL you want to encapsulate. Initialization can be part of the ctor of your repository, but there is no need to create "one interface per table" - the granularity of your repo should fit to the requirements of your BL objects.
Apr
9
comment Organising data access for dependency injection
I have still trouble to understand what your problem is - currently its seems you have a solution ("DI") and you are now looking for the problem to solve with that solution. But what is the actual problem you want to solve? Can you give a more specific example? The question how to apply DI (or if DI is really the best solution for your problem) can only be answered if we know what you want to achieve.
Apr
9
comment What is “the refactoring method” for understanding code wrote by someone else?
@Kiti: that are just three examples for possible refactorings (and probably the most important ones). Martin Fowler wrote a whole book about it, see refactoring.com
Apr
9
revised What is “the refactoring method” for understanding code wrote by someone else?
typos fixed
Apr
9
revised Maintaining indices for location in a sorted list in database rows
added 23 characters in body
Apr
9
revised ID properties on Domain objects in DDD
added 41 characters in body
Apr
8
comment Maintaining indices for location in a sorted list in database rows
@DanPichelman: thanks for the hint, see my edit
Apr
8
revised Maintaining indices for location in a sorted list in database rows
added 56 characters in body