recentpopularlog in

ianweatherhogg : idiom   88

« earlier  
From callback to (Future -> Functor -> Monad) - Tech.pro
Motivation ========= A fundamental concept in functional programming is composition. It simply describe the mechanism by which we combine simpler things to...
javascript  functional  programming  idiom  pattern  future  promise  compose  functor  monad  lift  5* 
april 2015 by ianweatherhogg
Node Modules to Rule Them All - Soreλa's Basement
Rants about programming, open source, caffeine, unfunny
jokes and such stuff.
npm  javascript  module  design  pattern  functional  programming  idiom  require  browser  5*  package  installation  name  space 
december 2013 by ianweatherhogg
The Neophyte's Guide to Scala Part 9: Promises and Futures in practice - Daniel Westheide
Sometimes, there is no NIO-based library available. For instance, most database drivers you’ll find in the Java world nowadays are using blocking IO. If you made a query to your database with such a driver in order to respond to a HTTP request, that call would be made on a web server thread. To avoid that, place all the code talking to the database inside a future block, like so

import concurrent.future
future {
queryDB(query)
}
scala  concurrency  idiom  promise  non  io  executor  context  5*  block 
april 2013 by ianweatherhogg
« earlier      
per page:    204080120160

Copy this bookmark:





to read