+ All Categories
Home > Education > Javascript isn't hard

Javascript isn't hard

Date post: 14-Jan-2017
Category:
Upload: christian-heilmann
View: 363 times
Download: 0 times
Share this document with a friend
25
JavaScript isn’t hard… Chris Heilmann @codepo8, SmashingConf Barcelona Jam Session, October 2016
Transcript
Page 1: Javascript isn't hard

JavaScript isn’t hard…

Chris Heilmann @codepo8, SmashingConf Barcelona Jam Session, October 2016

Page 2: Javascript isn't hard

Chris Heilmann @codepo8

Page 3: Javascript isn't hard

There is a lot of love for JavaScript on the web…

💚❤💙💛💜

Page 4: Javascript isn't hard

With good reasons…

😃 Very flexible language 😃 Runs everywhere 😃 Automatically available in browsers 😃 Multiple, open-source engines available 😃 Huge community 😃 Lightweight development environment

(text editor/browser is enough?)

Page 5: Javascript isn't hard

Lately JavaScript has a lot of visibility which leads to obsession instead of love…

🔥💵📈💯📢

Page 6: Javascript isn't hard

Which leads to a lot of pressure and anxiety for us developers…

😫😓😭😱😡

Page 7: Javascript isn't hard

Tell me if this sounds familiar…

🤔 I feel like I’m out of the loop 🤔 By the time I get to play with a new JS

feature, people already blog it is “considered harmful”

🤔 Everbody talks about flügelhorn.js but I have no idea what I’d need it for – am I building things nobody else does?

🤔 What are all these NPM modules on my HD?

🤔 Why do I get all these warnings when I build something and how come this is not a problem?

Page 8: Javascript isn't hard

Calm down!

Page 9: Javascript isn't hard

JavaScript used to be easy - it was just one language in the web stack. HTML

(Structure)

CSS (Look and Feel)

JavaScript (Behaviour)

Page 10: Javascript isn't hard

Due to its flexible nature, we extended its use cases massively…

Page 11: Javascript isn't hard

JavaScript now is a lot more…

✅ Web Development ✅ Task runners ✅ Package management ✅ Module-driven development ✅ Extension of software (browsers, editors) ✅ APIs ✅ Services ✅ Servers ✅ Fat client applications ✅ Compilation target ✅ Embeddable runtime ✅ Argument firestarter

Page 12: Javascript isn't hard

Enhance HTML progressively

Use librariesUse APIs and services

Use node, gulp, grunt, NPM and others to manage your tasks and builds

Write code for Node, other systems and services to write apps.

Different uses require different skill levels…

Page 13: Javascript isn't hard

Actively participate in systems used earlier in the timeline…

Participate in extending editors and development environments…

Work on meta languages and ideas to bridge the gap between JS and higher level languages.

Actively participate in inventing the next version of the language

Page 14: Javascript isn't hard

You do not need to do all of that…

Page 15: Javascript isn't hard

You do not need to use all of that…

Page 16: Javascript isn't hard

It’s totally OK to pick and choose what you want and feel comfortable with…

Page 17: Javascript isn't hard

“JavaScript” is not a language, but a whole world of decisions and use cases by now…

Page 18: Javascript isn't hard

Find your place in this world, travel to other destinations, but don’t feel bad for not becoming a resident in all of them…

Page 19: Javascript isn't hard

Make yourself more effective…

Understand what you use and own it…

Ownership and responsibility balancing act

Page 20: Javascript isn't hard

Build tools and process balancing act

Use what enables others to work with

you…

Use what helps you write maintainable

code…

Page 21: Javascript isn't hard

Progressive enhancement balancing act

Control the UX with JavaScript and own

the failure cases.

Rely on the browser to give a “working”

experience.

Page 22: Javascript isn't hard

Supporting the past balancing act…

Use powerful language

additions…

Don’t block out older browsers and

environments…

Page 23: Javascript isn't hard

I can’t help you with all these decisions. It is up to you and the products you work on what makes sense and what doesn’t…

Page 24: Javascript isn't hard

However, here’s a few pointers…

🤓 Learn the language - learn how it works, its strengths and weaknesses.

😉 Use polyfills and libraries when you know what they do. Make sure you can remove them and upgrade them if needed.

😍 ES6 is the current, ratified version of JavaScript. Use it, don’t wait for it.

🤓 Promises are an important part of every new JavaScript API. Good to get your head around them.

😱 Don’t panic! It’s a buffet, not a main course. Pick what doesn’t make you sick.

Page 25: Javascript isn't hard

CHRIS HEILMANN

@CODEPO8

CHRISTIANHEILMANN.COM

THANKS!


Recommended