HNHacker News
TopNewBestAskShowJobs

sm_sohan

58 karma · joined January 17, 2013

submissionscomments
sm_sohan··on Autism severity can change substantially during early childhood, study suggests
I think you're lucky with your son. The meds and interventions are essential for some. End even then the progress isn't always visible. Speaking from a different experience than yours.
sm_sohan··on Do we need a web API?
Many years ago I remember using a similar shim on ASP.NET where you'd simply decorate a server-side C# method and you could call it from JS like any other method. Not quite the way done here, but it had similar goals to blend server and client. So far, these things don't work in practice because of the so many things that differ between a browser and server environment.

https://docs.microsoft.com/en-us/dotnet/api/system.web.scrip...

sm_sohan··on Explanation of OAuth Tokens Using Transit Ticket Analogy
I’ve seen videos and read lengthy articles about the internals of OAuth a few times. Mo has done an exceptionally good job to keep it bare minimal and used a simple analogy to explain a complex topic. Definitely recommend spending a few minutes if you feel wtf about OAuth.
sm_sohan··on Ask HN: What's the best way to write an API spec?
May I say, look at SpyREST (SpyREST.com) if you consider developing the API first and then produce the documentation automatically simply by exercising the API? This is an open-source tool, feel free to take a look.

I'm developing SpyREST and will be happy to discuss if you want to learn more.

sm_sohan··on Show HN: SpyREST.com – automatically generates beautiful REST documentation
Here's a blog post explaining how it works: http://smsohan.com/blog/2015/01/13/you-can-haz-automated-res...
sm_sohan··on Your code may be elegant, but mine works
"Your code may be elegant, but mine works" - of course it works today, who cares about tomorrow?
sm_sohan··on MongoDB Is Abusing JSON
This doesn't have to be this way. The underlying machine friendly API can be hidden under a human friendly API abstraction.
sm_sohan··on MongoDB Is Abusing JSON
Totally agree with you.
sm_sohan··on MongoDB Is Abusing JSON
I am not sure of its origin. But these days you'll find good ORMs that would craft the query for you. My point is, the Mongo API seems to be more of a machine readable API with the $ keys used somewhat in a hacky way.