Learn to identify them, make habits to avoid them

Image for post
Image for post
jscomplete.com/beginner-mistakes


Image for post
Image for post
function sum(a, b) { return a + b; } 
// Can be named:
(function sum(a, b) { return a + b; });
// Or anonymous (AVOID):
(function(a, b) { return a + b; });
// Or assigned to a variable
const sum = function sum(a, b) { return a + b; })
// Single argument, one line return:
name => name.split(' ')
// Multi arguments, one line return:
(a, b) => a + b
// Single argument, full body:
name => { return name.split(' ')…


Image for post
Image for post
http://bit.ly/graphql-in-action
  • What GraphQL is and the design concepts behind it
  • How GraphQL is different from its alternatives, like REST APIs
  • The language and service parts of a GraphQL system
  • The advantages and disadvantages of GraphQL


It’s not about callback hell pyramid of doom


Image for post
Image for post


The GraphQL schema language is great but…

Image for post
Image for post

The Schema Language


Block scopes and the var/let/const keywords


Image for post
Image for post
  • Scalability? Code written for all 3 frameworks can be scaled as much as needed if we’re talking about performance. Some frameworks will have smarter optimization every now and then, but eventually all frameworks will follow any good smart optimization that gets battle-tested out there.
  • Syntax and readability? You (person or team) be the judge! Try them all and feel which syntax you prefer. Many frameworks have different “ways” for you to use them so make sure to explore all options. …


Image for post
Image for post


Image for post
Image for post

About

Samer Buna

Author for Pluralsight, O'Reilly, Manning, and LinkedIn Learning. Curator of jsComplete.com

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store