Remove Best Practices Remove Code Remove Magazine Remove Processing
article thumbnail

Next.js Wildcard Subdomains

Smashing Magazine

With 100s of real-life examples , guidelines and best practices that you can apply right away. In code, that looks like this: export async function getServerSideProps(context) { let wildcard = context.req.headers.host.split(".")[0]; More after jump! From complex mega-dropdowns to carousels and filters. Online, and live.

Servers 83
article thumbnail

It’s A (Front-End Testing) Trap! Six Common Testing Pitfalls And How To Solve Them

Smashing Magazine

Well, it’s simply an apt allegory when it comes to dealing with tests in a code base. These traps might feel like an unexpected ambush when you’re working on a code base, especially when doing so for a long time. They test units of code together, looking at their interaction. Integration tests have a broader scope.

Testing 120
Insiders

Sign Up for our Newsletter

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Trending Sources

article thumbnail

Creating A Custom Range Input That Looks Consistent Across All Browsers

Smashing Magazine

One day I was assigned the task of adding a range input to the library and, I figured it would be a similar process to the other inputs I had implemented in the past. It’s the article I wish I had when I had to do this myself and, I hope that it helps make this process faster and smoother for you. Anatomy Of A Range Input.

article thumbnail

Implementing A Reset Password Feature With Next.js Dynamic Routes

Smashing Magazine

We’re only picking a specific pattern of the authentication process: the “reset password” flow and how it can be implemented on the client-side — frontend — of a web application. As much as we’d love to just get over the flow of the reset password process, the UX of that flow should be prioritized too. More after jump!

article thumbnail

Meet Touch Design For Mobile Interfaces, A New Smashing Book By Steven Hoober

Smashing Magazine

Chapter 8 covers the issues around imprecision and probability and shows how we need to design systems, interactions, and processes that prevent mistakes — especially avoiding catastrophe when mistaken taps are made. Practical Mobile Touchscreen Design. +. Imprecision and Probability. +. Phones Are Not Flat. +. Get the eBook.

Mobile 87
article thumbnail

Tools And Practices To Speed Up The Vue.js Development Process

Smashing Magazine

Tools And Practices To Speed Up The Vue.js Development Process. Tools And Practices To Speed Up The Vue.js Development Process. Throughout this tutorial, we will be looking at practices that should be adopted, things that should be avoided, and have a closer look at some helpful tools to make writing Vue.js

Speed 132
article thumbnail

How Improving Website Performance Can Help Save The Planet

Smashing Magazine

In this screenshot below, for example, we can see that loading the Smashing Magazine website for the first time incurs just under a megabyte of data transfer. For the more adventurous/technical, the top (table of processes) command provides similar metrics on most Unix-like operating systems such as macOS and Ubuntu. Large preview ).