The venue was The Duke of York’s in Brighton (Britain’s oldest working cinema) and the whole event was organised brilliantly. The seating was supremely comfortable, free tea, coffee, pastries and ice creams were provided and the diverse range of talks made for a really great conference.
Session 1 - Next Level CSS
Rachel Andrew kicked things off with a great run-through of what we can expect from CSS in the future, and specifically the changes coming with CSS Modules. There were so many great takeaways from this talk, including the following highlights:
- The FR fraction unit looks pretty neat when combined with CSS Grid.
grid-auto-fill: dense;provides size-aware masonry layouts in native CSS.
- There are some accessibility pitfalls when it comes to using Grid and we must take these seriously.
- By mid-2017, Grid will be available in 60-70% of browsers overnight. We can start using it today with @supports feature queries.
display: contents;moves child elements up to their parent’s level. This could be very useful for creating heavily optimised layouts on different viewports. We’ll be able to put wrappers around some elements, then hide the box-model around them, effectively removing the wrapper from the layout and lifting all child elements up a level.
- CSS shapes can use the alpha-channel to mask out an area for content to flow around - perfect for CMS-driven content.
writing-modelook great for creating print-like layouts, not previously possible on the web.
I’m really excited to see what we can create with CSS Grid in the next few years - it’s got the potential to radically change the way we design our broadly rectangular web. The slides from this talk are available here.
Session 2 - Progressive Web
Ada Rose Edwards then gave a tremendously inspirational talk on one of the key new parts of the web; ‘Progressive Web Apps’.
Here are some of the highlights:
- Browsers are often referred to as user-agents for good reason. They belong to the user and can be customised to a user’s individual preference. We shouldn’t overwrite that. Setting ‘user-scalable=no’ is a perfect example of what not to do.
- Part of progressive enhancement is accepting that some features won’t work for every user. As long as the core content always arrives, context doesn’t have be fully present. You don’t have to serve the same site for everyone.
- We should build for the past and progressively enhance for the future. The Space Jam website still works today.
- When you take over rendering, you risk breaking accessibility.
- If we silo our content for specific devices and parts of the planet, we break the web.
- Developers make the web slow. Browsers stream content by default. about://blank is the fastest page on the web.
- The mobile web got a bad reputation. PWA’s can fix that. Native apps give away all permissions from the get go; we can gain trust by being progressive with this.
- When we build a PWA, the network becomes an enhancement.
- Consider adding browser features back in for standalone apps. URLs, back buttons and history disappear when launched from the home screen.
- Think webby, feel native.
Session 3 - Technologic
Using Daft Punk’s ‘Technologic’ as a framework, Léonie Watson broke down web accessibility into applicable chunks that we can implement right-away. She also delved into the Accessibility tree; a subset of the DOM, explaining how our websites are interpreted by the browser and assistive technology.
Here are the highlights:
- A11y (Accessibility) is both highly logical and regularly illogical.
- In the A11y tree, all elements house a role, name and state, all of which determine how screen readers interpret them.
- When using neutral semantic elements (div and span) for visual effect, test that the content still makes sense without them.
- When adding role attributes, you must recreate all the browser functions for that disguised element.
- Aria-current can be used on breadcrumbs and navigation to suggest the selected page/section.
- Aria-controls (not implemented everywhere yet) adds a shortcut link between elements.
- The Tenon API is a great way to test your website against A11y recommendations.
- The easiest test is to unplug your keyboard and see how your website fares.
- It doesn’t have to be perfect, just a little better than yesterday.
The slides from Léonie’s talk are available here.
Session 4 - All things continuous
Andrew Martin then gave us a breakdown of the options available for our devops workflows. Although some of the items seemed more suited to larger organisations, teams and projects, there was some great advice for the sorts of projects we build at Tomango.
- Release and test often. Amazon ships a change to their servers every 11.6 seconds.
- Try and remove human interaction from your process. Humans make mistakes.
- Establish a continuous integration -> testing -> delivery -> deployment process and review it regularly.
- The pull request process can be a poor choice for a close team, consider pair/mob programming as an alternative.
- Unit test all the things!
- Using a product like Docker brings production pain forward. Once nailed at the start of the project, you can be happy that your code will work on a live server.
- Heisenbugs. Don’t fix with a commit until you fully understand the real problem.
The slides from Andrew’s talk are available here.
Session 5 - Power of Emoji
After a tasty lunch of ‘Hipster chicken’, we took a deep-dive into the history of Emoji with Mariko Kosaka. It was a truly fascinating talk with great anecdotes on the history of the mobile pictograms we take for granted. Mariko’s passion for communication through Emoji was incredible and hearing about the small forward-thinking team that devised the original set was very inspiring.
- Although many believe the emoji was created in 1999 by DoCoMo, the ‘J-Phone’ actually shipped an emoticon set as early as 1997.
- Pager sales in Japan directly correlated with the option for a ‘heart’ emoticon!
- Shigetaka Kurita took inspiration from weather forecast iconography when creating Emoji. He also loved snowboarding so he created two car icons: one for driving in the city and one for going up into the hills!
- As images and text are sent using two separate sockets, the use of a font was the perfect solution for speedy emoji.
- Pictograms were first used in the 1964 Japanese Olympic Games to help foreign visitors navigate the Olympic village.
- Google suggested using Unicode to standardise the sprawling number of emoji implementations.
- The lesser-known
<rt>elements can be used to add text to emoji.
Session 6 - Dev Tools
There is so much to DevTools.
Even when you think you’ve got a grip on the headline features, there are so many under-the-hood options that can seriously optimise your web development workflow. Umar Hansa ran through over 100 slides of incredible tips in this talk - there were so many mind blowing moments, it’s been difficult to pick out the best:
- Using the .cls button on the CSS panel adds a new class. Simple enough you may think. However, it also scans your code and autocompletes in real time - pretty neat.
- The animation panel lets you record, edit, change speed and generally nail your animations in a GUI editor. The cubic bezier and shadow editors provide a similarly awesome experience.
- The FPS meter is a great non-codey way to see how janky your site is.
- Console.time and performance.mark will help you debug slow code and time asynchronous requests.
- Cmd-shift-P works like your IDE, it gives access to DevTools settings without taking your hands off the keyboard.
- Request blocking is the perfect way to see how your site works without assets.
- Canary is implementing a native OS level terminal within the browser!
- It can also run native Node.JS debugging and editing (without server restarts!) within DevTools.
- Live Sass does real-time transpilation in the browser. We’re getting to a point where an IDE and build tool may not be necessary to build a website!
Session 7 - Modularity
Ashley Williams then led a philosophical talk on modularity, challenging our preconceptions and assumptions around a subject that’s regularly accepted as the perfect solution. With incredible space-turtle references and deep quotes from some of history’s greatest minds, this was a talk not to miss - check out the brilliant slides here.
- Why do we modularise code? For testing, reuse and separation of concerns. How do we decide where to split code? Nobody seems to know.
- The programmer is in the unique position… They have to be able to think in terms of conceptual hierarchies that are much deeper than a single mind ever needed to face before… the automatic computer confronts us with a radically new intellectual challenge that has no precedent in our history. - Edsgar Dijkstra.
- Reuse simple code. There is no ‘true’ programmer. Did we forget how to program when we stopped writing in C -> Assembly -> Binary -> Electricity?
- Your application should just be application code.
- __The more I modularize my code, the bigger it gets. __😕 - Nolan Lawson.
- Modularity should be used to break down hard things and make the code more ‘disposable’.
- A complex system that works is invariably found to have evolved from a simple system that worked. A complex system designed from scratch never works and cannot be patched up to make it work. You have to start over with a simple system. - John Gall.
Session 8 - Art.JS
The final session of the day was simply incredible.
Mathieu Henri started by explaining how he approaches creative coding before live-coding a breathtaking interpretation of Conway’s ‘Game of Life’ complete with visual brilliance and a dynamic, algorithmic soundtrack. If a video of this talk becomes available, watch it.
- It helps to have the following for creative coding: a creative mindset, an appreciation of standards (and a knowledge of how to abuse them), and a visual understanding of maths. You don’t have to be a mathematical genius.
- Using a restrained approach of one primitive and one formula will actually help your project.
- Libraries and frameworks are not required. Understanding standards and browser idiosyncrasies is far more useful.
- Fractions can provide ‘better numbers’ than decimals. Your maths doesn’t have to be perfect, use ‘close-enough’ values for speed.
- Don’t use ‘HSL’ rotations, browsers are slow to render them. Instead, write a short RGB function that does the same thing.
- Use the Audio API engine as your render loop. Not only will it help you add audio later, it’ll ensure your audio and video are synced.
A huge thanks to Remy, Julie and the #ffconf team for organising such a brilliant conference. It was inspiring and challenging throughout.