t44u 2015, web development best practice

36
Defining Digital Engagement for Higher Education Front End Development Best Practices What you should keep in mind when developing for TERMINALFOUR Dave Larkan – Web Developer

Upload: terminalfour

Post on 16-Jan-2017

212 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: T44u 2015, web development best practice

Defining Digital Engagement for Higher Education

Front End Development Best PracticesWhat you should keep in mind when

developing for TERMINALFOUR

Dave Larkan – Web Developer

Page 2: T44u 2015, web development best practice

Defining Digital Engagement for Higher Education

Front End Development Best PracticesWhat you should keep in mind when

developing for TERMINALFOUR

Dave Larkan – Front End Developer

Page 3: T44u 2015, web development best practice

Defining Digital Engagement for Higher Education

Front End Development Best PracticesWhat you should keep in mind when

developing for TERMINALFOUR

Dave Larkan – Really Front – Front End Developer

Page 4: T44u 2015, web development best practice

• Design Systems

• Typography and Webfonts

• Using CSS pre-processors

• Performance

• Images and the modern web

• Questions, comments and abuse

What are we talking about today?

TERMINALFOUR – Front End Development Best Practices

Page 5: T44u 2015, web development best practice

TERMINALFOUR – Front End Development Best Practices

Before I start…

Page 6: T44u 2015, web development best practice

TERMINALFOUR – Front End Development Best Practices

Design Systems

Page 7: T44u 2015, web development best practice

TERMINALFOUR – Front End Development Best Practices

A design system is a definition of the architecture, content, visual, and supporting assets

and templates to produce and/or sustain a consistent andeffective product experience.

– Nathan Curtiseightshapes Design

Page 8: T44u 2015, web development best practice

TERMINALFOUR – Front End Development Best Practices

A design system is everything that makes up your product

– Mark OttoGitHub

Page 9: T44u 2015, web development best practice

TERMINALFOUR – Front End Development Best Practices

• Typography

• Layout and Grid System

• Colors

• Icons

• Components

• Coding Conventions

• Voice and tone

• Style Guide

Everything?

Page 10: T44u 2015, web development best practice

TERMINALFOUR – Front End Development Best Practices

• Basically, a design system is a model by which you catalogue and define your design into its building blocks

• Organisation & Maintainability

• Ability to give an Overview

• Designing for modules, not pages.

Page 11: T44u 2015, web development best practice

TERMINALFOUR – Front End Development Best Practices

• Atomic Design

Hundreds of ways to do this

Page 12: T44u 2015, web development best practice

TERMINALFOUR – Front End Development Best Practices

What is atomic design?

• Atoms

•Molecules

• Organisms

Page 13: T44u 2015, web development best practice

TERMINALFOUR – Front End Development Best Practices

• The smallest level building blocks.

• Can’t be broken down without losing their meaning.

Atoms

Page 14: T44u 2015, web development best practice

TERMINALFOUR – Front End Development Best Practices

• Groups of atoms bonded together which take on new properties as a result.

• Groups of elements that function together as a unit

Molecules

Page 15: T44u 2015, web development best practice

TERMINALFOUR – Front End Development Best Practices

• Groups of molecules (and possibly atoms) joined together to form a distinct section of an interface.

Organisms

Page 16: T44u 2015, web development best practice

TERMINALFOUR – Front End Development Best Practices

•Molecules and Organisms are your Content types.

• Fewer Page Layouts

•More Content Types

TERMINALFOUR was built for this

Page 17: T44u 2015, web development best practice

TERMINALFOUR – Front End Development Best Practices

Typography and WebFonts

Page 18: T44u 2015, web development best practice

TERMINALFOUR – Front End Development Best Practices

• Your content is the most important part of your site.

•What font you use defines how you’re expressing that content.

• If the words you put on the site are your voice, typography is the tone of that voice.

It’s all about good type

Page 19: T44u 2015, web development best practice

TERMINALFOUR – Front End Development Best Practices

•Webfont service

• Can be called asynchronously

• FOUT or FOIT

Typekit

Page 20: T44u 2015, web development best practice

TERMINALFOUR – Front End Development Best Practices

• Preview

• HTTPS (use href=“//fonts.googleapis…” and not href=“http://font.googleapis…”)

• Don’t support all font features

• If you’re using REM units and using a polyfill for IE8 support, Google Fonts will break.

Google Fonts

Page 21: T44u 2015, web development best practice

TERMINALFOUR – Front End Development Best Practices

Using CSS pre-processors

Page 22: T44u 2015, web development best practice

TERMINALFOUR – Front End Development Best Practices

• CSS lacked features

• CSS extentions like LESS and SASS

What’s a pre-processor

Page 23: T44u 2015, web development best practice

TERMINALFOUR – Front End Development Best Practices

SASS

Page 24: T44u 2015, web development best practice

TERMINALFOUR – Front End Development Best Practices

CSS

Page 25: T44u 2015, web development best practice

TERMINALFOUR – Front End Development Best Practices

Performance

Page 26: T44u 2015, web development best practice

TERMINALFOUR Confidential – t44u 2015

Average Page Sizes

Page 27: T44u 2015, web development best practice

TERMINALFOUR – Front End Development Best Practices

Why does that matter?

•More people are connecting over mobile devices now more than ever before

• Stable, fast and reliable connections are not a gaurentee• Even big cities have black spots

• Rural areas

• Trains and underground systems

• Google favours performance optimised sites in search results

Page 28: T44u 2015, web development best practice

TERMINALFOUR – Front End Development Best Practices

How can I make this better?

• Performance Budget

•Make fewer requests

•Make sure your images are optimised

•Minify all the files you can

• Enable GZIP on the server

• Test for slow connections

Page 29: T44u 2015, web development best practice

TERMINALFOUR – Front End Development Best Practices

How can TERMINALFOUR help?

• Image broker

• Auto variants

Page 30: T44u 2015, web development best practice

TERMINALFOUR – Front End Development Best Practices

Images and the modern web

Page 31: T44u 2015, web development best practice

TERMINALFOUR – Front End Development Best Practices

How do images even work these days?

• Srcset vs <picture>

•What’s the difference?

Page 32: T44u 2015, web development best practice

TERMINALFOUR – Front End Development Best Practices

Srcset

• Attribute on the <img> tag

• Allows the browser to decide what image to use.<img src="small.jpg" srcset="large.jpg 1024w, small.jpg 320w" sizes="100vw" alt="An example image" />

• Images always the same aspect ratios

Page 33: T44u 2015, web development best practice

TERMINALFOUR – Front End Development Best Practices

Picture

• A whole new element

• User decides what image to use<picture> <source media="(min-width: 650px)" srcset="large.png"> <source media="(min-width: 465px)" srcset="medium.png"> <img src="small.png" alt="Happy owls”></picture>

• Images needn‘t be the same aspect ratios

Page 34: T44u 2015, web development best practice

TERMINALFOUR – Front End Development Best Practices

What can TERMINALFOUR do to help?

• Automatically create images with srcset for image optimisation reasons.

• Use autovariants and programmable layouts to make better images.

•When it comes to the picture element you HAVE to let users choose two or more images.

Page 35: T44u 2015, web development best practice

TERMINALFOUR – Front End Development Best Practices

Summary

• Design Systems

• Typography and Webfonts

• Using CSS pre-processors

• Performance

• Images and the modern web

Page 36: T44u 2015, web development best practice

TERMINALFOUR – Front End Development Best Practices

Questions?