SlideShare una empresa de Scribd logo
1 de 37
Descargar para leer sin conexión
BLOCK THE SYSTEM
Richtig geile klasse!
@LucP - Meetup Utrecht - 22 Mei
@LucP
@LucP
Een case...
@LucP
@LucP
BLOCK!
BLOCK!
BLOCK!
BLOCK!
BLOCK! BLOCK!
BLOCK!
Drie keer raden...
BLOCK!
BLOCK!
BLOCK!
Seriously...?
Learn Javascript
well Deeply
@LucP
@LucP
Wat een programmeur wil...
data vorm functie
WordPress 😕
data
vorm
functie
Meeste plugins 😅
data
vorm
functie
dependency
api
JS
MySQL
docs
api
dependency
data
socket
Jetpack 😒
data
vorm
functie
dependency
api
JS
MySQL
docs
api
dependency
data
socket
data
vorm
functie
dependency
api
JS
MySQL
docs
api
dependen
data
sock
data
vorm
functie
ndency
api
MySQL
docs
api
dependency
data
socket
Moderne Javascript?
@LucP
"ES6" in vier slides...
Meer? Check de course van Wes Bos!
@LucP
"ES6" in vier slides...
function( param1, param2 ){
Return 'Hello World'
}
( param1, param2 ) => { 'Hello World' }
Functions
Toen
Nu
@LucP
"ES6" in vier slides...
var test = 'Hello World';



console.log( test )
/-> Hello World
let test = 'Hello World';

console.log( test ); /-> Hello World


test = 'Hello';

console.log( test ); /-> Hello
const myVar = 'Can't touch this';

myVar = 'Let's try anyway' /-> ERROR!
Let / Const
Toen
Nu
@LucP
"ES6" in vier slides...
Var HelloWorld = new function(){
Init: function(){
//logic here
}
}
Class HelloWorld extends Component{
constructor(){
super(...arguments);
}

}
Classes
Toen
Nu
@LucP
"ES6" in vier slides...
<script type="text/javascript" src=".
Import 'Sort' from 'gutenberg-sortable'
Components
Toen
Nu
@LucP
Webpack & Babel
@LucP
Webpack = samenvoegen
Babel = zorgen dat 't werkt
@LucP
Wat slecht advies..
@LucP
1 ding installeren
3 bestandjes kopiëren
2 terminal commando's
NodeJS. Hier te downloaden
package.json
npm install
webpack.config.js .babelrc
npm run dev
@LucP
Block-tastisch
@LucP
De anatomie van een block
@LucP
- naam
- meta-data (icoon, categorie, etc)
- attributen
- edit
- save
registerBlockType()
@LucP
Let's jump to the code!
@LucP
Full example: github.com/lucprincen/my-plugin.git
@LucP
Custom Blocks KIT
page-break
container
intro
links
hero
subtitle
home-intro
read-more
related
collection
staff-collection
staff-publications
publications
collection-filter
studies-collection
vacancies-collection
expert
service
publication
contact
partners
testimonials
media
checklist
room-layout
room-specs
possibility-block
banner
faq-list
taxonomy-menu
page-menu
sidebar
text-button
@LucP
@LucP
😟 🤨
Gutenberg, frontend 😕
data
vorm
functie
@LucP
Gutenberg HTML Parser:
Kit:Container
InnerBlocks:
WP:heading
WP:linklist
Title
Links
Link
Link
Link
Link
Accessibility
Google Lighthouse meting, 6-11-2018@LucP
HTML:
<aside>



Sidebar
<section>

Tekst
<article>
Content
<header>

titel + intro
<footer>

related +

further links
<section>
<section>
<section>
<section>
<footer> (page)
<header>
Conclusie
@LucP
Ga bouwen,

Ga proberen, 

Echt... het is makkelijker dan je denkt.
Zijn er nog vragen?
@LucP

Más contenido relacionado

Más de Luc Princen

Making of Kit.nl
Making of Kit.nlMaking of Kit.nl
Making of Kit.nlLuc Princen
 
The Making of KIT
The Making of KITThe Making of KIT
The Making of KITLuc Princen
 
Block the System - building blocks in Gutenberg
Block the System - building blocks in GutenbergBlock the System - building blocks in Gutenberg
Block the System - building blocks in GutenbergLuc Princen
 
Block the System - building blocks in Gutenberg
Block the System - building blocks in GutenbergBlock the System - building blocks in Gutenberg
Block the System - building blocks in GutenbergLuc Princen
 
Ditch Your Framework!
Ditch Your Framework!Ditch Your Framework!
Ditch Your Framework!Luc Princen
 
Ditch Your Framework! - Magical layouts with modern css
Ditch Your Framework! - Magical layouts with modern cssDitch Your Framework! - Magical layouts with modern css
Ditch Your Framework! - Magical layouts with modern cssLuc Princen
 
An imposters journey through "real" development
An imposters journey through "real" developmentAn imposters journey through "real" development
An imposters journey through "real" developmentLuc Princen
 

Más de Luc Princen (8)

Making of Kit.nl
Making of Kit.nlMaking of Kit.nl
Making of Kit.nl
 
The Making of KIT
The Making of KITThe Making of KIT
The Making of KIT
 
Block the System - building blocks in Gutenberg
Block the System - building blocks in GutenbergBlock the System - building blocks in Gutenberg
Block the System - building blocks in Gutenberg
 
temp
temptemp
temp
 
Block the System - building blocks in Gutenberg
Block the System - building blocks in GutenbergBlock the System - building blocks in Gutenberg
Block the System - building blocks in Gutenberg
 
Ditch Your Framework!
Ditch Your Framework!Ditch Your Framework!
Ditch Your Framework!
 
Ditch Your Framework! - Magical layouts with modern css
Ditch Your Framework! - Magical layouts with modern cssDitch Your Framework! - Magical layouts with modern css
Ditch Your Framework! - Magical layouts with modern css
 
An imposters journey through "real" development
An imposters journey through "real" developmentAn imposters journey through "real" development
An imposters journey through "real" development
 

Block the System