Monday, June 30
Using data in React with the Fetch API and axios
CSS Tricks

Using data in React with the Fetch API and axios

If you are new to React, and perhaps have only played with building to-do and counter apps, you may not yet have run across a need to pull in data for your app. There will likely come a time when you’ll need to do this, as React apps are most well suited for situations where you’re handling both data and state. The first set of data you may need to handle might be hard-coded into your React application, like we did for this demo from our Error Boundary tutorial: See the Pen error boundary 0 by Kingsley Silas Chijioke (@kinsomicrote) on CodePen. What if you want to handle data from an API? That's the purpose of this tutorial. Specifically, we'll make use of the Fetch API and axios as examples for how to request and use data. The Fetch API The Fetch API provides an interface for fetching re...
We Are Just Getting Started: 1,000 Smashing Members
Web Tricks

We Are Just Getting Started: 1,000 Smashing Members

We Are Just Getting Started: 1,000 Smashing MembersWe Are Just Getting Started: 1,000 Smashing Members Vitaly Friedman 2018-08-03T13:50:31+02:00 2018-08-03T11:54:40+00:00 We’ve all been there: bringing a new product to the market is a tough nut to crack. It requires patience, commitment, and a bit of healthy stubbornness. That's the exact attitude we started off with when we launched our shiny new Smashing Membership last October — a friendly and respectful community that keeps this website alive, along with books, webinars, discounts, networking, and a seasoned selection of fancy cats. Thanks to the generous support of Smashing Members, we're incredibly honor...
5 Ways to Keep Designing When the Power is Out
Web Tricks

5 Ways to Keep Designing When the Power is Out

There’s a certain peace to be found at night, when the world goes dark and silent. You might settle down on the couch for a moment, and just soak in the absence of noise and bustle. However, if you’re at work, and the world goes dark and silent, it’s a lot less comforting. At the very least, it means a delay in your work. If you’re a freelancer, that could very well mean a delay in getting paid. It’s stressful, and it can happen anywhere, to anyone. First world countries can’t always prevent power-outs. Countries like Mexico can set their clocks by them. How do you know it’s rainy season? The power’s out. Oh, and the rain. Now, this isn’t always a terrible thing. A break might be just what you need to gather your thoughts, relax, and get ready to work like mad when the power’s back. Or, y...
Web Tricks

​Build a Chat Widget with Python and JavaScript

Building quality digital products is a requirement toward acquiring long-term customers, but inefficient communication is an efficient way to lose them just as quickly as you gain them. The internet is currently the world’s largest marketplace and everyone is building something for an online audience to consume, however, it would be a shame if there isn’t a way to receive feedback or interact with customers in realtime. In this tutorial, we will look at how we can create a realtime chat widget using Pusher, Python, and JavaScript. When we are done building, the final application will look and work like this: In the image above, we can see a digital product called “SPIN” and it has a chat widget option for visiting customers to interact with. On the left browser window, a customer visits t...
VS Code extensions for the discerning developer palette
CSS Tricks

VS Code extensions for the discerning developer palette

I am a VS Code extension snob. I like to hunt down the most obscure extensions for VS Code — the ones that nobody knows about — and impress people at parties with my knowledge of finely aged and little-known VS Code capabilities… then watch as they look around desperately for someone else to talk to. It’s like the “Sideways” of VS Code. In my endless pursuit of the perfect VS Code setup, I reached out to my colleagues here on the Azure team and asked them to share their favorite extension in their own words. So clear your pallet and breathe in the aromatic flavors of productivity; I am your VS Code Extension Sommelier. Christina Warren - Settings Sync I cannot live without this extension. If you use multiple machines (especially on multiple platforms, where a sym-linked Dropbox folder won...
CSS Tricks

​Experience a Simpler Cloud Computing Platform with DigitalOcean

(This is a sponsored post.)From deploying static sites and blogging platforms to managing multiple client websites, DigitalOcean provides a flexible platform for developers and their teams to deliver an unparalleled end-user experience with a lightning-fast network, pre-configured applications, and a 99.99% uptime SLA. Simply let us know your needs and our solutions engineers will provide the best options available. Direct Link to Article — PermalinkThe post ​Experience a Simpler Cloud Computing Platform with DigitalOcean appeared first on CSS-Tricks. Source: CSS-tricks.com
Web Tricks

What Happens When You Create A Flexbox Flex Container?

What Happens When You Create A Flexbox Flex Container?What Happens When You Create A Flexbox Flex Container? Rachel Andrew 2018-08-02T14:00:35+02:00 2018-08-02T14:02:18+00:00 In a short series of articles, I’m going to spend some time in detailed unpacking of Flexbox — in the same way I have done in the past with grid. We’ll have a look at the things Flexbox was designed for, what it really does well, and why we might not choose it as a layout method. In this article, we will take a detailed look at what actually happens when you add display: flex to your stylesheet. A Flex Container, Please! In order to use Flexbox, you need an element that will be the flex ...
Reading Waterfall Charts to Focus on Page Speed
Web Tricks

Reading Waterfall Charts to Focus on Page Speed

There’s no question that making your website’s pages load fast is important. Research shows that people start to lose focus on something after a single second, and lose interest completely somewhere between 4 and 10 seconds. There’s even a direct correlation between slow load times and losing sales, according to Amazon and Kissmetrics. But who has time for complex tools like reading waterfall charts? The easy solution would be to just keep files small and design simple, right? Maybe not. Modern design trends are heading towards animation and detailed, fullscreen images. If you don’t have these assets, your site may look washed out next to your competitors. And while these features may increase user engagement and sales in a vacuum, they don’t do anything for you if they bog down your site...
Google Tag Manager vs Google Analytics: What’s the difference?
Google Tag Manager

Google Tag Manager vs Google Analytics: What’s the difference?

Updated: August 2nd, 2018. When I first heard about Google Tag Manager (GTM) in early 2013, I felt a bit confused. At that time I had no idea that tag management was a thing at all, so naturally, I found myself questioning what Google Tag Manager was anyway? What’s the difference between Google Analytics events and GTM events? And nowadays I actually still notice this trend of confusion among many beginners. In this blog post, I’ll compare Google Tag Manager vs Google Analytics and show you the main differences.   Google Analytics In a Nutshell Google Analytics’ main purpose is generating reports and statistics about your website, for example: how many people visited your website yesterday. what country are they from. how many pages they visited per session. how many visitors bounced off...
Web Tricks

Docker and Visual Studio Code

I recently wrote about My Top VSCode Tips and Features, and one of the VSCode plugins mentioned was the Docker Plugin. Docker is an open platform for developers and sysadmins to build, ship, and run distributed applications, whether on laptops, data center VMs, or the cloud. Quite a mouthful, but wikipedia explains it a bit clearly. Docker is a computer program that performs operating-system-level virtualization also known as containerization. Essentially, it enables us package our applications into images, and run them as containers on any platform that has docker installed. The aim for this article is to showcase the various ways the Visual Studio Code Docker plugin makes life easier when working with Docker. We'll look at 2 developer stacks, NodeJS and Golang. Installation You need...
How to Design for IPhone X
Web Tricks

How to Design for IPhone X

Designing for the iPhone X will bring some new challenges, but also some new design opportunities. In this article, I’ll share a few suggestions that will help you design apps and games that look and feel great on iPhone X. Display Specifics iPhone X has a new high-resolution, rounded, edge-to-edge Super Retina display has a resolution of 1125×2436px. While it gives designers more space for display content and allows them to create a genuinely immersive experience, there are a few things that should be considered when designing for this device: 1. 3x Image Scale Factor iPhone X has 3x image scale factors (@1x,@2x, and @3x). When rasterized images are needed, be sure to include both 2x and 3x image resolutions in your app image resolution catalog. Also, it’s recommended to use SVGs for gly...
On Switching Code Editors
CSS Tricks

On Switching Code Editors

I'm sure a lot of you are like me and have switched code editors a number of times. I think my first major editor was Coda. Then I moved to TextMate when I started working primarily on local. Then Sublime Text. And, most recently, VS Code. I bet your journey was different. I know lots of folks that quite love Atom, Brackets, WebStorm, and even BBedit. You do you! For me, that's four changes in a dozen years, or a change every three years. Moving isn't something I do quickly. Here's a collection of thoughts around the idea of changing editors. When moving, I have to take time to make sure it works pretty much like the old one. Otherwise, I'll just end up disliking it to the point that I switch back a day or two later. It's happened to me every time I switch. I have little false-starts afte...
User Experience Psychology And Performance: SmashingConf Videos
Web Tricks

User Experience Psychology And Performance: SmashingConf Videos

User Experience Psychology And Performance: SmashingConf VideosUser Experience Psychology And Performance: SmashingConf Videos The Smashing Editorial 2018-08-01T13:30:35+02:00 2018-08-01T15:01:09+00:00 Today, we’d like to shine a light on two videos from our archives as we explore two very different approaches to User Experience (UX). The first explores how we relate our websites to the needs and situations of our visitors, trying to meet them where they are emotionally. The second is a detailed technical exploration into how we measure and track the data around performance as it relates to user experience. The second video may seem unrelated to the first vide...
Firefox Working on a Rebrand
Web Tricks

Firefox Working on a Rebrand

Hey guys, remember Firefox? Remember the Mozilla Application Suite? That second one isn’t relevant, but everyone knows that nostalgia is an attention-grabber. Now that you’re here, let’s move on with that first item: Firefox. It’s getting a logo change… eventually. The Mozilla foundation wants your help deciding which direction to go. The Firefox logo as we know it was a collaboration by Daniel Burka, Stephen Desroches, and the inestimable Jon Hicks. It was they who introduced us to that little blue ball, and the weirdly-charismatic-even-when-we-can’t-see-his-face fox. Over the years, though, it has been changed, and simplified. As our collective Western aesthetic evolved, and as screens got smaller and smaller, it needed to change with the times. And now, once again is changing, because ...
Web Tricks

JavaScript String Manipulation (Solution to Code Challenge #12)

Last time on the code challenge #12 we looked at problems involving the use of String Manipulation techniques. Yet to try your hands at the challenge? You can check it out here. You can also see other fantastic submissions in the Spectrum Chat. In this post, we shall be solving these awesome challenges and you know the best part? Chris did really cool videos to better explain these challenge solutions! The Challenge Manipulating strings form the basis of programming in JavaScript and is important both in simple logical instances to even more complex instances. In this challenge solution, we employed the use of functions in JavaScript as well as array and string methods. The Base Pen A base pen was provided for you to easily get started with the project. The pen consists of JavaScript code...