Let’s start with the example. We have two files, one that is the main one called
app.js that exports just one method, called
After reading my first guide to testing NodeJS with Mocha you might have grasped the fundamental concepts of NodeJS testing. However, real word code is usually tested with some other expedients that you might know to be a better tester (and coder).
C’è un trend che ogni tanto ritorna, ossia quello di usare l’inglese come lingua ufficiale durante l’orario di lavoro. Con colleghi italiani. In un ufficio italiano.
Actually, the time you need to deploy an app depends on how fast you are to copy & paste.
Today I want to talk about something that we all need during our programming life: requesting data from a remote server. We will do this using callbacks and promises, to show both the approaches.
Qualche anno fa l’azienda per cui lavoravo ha attraversato un periodo di crisi e lo stipendio arrivava a singhiozzo (o peggio, non arrivava proprio). Lo ricordo come uno dei periodi più brutti della mia vita.