+ All Categories
Home > Engineering > Have we forgotten how to program? - Tunisian WebDev MeetUp

Have we forgotten how to program? - Tunisian WebDev MeetUp

Date post: 09-Jan-2017
Category:
Upload: bedis-elacheche
View: 23 times
Download: 2 times
Share this document with a friend
31
Have we forgotten how to program? @elacheche_bedis SOUSSE, April 2016.
Transcript
Page 1: Have we forgotten how to program? - Tunisian WebDev MeetUp

Have we forgotten how to program?

@elacheche_bedis SOUSSE, April 2016.

Page 2: Have we forgotten how to program? - Tunisian WebDev MeetUp

Modern Javascript

Page 3: Have we forgotten how to program? - Tunisian WebDev MeetUp

Javascript is no longer just being used to enhance the user-experience on sites, it’s being used to build complex applications.

Page 4: Have we forgotten how to program? - Tunisian WebDev MeetUp

If you’re still including all of your scripts in your pages using a <script> tag, you’re doing it WRONG.

Page 5: Have we forgotten how to program? - Tunisian WebDev MeetUp
Page 6: Have we forgotten how to program? - Tunisian WebDev MeetUp

What a modern front-endworkflow looks like?

Page 7: Have we forgotten how to program? - Tunisian WebDev MeetUp

Dependency management

Tasks automation

Testing

Docs

Continuous Integration

Version control

Build

Code linting

Page 8: Have we forgotten how to program? - Tunisian WebDev MeetUp

Prerequisites

Page 9: Have we forgotten how to program? - Tunisian WebDev MeetUp

- NPM

- GIT

- A command line with less suck*

*If you’re doing development in Windows, the built-in console sucks

Page 10: Have we forgotten how to program? - Tunisian WebDev MeetUp
Page 11: Have we forgotten how to program? - Tunisian WebDev MeetUp

- Command Line Interface Application

- Allows users to install Node.js apps that are available on the npm registry

- Manages dependencies

Page 12: Have we forgotten how to program? - Tunisian WebDev MeetUp

Manages dependencies ?

Page 13: Have we forgotten how to program? - Tunisian WebDev MeetUp

Generally when working on a project, there comes a time when you have to leave the dev environment and if there are dependencies, you will have to follow them. Rather than copying them by hand, which more completely pollute a source manager.

Page 14: Have we forgotten how to program? - Tunisian WebDev MeetUp

/* Hello world */

require('module1');require('module2');/* Awesome Code */

/* Bazinga */

app.js

./node_modules

module1.js module2.js

Page 15: Have we forgotten how to program? - Tunisian WebDev MeetUp

- When you distribute your program, simply provide your sources and a config file.

- A simple command and the module is downloaded and installed!

- If a module requires another module to operate, NPM will download automatically!

Page 16: Have we forgotten how to program? - Tunisian WebDev MeetUp

NPM registry

Page 17: Have we forgotten how to program? - Tunisian WebDev MeetUp

- When it comes to building programs, there are a whole lot of modules and tools available to make the process quicker and simpler.

- NPM registry works sort of like an App store for developers. They look up the functionality they want, and hopefully fund a module that does it for them.

Page 18: Have we forgotten how to program? - Tunisian WebDev MeetUp
Page 19: Have we forgotten how to program? - Tunisian WebDev MeetUp

The guywho broke

the internet

Page 20: Have we forgotten how to program? - Tunisian WebDev MeetUp
Page 21: Have we forgotten how to program? - Tunisian WebDev MeetUp

“ @izs accepted to change the ownership of this module, without my permission. ”

Page 22: Have we forgotten how to program? - Tunisian WebDev MeetUp

“ I know you for years and would never imagine you siding with corporate patent lawyers threatening open source contributors ... I want all my modules to be deleted including my account, along with this package. I don’t wanna be a part of npm anymore. If you don’t do it, let me know how do it quickly. I think I have the right of deleting all my stuff from npm. ”

Page 23: Have we forgotten how to program? - Tunisian WebDev MeetUp

Unpublished more than 275 of his modules from NPM,

Page 24: Have we forgotten how to program? - Tunisian WebDev MeetUp

Left-pad

Page 25: Have we forgotten how to program? - Tunisian WebDev MeetUp

- Left-pad was fetched 2,486,696 downloads in just the last month, according to NPM.

- It was relied upon by companies such as Facebook, Netflix, and Airbnb.

- Programmers were left staring at broken builds and failed installations.

Page 26: Have we forgotten how to program? - Tunisian WebDev MeetUp

WHAAAAAAAAAAAT !?

Page 27: Have we forgotten how to program? - Tunisian WebDev MeetUp

“ This situation made me realize that NPM is someone’s private land where corporate is more powerful than the people, and I do open source because, Power To The People. ”

Page 28: Have we forgotten how to program? - Tunisian WebDev MeetUp

“ I did it for the benefit of the community in long term. NPM's monopoly won't be dictated to the free software community anymore. ”

Page 29: Have we forgotten how to program? - Tunisian WebDev MeetUp

Now what?

Page 30: Have we forgotten how to program? - Tunisian WebDev MeetUp

“ If a developer calls on an npm module, it’s basically shorthand for 'put this code in later', and a software compiler will just download the code when the time is right. ”

- Matt Weinberger

Page 31: Have we forgotten how to program? - Tunisian WebDev MeetUp

Have we forgotten how to program?

@elacheche_bedis SOUSSE, April 2016.


Recommended