255 reputation
210
bio website experts-exchange.com/…
location Halifax, MA
age 27
visits member for 3 years, 8 months
seen Aug 7 at 18:46

I occasionally like to answer other people's questions, and when I solve a difficult problem, I like to share it with the world.


Dec
6
comment Should timeout be a public static property or a parameter to every function?
@svick that sounds very flexible indeed. Out library is mostly a custom wrapper around the open source RestSharp and Newtonsoft Json.NET libraries to help users with their own simple applications communicate more easily with our server's public Rest API. I think if a user is advanced enough to use require the level of control CancellationTokens provide, then there's no harm in requesting that they simply implement their own low level code that interfaces our public REST API directly.
Dec
6
accepted Should timeout be a public static property or a parameter to every function?
Dec
6
comment Should timeout be a public static property or a parameter to every function?
+1, Unfortunately, the client-api I provide is meant to abstract away the nitty gritty low level tasks of making HTTP REST requests, parsing JSON, etc, so if the user has any chance of controlling certain pieces of low level behavior (like timeouts), I have to expose that through my API. I'm just trying to avoid minor configuration options dominating all my function signatures.
Dec
6
comment Should timeout be a public static property or a parameter to every function?
+1 This is a really neat idea. Unfortunately, my ClientAPI is a static class of extension methods (it's non-instantiable itself) so this syntax could never work. They'd have to do something like myMetaData.WithTimeout(30).Put(), which seems awkward since it's the Put method that is to be modified with a timeout, not the MetaData object.
Dec
6
comment Should timeout be a public static property or a parameter to every function?
These are very good points. Even a quick and simple method like Put() might take might take a very long time in instances where they have a large payload and a slow upload speed. They'd need be able to extend the timeouts for just these calls and the library would feel badly designed without the ability to add that parameter as part of the function call.
Dec
6
revised Should timeout be a public static property or a parameter to every function?
spelling
Dec
6
asked Should timeout be a public static property or a parameter to every function?
Feb
25
awarded  Caucus
Feb
25
awarded  Constituent
Jan
20
awarded  Nice Answer
Jan
12
awarded  Yearling
Oct
22
awarded  Self-Learner
Aug
18
awarded  Commentator
Jul
2
comment When and how a programmer should start own business?
@Developer Art That shouldn't be problem to begin with for most programmers.
Jun
22
comment Chess as a team building exercise for software developers
I bet 'certain team members' were running the board through an endgame database ;)
Apr
5
accepted What would happen if you defined your system's CSV delimiter as being a quotation mark?
Apr
5
awarded  Scholar
Mar
31
comment Most common “Y2K-style” bugs today?
Someone needs to stop counting high with doubles. leemon.com/crypto/BigInt.html
Mar
30
answered What would happen if you defined your system's CSV delimiter as being a quotation mark?
Mar
30
awarded  Editor