983 reputation
512
bio website
location
age 30
visits member for 4 years, 7 months
seen 27 mins ago

2d
comment Why do methods that take an unlimited amount of parameters often define overloads with fewer parameters?
@LowFlyingPelican: The .NET framework's reason is performance. Mono's reason for implementing that method was API compatibility with .NET. Mono's reason for implementing that method in that way was implementation simplicity (on account of them having considerably less resources than Microsoft).
2d
comment Why does C provide language 'bindings' where C++ falls short?
You should note that, while it is possible to define a C-like API implemented in C++ (extern "C", it is still more additional work to do so, that should be balanced against the features provided by C++)
Apr
24
comment C# async method on Windows Phone 8.1 (Nokia Lumia 920)
Yes, I stand corrected. You need the Dispatcher.RunAsync call.
Apr
24
comment Why were Java collections implemented with “optional methods” in the interface?
There is a problem with your proposal: an "ask then do" pattern has a concurrency issue if the capabilities of an object can change during its lifetime. (If you are going to have to risk an exception anyway, you might as well not bother asking...)
Apr
24
comment C# async method on Windows Phone 8.1 (Nokia Lumia 920)
Get rid of the Dispatcher.RunAsync call - unless I am very mistaken, an event handler will already be raised on the UI thread. After that, get rid of the async qualifier. The exception should then crash your application, and you will be more easily able to debug it.
Apr
23
comment Python 3 PyPy implementation?
PyPy3 2.4.0 release announcement.
Apr
22
awarded  Nice Answer
Apr
22
comment Explanation of how server-side programming languages are accessed
@MichaelT: You are using "web server" and "application server" as if the terms were interchangeable - and, in your answer, you use "web server" mostly to refer to apache, nginx - that is, generic web server software that only have (at their core) limited programmability.
Apr
22
comment Explanation of how server-side programming languages are accessed
"The solution is to move the fork and exec cycle into the web server itself." Not necessarily: FastCGI, reverse proxying are well-known solutions to connect to application servers without having to care for the target language or for the web server implementation, that use a well-specified cross-process communication protocol to do their work.
Apr
22
awarded  Yearling
Apr
22
answered Explanation of how server-side programming languages are accessed
Apr
13
comment Project architecture for application with dynamic database
Why the hell do you need some dynamic tables? What is the expected lifetime of the data that you put in these dynamic tables? (Why are you putting data in tables that may not exist again when you rerun the program?)
Apr
9
comment How much should I be using 'let' vs 'const' in ES6?
I suspect that this question is primarily opinion-based and is thus likely to be closed, but my 2 cents: It is OK to use const this much.
Mar
30
answered why do people do REST API's instead of DBAL's?
Mar
30
comment Asp.net caching strategy/pattern
@Joel: Take care if you are using MemoryCache - as far as I know, items can be removed from MemoryCache without you doing that explicitly.
Mar
20
revised Asp.net caching strategy/pattern
deleted 55 characters in body
Mar
20
revised Asp.net caching strategy/pattern
Added caveat regarding single-process assumption in the given code.
Mar
20
answered Asp.net caching strategy/pattern
Mar
20
comment Asp.net caching strategy/pattern
What happens if you receive a notification, then another notification 4 seconds later, and then no notification for 10 minutes? Then the new images will not be fetched for 10 minutes, defeating the purpose of using the realtime API. (And I do not think that throttling would help here.)
Mar
18
comment Dependency Injection with EF - is mapping required?
Which Visual Studio wizard did you use? Do the database classes inherit from a class in Entity Framework ?