Sunday, June 22

Tag: Web

Web Tricks

Going From ES5 to ES6 (Solution to Code Challenge #13)

Last week on the code challenge #13 we looked at converting sample code in ES5 to even simpler and more readable code in ES6. Yet to take the challenge? You can check it out here. In this post, we shall solve the challenge. Awesome entries for the challenge can be found in the comment section of the post, on Twitter using the hashtag #ScotchChallenge and on the Spectrum forum. The Challenge No doubt that the ES6 version of JavaScript came with tons of amazing and useful features making web development with JavaScript even simpler and less error-prone. In this challenge, we are presented with a set of 5 different code pieces requiring a re-write using a key ES6 feature. We would go over these individual challenges and the solution for each shortly. However, we were provided with boilerplat...
Web Tricks

Picking the Right TLD for Your Next Project

Being in tech — especially if you're in the B2C world — gives you a lot of freedom the rest of the business world doesn't get to enjoy. You're primarily dealing with people who understand basic workflows, you can generally expect their browsers to be updated, and most importantly for us, people in tech tend to be far less resistant to new things than the rest of us. So when it comes to finding the perfect domain name for your next project, there's a lot of freedom. ... perhaps too much freedom. With 400+ TLDs available at iwantmyname, choice paralysis can definitely set in. Here's some help to get you through it. .com is the safe way to go There's nothing wrong with choosing a .com for any project. It's the most trusted, most expected TLD on the planet, and that's not likely to change in...
Smashing Book 6 Released
Web Tricks

Smashing Book 6 Released

The hotly anticipated Smashing Book 6: New Frontiers in Web Design, is released today. Dedicated to some of the thorniest problems we face in our professional lives, it takes a swing at some of the biggest headache-triggering issues in contemporary web design, from the accessibility of single-page apps in React and Angular, to designing for Smart watches. You’ll find solutions to problems with CSS’ latest layout tool CSS Grid, as well as CSS custom properties—the much needed answer to variables in CSS—plus asset loading in the world of HTTP/2. As well as the developer-focused content that makes Smashing popular, you’ll also find some design-specific topics. The book covers implementing design systems in the real world, designing conversational user interfaces, both augmented and virtual ...
18 Tips For Running a Successful Design Sprint
Web Tricks

18 Tips For Running a Successful Design Sprint

Development time is a precious resource. In order to be more efficient and responsive, product teams continuously try to use advanced techniques for product creation. One of the most popular frameworks that help the product team to achieve this goal is a design sprint. A design sprint is a framework that helps answer critical business questions through rapid prototyping and user testing. Basically, it’s a shortcut to learn without building and launching a real product. In this article, I want to highlight key things that should be taken into account when running a sprint. Before the Sprint Preparing for a sprint is one of the most critical steps in the process. Proper preparation will help make the best use of the time you’ll spend on this activity. 1. Write a Sprint Brief A sprint brief ...
Getting Started with React Router v4
Web Tricks

Getting Started with React Router v4

There are certain things we just can't build applications without: routing is one of them. Routing is necessary when switching between components in an application. React Router is one of many options you have when it comes to implementing routing in React applications. React Router continues to receive constant updates and is now at v4.x which is readily compatible with React v16. In this tutorial, we'll go through the vital concepts needed to get started with React Router 4. We'll set up our project with create-react-app which provides a quick way to get a react environment up and running. Preparing our application #React App Setup At this point we'll need to have create-react-app installed. If you haven't done this yet, run this command to install it globally: npm install -g create-reac...
Web Tricks

RxJS Operators for Dummies: forkJoin, zip, combineLatest, withLatestFrom

If you are confused about the differences between forkJoin, zip, combineLatest and withLatestFrom, you are not alone! :) These 4 operators are what we know as combination operators - we use them when we need to join information from multiple observables. Which operator should I use? That is what this article is for! We will talk about the usage and differences between these 4 operators in an easy to understand way, so you know which one to choose when the time comes. Setup Imagine you are printing t-shirts. Ms. Color holds the color information and Mr. Logo holds the logo information. Both of them will pick color and logo spontaneously. You will need to wait and combine these two information continuously in order to print t-shirts. Ms. Color and Mr. Logo represent two observables in our...
Introduction To Animation And The iMessage App Store With Shruggie
Web Tricks

Introduction To Animation And The iMessage App Store With Shruggie

Introduction To Animation And The iMessage App Store With ShruggieIntroduction To Animation And The iMessage App Store With Shruggie Simon Schmid 2018-09-10T14:45:42+02:00 2018-09-10T15:25:11+00:00 When the App Store for iMessage in late 2016 went live, I released Kaomotion, a sticker app with animated kaomoji inside. Ever since the release of this app, I wanted to write up a tutorial about how a simple text character like shruggie (i.e. ¯_(ツ)_/¯) can be animated to give it life-like features: The Shruggie animation we’re going to make. (Large preview)What you are going to read in this article is a step-by-step guide of setting up a canvas in After Effects an...
What’s New for Designers, September 2018
Web Tricks

What’s New for Designers, September 2018

This month’s collection of new tools and elements for designers has a common theme – productivity. There are so many things here to help you do work better and more efficiently. But there’s fun too…make sure to look for some of the hidden design gems deep in this article. They’ll bring a smile to your face for sure. If we’ve missed something that you think should have been on the list, let us know in the comments. And if you know of a new app or resource that should be featured next month, tweet it to @carriecousins to be considered! Brandy Brandy is a brand asset management tool for macOS. Use it to keep up with colors, logos, gradient patterns and fonts by project. Everything works in real-time and one account can contain as many brand projects as you like. Plus, it works using drag and...
Popular Design News of the Week: September 3, 2018 – September 9, 2018
Web Tricks

Popular Design News of the Week: September 3, 2018 – September 9, 2018

Every week users submit a lot of interesting stuff on our sister site Webdesigner News, highlighting great content from around the web that can be of interest to web designers.  The best way to keep track of all the great stories and news being posted is simply to check out the Webdesigner News site, however, in case you missed some here’s a quick and useful compilation of the most popular designer news that we curated from the past week. Note that this is only a very small selection of the links that were posted, so don’t miss out and subscribe to our newsletter and follow the site daily for all the news. Fix for WordPress Gutenberg 3.7.0 ‘Unexpected Error’ that Broke the Editor   The Typographic Details Behind Typewolf’s Favorite Sites of August 2018   If You Haven’t Already Switched t...
Getting Started With Machine Learning
Web Tricks

Getting Started With Machine Learning

Getting Started With Machine LearningGetting Started With Machine Learning Alvin Wan 2018-09-07T14:00:26+02:00 2018-09-07T14:07:14+00:00 The goal of machine learning is to find patterns in data and use those patterns to make predictions. It can also give us a framework to discuss machine learning problems and solutions — as you’ll see in this article. First, we will start with definitions and applications for machine learning. Then, we will discuss abstractions in machine learning and use that to frame our discussion: data, models, optimization models, and optimization algorithms. Later on in the article, we will discuss fundamental topics that underlie all ma...
4 Best Practices for Designing Mega-Footers
Web Tricks

4 Best Practices for Designing Mega-Footers

Have you ever visited a website, looked around for a bit, and then headed straight to the footer to find the information you were looking for? You’re not the only one. Footers are unique pieces of screen real estate that offer a number of benefits. They house important information (like contact details and copyright statements) and navigation options that make it easier for users to find what they’re looking for. In this article, we’ll talk about the importance of website footers and how you can use them to help your website’s visitors easily find what they’re looking for. We’ll also walk through some of the best practices you should keep in mind when designing mega-footers—the footer equivalent of the mega-menu. Why Footers Are Important We’re inclined to put a lot of effort into designi...
Web Tricks

Using Font Awesome 5 with React

Font Awesome is an... awesome (sorry I had to) product. React is a brilliant coding library. It would only make sense to use them together. I've been using Font Awesome for a long time and was stoked when their Kickstarter for the new version went live. There's a whopping 3,978 icons as of the time of this writing! We use React and Font Awesome together whenever you see an icon here on Scotch. That includes the user navigation, cards, brand icons, and more. While the Font Awesome team has made a React component to make this integration easy, I found a couple gotchas and had to understand some fundamental things about the new Font Awesome 5 and how it's structured. I'll write up what I found and the ways to use the React Font Awesome component. Ways to use Font Awesome Normally, if you we...
Web Tricks

Designing A Textbox, Unabridged

Designing A Textbox, UnabridgedDesigning A Textbox, Unabridged Shane Hudson 2018-09-06T13:30:16+02:00 2018-09-06T11:42:22+00:00 Ever spent an hour (or even a day) working on something just to throw the whole lot away and redo it in five minutes? That isn’t just a beginner’s code mistake; it is a real-world situation that you can easily find yourself in especially if the problem you’re trying to solve isn’t well understood to begin with. This is why I’m such a big proponent of upfront design, user research, and creating often multiple prototypes — also known as the old adage of “You don’t know what you don’t know.” At the same time, it is very easy to look at s...
Local Vs. Global Web Design: How to Reach the Right Audience
Web Tricks

Local Vs. Global Web Design: How to Reach the Right Audience

Businesses have more options today in terms of how they get their goods and services out to customers: strictly brick-and-mortar, 100% online, or a combination of the two. Because of this, web design isn’t necessarily as straightforward as we’d like it to be. Of course, there will always be certain best practices to abide by—abundant white space; responsive and mobile-first design; easy-to-find CTAs; streamlined user flow; consistent design and messaging site-wide. But big-picture items aside, what exactly do you need to know about designing for local businesses, global enterprises, and those that attempt to span both categories? Let’s take a look at the differences in designing for audiences based on location. Local vs. Global Web Design, What You Need to Know Below are 4 parts of the we...
Web Tricks

Building the New Scotch.io Animated SVG Logo

In this article we will be looking at how we implemented the new animated logo of Scotch.io, a visual detail to complement all the improvements that the site has experienced. Something like the icing on the cake :) For those who have not yet played a bit with the animation of the new logo, they can do so by moving the cursor inside (to resume animation) or outside (to pause animation) of the logo in the top left corner. If you want to know all the details about how it was implemented, just keep reading! Keeping the Waves Inside the Cup One of the first things we had to do was to keep the waves inside the cup. First we thought about cutting the waves using just a circular HTML element, using border-radius and overflow: hidden in the CSS. However, this was not possible, since the waves had t...