Introducción a web
"TCP es como el doble check de Whatsapp" (definición 🔝) – Carlos
¿Cómo se sirve el HTML de la aplicación?
Ficheros estáticos almacenados vs. Ficheros generados dinámicamente, bajo demanda
¿Dónde se genera el HTML de la aplicación?
CSR/SPA (Client-Side Rendering / Single Page Application) vs. SSR/MPA (Server-Side Rendering / Multiple Page Application)
Asynchronous JavaScript, or JavaScript that uses callbacks, is hard to get right intuitively. A lot of code ends up looking like this:
fs.readdir(source, function (err, files) { if (err) { console.log(err) } else { files.forEach(function (filename, fileIndex) { console.log(filename) gm(filename).size(function (err, values) { if (err) { console.log('err') } else { console.log(filename + ' : ' + values) aspect = (values.width / values.height) widths.forEach(function (width, widthIndex) { ··· }.bind(this)) } }) }) } })
See the pyramid shape and all the
})
at the end? Eek!