Reputation
1,014
Top tag
Next privilege 2,000 Rep.
Edit questions and answers
Badges
5 13
Newest
 Revival
Impact
~17k people reached

  • 0 posts edited
  • 5 helpful flags
  • 66 votes cast
Jul
13
awarded  Revival
May
26
comment REST - Recommendation route: POST or GET?
Idempotency and safety as defined in RFC 7231 do not have anything to do with whether the returned result will be the same or not, and everything to do with side-effects triggered by the call - a safe call has no side effects, an idempotent calls has the same side-effects when made multiple times as when it is made a single time. Does pulling a recommendation change state on your server, in a way that the client cares about? If no state changes from the PoV of a user, I would be comfortable using GET.
May
20
comment What are the prerequisites for learning Go
Rob Pike has written a very good blog post that tries to explain why C++ developers do not like Go - Less is exponentially more.
May
11
comment How do you find out what resources are unmanaged?
There exist some classes that implement IDisposable, that should not be disposed. I mean, there is at least one: Task (Explained in Do I need to dispose of Tasks?). However, I would expect such cases to be very rare.
May
7
comment Argument over performance using Convert.ChangeType in Web Applications
Thing is, I only see your version of the code. What is side A's version of the code? Is the client code going to be the same? In other words: please show us the version of the code that you think is worse than your version.
May
5
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).
May
4
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 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
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.