Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| App = new Marionette.Application(); | |
| App.addRegions { | |
| "headerRegion": "#header" | |
| "topMenuRegion": "#top-menu" | |
| "mainRegion" : "#main" | |
| } | |
| App.on 'initialize:after', -> | |
| Backbone.history.start() |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
ror, scala, jetty, erlang, thrift, mongrel, comet server, my-sql, memchached, varnish, kestrel(mq), starling, gizzard, cassandra, hadoop, vertica, munin, nagios, awstats
| DATA_DIR="__data" | |
| POSTGRES_VERSION=9.3 | |
| PORT=5432 | |
| .PHONY: docker-check postgres | |
| docker-check: | |
| @command -v docker >/dev/null 2>&1 || \ | |
| { echo >&2 "Docker needs to be installed and on your PATH. Aborting."; exit 1; } |
| var Hapi = require('hapi'); | |
| // Create a server with a host, port, and options | |
| var server = new Hapi.Server('localhost', 8001); | |
| server.route([ | |
| { | |
| path: '/failure', | |
| method: 'GET', | |
| config: { |
When the directory structure of your Node.js application (not library!) has some depth, you end up with a lot of annoying relative paths in your require calls like:
const Article = require('../../../../app/models/article');Those suck for maintenance and they're ugly.
| // api/models/Account.js | |
| module.exports = { | |
| attributes: { | |
| acct_id: { | |
| type: 'int', | |
| primaryKey: true | |
| }, | |
| loginName: { | |
| type: 'string', |
| /** @jsx React.DOM */ | |
| var LopMonHoc = React.createClass({ | |
| getInitialState: function(){ | |
| return {data: []} | |
| }, | |
| loadData: function(){ | |
| $.ajax({ | |
| url: '/daotao/lops', | |
| success: function(data){ |
Summary: use good/established messaging patterns like Enterprise Integration Patterns. Don't make up your own. Don't expose transport implementation details to your application.
As much as possible, I prefer to hide Rabbit's implementation details from my application. In .Net we have a Broker abstraction that can communicate through a lot of different transports (rabbit just happens to be our preferred one). The broker allows us to expose a very simple API which is basically: