Re:Bridge is a new RPC framework for building modular services
by densh on Wednesday June 27, 2012 @02:18AM
(#4165790)
Aren't imports ugly, or is it just me?
// js
var Bridge = require('bridge-js')
// python
from BridgePython.bridge import Bridge
// ruby
require 'bridge-ruby'
---
First of all you don't really need language name in the name of each of the bindings. It's kind of obvious that i'm using ruby or python at the moment, isn't it? Python version looks especially ugly it should have been much simpler:
// js
var Bridge = require('bridge-js')
// python
from BridgePython.bridge import Bridge
// ruby
require 'bridge-ruby'
---
First of all you don't really need language name in the name of each of the bindings. It's kind of obvious that i'm using ruby or python at the moment, isn't it? Python version looks especially ugly it should have been much simpler:
import bridge