javascript Promise chaining: augmenting the unique argument

There are two things that, IMHO, make code cleaner when using Promises Idioma:

  1. use an unique object argument (and its attributes as you would use argument legacy)
  2. return resolve with the object given as argument augmented by attribute of the action executed by the function

i.e., say I want to ask db for data about a person, I define the method (function) that got an object {person: {personstruct}} and return the augmented object {person:{personstruct}, contactdata: {contactdatastruct}}


How to use model in a React Application

D: "Model has to be some where, where do I put the model?"

E: "At the top, the model is always at the top most. But I do not like react"

This conversation with ( Emanuele Rampichini) take place in late novemberduring a code retreat, but it was off topic, because I does not put into test React framework.

Signal page as correct in Google Webmaster Tool (simulate mouse click)

Google webmaster tool signals scanning errors. The is option to signal error a scorrected, but sometime a lot of error is solved at once, but interface do not give option to select it all.

Also this trick could be usefull in other service..

I loaded this code in chrome console (developer tool), modified from example code