News for hackers. Stuff that matters.

lsm

Re:Alfa: An Alternative to Redux or Mobx on Thursday October 25, 2018 @02:05PM (#18303060)
That's very true. So the evil is not Chrome then :)
History of people attempting to charge for using a browser?
I’m using that too. Also try the new opera
But, the Chrome does have better UX than Firefox.
Re:Effortless React State Management on Friday June 15, 2018 @12:39PM (#17321180)
The GitHub repo is here: https://github.com/lsm/alfa
Re:Error Handling in Node.js on Friday November 04, 2016 @02:21AM (#12870718)
I think the main confusion is the callback thing as you can feed a function to get the returned result or emit an event and using another function somewhere else to receive that result. Javascript was designed for browser (GUI) which means its main job was to handle users' actions. So the event system was invented to decouple the "triggers" from the "actions". You can implement the exactly same paradigm in any other languages (actually a lot of GUI SDKs have equivalent facility). And if treat the callback as the return in other languages then everything would be clear.

The conclusion is 1. Throw an exception (which will stop the programm) if it's a programming error. 2. Handle it in place using callback just like you return the error code in other language if that's an operational error (e.g. user didn't input password when login). Emit an error event is really a special case of the callback when you want to handle error somewhere else (maybe globally).

So I think the article is more about when to "throw an exception" vs "return the error" if you take out those javascript special juices.

Re:Swift is Open Source on Thursday December 03, 2015 @10:24AM (#10670015)
Be patient guys. Good things come to those who wait.
Re:New View of Microservices on Wednesday September 02, 2015 @03:04AM (#10157805)
I agree, the consistency problems should be handled inside each individual services and the layer before all the services should be as simple as normal balancer.
Re:New View of Microservices on Wednesday September 02, 2015 @03:00AM (#10157794)
Really good suggestion for the API doc. I admit that writing documentation is much harder than code;)
Re:New View of Microservices on Wednesday September 02, 2015 @02:56AM (#10157786)
There's a naive zmq RPC adapter here: https://github.com/lsm/micromono/blob/master/lib/rpc/zmq.js

Very buggy especially when clients disconnect/reconnect. But, it's good starting point if you are interested.

Re:New View of Microservices on Wednesday September 02, 2015 @02:54AM (#10157779)
Yes, you got the idea. We focus on providing developer the "ability to switch or mix between microservice and monolithic styles" so people get flexibility they need for different circumstances (e.g. development vs deployment vs testing).
Re:Convox – Launch a Private Cloud in Minutes on Saturday August 01, 2015 @09:20PM (#9989366)
When you will support other vendors?