Re:JavaScript on the server: Growing the Node.js Community
by peterhunt on Monday January 23, 2012 @09:53PM
(#3503239)
I find it very easy to imagine myself writing some code that assumes a function doesn't need to do I/O, and then lo and behold the spec changes and we have to refactor the entire call stack of anything that assumes it's nonblocking.
[ Parent
| on HN ]
Re:JavaScript on the server: Growing the Node.js Community
by tlb on Monday January 23, 2012 @11:30PM
(#3503471)
I haven't had much difficulty avoiding such cases. It can come up if you have a simple fixed function that returns its value, but later decide to make it customizable through the database. When that happens, it's not very hard to make the callers use a callback.
Re:JavaScript on the server: Growing the Node.js Community
by artsrc on Monday January 23, 2012 @11:33PM
(#3503477)
Some changes are breaking changes. If a call requires new parameters and there are no sensible defaults then clients have to change to supply those parameters.
I am sure this will be misunderstood but anyway... The initial Java world made IO exceptions checked exceptions, this implied that the addition of IO was a breaking change in that model also.