You're probably here because you don't know everything.

Acknowledgement

of a problem is the first step toward its solution.

Thinking you know what you think you know is the problem,

you know?

Tara Z. Manicsic

@tzmanics

Developer Experience Engineer @ Netlify

promises

i promise i'll get back to you as soon as i know

const myFirstPromise = new Promise((resolve, reject) => {
  // do something asynchronous which eventually calls either:
  //
  //   resolve(someValue); // fulfilled
  // or
  //   reject("failure reason"); // rejected
});

async/await

make this asynchronous and then ahh, wait here until i get back to you

also, it's just a more readable promise

function resolveAfter2Seconds() {
  return new Promise(resolve => {
    setTimeout(() => {
      resolve('resolved');
    }, 2000);
  });
}

async function asyncCall() {
  console.log('calling');
  var result = await resolveAfter2Seconds();
  console.log(result);
  // expected output: 'resolved'
}

currying

i see you have many parameters, why don't you curry them in separate buckets

function volume(l,w,h) {
  return l * w * h;
}
const aCylinder = volume(100,20,90) // 180000l

function volume(l) {
  return (w) => {
    return (h) => {
      return l * w * h
    }
  }
}
const aCylinder = volume(100)(20)(90) // 180000

curry

immutability

an object whose state can not be modified after it is created

const obj = {
  prop: 42
};

Object.freeze(obj);

obj.prop = 33;
// Throws an error in strict mode

console.log(obj.prop);
// expected output: 42

const confusion

this

this is hard

i can't do this

globalThis

is exactly what it says it is: the globalThis

ECMAScript

scripting-language specification for JS

TC39 is the technical committee

the cloud

why it's named the cloud

serverless

serverless

==

worry less

 

microservices

micro: extremely small services:

the things your app does

micro: extremely small services:

the things your app does

microapps

micro: extremely small apps:

applications

micro puppies

micro: extremely small puppies:

tiny baby doggies

If you know someone is pretending they know but you know they don't know...

- what do you know

- you don' t know me

- i dare you

- shut your mouth

Tara Z. Manicsic

@tzmanics

Developer Experience Engineer @ Netlify