Friday Frontend: End of Summer Edition
Tags: fridayfrontend, css, javascript, webdev
Published: 2018-08-31 16:37:15

---
title: Friday Frontend: End of Summer Edition
published: true
tags: friday-frontend, css, javascript, webdev
canonical_url: https://zendev.com/2018/08/31/end-of-summer-edition.html
---

It’s the last day of August, the end of summer is upon us, and I definitely am feeling it. The weather has started to turn cooler, my kids have started up in school, and I’m shifting back into normal life after doing a lot of traveling.

I don’t have a video for you this week, but I do want to thank all of you who answered the survey I sent out.

There’s a lot of you who want more about front-end architecture, so I’m going to work on getting more of those resources into the newsletter going forward, along with our usual helpings of CSS and JavaScript tutorials and other awesome stuff.

Enjoy!  
KBall from ZenDev

#### CSS & SCSS

##### [Super-Powered Grid Components with CSS Custom Properties](https://css-tricks.com/super-power-grid-components-with-css-custom-properties/)

I loved this walkthrough because it not only covered how to create responsive components using Grid, but somehow made the concept of manipulating component versions utilizing custom properties of the parent click for me in a way that it hadn’t before. Creates a super elegant way to write CSS for components that have many variations!

  

##### [Using feature detection to write CSS with cross-browser support](https://css-tricks.com/using-feature-detection-to-write-css-with-cross-browser-support/)

This article not only talks about the many different ways that we can approach CSS feature detection and how those have evolved (I definitely started my career doing server-side browser sniffing to set body classes), but also talks through what scenarios we might not even need feature detection at all. Nice!

  

##### [A Tale of Two Buttons](https://medium.com/buildit/a-tale-of-two-buttons-e63185aefd5f)

There’s a lot of words spilled about the benefits of modularity in components vs the cascade in CSS, but I haven’t seen too many articles that really walk you through step by step how to best take advantage of the cascade. This does exactly that.

  

##### [The Benefits of Using CSS Grid for Web Form Layout](https://www.sitepoint.com/css-grid-web-form-layout/)

Interesting tutorial from a couple of angles. First off, it’s not looking at layouts as a whole but really just focusing down on the annoying things that are forms. 😝But secondly, it takes progressive enhancement approach to applying grid - rather than doing a grid implementation and then providing fallbacks, it takes a float-based layout and then uses grid to upgrade it where possible.

  

##### [CSS Grid in 45 Minutes!](https://www.youtube.com/watch?v=DCZdCKjnBCs)

A 45 minute talk by one of the great online teachers in our business, Wes Bos. It’s very well done - if you like learning by video, check it out.

  

#### JavaScript

##### [Protecting Angular v2+ Routes with CanActivate/CanActivateChild Guards](https://scotch.io/tutorials/protecting-angular-v2-routes-with-canactivatecanactivatechild-guards)

Using guards for routes is a very simple yet powerful way to handle things like role-based access control for different portions of your application. This article is about how to do this in Angular, but you can apply the same concept in [Vue Router](https://router.vuejs.org/guide/advanced/navigation-guards.html#in-component-guards) or via [an NPM package](https://www.npmjs.com/package/react-route-guard) with React Router.

  

##### [Structuring a React Project — a Definitive Guide](https://blog.bitsrc.io/structuring-a-react-project-a-definitive-guide-ac9a754df5eb)

This is an opinionated take, and there are a few pieces I disagree with (it touts [Bit](https://bitsrc.io/), which I’m pretty skeptical of, but it is on their blog so I guess they had to do some promotion). That said, most of what is in this guide matches consensus I’m starting to see grow in terms of how to architect React projects, and whether you agree with everything or not you’ll probably learn something from it.

  

##### [Errors handling for Vue class components](https://blog.bitsrc.io/errors-handling-for-vue-class-components-2f152f7c7515)

An interesting tutorial along two dimensions. First because it digs into error handling within Vue, but even more so because it introduces and uses the decorator pattern that is a proposed part of the JavaScript language (currently at stage 2 in the 4 stage process to becoming official). Decorators are not something many JavaScript developers are familiar with, but as this article shows they can provide a very elegant solution to many problems.

  

##### [Understanding Execution Context and Execution Stack in Javascript](https://blog.bitsrc.io/understanding-execution-context-and-execution-stack-in-javascript-1c9ea8642dd0)

A bit dense, but if you really want to understand how your tooling works this will be helpful. Goes deep into the semantics of the language and what is actually happening behind the scenes as functions are compiled and run.

  

##### [Checklist for Writing Highly Reusable Components in React and Vue](https://hackernoon.com/checklist-for-writing-highly-reusable-components-in-react-and-vue-531f963864bd)

A very useful list of ideas to consider. Not sure I’d call it a checklist, because not every one is applicable to every component, but definitely a good list of things to read through and think about as you design your components.

  

#### Other Awesomeness

##### [SVG Filters Playground](https://yoksel.github.io/svg-filters/#/)

Super cool visual playground to explore all the power that SVG filters give you. Play around, add filters and take them away, muck with the values, and in the end copy out your filter code! And of course, everything is demonstrated on a kitten because [the internet is for cats](https://tvtropes.org/pmwiki/pmwiki.php/Main/TheInternetIsForCats). Very nice. I think combining feColorMatrix and feConvolveMatrix is my favorite…. Ghost kitten!

  

##### [WorkerDOM: Concurrency for JavaScript programming with the DOM](https://amphtml.wordpress.com/2018/08/21/workerdom/)

This was the biggest announcement that happened in this year’s JSConf.US, a library coming out of Google (specifically the AMP project) that lets you imitate the DOM and do DOM manipulation in a web worker. For applications and frameworks that do a lot of heavy DOM manipulation, this will let them offload all the intermediate work to a second thread and only use the main thread for the final update. Very very cool!

  

##### [The power of progressive enhancement](https://medium.com/no-divide/the-power-of-progressive-enhancement-98738766b009)

Great article taking you through the process of thinking of an application via a progressive enhancement approach. I’m intrigued by the note that web components and Vue components are similar and give you a straightforward way to give default functionality in a custom HTML element. I haven’t done much with this, but given the drive towards serverside rendering of frameworks I wonder if we’ll start to see a return to “progressive enhancement” experiences even within a heavy JavaScript-first environment. Intriguing...

  

##### [How My Team Accidentally Moved to TypeScript and Loved It](https://dev.to/progresstelerik/how-my-team-accidentally-moved-to-typescript-and-loved-it-1j80-temp-slug-918908)

I must admit I’ve been a bit slow to the TypeScript bandwagon, but recently had a good friend strongly advocating it to me, and am seeing more and more adoption lately. In a talk at JSConf.US, [Laurie Voss](https://twitter.com/seldo) the COO of NPM shared the statistic that a staggering [46 percent of NPM users are using TypeScript](https://slides.com/seldo/npm-and-the-future-of-javascript#/65)! If you’re curious what all the hype is about, this is a great post that talks about some of the benefits seen from using TypeScript.

  

##### [Babel 7 Released](https://babeljs.io/blog/2018/08/27/7)

A new major release of Babel is a pretty big deal, and while I think increasingly Babel configuration is getting handled by frameworks and boilerplates, it’s probably worth taking a look at all the changes and starting to get ready for the new stuff.

  

* * *

#### Happy Friday!

That's it for this week's Friday Frontend newsletter. If you enjoyed this, you should probably [follow me on Twitter](https://twitter.com/kbal11) or join my mailing list. Sign up to get these newsletters straight to your inbox every Friday! Sign up here: [https://zendev.com/friday-frontend.html](https://zendev.com/friday-frontend.html)