Freebie: Flat Line UX And E-Commerce Icon Sets (83 Icons, AI, EPS, PNG, SVG)

artificial intelligence 5291510 1920

Freebie: Flat Line UX And E-Commerce Icon Sets (83 Icons, AI, EPS, PNG, SVG)

How often do you have to explain the purpose of a study, objectives, goals or measurements within your company? Maybe you need to prepare a presentation or a brief overview of what next steps should be taken, or maybe you simply need to build a shiny, new pattern library?

Whatever project you may be working on, today’s icon sets will come in handy. All of the vector icons were tirelessly crafted by the design team at Ecommerce Website Design121, and come in various formats that can be used for personal as well as commercial purposes.

This exclusive icon pack is licensed under under a Creative Commons Attribution 3.0 Unported2 license. You may modify the size, color or shape of the icons. No attribution is required, however, reselling of bundles or individual pictograms is not cool. Please provide credits to the creators and link to the article in which this freebie was released if you would like to spread the word in blog posts or anywhere else.

Flat Line User Experience Icon Set (45 Icons) Link

This consistent and beautifully diverse icon set offers a retro discreet feel, fading hues of army green, yellow, orange, red and grey, mixing into sharply defined images.

3
A preview of the Flat Line UX icon set. (Large preview4)
A close-up of two icons included in the flat line UX icon set.5
A close-up of two icons included in the flat line UX icon set. (Large preview6)

E-Commerce Linear Icon Set (38 Icons) Link

These e-commerce linear icons come in green, blue and red, displaying an array of signs, shops, clothes, even barcodes and currencies that clarify and lead the shopper. As you want to help, not to confuse your guests and potential clients, these icons are like Santa’s little helpers, taking some of the stress off your hands and wrapping big expectations into small, but mighty editable buttons.

A preview of the E-commerce linear icon set.7
A preview of the E-commerce linear icon set. (Large preview8)
A close-up of two icons included in the e-commerce linear icon set.9
A close-up of two icons included in the e-commerce linear icon set. (Large preview10)

Download The Icon Pack For Free Link

Insights From The Designer Link

“The 45 Flat Line User Experience Icon Set came from a need for UX (User Experience) icons as opposed to the abundance of User Interface icon sets. The retro color scheme and shapes are an escape from the standard ones. The icons are created in 2px line/stroke design filled with colors and details in line style as shapes. The stroke/line are fully editable in the .eps and .ai file.

With online shopping galloping in retail stats like a purebred stallion towards the finish line at the Royal Ascot, no wonder that e-commerce is in high demand. Together with SEO and social media icons, e-commerce icons are some of the most requested sets. As they always come in handy, these 38 E-Commerce Linear Icons are ready to take their job seriously and show up in all the right places. The designer of the collection literally keeps all her ideas and inspiration for colors, designs, shapes, in a special folder. This system helps her quickly answer to the customer’s preferences. Although there are many free e-commerce icons out there, design-wise they aren’t too adventurous. It was the regular RGB colors that inspired the designer to create the color scheme. These are clean, elegant linear e-comm icons with a retro touch – in 2px stroke design on fresh color backgrounds. The stroke/line are fully editable in the .eps and .ai file.”

A big thank you to the team at Ecommerce Website Design121 — we sincerely appreciate your time and efforts. Keep up the brilliant work!

(il, vf)

Footnotes Link

  1. 1 https://ecomm.design/
  2. 2 http://creativecommons.org/licenses/by/3.0/
  3. 3 https://www.smashingmagazine.com/wp-content//uploads/2016/08/flat-line-user-experience-icons-large-preview-opt.png
  4. 4 https://www.smashingmagazine.com/wp-content//uploads/2016/08/flat-line-user-experience-icons-large-preview-opt.png
  5. 5 https://www.smashingmagazine.com/wp-content/uploads/2016/08/ux-linear-closeup-large-preview-opt.png
  6. 6 https://www.smashingmagazine.com/wp-content/uploads/2016/08/ux-linear-closeup-large-preview-opt.png
  7. 7 https://www.smashingmagazine.com/wp-content//uploads/2016/08/e-commerce-linear-icons-large-preview-opt.png
  8. 8 https://www.smashingmagazine.com/wp-content//uploads/2016/08/e-commerce-linear-icons-large-preview-opt.png
  9. 9 https://www.smashingmagazine.com/wp-content/uploads/2016/08/e-commerce-icons-closeup-large-opt.png
  10. 10 https://www.smashingmagazine.com/wp-content/uploads/2016/08/e-commerce-icons-closeup-large-opt.png
  11. 11 http://provide.smashingmagazine.com/Freebies/smashing-freebie-ux-and-ecommerce-icon-sets.zip
  12. 12 https://ecomm.design/
SmashingConf New York

Hold on, Tiger! Thank you for reading the article. Did you know that we also publish printed books and run friendly conferences – crafted for pros like you? Like SmashingConf Barcelona, on October 25–26, with smart design patterns and front-end techniques.

↑ Back to topTweet itShare on Facebook

Advertisement

Web Development Reading List #152: On Not Shipping, Pure JS Functions, And SameSite Cookies

artificial intelligence 5291510 1920

Web Development Reading List #152: On Not Shipping, Pure JS Functions, And SameSite Cookies

This week’s reading list consists of a lot of little, smart details that you can use on websites. From tweaking the user’s reading experience during page load to pure JavaScript functions and verifying the integrity of external assets. And finally, we see some articles on thinking differently about established working habits — be it working on AI without data or the virtue of not shipping a feature.

Please note that I’ll be on vacation for the next four weeks, so please don’t expect any new Web Development Reading List before October, 7th. Enjoy September, your work, your life!

General Link

  • Jason Zimdars explains why not shipping a feature can be a virtue1. An article about hidden costs and why shipping does not equal success.
  • While many think Apple isn’t in the Artificial Intelligence game, this exclusive look gives some insights2 into why Apple handles things differently. An interesting read that reveals how Apple tries to do Artificial Intelligence with less user data and without tracking you — contrary to the industry’s big players.
3
Not shipping can be a virtue4. Jason Zimdars shares how one of the most important features he ever designed for Basecamp didn’t make it into the product. (Image credit: Jason Zimdars5)

Concept & Design Link

  • The Web Methodology Project6 is a fresh guide to building web projects, and even though it’s still a work in progress, it already looks very useful. So keep an eye on it.

Tools & Workflows Link

  • Google’s Closure Compiler is one of the best tools out there to compile JavaScript, but so far has only been available as a Java platform tool. Now, the team released a JavaScript version of Closure Compiler7 designed to run in Node.js environments. Available on GitHub8 or npm9.

Security Link

Accessibility Link

Illustration of a person being left behind as travellers speed away in a futuristic ship14
Don’t leave your users behind. Mischa Andrews shares thoughts on how we can make the web more accessible15. (Original artwork by Adam Van Winden16)

JavaScript Link

CSS/Sass Link

  • Michael Scharnagl shares some neat techniques to reduce content shifting during page load19 to ensure a smooth reading experience for users. By setting intrinsic ratios for media, font-size-adjust, or new techniques such as scroll anchoring, you can improve the situation enormously.

Work & Life Link

And with that, I’ll close for this week. If you like what I write each week, please support me with a donation21 or share this resource with other people. You can learn more about the costs of the project here22. It’s available via email, RSS and online.

— Anselm

Footnotes Link

  1. 1 https://m.signalvnoise.com/not-shipping-is-a-virtue-b880badb623c
  2. 2 https://backchannel.com/an-exclusive-look-at-how-ai-and-machine-learning-work-at-apple-8dbfb131932b
  3. 3 https://m.signalvnoise.com/not-shipping-is-a-virtue-b880badb623c
  4. 4 https://m.signalvnoise.com/not-shipping-is-a-virtue-b880badb623c
  5. 5 https://m.signalvnoise.com/not-shipping-is-a-virtue-b880badb623c
  6. 6 http://webmethodologyproject.com/guide/
  7. 7 https://developers.googleblog.com/2016/08/closure-compiler-in-javascript.html
  8. 8 https://github.com/google/closure-compiler-js
  9. 9 https://www.npmjs.com/package/google-closure-compiler-js
  10. 10 https://blog.mozilla.org/security/2016/08/26/mitigating-mime-confusion-attacks-in-firefox/
  11. 11 https://www.troyhunt.com/protecting-your-embedded-content-with-subresource-integrity-sri/
  12. 12 https://www.igvita.com/2016/08/26/stop-cross-site-timing-attacks-with-samesite-cookies/
  13. 13 https://medium.com/@MischaAndrews/the-inaccessible-web-how-we-got-into-this-mess-7cd3460b8e32
  14. 14 https://medium.com/@MischaAndrews/the-inaccessible-web-how-we-got-into-this-mess-7cd3460b8e32
  15. 15 https://medium.com/@MischaAndrews/the-inaccessible-web-how-we-got-into-this-mess-7cd3460b8e32
  16. 16 http://adamvanwinden.tumblr.com/
  17. 17 http://staltz.com/is-your-javascript-function-actually-pure.html
  18. 18 http://staltz.com/react-could-love-web-components.html
  19. 19 https://www.smashingmagazine.com/2016/08/ways-to-reduce-content-shifting-on-page-load/
  20. 20 https://m.signalvnoise.com/its-urgent-really-8050dfe3b921
  21. 21 https://wdrl.info/donate
  22. 22 https://wdrl.info/costs/
SmashingConf New York

Hold on, Tiger! Thank you for reading the article. Did you know that we also publish printed books and run friendly conferences – crafted for pros like you? Like SmashingConf Barcelona, on October 25–26, with smart design patterns and front-end techniques.

↑ Back to topTweet itShare on Facebook

Advertisement

Responsive Images In WordPress With Art Direction

artificial intelligence 5291510 1920

Responsive Images In WordPress With Art Direction

Support for responsive images1 was added to WordPress core in version 4.4 to address the use case for viewport-based image selection2, where the browser requests the image size that best fits the layout for its particular viewport.

Images that are inserted within the text of a post automatically get the responsive treatment, while images that are handled by the theme or plugins — like featured images and image galleries — can be coded by developers using the new responsive image functions and filters. With a few additions, WordPress websites can accommodate another responsive image use case known as art direction3. Art direction gives us the ability to design with images whose crop or composition changes at certain breakpoints.

In this article, I’ll show you how to set up a WordPress website for art direction by going through three progressive examples:

In the art direction example, we’ll be adding some PHP, a polyfill and a cropping plugin to the website.

WordPress’ Automatic Support For Responsive Images Within Posts

Support for responsive images is all about options: We provide a well-described array of image files to the browser, and the browser applies its knowledge of the width and pixel density of the viewport to request the file with the most appropriate resolution. The workhorse here is the srcset attribute, which can be used with img and source tags. Similar to, but more informative than, its older cousin, the src attribute, srcset is essentially a “set of sources” — that is, a list of image files available for downloading. For detailed background on the srcset attribute, I recommend Eric Portis’ article on responsive images7.

Since version 4.4, WordPress automatically adds a srcset attribute to any image that is run through the_content filter. In other words, when WordPress is creating the HTML for your web page, it scans the post or page’s text for img tags and adds a srcset attribute to any tags that don’t already contain one. You won’t see the srcset in the post editor (unless you explicitly add one, although you should generally let WordPress take care of it), but it will be present in the page’s HTML source.

To offer multiple image sizes in the srcset, WordPress leverages its standard behavior of automatically creating several smaller versions of your image files when you upload them to the “Media Library.” You can find these sizes listed on the “Media Settings” screen (under the “Settings” menu in the WordPress administration interface), along with their default values; not listed is the new “medium_large” image size8 (768 pixels wide, with no height limit), the size of which can be changed by a theme or plugin but not through the administration interface.

9
The default maximum sizes shown on WordPress’ “Media Settings” screen are 1024 × 1024 pixels for the “large” size, 300 × 300 pixels for the “medium” size, and 150 × 150 pixels for the “thumbnail” size. The 768 pixel “medium_large” size cannot be changed here. (View large version10)

By default, the autogenerated “medium,” “medium_large” and “large” image sizes are soft-cropped — that is, they maintain the same aspect ratio as the original file. (I refer to these as “scaled” versions.) In these cases, the width given on the “Media Settings” screen is the constraining parameter. In contrast, the “thumbnail” size is hard-cropped to a 150 pixel square, so it most likely has a different aspect ratio than its bigger brothers. WordPress relies on aspect ratio to determine which image sizes should be included in a srcset, and we’ll be seeing this play out in each of our examples.

Let’s say that you upload a 1400 × 952-pixel image to the WordPress media library and keep the image sizes at their default values. Behind the scenes, WordPress creates the following versions of the original image:

Image generation in WordPress based on a 1400 × 952-pixel image
Size Width (px) Height (px) Cropping Aspect ratio (w/h)
full (original) 1400 952 soft 1.47
large 1024 696 soft 1.47
medium_large 768 522 soft 1.47
medium 300 204 soft 1.47
thumbnail 150 150 hard 1

If you then insert the “large” (1024 pixels wide) version into a post and view the HTML source for the published web page, you’d see something like this:

<img src="sample-1024x696.jpg" width="1024" height="696" srcset="sample-300x204.jpg 300w, sample-768x522.jpg 768w, sample-1024x696.jpg 1024w" sizes="(max-width: 1024px) 100vw, 1024px" alt="A meaningful sample image"> 

WordPress has generated a srcset for us using the “medium,” “medium_large” and “large” sizes because these images all share the same aspect ratio. The “thumbnail” version wasn’t included, which makes sense because we want those images to look the same in every viewport.

Two other bits of information are also included in the HTML above. First, the w descriptors within the srcset tell the browser the actual pixel widths of the files; without these, the browser would need download the images to find out their dimensions. Secondly, WordPress’ default value for the sizes attribute tells the browser how wide the image is intended to be in this particular layout. Here, for viewports narrower than 1024 pixels, the image should fill and scale with the size of the viewport; otherwise, the image should be displayed at its default width of 1024 pixels and not any wider. With these final pieces to the puzzle, the browser can now make an intelligent image request, whether it be to display a high-resolution file on a “Retina” display or a low-resolution file on a small phone.

A Variable-Width Banner Image In A Page Template

Now that we understand how WordPress leverages the standard image sizes to build a srcset, it’s time to get acquainted with WordPress core’s new responsive image functions11 by applying viewport-based image selection to a theme. For this example, we’ll look at a full-width banner image that appears on a static front page.

Let’s assume that we have an existing website using the current version of WordPress and that support for post thumbnails is enabled12 in our theme. (Support for post thumbnails allows us to add featured images to posts and pages.) Let’s also assume that the banner image is pulled from the featured image for the front page. If our front page template uses WordPress’ the_post_thumbnail() template tag to generate the HTML for the banner, then we are all set: This function already outputs an img tag that includes srcset and sizes attributes. That’s one reason why it is good to use WordPress template functions when they are available!

Maybe, though, our page template builds the HTML for the banner image piece by piece, as you might need to do if your banner is actually part of a third-party carousel. To make this image responsive, we ask WordPress explicitly for srcset and sizes attributes, using the wp_get_attachment_image_srcset() and wp_get_attachment_image_sizes() functions, respectively:

<?php if ( has_post_thumbnail() ) : ?> $id = get_post_thumbnail_id(); $src = wp_get_attachment_image_src( $id, 'full' ); $srcset = wp_get_attachment_image_srcset( $id, 'full' ); $sizes = wp_get_attachment_image_sizes( $id, 'full' ); $alt = get_post_meta( $id, '_wp_attachment_image_alt', true); <img src="<?php echo esc_attr( $src );?>" srcset="<?php echo esc_attr( $srcset ); ?>" sizes="<?php echo esc_attr( $sizes );?>" alt="<?php echo esc_attr( $alt );?>" /> <?php endif; ?>

Here, we’ve based srcset and sizes on the original image size by passing the full keyword to our functions. If that image is 1280 × 384 pixels, and if we keep the standard image sizes at their default values, then the HTML output would look like this:

<img src="banner.jpg" srcset="banner.jpg 1280w, banner-300x90.jpg 300w, banner-768x231.jpg 768w, banner-1024x308.jpg 1024w" sizes="(max-width: 1280px) 100vw, 1280px" alt="Front page banner alt text"> 

In this case, as in the last, the value that WordPress gives us for the sizes attribute is acceptable for our hypothetical layout. In general, WordPress’ default value for sizes works fine for full-width images, but for any other layout, you are going to need to write the value yourself. Some layouts are more complicated than others: The sizes attribute for a responsive image grid (see Eric Portis’ example13) is pretty straightforward, but layouts that change at different breakpoints, such as pages with a sidebar column, require more thought. For the latter case, Tim Evko uses the Twenty Sixteen theme as an example of applying the wp_calculate_image_sizes filter14 to make the sizes value match the layout’s CSS breakpoints.

An Art-Directed Hero Image In A Page Template

Let’s momentarily revisit the HTML in the banner example and take note of the size of the smallest image in srcset: It’s only 90 pixels tall and probably difficult to discern. The aspect ratio is fixed by the original image, so, realistically, we’ll be looking at a 96-pixel stripe across a 320-pixel phone.

Themes currently get around the “banner stripe” problem by displaying the banner image as the CSS background of a flexible div and adjusting its height and background-size in media queries. This solution is responsive in terms of appearance, however, it is not a true responsive image solution. Enter art direction, the ability to provide different image sources at different viewport widths directly in HTML. With this technique, we can avoid the banner stripe problem by resetting the proportions of an image below a breakpoint to give the smallest resizes better dimensions; we can also use art direction to emphasize a particular area of an image at different sizes or orientations.

In our art direction example, we will use the 1400 × 952-pixel image from our first example to create a responsive hero image. On large viewports, the hero image will look like this (albeit much larger):

Large hero image example15
Full-sized hero image, 1400 × 952 pixels (Image: Josh Felise16) (View large version17)

But for smaller viewports, we will crop the image within WordPress so that it looks like this:

Cropped hero image example18
Cropped hero image with a 5:3 aspect ratio

This approach gives us two images for the price of one — a full-sized and a cropped — each with its own srcset.

Setting up our WordPress environment for art direction takes four steps. As in the previous example, the hero image will be the featured image for the website’s home page, and we’ll be editing the front-page template. I assume that you are making changes to an existing theme and, thus, have created a child theme19 to work in.

1. Include the PictureFill Script Link

We are going to code our hero image by wrapping it in HTML5’s picture element20. The picture element allows us to provide multiple sources for an image, along with media queries to determine when a source will be used. As of this writing, picture is supported globally by 62% of browsers21, so we will need to rely on the Picturefill polyfill22 to implement this element in non-supporting browsers. The Picturefill project is maintained by the Filament Group, and the Picturefill JavaScript file can be downloaded from GitHub23.

To include the PictureFill script in the head of our pages, we’ll place the script file in our child theme directory and add the following code to our child theme’s functions.php file:

// adds Picturefill to 'js' subdirectory inside child theme function theme_add_javascripts() { wp_enqueue_script( 'picturefill-js', get_stylesheet_directory_uri() . '/js/picturefill.min.js', '', '', false ); } add_action( 'wp_enqueue_scripts', 'theme_add_javascripts' ); 

2. Plan the Breakpoint and Configure the Image Sizes Link

To plan our srcsets, we need to decide on three things:

  • the breakpoint at which we will switch from the cropped to the full-sized hero image,
  • the aspect ratio of the cropped hero.
  • one or more scaled-down sizes for the cropped image in small viewports.

Let’s deal with each in turn:

The breakpoint

For our example, let’s say that the couple in the rearview mirror become hard to recognize in images narrower than 768 pixels; perhaps some overlaid text that we are using with this image no longer fits beneath the mirror at this point as well. We’ll set our breakpoint at 768 pixels, which means that we’ll also be able to keep the “medium_large” and “large” image sizes at their default values.

The aspect ratio

This simple implementation of art direction in WordPress doesn’t require us to upload multiple featured images or to type in a value for the breakpoint. Still, we need a way to keep the srcset for the full-sized image from overlapping with the srcset of the cropped image, and for this we will rely on the fact that the wp_get_attachment_image_srcset() function only selects image files with the same aspect ratio as the size we pass to it. We’ll pick a 5:3 (1.67) aspect ratio for the cropped hero image, which differs from the 1.47 aspect ratio of the original.

The image sizes

Based on our breakpoint and aspect ratio, the size of the cropped hero image will be 767 × 460 pixels. The cropped hero won’t be completely responsive, however, unless we define additional image sizes to crop along with it. Applying a performance budget approach24 to our hypothetical theme, we’ll create custom sizes that are 560 and 360 pixels wide, giving us a roughly 20 KB difference in file size between the three cropped versions. (Because the file size of a compressed image depends its color variation and level of detail, I established this size relationship empirically with WordPress’ default 90% JPEG compression.) The custom image sizes will be created by adding the following code to our child theme’s functions.php file:

// cropped hero add_image_size( 'mytheme-hero-cropped', 767, 460, true ); // scaled-down cropped hero 1 add_image_size( 'mytheme-hero-cropped-smaller', 560, 336, true ); // scaled-down cropped hero 2 add_image_size( 'mytheme-hero-cropped-smallest', 360, 216, true ); 

The fourth parameter in the add_image_size function specifies whether the image version can be hard-cropped, which we set to be true; many cropping plugins (which we’ll look at in step 3) will not let us hard-crop an image unless this is set.

Overall, we’ll have the following image versions available to work with:

The standard and custom image sizes generated for the hero image in our example
Size Width (px) Height (px) Aspect ratio (w/h)
Full-sized hero:
full (original) 1400 952 1.47
large 1024 696 1.47
medium_large 768 522 1.47
medium (not needed) 300 204 1.47
Cropped hero:
mytheme-hero-cropped 767 460 1.67
mytheme-hero-cropped-smaller 560 336 1.67
mytheme-hero-cropped-smallest 360 216 1.67
Thumbnail:
thumbnail (not needed) 150 150 1

3. Install a Third-Party Image-Cropping Plugin and Crop the Images Link

WordPress’ built-in image editor does allow us to hard-crop an image, but the change is applied to all image sizes (or just to the “thumbnail”), whereas we need to crop only three. For greater control, we’ll install a third-party cropping plugin from the WordPress directory.

While any cropping plugin should work with our art direction scheme, the ideal plugin would be able to crop multiple versions of an image at the same time, provided that they all had the same aspect ratio. I came across two plugins that are able to do this: Crop-Thumbnails25 and Post Thumbnail Editor26. Testing both of these plugins with our custom image sizes, I found that the Crop-Thumbnails plugin (version 0.10.8) recognized only two of the three sizes as having the 5:3 aspect ratio, meaning that I would need to go through the cropping process two times. (The “mytheme-hero-cropped” size was left out because of a rounding issue: An exact 5:3 aspect ratio would require the width to be 460.2 pixels, instead of 460.) The Post Thumbnail Editor plugin (version 2.4.8) allowed me to crop all three sizes at once.

4. Code the Hero Image Using the <picture> Element Link

Now that our images are ready, we can add the code for the hero image to a copy of the front-page template in our child theme. HTML5’s picture element can hold an img tag and one or more source tags. For our example, the single source element will contain the media query and srcset for the full-sized image, and the img tag will contain the srcset for the cropped image; the cropped image will serve as the default image when the breakpoint condition is not met.

<?php if ( has_post_thumbnail() ) : ?> $id = get_post_thumbnail_id(); $alt = get_post_meta( $id, '_wp_attachment_image_alt', true); /* get the width of the largest cropped image to calculate the breakpoint */ $hero_cropped_info = wp_get_attachment_image_src( $id, 'mytheme-hero-cropped' ); $breakpoint = absint( $hero_cropped_info[1] ) + 1; // pass the full image size to these functions $hero_full_srcset = wp_get_attachment_image_srcset( $id, 'full' ); $hero_full_sizes = wp_get_attachment_image_sizes( $id, 'full' ); // pass the cropped image size to these functions $hero_cropped_srcset = wp_get_attachment_image_srcset( $id, 'mytheme-hero-cropped' ); $hero_cropped_sizes = wp_get_attachment_image_sizes( $id, 'mytheme-hero-cropped' ); <picture> <source media="(min-width: <?php echo $breakpoint; ?>px)" srcset="<?php echo esc_attr( $hero_full_srcset ); ?>" sizes="<?php echo esc_attr( $hero_full_sizes ); ?>" /> <img srcset="<?php echo esc_attr( $hero_cropped_srcset ); ?>" alt="<?php echo esc_attr( $alt );?>" sizes="<?php echo esc_attr( $hero_cropped_sizes ); ?>" /> </picture> <?php endif; ?> 

There are two additional points of interest in this code. First, notice that we are not hardcoding the breakpoint width, even though we know that it should be 768 pixels in this case. Because we calculate the breakpoint using the width of the largest cropped image, we can now change the image sizes in future without needing to go back to edit the template. Secondly, in contrast to the banner image example, the img tag here does not get a src attribute. This is an artifact of using a polyfill to support the picture element: A non-supporting browser would preload the file given in the src attribute, resulting in a double download for this image.

The HTML that we get is shown below:

<picture> <source media="(min-width: 768px)" srcset="hero.jpg 1400w, hero-300x204.jpg 300w, hero-768x522.jpg 768w, hero-1024x696.jpg 1024w" sizes="(max-width: 1400px) 100vw, 1400px"> <img srcset="hero-767x460.jpg 767w, hero-560x336.jpg 560w, hero-360x216.jpg 360w" alt="Front page hero alt text" sizes="(max-width: 767px) 100vw, 767px"> </picture> 

We could finish here, but we could make one refinement to our HTML output. Notice that the 300-pixel-wide “medium” image has been included in the srcset for the full-sized image. This image file will never be used, so we can add a wp_calculate_image_srcset filter to remove it from the srcset. The following code, which goes in the child theme’s functions.php file, looks only at the potential srcset (the $sources array) for the full-sized hero image; it loops through the images and removes those with widths narrower than the breakpoint.

add_filter( 'wp_calculate_image_srcset', 'mytheme_remove_images_below_breakpoint', 10, 5 ); function mytheme_remove_images_below_breakpoint( $sources, $size_array, $image_src, $image_meta, $attachment_id ) { if ( is_front_page() && has_post_thumbnail() ) { // check if we're filtering the featured image if ( $attachment_id === get_post_thumbnail_id() ) { // get cutoff as width of the largest cropped image size // (in HTML, breakpoint = cutoff + 1 ) $cutoff = $image_meta['sizes']['mytheme-hero-cropped']['width']; // check if our version is the full-sized version by // comparing its width to the cutoff if ( $cutoff  $value ) { // if image width is at or below cutoff, // we don't need it if ( $cutoff >= $key ) { unset( $sources[ $key ] ); } } } } } return $sources; } 

Final Thoughts Link

We have just set up a WordPress theme to support art direction in a simple manner. This method relies on WordPress’ standard administration interface as much as possible, and it requires only a single image to be uploaded. Simplicity comes at a cost, however, and this method has its limitations: The sizes for the cropped hero images are hardcoded in the theme, only one breakpoint is assumed, and the aspect ratios of the full-sized and cropped heros must be different.

Programmatically, it is entirely possible to give a website’s content creator complete control over all aspects of art direction, because the wp_calculate_image_srcset filter can process images by width, size keyword or any other bit of meta data that a theme or plugin wants to save. Multiple images could even be selected from the media library and incorporated in the art-directed version. The challenge lies in making the administration interface — the theme customizer or the plugin settings page — simple to use for content creators who may want no options, a few options or the kitchen sink.

Finally, we can’t end an article on responsive images in 2016 without mentioning browser support. While we do have a very effective polyfill for the picture element, if a browser that does not natively support the srcset attribute has JavaScript turned off (or encounters a JavaScript error), a visitor will only see our hero image’s alt text. Global support for the picture element did increase earlier this year when new versions of Safari for Mac and iOS were released, but we are still waiting for the picture element to come to UC Browser and for older browsers — namely, Internet Explorer 11 — to die out.

(vf, al, il)

Footnotes Link

  1. 1 https://www.smashingmagazine.com/2015/12/responsive-images-in-wordpress-core/
  2. 2 https://usecases.responsiveimages.org/#viewport-based-selection
  3. 3 https://usecases.responsiveimages.org/#art-direction
  4. 4 #wordpress-automatic-support-for-responsive-images-within-posts
  5. 5 #a-variable-width-banner-image-in-a-page-template
  6. 6 #an-art-directed-hero-image-in-a-page-template
  7. 7 https://www.smashingmagazine.com/2014/05/responsive-images-done-right-guide-picture-srcset/
  8. 8 https://make.wordpress.org/core/2015/11/10/responsive-images-in-wordpress-4-4/
  9. 9 https://www.smashingmagazine.com/wp-content/uploads/2016/08/media-settings-large-opt.jpg
  10. 10 https://www.smashingmagazine.com/wp-content/uploads/2016/08/media-settings-large-opt.jpg
  11. 11 https://make.wordpress.org/core/2015/11/10/responsive-images-in-wordpress-4-4/
  12. 12 https://codex.wordpress.org/Post_Thumbnails#Enabling_Support_for_Post_Thumbnails
  13. 13 https://www.smashingmagazine.com/2014/05/responsive-images-done-right-guide-picture-srcset/#the-fluid-and-variable-sized-image-use-cases
  14. 14 https://www.smashingmagazine.com/2015/12/responsive-images-in-wordpress-core/
  15. 15 https://www.smashingmagazine.com/wp-content/uploads/2016/08/car-large-opt.jpg
  16. 16 http://unsplash.com/
  17. 17 https://www.smashingmagazine.com/wp-content/uploads/2016/08/car-large-opt.jpg
  18. 18 https://www.smashingmagazine.com/wp-content/uploads/2016/08/car-small-opt.jpg
  19. 19 https://codex.wordpress.org/Child_Themes
  20. 20 https://responsiveimages.org
  21. 21 http://caniuse.com/#feat=picture
  22. 22 http://scottjehl.github.io/picturefill/
  23. 23 https://github.com/scottjehl/picturefill
  24. 24 http://blog.cloudfour.com/sensible-jumps-in-responsive-image-file-sizes/
  25. 25 https://wordpress.org/plugins/crop-thumbnails/
  26. 26 https://wordpress.org/plugins/post-thumbnail-editor/
SmashingConf New York

Hold on, Tiger! Thank you for reading the article. Did you know that we also publish printed books and run friendly conferences – crafted for pros like you? Like SmashingConf Barcelona, on October 25–26, with smart design patterns and front-end techniques.

↑ Back to topTweet itShare on Facebook

Advertisement

Desktop Wallpaper Calendars: September 2016

artificial intelligence 5291510 1920

Desktop Wallpaper Calendars: September 2016

We all love a good wallpaper to polish up our desktops. So to provide you with fresh artwork on a regular basis, we embarked on our desktop wallpapers mission1 eight years ago. Each month we challenge you, the design community, to get your creative juices flowing and produce some inspirational and unique desktop wallpapers.

And, well, also this time designers and artists from across the globe challenged their artistic abilities and contributed their designs for September. The result is a collection of desktop wallpapers that are a little more distinctive than the usual crowd. All of them come in versions with and without a calendar and are free to download. A big thank-you to everyone who shared their artwork! Now, which one will make it to your desktop?

Please note that:

  • All images can be clicked on and lead to the preview of the wallpaper,
  • You can feature your work in our magazine2 by taking part in our Desktop Wallpaper Calendars series. We are regularly looking for creative designers and artists to be featured on Smashing Magazine. Are you one of them?

Flower Soul

“The earth has music for those who listen. Take a break and relax and while you drive out the stress, catch a glimpse of the beautiful nature around you. Can you hear the rhythm of the breeze blowing, the flowers singing, and the butterflies fluttering to cheer you up? We dedicate flowers which symbolize happiness and love to one and all.” — Designed by Krishnankutty3 from India.

4

Office

“Clean, minimalistic office for a productive day.” — Designed by Antun Hiršman46 from Croatia.

Office47

Penguin Family

“Penguins are sociable, independent and able to survive harsh winters. They work as a team to care for their offspring and I love that!” — Designed by Glynnis Owen67 from Australia.

Penguin Family68

Autumn In The Woods

“Autumn can be best described with the colorful woods where all colors mix and where you can see the great creations of nature.” — Designed by S7 Design92 from Serbia.

Autumn In The Woods93

Autumn Leaves

“Summer is coming to an end in the northern hemisphere, and that means Autumn is on the way!” — Designed by James Mitchell137 from the United Kingdom.

Autumn Leaves138

Do You Remember?

“My wife tells me ‘You have a song for everything!’ and this month was no exception. Earth, Wind, and Fire’s happy, danceable tune was the first thing to come to mind. For me, the catchy beat and memorable lyrics are such a contrast to the month that heralds the first day of Autumn, ushering in a ‘temporary death’ yet with a certain, not-too-distant re-quickening. It’s the 22nd this year, so we took liberties with that excerpt. Ironically, co-writer Allee Willis claims no significance to the date, stating, in an interview with npr.org, ‘It just sang better.’” — Designed by Brian Frolo158 from Cleveland, Ohio, USA.

Do You Remember?159

Tropical Procrastination

Designed by PJ Brown177 from the United States.

Tropical Procrastination178

The September Sun

“September marks the arrival of autumn and is one of the most beautiful months of the year. Autumn — this is a great time for inspiration and creation. The arrival of autumn hits us in the heart, and as the trees turn yellow we begin to notice how quickly time passes by. In September, the sun shines gently, but hedgehogs are preparing for hibernation.” — Designed by Anastasia220 from Russia.

The September Sun221

Viva Mexico

“This month is Mexico’s independence day and I decided to illustrate in my wallpaper one of the things Mexico’s best known for: the Lucha Libre.” — Designed by Maria Keller249 from Mexico.

Viva Mexico250

Hello Spring

“September is the start of spring in Australia so this bright wallpaper could brighten your day and help you feel energized!” — Designed by Tazi Design302 from Australia.

Hello Spring303

Live In The Moment

“The dragonfly flies for a short time and enjoys it to the fullest. Be like the dragonfly, love your life and live in the moment!” — Designed by Denise Johnson327 from Chicago.

Live In The Moment328

Festivities And Ganesh Puja

“The month of September starts with the arrival of festivals, mainly Ganesh Puja.” — Designed by Sayali Sandeep Harde342 from India.

Festivities And Ganesh Puja343

Underwater Love

Designed by Sabrina Stern371 from Costa Rica.

Underwater Love372

Join In Next Month! Link

Please note that we respect and carefully consider the ideas and motivation behind each and every artist’s work. This is why we give all artists the full freedom to explore their creativity and express emotions and experience throughout their works. This is also why the themes of the wallpapers weren’t anyhow influenced by us, but rather designed from scratch by the artists themselves.

A big thank you to all designers for their participation. Join in next month394!

What’s Your Favorite? Link

What’s your favorite theme or wallpaper for this month? Please let us know in the comment section below.

(cm)

Footnotes Link

  1. 1 http://www.smashingmagazine.com/tag/wallpapers/
  2. 2 https://www.smashingmagazine.com/desktop-wallpaper-calendars-join-in/
  3. 3 http://acodez.in/
  4. 4 http://files.smashingmagazine.com/wallpapers/sept-16/flower-soul/sept-16-flower-soul-full.png
  5. 5 http://files.smashingmagazine.com/wallpapers/sept-16/flower-soul/sept-16-flower-soul-preview.png
  6. 6 http://files.smashingmagazine.com/wallpapers/sept-16/flower-soul/cal/sept-16-flower-soul-cal-320×480.png
  7. 7 http://files.smashingmagazine.com/wallpapers/sept-16/flower-soul/cal/sept-16-flower-soul-cal-640×480.png
  8. 8 http://files.smashingmagazine.com/wallpapers/sept-16/flower-soul/cal/sept-16-flower-soul-cal-800×480.png
  9. 9 http://files.smashingmagazine.com/wallpapers/sept-16/flower-soul/cal/sept-16-flower-soul-cal-800×600.png
  10. 10 http://files.smashingmagazine.com/wallpapers/sept-16/flower-soul/cal/sept-16-flower-soul-cal-1024×768.png
  11. 11 http://files.smashingmagazine.com/wallpapers/sept-16/flower-soul/cal/sept-16-flower-soul-cal-1024×1024.png
  12. 12 http://files.smashingmagazine.com/wallpapers/sept-16/flower-soul/cal/sept-16-flower-soul-cal-1152×864.png
  13. 13 http://files.smashingmagazine.com/wallpapers/sept-16/flower-soul/cal/sept-16-flower-soul-cal-1280×720.png
  14. 14 http://files.smashingmagazine.com/wallpapers/sept-16/flower-soul/cal/sept-16-flower-soul-cal-1280×960.png
  15. 15 http://files.smashingmagazine.com/wallpapers/sept-16/flower-soul/cal/sept-16-flower-soul-cal-1280×1024.png
  16. 16 http://files.smashingmagazine.com/wallpapers/sept-16/flower-soul/cal/sept-16-flower-soul-cal-1366×768.png
  17. 17 http://files.smashingmagazine.com/wallpapers/sept-16/flower-soul/cal/sept-16-flower-soul-cal-1400×1050.png
  18. 18 http://files.smashingmagazine.com/wallpapers/sept-16/flower-soul/cal/sept-16-flower-soul-cal-1440×900.png
  19. 19 http://files.smashingmagazine.com/wallpapers/sept-16/flower-soul/cal/sept-16-flower-soul-cal-1600×1200.png
  20. 20 http://files.smashingmagazine.com/wallpapers/sept-16/flower-soul/cal/sept-16-flower-soul-cal-1680×1050.png
  21. 21 http://files.smashingmagazine.com/wallpapers/sept-16/flower-soul/cal/sept-16-flower-soul-cal-1680×1200.png
  22. 22 http://files.smashingmagazine.com/wallpapers/sept-16/flower-soul/cal/sept-16-flower-soul-cal-1920×1080.png
  23. 23 http://files.smashingmagazine.com/wallpapers/sept-16/flower-soul/cal/sept-16-flower-soul-cal-1920×1200.png
  24. 24 http://files.smashingmagazine.com/wallpapers/sept-16/flower-soul/cal/sept-16-flower-soul-cal-1920×1440.png
  25. 25 http://files.smashingmagazine.com/wallpapers/sept-16/flower-soul/cal/sept-16-flower-soul-cal-2560×1440.png
  26. 26 http://files.smashingmagazine.com/wallpapers/sept-16/flower-soul/nocal/sept-16-flower-soul-nocal-320×480.png
  27. 27 http://files.smashingmagazine.com/wallpapers/sept-16/flower-soul/nocal/sept-16-flower-soul-nocal-640×480.png
  28. 28 http://files.smashingmagazine.com/wallpapers/sept-16/flower-soul/nocal/sept-16-flower-soul-nocal-800×480.png
  29. 29 http://files.smashingmagazine.com/wallpapers/sept-16/flower-soul/nocal/sept-16-flower-soul-nocal-800×600.png
  30. 30 http://files.smashingmagazine.com/wallpapers/sept-16/flower-soul/nocal/sept-16-flower-soul-nocal-1024×768.png
  31. 31 http://files.smashingmagazine.com/wallpapers/sept-16/flower-soul/nocal/sept-16-flower-soul-nocal-1024×1024.png
  32. 32 http://files.smashingmagazine.com/wallpapers/sept-16/flower-soul/nocal/sept-16-flower-soul-nocal-1152×864.png
  33. 33 http://files.smashingmagazine.com/wallpapers/sept-16/flower-soul/nocal/sept-16-flower-soul-nocal-1280×720.png
  34. 34 http://files.smashingmagazine.com/wallpapers/sept-16/flower-soul/nocal/sept-16-flower-soul-nocal-1280×960.png
  35. 35 http://files.smashingmagazine.com/wallpapers/sept-16/flower-soul/nocal/sept-16-flower-soul-nocal-1280×1024.png
  36. 36 http://files.smashingmagazine.com/wallpapers/sept-16/flower-soul/nocal/sept-16-flower-soul-nocal-1366×768.png
  37. 37 http://files.smashingmagazine.com/wallpapers/sept-16/flower-soul/nocal/sept-16-flower-soul-nocal-1400×1050.png
  38. 38 http://files.smashingmagazine.com/wallpapers/sept-16/flower-soul/nocal/sept-16-flower-soul-nocal-1440×900.png
  39. 39 http://files.smashingmagazine.com/wallpapers/sept-16/flower-soul/nocal/sept-16-flower-soul-nocal-1600×1200.png
  40. 40 http://files.smashingmagazine.com/wallpapers/sept-16/flower-soul/nocal/sept-16-flower-soul-nocal-1680×1050.png
  41. 41 http://files.smashingmagazine.com/wallpapers/sept-16/flower-soul/nocal/sept-16-flower-soul-nocal-1680×1200.png
  42. 42 http://files.smashingmagazine.com/wallpapers/sept-16/flower-soul/nocal/sept-16-flower-soul-nocal-1920×1080.png
  43. 43 http://files.smashingmagazine.com/wallpapers/sept-16/flower-soul/nocal/sept-16-flower-soul-nocal-1920×1200.png
  44. 44 http://files.smashingmagazine.com/wallpapers/sept-16/flower-soul/nocal/sept-16-flower-soul-nocal-1920×1440.png
  45. 45 http://files.smashingmagazine.com/wallpapers/sept-16/flower-soul/nocal/sept-16-flower-soul-nocal-2560×1440.png
  46. 46 http://hirsdesign.com/
  47. 47 http://files.smashingmagazine.com/wallpapers/sept-16/office/sept-16-office-full.jpg
  48. 48 http://files.smashingmagazine.com/wallpapers/sept-16/office/sept-16-office-preview.jpg
  49. 49 http://files.smashingmagazine.com/wallpapers/sept-16/office/cal/sept-16-office-cal-320×480.jpg
  50. 50 http://files.smashingmagazine.com/wallpapers/sept-16/office/cal/sept-16-office-cal-800×600.jpg
  51. 51 http://files.smashingmagazine.com/wallpapers/sept-16/office/cal/sept-16-office-cal-1280×720.jpg
  52. 52 http://files.smashingmagazine.com/wallpapers/sept-16/office/cal/sept-16-office-cal-1280×1024.jpg
  53. 53 http://files.smashingmagazine.com/wallpapers/sept-16/office/cal/sept-16-office-cal-1440×900.jpg
  54. 54 http://files.smashingmagazine.com/wallpapers/sept-16/office/cal/sept-16-office-cal-1680×1050.jpg
  55. 55 http://files.smashingmagazine.com/wallpapers/sept-16/office/cal/sept-16-office-cal-1920×1080.jpg
  56. 56 http://files.smashingmagazine.com/wallpapers/sept-16/office/cal/sept-16-office-cal-1920×1440.jpg
  57. 57 http://files.smashingmagazine.com/wallpapers/sept-16/office/cal/sept-16-office-cal-2560×1440.jpg
  58. 58 http://files.smashingmagazine.com/wallpapers/sept-16/office/nocal/sept-16-office-nocal-320×480.jpg
  59. 59 http://files.smashingmagazine.com/wallpapers/sept-16/office/nocal/sept-16-office-nocal-800×600.jpg
  60. 60 http://files.smashingmagazine.com/wallpapers/sept-16/office/nocal/sept-16-office-nocal-1280×720.jpg
  61. 61 http://files.smashingmagazine.com/wallpapers/sept-16/office/nocal/sept-16-office-nocal-1280×1024.jpg
  62. 62 http://files.smashingmagazine.com/wallpapers/sept-16/office/nocal/sept-16-office-nocal-1440×900.jpg
  63. 63 http://files.smashingmagazine.com/wallpapers/sept-16/office/nocal/sept-16-office-nocal-1680×1050.jpg
  64. 64 http://files.smashingmagazine.com/wallpapers/sept-16/office/nocal/sept-16-office-nocal-1920×1080.jpg
  65. 65 http://files.smashingmagazine.com/wallpapers/sept-16/office/nocal/sept-16-office-nocal-1920×1440.jpg
  66. 66 http://files.smashingmagazine.com/wallpapers/sept-16/office/nocal/sept-16-office-nocal-2560×1440.jpg
  67. 67 http://www.echo3.com.au
  68. 68 http://files.smashingmagazine.com/wallpapers/sept-16/penguin-family/sept-16-penguin-family-full.png
  69. 69 http://files.smashingmagazine.com/wallpapers/sept-16/penguin-family/sept-16-penguin-family-preview.png
  70. 70 http://files.smashingmagazine.com/wallpapers/sept-16/penguin-family/cal/sept-16-penguin-family-cal-320×480.png
  71. 71 http://files.smashingmagazine.com/wallpapers/sept-16/penguin-family/cal/sept-16-penguin-family-cal-640×480.png
  72. 72 http://files.smashingmagazine.com/wallpapers/sept-16/penguin-family/cal/sept-16-penguin-family-cal-800×600.png
  73. 73 http://files.smashingmagazine.com/wallpapers/sept-16/penguin-family/cal/sept-16-penguin-family-cal-1024×768.png
  74. 74 http://files.smashingmagazine.com/wallpapers/sept-16/penguin-family/cal/sept-16-penguin-family-cal-1152×864.png
  75. 75 http://files.smashingmagazine.com/wallpapers/sept-16/penguin-family/cal/sept-16-penguin-family-cal-1280×720.png
  76. 76 http://files.smashingmagazine.com/wallpapers/sept-16/penguin-family/cal/sept-16-penguin-family-cal-1280×960.png
  77. 77 http://files.smashingmagazine.com/wallpapers/sept-16/penguin-family/cal/sept-16-penguin-family-cal-1600×1200.png
  78. 78 http://files.smashingmagazine.com/wallpapers/sept-16/penguin-family/cal/sept-16-penguin-family-cal-1920×1080.png
  79. 79 http://files.smashingmagazine.com/wallpapers/sept-16/penguin-family/cal/sept-16-penguin-family-cal-1920×1440.png
  80. 80 http://files.smashingmagazine.com/wallpapers/sept-16/penguin-family/cal/sept-16-penguin-family-cal-2560×1440.png
  81. 81 http://files.smashingmagazine.com/wallpapers/sept-16/penguin-family/nocal/sept-16-penguin-family-nocal-320×480.png
  82. 82 http://files.smashingmagazine.com/wallpapers/sept-16/penguin-family/nocal/sept-16-penguin-family-nocal-640×480.png
  83. 83 http://files.smashingmagazine.com/wallpapers/sept-16/penguin-family/nocal/sept-16-penguin-family-nocal-800×600.png
  84. 84 http://files.smashingmagazine.com/wallpapers/sept-16/penguin-family/nocal/sept-16-penguin-family-nocal-1024×768.png
  85. 85 http://files.smashingmagazine.com/wallpapers/sept-16/penguin-family/nocal/sept-16-penguin-family-nocal-1152×864.png
  86. 86 http://files.smashingmagazine.com/wallpapers/sept-16/penguin-family/nocal/sept-16-penguin-family-nocal-1280×720.png
  87. 87 http://files.smashingmagazine.com/wallpapers/sept-16/penguin-family/nocal/sept-16-penguin-family-nocal-1280×960.png
  88. 88 http://files.smashingmagazine.com/wallpapers/sept-16/penguin-family/nocal/sept-16-penguin-family-nocal-1600×1200.png
  89. 89 http://files.smashingmagazine.com/wallpapers/sept-16/penguin-family/nocal/sept-16-penguin-family-nocal-1920×1080.png
  90. 90 http://files.smashingmagazine.com/wallpapers/sept-16/penguin-family/nocal/sept-16-penguin-family-nocal-1920×1440.png
  91. 91 http://files.smashingmagazine.com/wallpapers/sept-16/penguin-family/nocal/sept-16-penguin-family-nocal-2560×1440.png
  92. 92 http://www.s7designcreative.com
  93. 93 http://files.smashingmagazine.com/wallpapers/sept-16/autumn-in-the-woods/sept-16-autumn-in-the-woods-full.png
  94. 94 http://files.smashingmagazine.com/wallpapers/sept-16/autumn-in-the-woods/sept-16-autumn-in-the-woods-preview.png
  95. 95 http://files.smashingmagazine.com/wallpapers/sept-16/autumn-in-the-woods/cal/sept-16-autumn-in-the-woods-cal-320×480.png
  96. 96 http://files.smashingmagazine.com/wallpapers/sept-16/autumn-in-the-woods/cal/sept-16-autumn-in-the-woods-cal-640×480.png
  97. 97 http://files.smashingmagazine.com/wallpapers/sept-16/autumn-in-the-woods/cal/sept-16-autumn-in-the-woods-cal-800×480.png
  98. 98 http://files.smashingmagazine.com/wallpapers/sept-16/autumn-in-the-woods/cal/sept-16-autumn-in-the-woods-cal-800×600.png
  99. 99 http://files.smashingmagazine.com/wallpapers/sept-16/autumn-in-the-woods/cal/sept-16-autumn-in-the-woods-cal-1024×768.png
  100. 100 http://files.smashingmagazine.com/wallpapers/sept-16/autumn-in-the-woods/cal/sept-16-autumn-in-the-woods-cal-1024×1024.png
  101. 101 http://files.smashingmagazine.com/wallpapers/sept-16/autumn-in-the-woods/cal/sept-16-autumn-in-the-woods-cal-1152×864.png
  102. 102 http://files.smashingmagazine.com/wallpapers/sept-16/autumn-in-the-woods/cal/sept-16-autumn-in-the-woods-cal-1280×720.png
  103. 103 http://files.smashingmagazine.com/wallpapers/sept-16/autumn-in-the-woods/cal/sept-16-autumn-in-the-woods-cal-1280×800.png
  104. 104 http://files.smashingmagazine.com/wallpapers/sept-16/autumn-in-the-woods/cal/sept-16-autumn-in-the-woods-cal-1280×960.png
  105. 105 http://files.smashingmagazine.com/wallpapers/sept-16/autumn-in-the-woods/cal/sept-16-autumn-in-the-woods-cal-1280×1024.png
  106. 106 http://files.smashingmagazine.com/wallpapers/sept-16/autumn-in-the-woods/cal/sept-16-autumn-in-the-woods-cal-1366×768.png
  107. 107 http://files.smashingmagazine.com/wallpapers/sept-16/autumn-in-the-woods/cal/sept-16-autumn-in-the-woods-cal-1400×1050.png
  108. 108 http://files.smashingmagazine.com/wallpapers/sept-16/autumn-in-the-woods/cal/sept-16-autumn-in-the-woods-cal-1440×900.png
  109. 109 http://files.smashingmagazine.com/wallpapers/sept-16/autumn-in-the-woods/cal/sept-16-autumn-in-the-woods-cal-1600×1200.png
  110. 110 http://files.smashingmagazine.com/wallpapers/sept-16/autumn-in-the-woods/cal/sept-16-autumn-in-the-woods-cal-1680×1050.png
  111. 111 http://files.smashingmagazine.com/wallpapers/sept-16/autumn-in-the-woods/cal/sept-16-autumn-in-the-woods-cal-1680×1200.png
  112. 112 http://files.smashingmagazine.com/wallpapers/sept-16/autumn-in-the-woods/cal/sept-16-autumn-in-the-woods-cal-1920×1080.png
  113. 113 http://files.smashingmagazine.com/wallpapers/sept-16/autumn-in-the-woods/cal/sept-16-autumn-in-the-woods-cal-1920×1200.png
  114. 114 http://files.smashingmagazine.com/wallpapers/sept-16/autumn-in-the-woods/cal/sept-16-autumn-in-the-woods-cal-1920×1440.png
  115. 115 http://files.smashingmagazine.com/wallpapers/sept-16/autumn-in-the-woods/cal/sept-16-autumn-in-the-woods-cal-2560×1440.png
  116. 116 http://files.smashingmagazine.com/wallpapers/sept-16/autumn-in-the-woods/nocal/sept-16-autumn-in-the-woods-nocal-320×480.png
  117. 117 http://files.smashingmagazine.com/wallpapers/sept-16/autumn-in-the-woods/nocal/sept-16-autumn-in-the-woods-nocal-640×480.png
  118. 118 http://files.smashingmagazine.com/wallpapers/sept-16/autumn-in-the-woods/nocal/sept-16-autumn-in-the-woods-nocal-800×480.png
  119. 119 http://files.smashingmagazine.com/wallpapers/sept-16/autumn-in-the-woods/nocal/sept-16-autumn-in-the-woods-nocal-800×600.png
  120. 120 http://files.smashingmagazine.com/wallpapers/sept-16/autumn-in-the-woods/nocal/sept-16-autumn-in-the-woods-nocal-1024×768.png
  121. 121 http://files.smashingmagazine.com/wallpapers/sept-16/autumn-in-the-woods/nocal/sept-16-autumn-in-the-woods-nocal-1024×1024.png
  122. 122 http://files.smashingmagazine.com/wallpapers/sept-16/autumn-in-the-woods/nocal/sept-16-autumn-in-the-woods-nocal-1152×864.png
  123. 123 http://files.smashingmagazine.com/wallpapers/sept-16/autumn-in-the-woods/nocal/sept-16-autumn-in-the-woods-nocal-1280×720.png
  124. 124 http://files.smashingmagazine.com/wallpapers/sept-16/autumn-in-the-woods/nocal/sept-16-autumn-in-the-woods-nocal-1280×800.png
  125. 125 http://files.smashingmagazine.com/wallpapers/sept-16/autumn-in-the-woods/nocal/sept-16-autumn-in-the-woods-nocal-1280×960.png
  126. 126 http://files.smashingmagazine.com/wallpapers/sept-16/autumn-in-the-woods/nocal/sept-16-autumn-in-the-woods-nocal-1280×1024.png
  127. 127 http://files.smashingmagazine.com/wallpapers/sept-16/autumn-in-the-woods/nocal/sept-16-autumn-in-the-woods-nocal-1366×768.png
  128. 128 http://files.smashingmagazine.com/wallpapers/sept-16/autumn-in-the-woods/nocal/sept-16-autumn-in-the-woods-nocal-1400×1050.png
  129. 129 http://files.smashingmagazine.com/wallpapers/sept-16/autumn-in-the-woods/nocal/sept-16-autumn-in-the-woods-nocal-1440×900.png
  130. 130 http://files.smashingmagazine.com/wallpapers/sept-16/autumn-in-the-woods/nocal/sept-16-autumn-in-the-woods-nocal-1600×1200.png
  131. 131 http://files.smashingmagazine.com/wallpapers/sept-16/autumn-in-the-woods/nocal/sept-16-autumn-in-the-woods-nocal-1680×1050.png
  132. 132 http://files.smashingmagazine.com/wallpapers/sept-16/autumn-in-the-woods/nocal/sept-16-autumn-in-the-woods-nocal-1680×1200.png
  133. 133 http://files.smashingmagazine.com/wallpapers/sept-16/autumn-in-the-woods/nocal/sept-16-autumn-in-the-woods-nocal-1920×1080.png
  134. 134 http://files.smashingmagazine.com/wallpapers/sept-16/autumn-in-the-woods/nocal/sept-16-autumn-in-the-woods-nocal-1920×1200.png
  135. 135 http://files.smashingmagazine.com/wallpapers/sept-16/autumn-in-the-woods/nocal/sept-16-autumn-in-the-woods-nocal-1920×1440.png
  136. 136 http://files.smashingmagazine.com/wallpapers/sept-16/autumn-in-the-woods/nocal/sept-16-autumn-in-the-woods-nocal-2560×1440.png
  137. 137 https://www.behance.net/jamesmitchell23
  138. 138 http://files.smashingmagazine.com/wallpapers/sept-16/autumn-leaves/sept-16-autumn-leaves-full.png
  139. 139 http://files.smashingmagazine.com/wallpapers/sept-16/autumn-leaves/sept-16-autumn-leaves-preview.png
  140. 140 http://files.smashingmagazine.com/wallpapers/sept-16/autumn-leaves/cal/sept-16-autumn-leaves-cal-1280×720.png
  141. 141 http://files.smashingmagazine.com/wallpapers/sept-16/autumn-leaves/cal/sept-16-autumn-leaves-cal-1280×800.png
  142. 142 http://files.smashingmagazine.com/wallpapers/sept-16/autumn-leaves/cal/sept-16-autumn-leaves-cal-1366×768.png
  143. 143 http://files.smashingmagazine.com/wallpapers/sept-16/autumn-leaves/cal/sept-16-autumn-leaves-cal-1440×900.png
  144. 144 http://files.smashingmagazine.com/wallpapers/sept-16/autumn-leaves/cal/sept-16-autumn-leaves-cal-1680×1050.png
  145. 145 http://files.smashingmagazine.com/wallpapers/sept-16/autumn-leaves/cal/sept-16-autumn-leaves-cal-1920×1080.png
  146. 146 http://files.smashingmagazine.com/wallpapers/sept-16/autumn-leaves/cal/sept-16-autumn-leaves-cal-1920×1200.png
  147. 147 http://files.smashingmagazine.com/wallpapers/sept-16/autumn-leaves/cal/sept-16-autumn-leaves-cal-2560×1440.png
  148. 148 http://files.smashingmagazine.com/wallpapers/sept-16/autumn-leaves/cal/sept-16-autumn-leaves-cal-2880×1800.png
  149. 149 http://files.smashingmagazine.com/wallpapers/sept-16/autumn-leaves/nocal/sept-16-autumn-leaves-nocal-1280×720.png
  150. 150 http://files.smashingmagazine.com/wallpapers/sept-16/autumn-leaves/nocal/sept-16-autumn-leaves-nocal-1280×800.png
  151. 151 http://files.smashingmagazine.com/wallpapers/sept-16/autumn-leaves/nocal/sept-16-autumn-leaves-nocal-1366×768.png
  152. 152 http://files.smashingmagazine.com/wallpapers/sept-16/autumn-leaves/nocal/sept-16-autumn-leaves-nocal-1440×900.png
  153. 153 http://files.smashingmagazine.com/wallpapers/sept-16/autumn-leaves/nocal/sept-16-autumn-leaves-nocal-1680×1050.png
  154. 154 http://files.smashingmagazine.com/wallpapers/sept-16/autumn-leaves/nocal/sept-16-autumn-leaves-nocal-1920×1080.png
  155. 155 http://files.smashingmagazine.com/wallpapers/sept-16/autumn-leaves/nocal/sept-16-autumn-leaves-nocal-1920×1200.png
  156. 156 http://files.smashingmagazine.com/wallpapers/sept-16/autumn-leaves/nocal/sept-16-autumn-leaves-nocal-2560×1440.png
  157. 157 http://files.smashingmagazine.com/wallpapers/sept-16/autumn-leaves/nocal/sept-16-autumn-leaves-nocal-2880×1800.png
  158. 158 http://www.codesign.cc
  159. 159 http://files.smashingmagazine.com/wallpapers/sept-16/do-you-remember/sept-16-do-you-remember-full.jpg
  160. 160 http://files.smashingmagazine.com/wallpapers/sept-16/do-you-remember/sept-16-do-you-remember-preview.jpg
  161. 161 http://files.smashingmagazine.com/wallpapers/sept-16/do-you-remember/cal/sept-16-do-you-remember-cal-1024×768.jpg
  162. 162 http://files.smashingmagazine.com/wallpapers/sept-16/do-you-remember/cal/sept-16-do-you-remember-cal-1280×800.jpg
  163. 163 http://files.smashingmagazine.com/wallpapers/sept-16/do-you-remember/cal/sept-16-do-you-remember-cal-1280×1024.jpg
  164. 164 http://files.smashingmagazine.com/wallpapers/sept-16/do-you-remember/cal/sept-16-do-you-remember-cal-1400×1050.jpg
  165. 165 http://files.smashingmagazine.com/wallpapers/sept-16/do-you-remember/cal/sept-16-do-you-remember-cal-1440×900.jpg
  166. 166 http://files.smashingmagazine.com/wallpapers/sept-16/do-you-remember/cal/sept-16-do-you-remember-cal-1600×1200.jpg
  167. 167 http://files.smashingmagazine.com/wallpapers/sept-16/do-you-remember/cal/sept-16-do-you-remember-cal-1920×1080.jpg
  168. 168 http://files.smashingmagazine.com/wallpapers/sept-16/do-you-remember/cal/sept-16-do-you-remember-cal-2560×1440.jpg
  169. 169 http://files.smashingmagazine.com/wallpapers/sept-16/do-you-remember/nocal/sept-16-do-you-remember-nocal-1024×768.jpg
  170. 170 http://files.smashingmagazine.com/wallpapers/sept-16/do-you-remember/nocal/sept-16-do-you-remember-nocal-1280×800.jpg
  171. 171 http://files.smashingmagazine.com/wallpapers/sept-16/do-you-remember/nocal/sept-16-do-you-remember-nocal-1280×1024.jpg
  172. 172 http://files.smashingmagazine.com/wallpapers/sept-16/do-you-remember/nocal/sept-16-do-you-remember-nocal-1400×1050.jpg
  173. 173 http://files.smashingmagazine.com/wallpapers/sept-16/do-you-remember/nocal/sept-16-do-you-remember-nocal-1440×900.jpg
  174. 174 http://files.smashingmagazine.com/wallpapers/sept-16/do-you-remember/nocal/sept-16-do-you-remember-nocal-1600×1200.jpg
  175. 175 http://files.smashingmagazine.com/wallpapers/sept-16/do-you-remember/nocal/sept-16-do-you-remember-nocal-1920×1080.jpg
  176. 176 http://files.smashingmagazine.com/wallpapers/sept-16/do-you-remember/nocal/sept-16-do-you-remember-nocal-2560×1440.jpg
  177. 177 http://peggiejeanie.com
  178. 178 http://files.smashingmagazine.com/wallpapers/sept-16/tropical-procrastination/sept-16-tropical-procrastination-full.jpg
  179. 179 http://files.smashingmagazine.com/wallpapers/sept-16/tropical-procrastination/sept-16-tropical-procrastination-preview.jpg
  180. 180 http://files.smashingmagazine.com/wallpapers/sept-16/tropical-procrastination/cal/sept-16-tropical-procrastination-cal-320×480.jpg
  181. 181 http://files.smashingmagazine.com/wallpapers/sept-16/tropical-procrastination/cal/sept-16-tropical-procrastination-cal-640×480.jpg
  182. 182 http://files.smashingmagazine.com/wallpapers/sept-16/tropical-procrastination/cal/sept-16-tropical-procrastination-cal-800×480.jpg
  183. 183 http://files.smashingmagazine.com/wallpapers/sept-16/tropical-procrastination/cal/sept-16-tropical-procrastination-cal-800×600.jpg
  184. 184 http://files.smashingmagazine.com/wallpapers/sept-16/tropical-procrastination/cal/sept-16-tropical-procrastination-cal-1024×1024.jpg
  185. 185 http://files.smashingmagazine.com/wallpapers/sept-16/tropical-procrastination/cal/sept-16-tropical-procrastination-cal-1152×864.jpg
  186. 186 http://files.smashingmagazine.com/wallpapers/sept-16/tropical-procrastination/cal/sept-16-tropical-procrastination-cal-1280×720.jpg
  187. 187 http://files.smashingmagazine.com/wallpapers/sept-16/tropical-procrastination/cal/sept-16-tropical-procrastination-cal-1280×800.jpg
  188. 188 http://files.smashingmagazine.com/wallpapers/sept-16/tropical-procrastination/cal/sept-16-tropical-procrastination-cal-1280×960.jpg
  189. 189 http://files.smashingmagazine.com/wallpapers/sept-16/tropical-procrastination/cal/sept-16-tropical-procrastination-cal-1280×1024.jpg
  190. 190 http://files.smashingmagazine.com/wallpapers/sept-16/tropical-procrastination/cal/sept-16-tropical-procrastination-cal-1366×768.jpg
  191. 191 http://files.smashingmagazine.com/wallpapers/sept-16/tropical-procrastination/cal/sept-16-tropical-procrastination-cal-1400×1050.jpg
  192. 192 http://files.smashingmagazine.com/wallpapers/sept-16/tropical-procrastination/cal/sept-16-tropical-procrastination-cal-1440×900.jpg
  193. 193 http://files.smashingmagazine.com/wallpapers/sept-16/tropical-procrastination/cal/sept-16-tropical-procrastination-cal-1600×1200.jpg
  194. 194 http://files.smashingmagazine.com/wallpapers/sept-16/tropical-procrastination/cal/sept-16-tropical-procrastination-cal-1680×1050.jpg
  195. 195 http://files.smashingmagazine.com/wallpapers/sept-16/tropical-procrastination/cal/sept-16-tropical-procrastination-cal-1680×1200.jpg
  196. 196 http://files.smashingmagazine.com/wallpapers/sept-16/tropical-procrastination/cal/sept-16-tropical-procrastination-cal-1920×1080.jpg
  197. 197 http://files.smashingmagazine.com/wallpapers/sept-16/tropical-procrastination/cal/sept-16-tropical-procrastination-cal-1920×1200.jpg
  198. 198 http://files.smashingmagazine.com/wallpapers/sept-16/tropical-procrastination/cal/sept-16-tropical-procrastination-cal-1920×1440.jpg
  199. 199 http://files.smashingmagazine.com/wallpapers/sept-16/tropical-procrastination/cal/sept-16-tropical-procrastination-cal-2560×1440.jpg
  200. 200 http://files.smashingmagazine.com/wallpapers/sept-16/tropical-procrastination/nocal/sept-16-tropical-procrastination-nocal-320×480.jpg
  201. 201 http://files.smashingmagazine.com/wallpapers/sept-16/tropical-procrastination/nocal/sept-16-tropical-procrastination-nocal-640×480.jpg
  202. 202 http://files.smashingmagazine.com/wallpapers/sept-16/tropical-procrastination/nocal/sept-16-tropical-procrastination-nocal-800×480.jpg
  203. 203 http://files.smashingmagazine.com/wallpapers/sept-16/tropical-procrastination/nocal/sept-16-tropical-procrastination-nocal-800×600.jpg
  204. 204 http://files.smashingmagazine.com/wallpapers/sept-16/tropical-procrastination/nocal/sept-16-tropical-procrastination-nocal-1024×1024.jpg
  205. 205 http://files.smashingmagazine.com/wallpapers/sept-16/tropical-procrastination/nocal/sept-16-tropical-procrastination-nocal-1152×864.jpg
  206. 206 http://files.smashingmagazine.com/wallpapers/sept-16/tropical-procrastination/nocal/sept-16-tropical-procrastination-nocal-1280×720.jpg
  207. 207 http://files.smashingmagazine.com/wallpapers/sept-16/tropical-procrastination/nocal/sept-16-tropical-procrastination-nocal-1280×800.jpg
  208. 208 http://files.smashingmagazine.com/wallpapers/sept-16/tropical-procrastination/nocal/sept-16-tropical-procrastination-nocal-1280×960.jpg
  209. 209 http://files.smashingmagazine.com/wallpapers/sept-16/tropical-procrastination/nocal/sept-16-tropical-procrastination-nocal-1280×1024.jpg
  210. 210 http://files.smashingmagazine.com/wallpapers/sept-16/tropical-procrastination/nocal/sept-16-tropical-procrastination-nocal-1366×768.jpg
  211. 211 http://files.smashingmagazine.com/wallpapers/sept-16/tropical-procrastination/nocal/sept-16-tropical-procrastination-nocal-1400×1050.jpg
  212. 212 http://files.smashingmagazine.com/wallpapers/sept-16/tropical-procrastination/nocal/sept-16-tropical-procrastination-nocal-1440×900.jpg
  213. 213 http://files.smashingmagazine.com/wallpapers/sept-16/tropical-procrastination/nocal/sept-16-tropical-procrastination-nocal-1600×1200.jpg
  214. 214 http://files.smashingmagazine.com/wallpapers/sept-16/tropical-procrastination/nocal/sept-16-tropical-procrastination-nocal-1680×1050.jpg
  215. 215 http://files.smashingmagazine.com/wallpapers/sept-16/tropical-procrastination/nocal/sept-16-tropical-procrastination-nocal-1680×1200.jpg
  216. 216 http://files.smashingmagazine.com/wallpapers/sept-16/tropical-procrastination/nocal/sept-16-tropical-procrastination-nocal-1920×1080.jpg
  217. 217 http://files.smashingmagazine.com/wallpapers/sept-16/tropical-procrastination/nocal/sept-16-tropical-procrastination-nocal-1920×1200.jpg
  218. 218 http://files.smashingmagazine.com/wallpapers/sept-16/tropical-procrastination/nocal/sept-16-tropical-procrastination-nocal-1920×1440.jpg
  219. 219 http://files.smashingmagazine.com/wallpapers/sept-16/tropical-procrastination/nocal/sept-16-tropical-procrastination-nocal-2560×1440.jpg
  220. 220 http://anastas.design
  221. 221 http://files.smashingmagazine.com/wallpapers/sept-16/the-september-sun/sept-16-the-september-sun-full.png
  222. 222 http://files.smashingmagazine.com/wallpapers/sept-16/the-september-sun/sept-16-the-september-sun-preview.png
  223. 223 http://files.smashingmagazine.com/wallpapers/sept-16/the-september-sun/cal/sept-16-the-september-sun-cal-800×600.png
  224. 224 http://files.smashingmagazine.com/wallpapers/sept-16/the-september-sun/cal/sept-16-the-september-sun-cal-1024×768.png
  225. 225 http://files.smashingmagazine.com/wallpapers/sept-16/the-september-sun/cal/sept-16-the-september-sun-cal-1152×864.png
  226. 226 http://files.smashingmagazine.com/wallpapers/sept-16/the-september-sun/cal/sept-16-the-september-sun-cal-1280×720.png
  227. 227 http://files.smashingmagazine.com/wallpapers/sept-16/the-september-sun/cal/sept-16-the-september-sun-cal-1280×800.png
  228. 228 http://files.smashingmagazine.com/wallpapers/sept-16/the-september-sun/cal/sept-16-the-september-sun-cal-1280×960.png
  229. 229 http://files.smashingmagazine.com/wallpapers/sept-16/the-september-sun/cal/sept-16-the-september-sun-cal-1400×1050.png
  230. 230 http://files.smashingmagazine.com/wallpapers/sept-16/the-september-sun/cal/sept-16-the-september-sun-cal-1440×900.png
  231. 231 http://files.smashingmagazine.com/wallpapers/sept-16/the-september-sun/cal/sept-16-the-september-sun-cal-1600×1200.png
  232. 232 http://files.smashingmagazine.com/wallpapers/sept-16/the-september-sun/cal/sept-16-the-september-sun-cal-1680×1050.png
  233. 233 http://files.smashingmagazine.com/wallpapers/sept-16/the-september-sun/cal/sept-16-the-september-sun-cal-1920×1080.png
  234. 234 http://files.smashingmagazine.com/wallpapers/sept-16/the-september-sun/cal/sept-16-the-september-sun-cal-1920×1440.png
  235. 235 http://files.smashingmagazine.com/wallpapers/sept-16/the-september-sun/cal/sept-16-the-september-sun-cal-2560×1440.png
  236. 236 http://files.smashingmagazine.com/wallpapers/sept-16/the-september-sun/nocal/sept-16-the-september-sun-nocal-800×600.png
  237. 237 http://files.smashingmagazine.com/wallpapers/sept-16/the-september-sun/nocal/sept-16-the-september-sun-nocal-1024×768.png
  238. 238 http://files.smashingmagazine.com/wallpapers/sept-16/the-september-sun/nocal/sept-16-the-september-sun-nocal-1152×864.png
  239. 239 http://files.smashingmagazine.com/wallpapers/sept-16/the-september-sun/nocal/sept-16-the-september-sun-nocal-1280×720.png
  240. 240 http://files.smashingmagazine.com/wallpapers/sept-16/the-september-sun/nocal/sept-16-the-september-sun-nocal-1280×800.png
  241. 241 http://files.smashingmagazine.com/wallpapers/sept-16/the-september-sun/nocal/sept-16-the-september-sun-nocal-1280×960.png
  242. 242 http://files.smashingmagazine.com/wallpapers/sept-16/the-september-sun/nocal/sept-16-the-september-sun-nocal-1400×1050.png
  243. 243 http://files.smashingmagazine.com/wallpapers/sept-16/the-september-sun/nocal/sept-16-the-september-sun-nocal-1440×900.png
  244. 244 http://files.smashingmagazine.com/wallpapers/sept-16/the-september-sun/nocal/sept-16-the-september-sun-nocal-1600×1200.png
  245. 245 http://files.smashingmagazine.com/wallpapers/sept-16/the-september-sun/nocal/sept-16-the-september-sun-nocal-1680×1050.png
  246. 246 http://files.smashingmagazine.com/wallpapers/sept-16/the-september-sun/nocal/sept-16-the-september-sun-nocal-1920×1080.png
  247. 247 http://files.smashingmagazine.com/wallpapers/sept-16/the-september-sun/nocal/sept-16-the-september-sun-nocal-1920×1440.png
  248. 248 http://files.smashingmagazine.com/wallpapers/sept-16/the-september-sun/nocal/sept-16-the-september-sun-nocal-2560×1440.png
  249. 249 http://www.mariakellerac.com
  250. 250 http://files.smashingmagazine.com/wallpapers/sept-16/viva-mexico/sept-16-viva-mexico-full.png
  251. 251 http://files.smashingmagazine.com/wallpapers/sept-16/viva-mexico/sept-16-viva-mexico-preview.png
  252. 252 http://files.smashingmagazine.com/wallpapers/sept-16/viva-mexico/cal/sept-16-viva-mexico-cal-320×480.png
  253. 253 http://files.smashingmagazine.com/wallpapers/sept-16/viva-mexico/cal/sept-16-viva-mexico-cal-640×480.png
  254. 254 http://files.smashingmagazine.com/wallpapers/sept-16/viva-mexico/cal/sept-16-viva-mexico-cal-640×1136.png
  255. 255 http://files.smashingmagazine.com/wallpapers/sept-16/viva-mexico/cal/sept-16-viva-mexico-cal-750×1334.png
  256. 256 http://files.smashingmagazine.com/wallpapers/sept-16/viva-mexico/cal/sept-16-viva-mexico-cal-800×480.png
  257. 257 http://files.smashingmagazine.com/wallpapers/sept-16/viva-mexico/cal/sept-16-viva-mexico-cal-800×600.png
  258. 258 http://files.smashingmagazine.com/wallpapers/sept-16/viva-mexico/cal/sept-16-viva-mexico-cal-1024×768.png
  259. 259 http://files.smashingmagazine.com/wallpapers/sept-16/viva-mexico/cal/sept-16-viva-mexico-cal-1024×1024.png
  260. 260 http://files.smashingmagazine.com/wallpapers/sept-16/viva-mexico/cal/sept-16-viva-mexico-cal-1152×864.png
  261. 261 http://files.smashingmagazine.com/wallpapers/sept-16/viva-mexico/cal/sept-16-viva-mexico-cal-1242×2208.png
  262. 262 http://files.smashingmagazine.com/wallpapers/sept-16/viva-mexico/cal/sept-16-viva-mexico-cal-1280×720.png
  263. 263 http://files.smashingmagazine.com/wallpapers/sept-16/viva-mexico/cal/sept-16-viva-mexico-cal-1280×800.png
  264. 264 http://files.smashingmagazine.com/wallpapers/sept-16/viva-mexico/cal/sept-16-viva-mexico-cal-1280×960.png
  265. 265 http://files.smashingmagazine.com/wallpapers/sept-16/viva-mexico/cal/sept-16-viva-mexico-cal-1280×1024.png
  266. 266 http://files.smashingmagazine.com/wallpapers/sept-16/viva-mexico/cal/sept-16-viva-mexico-cal-1366×768.png
  267. 267 http://files.smashingmagazine.com/wallpapers/sept-16/viva-mexico/cal/sept-16-viva-mexico-cal-1400×1050.png
  268. 268 http://files.smashingmagazine.com/wallpapers/sept-16/viva-mexico/cal/sept-16-viva-mexico-cal-1440×900.png
  269. 269 http://files.smashingmagazine.com/wallpapers/sept-16/viva-mexico/cal/sept-16-viva-mexico-cal-1600×1200.png
  270. 270 http://files.smashingmagazine.com/wallpapers/sept-16/viva-mexico/cal/sept-16-viva-mexico-cal-1680×1050.png
  271. 271 http://files.smashingmagazine.com/wallpapers/sept-16/viva-mexico/cal/sept-16-viva-mexico-cal-1680×1200.png
  272. 272 http://files.smashingmagazine.com/wallpapers/sept-16/viva-mexico/cal/sept-16-viva-mexico-cal-1920×1080.png
  273. 273 http://files.smashingmagazine.com/wallpapers/sept-16/viva-mexico/cal/sept-16-viva-mexico-cal-1920×1200.png
  274. 274 http://files.smashingmagazine.com/wallpapers/sept-16/viva-mexico/cal/sept-16-viva-mexico-cal-1920×1440.png
  275. 275 http://files.smashingmagazine.com/wallpapers/sept-16/viva-mexico/cal/sept-16-viva-mexico-cal-2560×1440.png
  276. 276 http://files.smashingmagazine.com/wallpapers/sept-16/viva-mexico/cal/sept-16-viva-mexico-cal-2880×1800.png
  277. 277 http://files.smashingmagazine.com/wallpapers/sept-16/viva-mexico/nocal/sept-16-viva-mexico-nocal-320×480.png
  278. 278 http://files.smashingmagazine.com/wallpapers/sept-16/viva-mexico/nocal/sept-16-viva-mexico-nocal-640×480.png
  279. 279 http://files.smashingmagazine.com/wallpapers/sept-16/viva-mexico/nocal/sept-16-viva-mexico-nocal-640×1136.png
  280. 280 http://files.smashingmagazine.com/wallpapers/sept-16/viva-mexico/nocal/sept-16-viva-mexico-nocal-750×1334.png
  281. 281 http://files.smashingmagazine.com/wallpapers/sept-16/viva-mexico/nocal/sept-16-viva-mexico-nocal-800×480.png
  282. 282 http://files.smashingmagazine.com/wallpapers/sept-16/viva-mexico/nocal/sept-16-viva-mexico-nocal-800×600.png
  283. 283 http://files.smashingmagazine.com/wallpapers/sept-16/viva-mexico/nocal/sept-16-viva-mexico-nocal-1024×768.png
  284. 284 http://files.smashingmagazine.com/wallpapers/sept-16/viva-mexico/nocal/sept-16-viva-mexico-nocal-1024×1024.png
  285. 285 http://files.smashingmagazine.com/wallpapers/sept-16/viva-mexico/nocal/sept-16-viva-mexico-nocal-1152×864.png
  286. 286 http://files.smashingmagazine.com/wallpapers/sept-16/viva-mexico/nocal/sept-16-viva-mexico-nocal-1242×2208.png
  287. 287 http://files.smashingmagazine.com/wallpapers/sept-16/viva-mexico/nocal/sept-16-viva-mexico-nocal-1280×720.png
  288. 288 http://files.smashingmagazine.com/wallpapers/sept-16/viva-mexico/nocal/sept-16-viva-mexico-nocal-1280×800.png
  289. 289 http://files.smashingmagazine.com/wallpapers/sept-16/viva-mexico/nocal/sept-16-viva-mexico-nocal-1280×960.png
  290. 290 http://files.smashingmagazine.com/wallpapers/sept-16/viva-mexico/nocal/sept-16-viva-mexico-nocal-1280×1024.png
  291. 291 http://files.smashingmagazine.com/wallpapers/sept-16/viva-mexico/nocal/sept-16-viva-mexico-nocal-1366×768.png
  292. 292 http://files.smashingmagazine.com/wallpapers/sept-16/viva-mexico/nocal/sept-16-viva-mexico-nocal-1400×1050.png
  293. 293 http://files.smashingmagazine.com/wallpapers/sept-16/viva-mexico/nocal/sept-16-viva-mexico-nocal-1440×900.png
  294. 294 http://files.smashingmagazine.com/wallpapers/sept-16/viva-mexico/nocal/sept-16-viva-mexico-nocal-1600×1200.png
  295. 295 http://files.smashingmagazine.com/wallpapers/sept-16/viva-mexico/nocal/sept-16-viva-mexico-nocal-1680×1050.png
  296. 296 http://files.smashingmagazine.com/wallpapers/sept-16/viva-mexico/nocal/sept-16-viva-mexico-nocal-1680×1200.png
  297. 297 http://files.smashingmagazine.com/wallpapers/sept-16/viva-mexico/nocal/sept-16-viva-mexico-nocal-1920×1080.png
  298. 298 http://files.smashingmagazine.com/wallpapers/sept-16/viva-mexico/nocal/sept-16-viva-mexico-nocal-1920×1200.png
  299. 299 http://files.smashingmagazine.com/wallpapers/sept-16/viva-mexico/nocal/sept-16-viva-mexico-nocal-1920×1440.png
  300. 300 http://files.smashingmagazine.com/wallpapers/sept-16/viva-mexico/nocal/sept-16-viva-mexico-nocal-2560×1440.png
  301. 301 http://files.smashingmagazine.com/wallpapers/sept-16/viva-mexico/nocal/sept-16-viva-mexico-nocal-2880×1800.png
  302. 302 http://www.tazi.com.au
  303. 303 http://files.smashingmagazine.com/wallpapers/sept-16/hello-spring/sept-16-hello-spring-full.png
  304. 304 http://files.smashingmagazine.com/wallpapers/sept-16/hello-spring/sept-16-hello-spring-preview.png
  305. 305 http://files.smashingmagazine.com/wallpapers/sept-16/hello-spring/cal/sept-16-hello-spring-cal-320×480.png
  306. 306 http://files.smashingmagazine.com/wallpapers/sept-16/hello-spring/cal/sept-16-hello-spring-cal-640×480.png
  307. 307 http://files.smashingmagazine.com/wallpapers/sept-16/hello-spring/cal/sept-16-hello-spring-cal-800×600.png
  308. 308 http://files.smashingmagazine.com/wallpapers/sept-16/hello-spring/cal/sept-16-hello-spring-cal-1024×768.png
  309. 309 http://files.smashingmagazine.com/wallpapers/sept-16/hello-spring/cal/sept-16-hello-spring-cal-1152×864.png
  310. 310 http://files.smashingmagazine.com/wallpapers/sept-16/hello-spring/cal/sept-16-hello-spring-cal-1280×720.png
  311. 311 http://files.smashingmagazine.com/wallpapers/sept-16/hello-spring/cal/sept-16-hello-spring-cal-1280×960.png
  312. 312 http://files.smashingmagazine.com/wallpapers/sept-16/hello-spring/cal/sept-16-hello-spring-cal-1600×1200.png
  313. 313 http://files.smashingmagazine.com/wallpapers/sept-16/hello-spring/cal/sept-16-hello-spring-cal-1920×1080.png
  314. 314 http://files.smashingmagazine.com/wallpapers/sept-16/hello-spring/cal/sept-16-hello-spring-cal-1920×1440.png
  315. 315 http://files.smashingmagazine.com/wallpapers/sept-16/hello-spring/cal/sept-16-hello-spring-cal-2560×1440.png
  316. 316 http://files.smashingmagazine.com/wallpapers/sept-16/hello-spring/nocal/sept-16-hello-spring-nocal-320×480.png
  317. 317 http://files.smashingmagazine.com/wallpapers/sept-16/hello-spring/nocal/sept-16-hello-spring-nocal-640×480.png
  318. 318 http://files.smashingmagazine.com/wallpapers/sept-16/hello-spring/nocal/sept-16-hello-spring-nocal-800×600.png
  319. 319 http://files.smashingmagazine.com/wallpapers/sept-16/hello-spring/nocal/sept-16-hello-spring-nocal-1024×768.png
  320. 320 http://files.smashingmagazine.com/wallpapers/sept-16/hello-spring/nocal/sept-16-hello-spring-nocal-1152×864.png
  321. 321 http://files.smashingmagazine.com/wallpapers/sept-16/hello-spring/nocal/sept-16-hello-spring-nocal-1280×720.png
  322. 322 http://files.smashingmagazine.com/wallpapers/sept-16/hello-spring/nocal/sept-16-hello-spring-nocal-1280×960.png
  323. 323 http://files.smashingmagazine.com/wallpapers/sept-16/hello-spring/nocal/sept-16-hello-spring-nocal-1600×1200.png
  324. 324 http://files.smashingmagazine.com/wallpapers/sept-16/hello-spring/nocal/sept-16-hello-spring-nocal-1920×1080.png
  325. 325 http://files.smashingmagazine.com/wallpapers/sept-16/hello-spring/nocal/sept-16-hello-spring-nocal-1920×1440.png
  326. 326 http://files.smashingmagazine.com/wallpapers/sept-16/hello-spring/nocal/sept-16-hello-spring-nocal-2560×1440.png
  327. 327 http://ladybirddee.net/
  328. 328 http://files.smashingmagazine.com/wallpapers/sept-16/live-in-the-moment/sept-16-live-in-the-moment-full.jpg
  329. 329 http://files.smashingmagazine.com/wallpapers/sept-16/live-in-the-moment/sept-16-live-in-the-moment-preview.jpg
  330. 330 http://files.smashingmagazine.com/wallpapers/sept-16/live-in-the-moment/cal/sept-16-live-in-the-moment-cal-1024×768.jpg
  331. 331 http://files.smashingmagazine.com/wallpapers/sept-16/live-in-the-moment/cal/sept-16-live-in-the-moment-cal-1280×800.jpg
  332. 332 http://files.smashingmagazine.com/wallpapers/sept-16/live-in-the-moment/cal/sept-16-live-in-the-moment-cal-1280×1024.jpg
  333. 333 http://files.smashingmagazine.com/wallpapers/sept-16/live-in-the-moment/cal/sept-16-live-in-the-moment-cal-1440×900.jpg
  334. 334 http://files.smashingmagazine.com/wallpapers/sept-16/live-in-the-moment/cal/sept-16-live-in-the-moment-cal-1600×1200.jpg
  335. 335 http://files.smashingmagazine.com/wallpapers/sept-16/live-in-the-moment/cal/sept-16-live-in-the-moment-cal-1920×1200.jpg
  336. 336 http://files.smashingmagazine.com/wallpapers/sept-16/live-in-the-moment/nocal/sept-16-live-in-the-moment-nocal-1024×768.jpg
  337. 337 http://files.smashingmagazine.com/wallpapers/sept-16/live-in-the-moment/nocal/sept-16-live-in-the-moment-nocal-1280×800.jpg
  338. 338 http://files.smashingmagazine.com/wallpapers/sept-16/live-in-the-moment/nocal/sept-16-live-in-the-moment-nocal-1280×1024.jpg
  339. 339 http://files.smashingmagazine.com/wallpapers/sept-16/live-in-the-moment/nocal/sept-16-live-in-the-moment-nocal-1440×900.jpg
  340. 340 http://files.smashingmagazine.com/wallpapers/sept-16/live-in-the-moment/nocal/sept-16-live-in-the-moment-nocal-1600×1200.jpg
  341. 341 http://files.smashingmagazine.com/wallpapers/sept-16/live-in-the-moment/nocal/sept-16-live-in-the-moment-nocal-1920×1200.jpg
  342. 342 https://www.behance.net/sayali_harde
  343. 343 http://files.smashingmagazine.com/wallpapers/sept-16/festivities-and-ganesh-puja/sept-16-festivities-and-ganesh-puja-full.jpg
  344. 344 http://files.smashingmagazine.com/wallpapers/sept-16/festivities-and-ganesh-puja/sept-16-festivities-and-ganesh-puja-preview.jpg
  345. 345 http://files.smashingmagazine.com/wallpapers/sept-16/festivities-and-ganesh-puja/cal/sept-16-festivities-and-ganesh-puja-cal-320×480.jpg
  346. 346 http://files.smashingmagazine.com/wallpapers/sept-16/festivities-and-ganesh-puja/cal/sept-16-festivities-and-ganesh-puja-cal-800×480.jpg
  347. 347 http://files.smashingmagazine.com/wallpapers/sept-16/festivities-and-ganesh-puja/cal/sept-16-festivities-and-ganesh-puja-cal-800×600.jpg
  348. 348 http://files.smashingmagazine.com/wallpapers/sept-16/festivities-and-ganesh-puja/cal/sept-16-festivities-and-ganesh-puja-cal-1280×720.jpg
  349. 349 http://files.smashingmagazine.com/wallpapers/sept-16/festivities-and-ganesh-puja/cal/sept-16-festivities-and-ganesh-puja-cal-1280×800.jpg
  350. 350 http://files.smashingmagazine.com/wallpapers/sept-16/festivities-and-ganesh-puja/cal/sept-16-festivities-and-ganesh-puja-cal-1280×1024.jpg
  351. 351 http://files.smashingmagazine.com/wallpapers/sept-16/festivities-and-ganesh-puja/cal/sept-16-festivities-and-ganesh-puja-cal-1440×900.jpg
  352. 352 http://files.smashingmagazine.com/wallpapers/sept-16/festivities-and-ganesh-puja/cal/sept-16-festivities-and-ganesh-puja-cal-1600×1050.jpg
  353. 353 http://files.smashingmagazine.com/wallpapers/sept-16/festivities-and-ganesh-puja/cal/sept-16-festivities-and-ganesh-puja-cal-1600×1200.jpg
  354. 354 http://files.smashingmagazine.com/wallpapers/sept-16/festivities-and-ganesh-puja/cal/sept-16-festivities-and-ganesh-puja-cal-1920×1080.jpg
  355. 355 http://files.smashingmagazine.com/wallpapers/sept-16/festivities-and-ganesh-puja/cal/sept-16-festivities-and-ganesh-puja-cal-1920×1200.jpg
  356. 356 http://files.smashingmagazine.com/wallpapers/sept-16/festivities-and-ganesh-puja/cal/sept-16-festivities-and-ganesh-puja-cal-1920×1440.jpg
  357. 357 http://files.smashingmagazine.com/wallpapers/sept-16/festivities-and-ganesh-puja/cal/sept-16-festivities-and-ganesh-puja-cal-2560×1440.jpg
  358. 358 http://files.smashingmagazine.com/wallpapers/sept-16/festivities-and-ganesh-puja/nocal/sept-16-festivities-and-ganesh-puja-nocal-320×480.jpg
  359. 359 http://files.smashingmagazine.com/wallpapers/sept-16/festivities-and-ganesh-puja/nocal/sept-16-festivities-and-ganesh-puja-nocal-800×480.jpg
  360. 360 http://files.smashingmagazine.com/wallpapers/sept-16/festivities-and-ganesh-puja/nocal/sept-16-festivities-and-ganesh-puja-nocal-800×600.jpg
  361. 361 http://files.smashingmagazine.com/wallpapers/sept-16/festivities-and-ganesh-puja/nocal/sept-16-festivities-and-ganesh-puja-nocal-1280×720.jpg
  362. 362 http://files.smashingmagazine.com/wallpapers/sept-16/festivities-and-ganesh-puja/nocal/sept-16-festivities-and-ganesh-puja-nocal-1280×800.jpg
  363. 363 http://files.smashingmagazine.com/wallpapers/sept-16/festivities-and-ganesh-puja/nocal/sept-16-festivities-and-ganesh-puja-nocal-1280×1024.jpg
  364. 364 http://files.smashingmagazine.com/wallpapers/sept-16/festivities-and-ganesh-puja/nocal/sept-16-festivities-and-ganesh-puja-nocal-1440×900.jpg
  365. 365 http://files.smashingmagazine.com/wallpapers/sept-16/festivities-and-ganesh-puja/nocal/sept-16-festivities-and-ganesh-puja-nocal-1600×1050.jpg
  366. 366 http://files.smashingmagazine.com/wallpapers/sept-16/festivities-and-ganesh-puja/nocal/sept-16-festivities-and-ganesh-puja-nocal-1600×1200.jpg
  367. 367 http://files.smashingmagazine.com/wallpapers/sept-16/festivities-and-ganesh-puja/nocal/sept-16-festivities-and-ganesh-puja-nocal-1920×1080.jpg
  368. 368 http://files.smashingmagazine.com/wallpapers/sept-16/festivities-and-ganesh-puja/nocal/sept-16-festivities-and-ganesh-puja-nocal-1920×1200.jpg
  369. 369 http://files.smashingmagazine.com/wallpapers/sept-16/festivities-and-ganesh-puja/nocal/sept-16-festivities-and-ganesh-puja-nocal-1920×1440.jpg
  370. 370 http://files.smashingmagazine.com/wallpapers/sept-16/festivities-and-ganesh-puja/nocal/sept-16-festivities-and-ganesh-puja-nocal-2560×1440.jpg
  371. 371 http://sasternportfolio.tumblr.com
  372. 372 http://files.smashingmagazine.com/wallpapers/sept-16/underwater-love/sept-16-underwater-love-full.jpg
  373. 373 http://files.smashingmagazine.com/wallpapers/sept-16/underwater-love/sept-16-underwater-love-preview.jpg
  374. 374 http://files.smashingmagazine.com/wallpapers/sept-16/underwater-love/cal/sept-16-underwater-love-cal-320×480.jpg
  375. 375 http://files.smashingmagazine.com/wallpapers/sept-16/underwater-love/cal/sept-16-underwater-love-cal-640×480.jpg
  376. 376 http://files.smashingmagazine.com/wallpapers/sept-16/underwater-love/cal/sept-16-underwater-love-cal-800×600.jpg
  377. 377 http://files.smashingmagazine.com/wallpapers/sept-16/underwater-love/cal/sept-16-underwater-love-cal-1024×768.jpg
  378. 378 http://files.smashingmagazine.com/wallpapers/sept-16/underwater-love/cal/sept-16-underwater-love-cal-1280×1024.jpg
  379. 379 http://files.smashingmagazine.com/wallpapers/sept-16/underwater-love/cal/sept-16-underwater-love-cal-1440×900.jpg
  380. 380 http://files.smashingmagazine.com/wallpapers/sept-16/underwater-love/cal/sept-16-underwater-love-cal-1600×1200.jpg
  381. 381 http://files.smashingmagazine.com/wallpapers/sept-16/underwater-love/cal/sept-16-underwater-love-cal-1920×1080.jpg
  382. 382 http://files.smashingmagazine.com/wallpapers/sept-16/underwater-love/cal/sept-16-underwater-love-cal-1920×1440.jpg
  383. 383 http://files.smashingmagazine.com/wallpapers/sept-16/underwater-love/cal/sept-16-underwater-love-cal-2560×1440.jpg
  384. 384 http://files.smashingmagazine.com/wallpapers/sept-16/underwater-love/nocal/sept-16-underwater-love-nocal-320×480.jpg
  385. 385 http://files.smashingmagazine.com/wallpapers/sept-16/underwater-love/nocal/sept-16-underwater-love-nocal-640×480.jpg
  386. 386 http://files.smashingmagazine.com/wallpapers/sept-16/underwater-love/nocal/sept-16-underwater-love-nocal-800×600.jpg
  387. 387 http://files.smashingmagazine.com/wallpapers/sept-16/underwater-love/nocal/sept-16-underwater-love-nocal-1024×768.jpg
  388. 388 http://files.smashingmagazine.com/wallpapers/sept-16/underwater-love/nocal/sept-16-underwater-love-nocal-1280×1024.jpg
  389. 389 http://files.smashingmagazine.com/wallpapers/sept-16/underwater-love/nocal/sept-16-underwater-love-nocal-1440×900.jpg
  390. 390 http://files.smashingmagazine.com/wallpapers/sept-16/underwater-love/nocal/sept-16-underwater-love-nocal-1600×1200.jpg
  391. 391 http://files.smashingmagazine.com/wallpapers/sept-16/underwater-love/nocal/sept-16-underwater-love-nocal-1920×1080.jpg
  392. 392 http://files.smashingmagazine.com/wallpapers/sept-16/underwater-love/nocal/sept-16-underwater-love-nocal-1920×1440.jpg
  393. 393 http://files.smashingmagazine.com/wallpapers/sept-16/underwater-love/nocal/sept-16-underwater-love-nocal-2560×1440.jpg
  394. 394 https://www.smashingmagazine.com/desktop-wallpaper-calendars-join-in/
SmashingConf New York

Hold on, Tiger! Thank you for reading the article. Did you know that we also publish printed books and run friendly conferences – crafted for pros like you? Like SmashingConf Barcelona, on October 25–26, with smart design patterns and front-end techniques.

↑ Back to topTweet itShare on Facebook

Advertisement

How We Use Prototyping, And How It Made Us More Efficient

artificial intelligence 5291510 1920

Sponsored ArticleHow We Use Prototyping, And How It Made Us More Efficient

Prototyping is essential to help your team create the best product possible. It’s a chance to experiment with ideas and turn them into something tangible that you can test and build upon. When you fail with your prototype, you land softly — there’s always the chance to iterate and improve.

The team behind Adobe’s new prototyping tool Experience Design1 (Adobe XD) uses prototyping as a method to test new features before they make it into the program. Being a product manager on the Adobe XD team, I’ll share some insights into how the team uses prototyping to build and improve Adobe XD, and make prototyping more efficient for designers.

Further Reading on SmashingMag: Link

So Why Do We Build Prototypes? Link

Prototypes are about communication and hypothesis testing. They give teams a way to experiment something that’s tangible, shortening the psychological distance between the user and the solution.

“A prototype is worth a thousand meetings.” — an IDEO saying.

We build prototypes to learn, solve conflicting ideas, start conversations, and manage the building process. It helps teams to build empathy, to collaborate, to explore options (and barriers) that only become visible when you build something, to test and to be inspired.

The Power of Prototypes is a great clip from HBO’s “From the Earth to the Moon” miniseries. It shows the value of prototyping during the design phase, making people “see” things better.

There’s research to support the theories that you can “build to think” or “write longhand to remember”, which means that if you use your hands, more neurons are utilized to process the task in your brain, making you “think better” or “remember more”.

The biggest benefit always goes back to risk. The sooner we “fail” and the faster we learn, the greater the chances are for success.

5
Failing earlier saves you time and money.

It’s cheaper to fail early in order to validate things that work and things that don’t. That’s why we build prototypes for every major product feature. We test with pre-release users and key customers very early on and definitely before we get to implementation. And yes, we do “fail” a lot, which is great! It’s great because we learn a ton in the process and minimize the risk of failure in the long run. In the end, we tackle real customer needs, with empathy, in an innovative way.

Can Prototyping Be Fun And Engaging? Link

Absolutely! One of the fun prototyping exercises I use to warm design teams up is called “Dark Horse”. From your Design Thinking brainstorm6, pick the craziest idea, the one that’s almost impossible to become a reality; and as a team, build a prototype for it.

7
A team collaborating as they build a prototype for the “Dark Horse” exercise. Large view.8
9
The same team “exploding” a building to solve the design challenge during the “Dark Horse” prototyping exercise. Large view.10

Warning: crazy and funny things WILL happen!

11
Large view.12

You can guarantee oxytocin will be released; team members will bond and connect more.

Building Adobe XD Link

Not too long ago, a small group of very talented designers, engineers, and product managers got together, to prototype what a new solution for designers trying to communicate their message could be. After many different brainstorming sessions, instead of starting from scratch, they used bits of existing prototypes to string together a foundation to explore and experiment with new tools and approaches in a design tool.

This initial prototype grew and new tools were created, validated, fine-tuned and validated again to become Project Comet. In 2016, with a much larger team that includes designers, engineers, product managers, program manager and interns, we came together and met with leading agencies and up and coming designers to focus on solving the UX challenges of today and tomorrow.

As soon as the first prototype was validated, then changed and validated again, we started developing Adobe XD as a native application. First for Mac OS and later for Windows. Additionally, we’re working on a companion app for iOS and Android, for designers to preview their designs in real-time.

Design With Data Prototype Link

In October 2015, at Adobe MAX13, Anirudh Sasikumar14, an engineer working on Adobe XD, demoed a prototype where designers could use the tool to feed designs with real data coming from different sources, such as the Finder and Web, for text and imagery. His Medium post15 covers the features in details.

16
Images flowing from a website to feed a design in Adobe XD with a single click.

I spoke with Anirudh recently, asking how he came up with it and how the prototype helped him validate the approach.

According to him, it’s very common for developers to bind systems to data. Something that’s not true for designers, always needing to use fake data to simulate how the design would behave in the real world.

Anirudh explained the catalyst for designing with real data was the Repeat Grid tool. As soon as we finished building it, it was natural to start thinking about bringing more data in. The design community had already expressed interest in “Designing with data” and numerous workarounds in achieving the same using plugins/extensions.

Thanks to a delay on Caltrain, he started coding the functionality. Having some of the use cases in mind, implementation was easy. By the end of the trip, he had a working version of it. Not polished, but enough to show promise and to be validated.

The magic of prototyping is being able to see all the possibilities and edge cases around it. It’s not in your head anymore, it’s there, closer to reality. You can see so much more!

You can also see walls, problems that never surface before you actually build it. For instance, connecting with Google Sheets was tricky.

17
Google Docs populating repeated grids with a single click, to test different languages.

Phase 1 is complete and available for Mac OS, where designers can drag text files from Finder, to feed a Repeat Grid. The next phase will focus on sample data and bringing content from the Web.

If you want the feature in Adobe XD, feel free to upvote here18.

Deciding Whether To Include Layers Or Not Link

Let me start with the same question we asked hundreds of designers:

Do you need layers?

Initially, we started with the assumption that people didn’t need layers, especially the way layers were presented for so many years in Photoshop or Illustrator. It was a big challenge, because a big number of experienced designers took years to build those mental models.

At Adobe XD, in order to deliver innovation, we challenge existing mental models frequently.

Based on that initial research, Talin Wadsworth19, the lead designer for XD, came up with the concept of local layers. To validate the concept, we worked together to set the context and test the prototype with prerelease users and key customers.

20
The “local layers” prototype we tested with key customers and prerelease users. Large view.21

After a long research and validation process using a prototype to drive conversations, and after multiple adjustments, we confirmed that our customers need layers for exporting and to organize complex designs.

We have started the work to implement this new mental model.

Soon, designers from all over the world will tell us if we got it right. Fingers crossed!

In Conclusion Link

Since day one, we build and test prototypes of every major feature before we implement them. A prototype is an extremely powerful tool to help teams “see” more, experience more, “fail” more, learn more and, in the end, pivot faster to where the secret for success is.

A quote from the book Zero to One sums up the benefit of prototyping well:

“It’s like the world is full of secrets for disruptive success, just waiting for someone to find them”.

Who is going to create the next Uber, or the next Facebook, or even the next Pokemon Go app? Building and testing prototypes can help you get there, faster!

As a suggestion, please remember that Adobe XD can support you and your team when building prototypes for websites or mobile applications. Have you tried it? It’s free: http://xd.adobe.com22. What are you waiting for? Start building prototypes now!

Footnotes Link

  1. 1 http://adobe.ly/2aAMlOx
  2. 2 https://www.smashingmagazine.com/2016/07/how-to-create-icons-adobe-xd/
  3. 3 https://www.smashingmagazine.com/2016/07/quick-ux-prototyping-with-adobe-xd-shortcuts-pdf-cheatsheet/#comments
  4. 4 https://www.smashingmagazine.com/2016/08/experience-design-essentials-animated-microinteractions-in-mobile-apps/
  5. 5 https://www.smashingmagazine.com/wp-content//uploads/2016/07/05-prototypes.jpg
  6. 6 http://blogs.adobe.com/creativecloud/design-thinking-a-manual-for-innovation/?segment=uxuidesign
  7. 7 https://www.smashingmagazine.com/wp-content//uploads/2016/07/dark-horse-1-opt.jpg
  8. 8 https://www.smashingmagazine.com/wp-content//uploads/2016/07/dark-horse-1-opt.jpg
  9. 9 https://www.smashingmagazine.com/wp-content//uploads/2016/07/dark-horse-2-opt.png
  10. 10 https://www.smashingmagazine.com/wp-content//uploads/2016/07/dark-horse-2-opt.png
  11. 11 https://www.smashingmagazine.com/wp-content//uploads/2016/07/dark-horse-3-opt.png
  12. 12 https://www.smashingmagazine.com/wp-content//uploads/2016/07/dark-horse-3-opt.png
  13. 13 https://max.adobe.com/
  14. 14 https://twitter.com/anirudhs
  15. 15 https://medium.com/@anirudhs/project-comet-designing-with-real-data-959beccb5c1a#.mosq7k4ur
  16. 16 https://www.smashingmagazine.com/wp-content//uploads/2016/07/desing-withdata-images-from-web.gif
  17. 17 https://www.smashingmagazine.com/wp-content//uploads/2016/07/desing-withdata-googledocs.gif
  18. 18 https://adobexd.uservoice.com/forums/353007-adobe-xd-feature-requests/suggestions/12924696-design-with-data
  19. 19 https://twitter.com/MrTalin
  20. 20 https://www.smashingmagazine.com/wp-content//uploads/2016/07/layers.gif
  21. 21 https://www.smashingmagazine.com/wp-content//uploads/2016/07/layers.gif
  22. 22 http://adobe.ly/2aAMlOx

↑ Back to topTweet itShare on Facebook

Advertisement

Pixel-Perfect Specifications Without The Headaches

artificial intelligence 5291510 1920

Pixel-Perfect Specifications Without The Headaches

Designers, developers and managers often work with compressed timeframes and multiple projects simultaneously. A team must be able to respond quickly to feedback on their product from clients, project managers and developers. Each minor revision in the UI or UX needs to be reflected in the documentation, so that designers and developers always have the latest information.

A style guide ensures that your project doesn’t encounter serious problems when you implement the initial design. Making sure that all specifications are accurate to their designs is critical, because an inaccurate specification means that developers will have to either rely on guesswork when building the app or go to the design source to get answers to their questions. Transferring all of this information manually to the developers can be a headache and usually takes significant time, depending on the extensiveness of the designs.

In this article, we’ll review the process of creating a style guide, the process of handing off a design, and collaboration across the whole team. We’ll also walk through an example workflow, demonstrating how developers and designers can improve cross-team communication and drastically reduce iteration time.

A Project’s Team Link

A project consists of designers, developers and project managers, and each area has its own particular needs.

Designers Link

When a designer prepares a design, they hand it over to the developer. What they usually do is export some PNGs and prepare a specification with all of their annotations. Specifications can be stressful in a big project, and the design of an interface layout can change quite often. Thus, a traditional style guide will pretty much get outdated almost immediately.

Preparing specifications is tedious — we know that. Manually doing it is time-consuming, and every designer does it a little differently. Most designers spend more time making specifications than actually designing. And they often have to manually export all of their assets for developers. I can tell you that every designer is tired of that.

If you want to save the designer’s time, just tell them to forget about that and focus on the actual design process instead. Every minute a designer spends revising documentation is a minute lost that they could be spending really nailing the visuals, experience and interactions.

Developers Link

Inspecting specifications is painful. Developers will usually ask the designers for every little detail contained in the design or, worse, are forced to do it themselves in Photoshop or Sketch. In most cases, they need to manually convert all sizes of the assets according to the platform’s requirements (for example, converting pixels to density-independent pixels, scale-independent pixels, points, etc.). They often don’t have enough detailed information about the visual design and have to guess, resulting in visual inconsistencies.

Even when the developer has successfully implemented the design, there is still the possibility that the designer will make a change, at which point the developer would have to manually inspect the design again and figure out what exactly has changed. Not flexible at all!

Managers Link

Project managers are always trying to find ways to improve collaboration between designers and developers, because everyone on the team should be on the same page for every design change. If you’re working with a remote team, you’re probably going to need some online space to collaborate and meet, a single channel of communication. Modern communication tools such as Slack make that possible, but the project managers still need to track progress and provide feedback on what has changed and where. They are well familiar with messy email attachments and feedback coming from multiple places.

They also need to figure out the current state of the product very quickly. They need to stay on top of the design process by reviewing changes, comparing versions visually side by side, and discussing them in real time in one place.

Syncing Designers And Developers With Less Hassle Link

Creating design specifications involves identifying colors, x and y values, fonts, text weights, distances, positions and a number of other characteristics of the assets. Each asset carries certain characteristics that need to be recorded.

You need a tool to bridge the gap between the design and coding stages of development, a tool that simplifies and speeds up the specification and development process, a tool that provides a single entry point for all design-related stuff, so that you (the designer, developer or manager) don’t have to think about where to find the latest version of the design. This will result in products getting built and shipped faster.

Thankfully, tools exist out there to help with this. Each of them takes in Photoshop or Sketch documents and produces a specification for developers, including code snippets and image assets. These tools also track changes between versions of the design.

How They Work Link

This is where Avocode1, Sympli2, and Zeplin3 enter the scene. These are collaboration tools for UI designers and front-end developers. They are built for the process of going from Photoshop or Sketch to code. You can upload designs and turn them into specifications and guidelines that are tailored to the platform you are working on. Using these tools, you can:

  • inspect designs from Photoshop or Sketch without using the original app, and quickly get measurements appropriate to the platform you’re working on;
  • get instant access to image assets, colors, fonts and even dimensions;
  • export resource files for any kind of element, whether text, button or something else;
  • add notes and notify team members about design changes instantly.

Last but not least, designers and developers will essentially work in a shared workspace, where elements such as sizes, distances, fonts and icons move seamlessly back and forth, without requiring a large design file annotated with what the designer needs.

However, as I’ve said, these tools are for inspecting, not editing or interactive prototyping. This is important. These are not image editors, and they don’t allow you to create designs or prototypes. You still need to create and edit your files in Photoshop or Sketch and then open the files for inspection in one of these tools.

Avocode Link

Avocode is one of these tools that bridge the gap between web designers and developers. The process of creating a website starts with designing in Photoshop or Sketch; however, when the designer is finished and the front-end developer has to implement the design, the design file is broken down into images, colors, sizes, CSS, etc.

4
(View large version)5

First Steps Link

Before doing anything in Avocode, you need to create an account6. A free two-week trial of the application is available on the website.

7
(View large version)8

Avocode contains two parts: a web-based manager and a desktop application. It works based on projects, and you need to create a project to get started. A sample web project (a landing page) is provided to help first-time users understand what features are available.

9
(View large version)10

Upload Design Link

After creating a project, you need to upload your design. You can use Dropbox or manually drag and drop files from your local system.

11
(View large version)12
13
(View large version)14

User Interface Overview Link

After creating a project and uploading your designs, you need to install the desktop application to inspect them. The web app only has previewing and commenting features and doesn’t allow you to inspect a design in detail.

15
(View large version)16

So, let’s dig into the details of the desktop app! Avocode feels like a powerful and professional application. The UI looks very similar to Photoshop — same color scheme and typefaces. The dark Photoshop-like interface makes Avocode look and feel really slick. If you’re an intermediate Photoshop or Illustrator user, the learning curve is close to none.

The main tab you’ll be focusing on and working with most of the time is “Project Designs.” It shows each of your projects in the form of a thumbnail, title and activity indicator.

17
(View large version)18

If you double-click on a thumbnail, you’ll immediately see a screen with a full list of groups and layers, exactly like Photoshop. On the bottom is a set of Avocode tools. The first one we will use is the Select tool. With it, you can select individual layers, or multiple layers, and see its properties on the right side. You will notice that the inspector’s content changes based on which item is selected.

19

Below, the layer for the call-to-action button is selected. When you select an item in your PSD, the sidebar shows the CSS for that item. As a bonus, Avocode also gives you the option to copy LESS or Sass code:

20
(View large version)21

You can select an image and see its dimensions. The image-exporting options in Avocode are really nice, too. You can set up different rules that allow you to export all of your images in any number of configurations, including JPG, PNG and SVG formats, as well as with the right proportions (“1x” means the original size).

22
(View large version)23

The info panel has all of the important information about the design. You can even get a public link to share the design with anyone. What’s best is that this panel lists all of the fonts used, with links to Typekit and Google Web Fonts so that you can easily use them in your project.


Using Avocode, you can visually compare revisions of designs easily.

Tools Link

The Measure tool is useful. Select a layer and then hover over other layers to see their positions relative to the first layer. Below is a selected layer with a “Get started now” button, and its relative position to the top, left and right.

24
(View large version)25

The next one is a color picker, which basically takes a color and copies its hex value to your clipboard. You can add this color as a variable to your design. With this tool, you can quickly create a color scheme for your design.

26
(View large version)27

The final tool is Slice, which makes it possible to export a selected part of the design as an image or style scheme.

28
(View large version)29

The good thing is that each tool has a hotkey combination, which is handy for users who use the keyboard to quickly switch between options.

Another cool feature of Avocode is the use of guides. However, a first-time user might wonder whether this option is available because the feature is hidden behind a little button in the bottom-right area of the screen. Avocode supports both user-created guides as well as designed guides that have already been made in Photoshop or Sketch. So, if your Photoshop document has guides, they will show up in Avocode.

30
(View large version)31

Using Avocode, you can visually compare revisions of designs easily. You can access this feature in the “design detail” of your project in the web app:


Visually compare revisions of designs easily.

Collaboration Link

Avocode lets you leave notes in a specific area in the design, allowing you to discuss design changes with anyone in one place instantly.

Simply click or drag anywhere in the design to highlight the area you want to talk about, then write your message, and hit the submit button. Everyone will instantly get a notification:


Discuss any part of the design in the app.

Cost Link

Avocode charges $10 per month per user for the business plan, which has integration with Slack and permissions management. If your team consists of one to three people and you don’t need permissions management, you can choose the “Garage” plan, which costs $7 per month per user.

Pros Link

  • Multi-platform support (Mac, Windows, Linux)
  • A great Photoshop-like UI and a deep and thoughtful toolset

Cons Link

  • Currently only supports the web
  • No free plan (after the trial, you have to subscribe with a regular paid plan)
  • Unlike Sympli or Zeplin, doesn’t support detail inspection in the web app (the desktop app is required)

Sympli Link

Sympli isn’t just a design handoff or collaboration tool — it’s a complete collaboration platform that covers the entire product design team, including design handoff features for designers coming from Photoshop (Adobe XD coming soon) and Sketch, as well as automated implementation features and tools for developers in its Android Studio and Xcode plugins. Recently launched this spring, it’s a great tool that has done a lot to speed up the design and development process.

32
(View large version)33

One of the biggest reasons to use Sympli is its integration with Xcode and Android Studio, making it a tool for the whole team because it goes beyond design handoff to help developers with automated implementation.

34
(View large version)35

First Steps Link

When users visit the Sympli website36, they are immediately oriented with the “How it works” section, which tells the user what they need to know to get started and familiarizes them with the product. First, sign up and create a new project. Select the project type (Sympli supports web, Android and iOS projects) and the resolution (@1x, @2x or @3x). After that, you will be able to upload you designs.

37
(View large version)38

Upload Design Link

Sympli works as a plugin in Photoshop or Sketch; however, like in Zeplin, you can’t directly upload native design files. Sympli is cloud-based, so it works across platforms. And for those security-conscious companies that prefer not to use the cloud, Sympli offers enterprise options for on-premise setup.

Compared with Avocode and Zeplin, Sympli has an interesting option for exporting assets.

39
(View large version)40

Sympli for Sketch is a native plugin, which has some additional benefits, such as the ability to export hidden assets (in case you have multiple states of the same control on the artboard) and validation of asset names to conform with the destination platform’s requirements. This means Sympli not only will generate assets with all of the required formats and sizes in platform-specific units for the marked layers or groups, but will also validate all specified names, handle asset name duplicates, export hidden assets and even help you to stay within the asset-naming requirements for Android or iOS.

41
(View large version)42

Developers can also apply naming-convention rules for their assets, so that renaming rules get applied every time a designer sends assets.

Collaboration in Sympli starts before the design handoff. Several designers can work on a project at the same time and can export screens to the same project. Once the designs are uploaded, the project owner invites people using a shareable link or sends it directly to the team members’ inboxes. If you are updating an existing project that has already been shared, the team will be notified about the updates.

43
(View large version)44

User Interface Overview Link

Sympli doesn’t have a separate desktop application; the powerful web app has all of the required functionality. Mockups are accessible via IDE extensions (Xcode or Android Studio). You can always access the latest version of the design mockups, and designers can send links to particular screens, rather than files, so that recipients don’t have to dig up those screens themselves.

45
(View large version)46

Sympli automatically stores all colors and fonts in a project’s “Summary” section. It finds multiple instances of the same color or font used in multiple layers, groups them in an expandable list of styles, and generates the names for them automatically. It also allows users to rename colors and sync the changes.

47
(View large version)48

Sympli not only specs the fonts used, but also shares font files through its Brandbooks feature. Designers can attach font files to a project to be made available to developers right away, along with collections of company-named colors. Font files can be attached to multiple projects.

49
(View large version)50

All colors and fonts are presented in platform-specific notation, so that you don’t have to change them manually. Also, Sympli provides access to assets in bitmap or vector format; the developers chooses which, and both formats are generated on the fly, automatically.

51
(View large version)52

You can visually compare revisions of designs easily. To access this feature, open the design detail in Sympli and click the “Version” link. However, a new mechanism for comparing versions is coming soon, which will highlight changes and show versions side by side.

53
(View large version)54

Tools Link

The first tool we will look at is Layers. With it, you can select individual layers or multiple layers and review properties on the right side. You will notice that the inspector’s content changes based on which item is selected.

55
(View large version)56

One of the best features of Sympli is the Ruler, a very useful measurement tool. Click on any element in the layout and track its relative position to the other elements. The measurements are presented in platform-specific units (depending on the destination: points for iOS, density-independent pixels for Android, and pixels for web projects).

57
(View large version)58

Collaboration Link

Sympli has a commenting tool, named Spots, that facilitates collaboration and helps to clarify points of confusion late in the design process.

59
(View large version)60

Sympli seamlessly integrates with Slack. Whenever someone leaves a note or updates the design, a notification is posted to the Slack channel.

Bonus: Happy Developers Link

As mentioned, a big difference with Sympli is its extensions for the Android Studio and Xcode development environments. Sympli integrates fully with both IDEs, allowing you to bring designs and mockups from Photoshop and Sketch right into the environment where developers are working.

61
(View large version)62

The IDE extensions provide several cool features, such as smart asset synchronization, which is a visual dialog that makes it possible to merge assets, showing you what is currently in the project and what you’ll have after the assets are synchronized. You can include or exclude individual assets.

63
(View large version)64

A mind-blowing feature is the visual implementation of designs as storyboards. Basically, developers can drag and drop designs from mockups into interface-builder views, and the views will be styled in exactly the same way as the mockups, including both configuration and runtime properties:


Design mockups are displayed as storyboards.

You can even drag and drop styles from a design mockup right into a storyboard.

While Sympli automates code and tasks, it doesn’t introduce any third-party dependencies into a project, nor does it introduce any changes in the technical process. So, developers aren’t forced to use any frameworks or introduce any libraries into their projects.

Cost Link

Sympli charges based on the number of projects. The free plan covers one active project. The “Pro” plan is most common, with a price of $25 per month, which allows eight active projects to be run simultaneously. Each paid plan includes an unlimited number of collaborators and archived projects, along with great tech support.

Pros Link

  • No desktop app (the rich web application has everything)
  • Supports web and mobile app design (iOS and Android)
  • The Xcode and Android Studio extensions take designs smoothly to development, giving developers some cool automation tools.
  • Powerful collaboration features, such as Brandbooks (reusable style guides), company management features, and versioning

Cons Link

  • UI is too minimal (it could definitely use a human touch and more personality).

Zeplin Link

Zeplin is the last collaboration tool for UI designers and front-end developers we’ll be looking at. When a designer exports Photoshop or Sketch files to Zeplin (by selecting the artboard and pressing Command + E), all of the styles are communicated to the developers. In other words, the specification sheet is automated, similar to Sympli.

First Steps Link

When you enter the Zeplin website65, you’ll immediately notice delightful details, such as the fun cartoon zeppelin logo. Little details like these provide visual stimulation and delight.

66

Onboarding consists of a basic tutorial video, which users see upon signing up. The video has enough information to get you started.

67
(View large version)68

As with Avocode, users have to install a desktop application. Then they are asked what type of project they would like to create. Unlike Avocode, Zeplin supports not only web projects, but also Android and iOS. Let’s choose iOS.

69
(View large version)70

Now it’s time to upload some designs. Zeplin has a powerful and delightful empty state, telling you what to do next.

71
(View large version)72

Upload Design Link

Zeplin doesn’t allow you to directly upload designs, and it works only as a plugin within Photoshop or Sketch, again similar to Sympli. Normally when you launch Zeplin, the plugin should be installed automatically, so uploading designs is only a couple of clicks away. In Photoshop and Sketch, you can export a whole design or individual objects.

73
(View large version)74

To see your assets in Zeplin, mark the layers as “exportable.” Again, the empty state will guide you step by step:

75
(View large version)76

Once the designs have been uploaded, the project owner can invite people using a shareable link or send the link directly to the team members’ inboxes.

77
(View large version)78

If you want some feedback on your designs or style guide, you can also use the sharing icon, next to the “Scene” menu item. You’ll see a dialog like the one below, which clearly explains how it works and even links to sample data.

79
(View large version)80

User Interface Link

Productivity apps tend to be dry and lack any sort of personality. But Zeplin has managed to make the boring process of coordinating feedback somehow enjoyable. As soon as you upload your designs, they are turned into specifications and guidelines tailored to the platform you are working on (in our case, iOS).

Unlike Avocode and Sympli, Zeplin doesn’t have a special set of tools for working with a design. It’s more of a viewing app, with asset-exporting capabilities and team-collaboration features. Developers can select a layer and see its size and all other necessary information (in the case of a text field, you would see the font’s name, size and color).

81
(View large version)82

As you can see, all measurements are displayed in points (which iOS developers require). Also, all projects in Zeplin have a color palette, allowing you to name the selected colors.

83
(View large version)84

If you’ve made image assets exportable in Sketch, you’ll see them in “Assets” in Zeplin:

85
(View large version)86

The colors and fonts used in a project are displayed in the “Styleguide” tab. You can rename these colors and export them if you plan to use them in your project. In general, this makes designing for iOS and Android Studio way more pleasant!

87
(View large version)88

Developers can see, copy or download the CSS for web projects, the XML resources for Android projects, and the UIFont and UILabel extensions for iOS, both for the color variables and text styles, in the “Styleguide” section. Below are two examples:

89
For a web project (View large version)90
91
For an iOS app (View large version)92

Collaboration Link

Because its available as a standalone app as well as a web app, you can access Zeplin pretty much anywhere. Every screen in Zeplin has a link, which you can find in the right panel of the screen. So, if a team member has not installed the desktop app, they will still be able to see the project in the web application.

93
(View large version)94

Last but not least, the tool’s annotation features allow team members to comment on parts of the app and use the result as a road map. This also helps to clear up any confusing parts of the specification process and preserves a record of the notes taken for anyone to review.

95
(View large version)96

This streamlined process makes life so much easier for everyone involved.

Cost Link

Zeplin’s price is based on the number of projects. A free plan is available for single projects. The most common plan is “Growing business,” with a price of $25 per month to run eight active projects simultaneously. All plans include unlimited team members.

Pros Link

  • The UI is minimalist, intuitive, friendly and just playful enough to make you grin.
  • Supports web and mobile app design (iOS and Android)

Cons Link

  • No measurement tool
  • No versioning (or visual comparison) for designs
  • You still need to export assets from Zeplin and then manually copy and paste or import the design specifications and styles to an IDE such as Xcode or Android Studio.
Comparing the tools at a high level.97
Comparing the tools at a high level. (Large preview98)

Tips On Selecting The Right Tool Link

Selecting the right product is always difficult, especially when you have several good options (as we do). All of the tools we’ve looked at are amazing, and I believe you’d enjoy using any. That being said, here are some tips to help you select the most suitable one:

  • Avocode is great for web development projects. If you are in mobile app development, then go with either Sympli or Zeplin.
  • Consider Sympli if you focus on web or mobile app development and would like full integration with Xcode and Android Studio to generate layouts (even from imported assets) for your initial designs. Sympli is great for large teams because of the corporate plans, version control and other features. There is also a lot of public information about updates and upcoming features, so you’ll be able to know what’s coming up in Sympli.
  • You might be better off with Zeplin if your mobile app development projects are relatively small and you don’t frequently change a design, require detailed visual comparison between versions, or need color and font collections that can be used in other projects. Zeplin has a user-friendly and intuitive UI, which is important for team collaboration, especially first-time users.

Conclusion Link

All three tools focus on the pain points that designers and developers experience when working together. The tools cater to those two very different types of users with different functionality. But each balances those needs beautifully and helps teams iterate quickly by providing living, breathing, interactive specifications.

Say no to clunky, difficult-to-understand, flat specifications that take forever to generate. We now have tools to easily and accurately translate the vision for an app into the measurements needed to code it. This interactive approach to specifications allows teams to spend more time on what’s important: creating beautiful and functional designs and giving users the best possible experience.

(il, al)

Footnotes Link

  1. 1 https://avocode.com/
  2. 2 https://sympli.io/
  3. 3 https://zeplin.io/
  4. 4 https://www.smashingmagazine.com/wp-content/uploads/2016/08/image29-opt.png
  5. 5 https://www.smashingmagazine.com/wp-content/uploads/2016/08/image29-opt.png
  6. 6 https://avocode.com/
  7. 7 https://www.smashingmagazine.com/wp-content/uploads/2016/08/image15-opt.png
  8. 8 https://www.smashingmagazine.com/wp-content/uploads/2016/08/image15-opt.png
  9. 9 https://www.smashingmagazine.com/wp-content/uploads/2016/08/image13-opt.png
  10. 10 https://www.smashingmagazine.com/wp-content/uploads/2016/08/image13-opt.png
  11. 11 https://www.smashingmagazine.com/wp-content/uploads/2016/08/image22-opt.png
  12. 12 https://www.smashingmagazine.com/wp-content/uploads/2016/08/image22-opt.png
  13. 13 https://www.smashingmagazine.com/wp-content/uploads/2016/08/image20-opt.png
  14. 14 https://www.smashingmagazine.com/wp-content/uploads/2016/08/image20-opt.png
  15. 15 https://www.smashingmagazine.com/wp-content/uploads/2016/08/image08-opt.png
  16. 16 https://www.smashingmagazine.com/wp-content/uploads/2016/08/image08-opt.png
  17. 17 https://www.smashingmagazine.com/wp-content/uploads/2016/08/image39-opt.png
  18. 18 https://www.smashingmagazine.com/wp-content/uploads/2016/08/image39-opt.png
  19. 19 https://www.smashingmagazine.com/wp-content/uploads/2016/08/image26-371-opt.jpg
  20. 20 https://www.smashingmagazine.com/wp-content/uploads/2016/08/image32-opt.png
  21. 21 https://www.smashingmagazine.com/wp-content/uploads/2016/08/image32-opt.png
  22. 22 https://www.smashingmagazine.com/wp-content/uploads/2016/08/image25-opt.png
  23. 23 https://www.smashingmagazine.com/wp-content/uploads/2016/08/image25-opt.png
  24. 24 https://www.smashingmagazine.com/wp-content/uploads/2016/08/image44-opt.png
  25. 25 https://www.smashingmagazine.com/wp-content/uploads/2016/08/image44-opt.png
  26. 26 https://www.smashingmagazine.com/wp-content/uploads/2016/08/image50-opt.png
  27. 27 https://www.smashingmagazine.com/wp-content/uploads/2016/08/image50-opt.png
  28. 28 https://www.smashingmagazine.com/wp-content/uploads/2016/08/image02-opt.png
  29. 29 https://www.smashingmagazine.com/wp-content/uploads/2016/08/image02-opt.png
  30. 30 https://www.smashingmagazine.com/wp-content/uploads/2016/08/image21-opt.png
  31. 31 https://www.smashingmagazine.com/wp-content/uploads/2016/08/image21-opt.png
  32. 32 https://www.smashingmagazine.com/wp-content/uploads/2016/08/image19-opt.png
  33. 33 https://www.smashingmagazine.com/wp-content/uploads/2016/08/image19-opt.png
  34. 34 https://www.smashingmagazine.com/wp-content/uploads/2016/08/image45-opt.jpg
  35. 35 https://www.smashingmagazine.com/wp-content/uploads/2016/08/image45-opt.jpg
  36. 36 https://sympli.io/
  37. 37 https://www.smashingmagazine.com/wp-content/uploads/2016/08/image12-opt.png
  38. 38 https://www.smashingmagazine.com/wp-content/uploads/2016/08/image12-opt.png
  39. 39 https://www.smashingmagazine.com/wp-content/uploads/2016/08/image48.gif
  40. 40 https://www.smashingmagazine.com/wp-content/uploads/2016/08/image48.gif
  41. 41 https://www.smashingmagazine.com/wp-content/uploads/2016/08/image11-opt.jpg
  42. 42 https://www.smashingmagazine.com/wp-content/uploads/2016/08/image11-opt.jpg
  43. 43 https://www.smashingmagazine.com/wp-content/uploads/2016/08/image03-opt.jpg
  44. 44 https://www.smashingmagazine.com/wp-content/uploads/2016/08/image03-opt.jpg
  45. 45 https://www.smashingmagazine.com/wp-content/uploads/2016/08/image01-opt.png
  46. 46 https://www.smashingmagazine.com/wp-content/uploads/2016/08/image01-opt.png
  47. 47 https://www.smashingmagazine.com/wp-content/uploads/2016/08/image04-opt.jpg
  48. 48 https://www.smashingmagazine.com/wp-content/uploads/2016/08/image04-opt.jpg
  49. 49 https://www.smashingmagazine.com/wp-content/uploads/2016/08/image43-opt.png
  50. 50 https://www.smashingmagazine.com/wp-content/uploads/2016/08/image43-opt.png
  51. 51 https://www.smashingmagazine.com/wp-content/uploads/2016/08/image38-opt.jpg
  52. 52 https://www.smashingmagazine.com/wp-content/uploads/2016/08/image38-opt.jpg
  53. 53 https://www.smashingmagazine.com/wp-content/uploads/2016/08/image33-opt.png
  54. 54 https://www.smashingmagazine.com/wp-content/uploads/2016/08/image33-opt.png
  55. 55 https://www.smashingmagazine.com/wp-content/uploads/2016/08/image16-opt.png
  56. 56 https://www.smashingmagazine.com/wp-content/uploads/2016/08/image16-opt.png
  57. 57 https://www.smashingmagazine.com/wp-content/uploads/2016/08/image27-opt.png
  58. 58 https://www.smashingmagazine.com/wp-content/uploads/2016/08/image27-opt.png
  59. 59 https://www.smashingmagazine.com/wp-content/uploads/2016/08/image06-opt.png
  60. 60 https://www.smashingmagazine.com/wp-content/uploads/2016/08/image06-opt.png
  61. 61 https://www.smashingmagazine.com/wp-content/uploads/2016/08/image41-opt.png
  62. 62 https://www.smashingmagazine.com/wp-content/uploads/2016/08/image41-opt.png
  63. 63 https://www.smashingmagazine.com/wp-content/uploads/2016/08/image31-opt.png
  64. 64 https://www.smashingmagazine.com/wp-content/uploads/2016/08/image31-opt.png
  65. 65 https://zeplin.io/
  66. 66 https://www.smashingmagazine.com/wp-content/uploads/2016/08/image07-228-opt.png
  67. 67 https://www.smashingmagazine.com/wp-content/uploads/2016/08/image09-opt.png
  68. 68 https://www.smashingmagazine.com/wp-content/uploads/2016/08/image09-opt.png
  69. 69 https://www.smashingmagazine.com/wp-content/uploads/2016/08/image24-opt.png
  70. 70 https://www.smashingmagazine.com/wp-content/uploads/2016/08/image24-opt.png
  71. 71 https://www.smashingmagazine.com/wp-content/uploads/2016/08/image18-opt.png
  72. 72 https://www.smashingmagazine.com/wp-content/uploads/2016/08/image18-opt.png
  73. 73 https://www.smashingmagazine.com/wp-content/uploads/2016/08/image10-opt.png
  74. 74 https://www.smashingmagazine.com/wp-content/uploads/2016/08/image10-opt.png
  75. 75 https://www.smashingmagazine.com/wp-content/uploads/2016/08/image34-opt.jpg
  76. 76 https://www.smashingmagazine.com/wp-content/uploads/2016/08/image34-opt.jpg
  77. 77 https://www.smashingmagazine.com/wp-content/uploads/2016/08/image17-opt.jpg
  78. 78 https://www.smashingmagazine.com/wp-content/uploads/2016/08/image17-opt.jpg
  79. 79 https://www.smashingmagazine.com/wp-content/uploads/2016/08/image30-opt.png
  80. 80 https://www.smashingmagazine.com/wp-content/uploads/2016/08/image30-opt.png
  81. 81 https://www.smashingmagazine.com/wp-content/uploads/2016/08/image14-opt.png
  82. 82 https://www.smashingmagazine.com/wp-content/uploads/2016/08/image14-opt.png
  83. 83 https://www.smashingmagazine.com/wp-content/uploads/2016/08/image00-opt.png
  84. 84 https://www.smashingmagazine.com/wp-content/uploads/2016/08/image00-opt.png
  85. 85 https://www.smashingmagazine.com/wp-content/uploads/2016/08/image47-opt.png
  86. 86 https://www.smashingmagazine.com/wp-content/uploads/2016/08/image47-opt.png
  87. 87 https://www.smashingmagazine.com/wp-content/uploads/2016/08/image28-opt.png
  88. 88 https://www.smashingmagazine.com/wp-content/uploads/2016/08/image28-opt.png
  89. 89 https://www.smashingmagazine.com/wp-content/uploads/2016/08/image37-opt.png
  90. 90 https://www.smashingmagazine.com/wp-content/uploads/2016/08/image37-opt.png
  91. 91 https://www.smashingmagazine.com/wp-content/uploads/2016/08/image42-opt.png
  92. 92 https://www.smashingmagazine.com/wp-content/uploads/2016/08/image42-opt.png
  93. 93 https://www.smashingmagazine.com/wp-content/uploads/2016/08/image23-opt.png
  94. 94 https://www.smashingmagazine.com/wp-content/uploads/2016/08/image23-opt.png
  95. 95 https://www.smashingmagazine.com/wp-content/uploads/2016/08/image35-opt.jpg
  96. 96 https://www.smashingmagazine.com/wp-content/uploads/2016/08/image35-opt.jpg
  97. 97 https://www.smashingmagazine.com/wp-content/uploads/2016/08/comparing-tools-large-opt.jpg
  98. 98 https://www.smashingmagazine.com/wp-content/uploads/2016/08/comparing-tools-large-opt.jpg
SmashingConf New York

Hold on, Tiger! Thank you for reading the article. Did you know that we also publish printed books and run friendly conferences – crafted for pros like you? Like SmashingConf Barcelona, on October 25–26, with smart design patterns and front-end techniques.

↑ Back to topTweet itShare on Facebook

Advertisement

Ways To Reduce Content Shifting On Page Load

artificial intelligence 5291510 1920

Ways To Reduce Content Shifting On Page Load

Have you ever opened a website, started reading and, after some time had passed and all assets had finished loading, you found that you’ve lost your scroll position? I undergo this every day, especially when surfing on my mobile device on a slow connection — a frustrating and distracting experience.

Every time the browser has to recalculate the positions and geometries of elements in the document, a reflow happens. This happens when new DOM elements are added to the page, images load or dimensions of elements change. In this article, we will share techniques to minimize this content shifting.

Media Link

When a website loads, it takes some time until the images are loaded and the browser is able to calculate the space needed. The following GIF, recorded with the throttling set to 3G, demonstrates the effect.

One way to avoid this is to set a fixed width and height for all images, but this isn’t practical for responsive websites because we want images and videos to adapt to the available space.

Intrinsic Ratio Link

With intrinsic ratios1, also referred to as the padding-bottom hack, we can define the sizes that our media will occupy.

2
Formula for intrinsic ratio

The formula for getting the value for padding-bottom is this:

(height of the asset / width of the asset) * 100(%) 

If we have an image with a width of 1600 pixels and a height of 900 pixels, then the value would be this:

 (900 / 1600) * 100(%) = 56.25% 

Here is a Sass mixin we can use to define the aspect ratios of our images, videos, iframes, objects and embedded content.

@mixin aspect-ratio($width, $height) { position: relative; padding-bottom: ($height / $width) * 100%; img, video, iframe, object, embed { position: absolute; top: 0; left: 0; right: 0; bottom: 0; } } 
.ratio-sixteen-nine { @include aspect-ratio(1600, 900); } 
<figure> <img src="waterfall.jpg" alt="Waterfall in Iceland"> </figure> 

To make the experience even better, we can style the placeholder by adding a background to the wrapper.

figure { background: #ddd url(camera-icon.svg) no-repeat center center; } 

For images, we can use an icon to indicate to users that an image will appear. By implementing aspect-ratio placeholders, the user can decide whether to wait for the image or continue reading, all without losing their current scroll position.

Placeholder picture3
(View large version4)

Widgets Link

In addition to media content, your website might be using widgets or third-party content that is added via JavaScript and that would also shift content if not handled carefully.

Advertisements Link

Although a lot of websites are responsive these days, most ads still have a fixed size. For a responsive website, we can use placeholders in our HTML, in which we load the predefined ads if they match the specified screen size.

/* On small screens show 320x250 banner */ @media all and (max-width: 500px) { .ad-container-s { width: 320px; height: 250px; } } /* On medium screens show 728x90 banner */ @media all and (min-width: 800px) { .ad-container-m { width: 728px; height: 90px; } } 

In our example, we have one medium rectangle (300 × 250) and one leaderboard (728 × 90). On small screens, we would show the rectangle, while on bigger screens we would show the leaderboard. By setting fixed dimensions for the placeholder, the loading of the ads won’t trigger a content shift.

Advertisement5
(View large version6)

Many people will never see the ads, but only the empty placeholder, because they will be using an ad blocker, or the advertisement won’t show up for other reasons. Therefore, you should style the placeholder to indicate that there is normally an ad. If you are already using an ad-blocker detection script, you can replace the placeholder with a message or a promotion of your products7.

Users might even rethink the use of an ad blocker on your website if the ads have one less disadvantage — that distracting jump effect.

Dynamic Content Link

For other widgets, we might not know their exact sizes beforehand, but we can define the minimum heights the widgets will require.

.widget { min-height: 400px; } 

By using min-height, we will reserve enough space for most cases and avoid a big jump if the widget needs more space.

Finding the right size for min-height takes some time, but users will be thankful that their reading experience has not been abruptly interrupted.

Web Fonts Link

Fonts have different x-heights. Therefore, our fallback font and web font will take up a different amount of space.

Currently, one best practice8 for loading web fonts is to use the Font Face Observer9 script to detect when a font has loaded so that it can be applied in the CSS afterwards.

In this example, we are applying the webfont-loaded class to the html element once the web font is ready to use.

var font = new FontFaceObserver('Lato'); font.load().then(function () { document.documentElement.className += " webfont-loaded"; }); 

In the CSS, we apply the web font once it has successfully loaded.

p {font-family: sans-serif;} .webfont-loaded p {font-family: 'Lato', sans-serif;} 

When the web font finally finishes loading, we will notice a quick jump. To minimize this, we can modify the x-height of the fallback font to match the web font as closely as possible, thus reducing the jump.

font-size-adjust Link

The font-size-adjust property10 allows you to specify the optimal aspect ratio for when a fallback font is used. For most fonts, the ratio is between 0.3 and 0.7.

To find the right aspect ratio for your web font, I recommend setting up your browser to show two paragraphs side by side, one with the web font and the other with the fallback font, and then adjust the property with your browser’s developer tools.

p { font-size-adjust: 0.5; } 

Because font-size-adjust is currently supported only11 in Firefox and Chrome (behind a flag), we can use a combination of letter-spacing and line-height to adjust the size of the fallback font in other browsers.

p { font-family: sans-serif; font-size: 18px; letter-spacing: 1px; line-height: 0.95; } /* Older browsers */ p { letter-spacing: 1px; line-height: 0.95; } /* If browser supports font-size-adjust, use this */ @supports (font-size-adjust: none) { p { letter-spacing: 0; line-height: 1; font-size-adjust: 0.59; } } /* Once the web font has loaded, apply this */ .webfont-loaded p { font-family: 'Lato', sans-serif; letter-spacing: 0; line-height: 1; } 

Here, we are defining letter-spacing and line-height as a fallback first, and we are using @supports12 to feature-detect and then apply font-size-adjust if it is supported.

We won’t get a perfect solution for all fonts, but it will minimize the distraction when the typeface changes.

Layout Link

Until now, we have covered media, widgets and fonts, but the content could also shift when the CSS for the main layout gets applied.

Flexbox vs. Grid Link

Flexbox can cause horizontal shifting13, as shown by Jake Archibald.

With flexbox, the content controls how the layout is displayed, whereas with grid layouts, the layout is displayed according to the grid definition. Therefore, using grid for the main layout is better.

You probably won’t see the content shift if you’re developing on a fast machine with a great Internet connection, but users who are surfing on a slow connection will.

.wrapper { display: flex; } .sidebar { flex: 1 1 30%; } .content { flex: 1 1 70%; } /* Use grid instead of flexbox if supported */ @supports (display: grid) { .wrapper { display: grid; grid-template-columns: 30% 70%; } .sidebar { grid-column: 1; } .content { grid-column: 2; } } 

Support14 for CSS grid layouts isn’t very good at the moment, but it will increase in the next month when Safari 10 ships, and Firefox and Blink-based browsers will probably enable it by default. To be future-proof, we should use flexbox as our foundation and enhance the experience with a grid layout if it is supported.

Little Big Details Link

Changing CSS properties based on user interaction can often cause horizontal shifting. This can be avoided by using alternative CSS properties.

text-shadow for Bold Text Link

When changing the font weight of text, the size of the element will change and a content shift will occur.

a:hover, a:focus { font-weight: bold; } @supports (text-shadow: none) { a:hover, a:focus { font-weight: normal; text-shadow: 1px 0 0 currentColor; } } 

Redrawing text-shadow can be computationally more intensive than changing font-weight, but it is the only way to prevent the jump effect when changing to a heavier weight of text.

Once again, we are using feature-detection to apply text-shadow, instead of font-weight, upon interaction from the user. Because @supports is supported by fewer browsers than text-shadow, we could also consider using Modernizr15 to detect the feature and apply the improvement in all supported browsers.

Small details will often make a good experience great. Your users will appreciate every content shift that is avoided.

Scroll Anchoring Link

Now that you’ve learned about ways to avoid content jumps, you might be wondering why browsers can’t prevent content jumps more efficiently.

The Chrome team recently introduced scroll anchoring16, which does exactly that.

Scroll anchoring is a proposed intervention17 that adjusts the scroll position to reduce visible content jumps.

At the moment, scroll anchoring is only available behind an experimental flag in Chrome, but other browser vendors have shown interest and will hopefully implement it in future.

Conclusion Link

As you can see, there are many solutions for avoiding the jump effect on page load. Yes, implementing all of these techniques would take some time, but it is totally worth it — until scroll anchoring is supported in more browsers.

If you take the time to avoid jumps by using the techniques mentioned above — defining placeholders, reserving space and preparing for fallbacks — then users will have a less annoying experience and will be able to enjoy your content without interruption.

How do you minimize content shifting on your websites? Have you discovered any particular tricks or techniques to prevent the jump effect?

(il, al)

Front page image credits: Rayi Christian W.18

Footnotes Link

  1. 1 http://alistapart.com/article/creating-intrinsic-ratios-for-video
  2. 2 http://provide.smashingmagazine.com/padding-bottom-formula.svg
  3. 3 https://www.smashingmagazine.com/wp-content/uploads/2016/08/placeholder-picture-large-opt.png
  4. 4 https://www.smashingmagazine.com/wp-content/uploads/2016/08/placeholder-picture-large-opt.png
  5. 5 https://www.smashingmagazine.com/wp-content/uploads/2016/08/advertisement-large-opt.png
  6. 6 https://www.smashingmagazine.com/wp-content/uploads/2016/08/advertisement-large-opt.png
  7. 7 https://www.smashingmagazine.com/2016/03/never-ending-story-ad-blockers/#prominently-highlight-your-products
  8. 8 https://www.zachleat.com/web/comprehensive-webfonts/
  9. 9 https://github.com/bramstein/fontfaceobserver
  10. 10 https://www.w3.org/TR/css-fonts-3/#font-size-adjust-prop
  11. 11 http://caniuse.com/#feat=font-size-adjust
  12. 12 https://drafts.csswg.org/css-conditional-3/#at-supports
  13. 13 https://jakearchibald.com/2014/dont-use-flexbox-for-page-layout/
  14. 14 http://caniuse.com/#feat=css-grid
  15. 15 https://modernizr.com/
  16. 16 https://developers.google.com/web/updates/2016/04/scroll-anchoring
  17. 17 https://github.com/WICG/interventions/blob/master/scroll-anchoring/explainer.md
  18. 18 http://tumblr.unsplash.com/post/89277673479/download-by-rayi-christian-w
SmashingConf New York

Hold on, Tiger! Thank you for reading the article. Did you know that we also publish printed books and run friendly conferences – crafted for pros like you? Like SmashingConf Barcelona, on October 25–26, with smart design patterns and front-end techniques.

↑ Back to topTweet itShare on Facebook

Advertisement

Web Development Reading List #151: Microinteraction UX, Feature Policy, And Passport.js

artificial intelligence 5291510 1920

Web Development Reading List #151: Microinteraction UX, Feature Policy, And Passport.js

In the last few years, I’ve seen a lot of code. As a freelancer working on multiple big projects with a lot of people, you’ll inevitably see all varieties of code styles. But I also realized how much writing JavaScript changed over the past years.

Having learned JavaScript before ES6 was there, a great mentor (Hans Christian Reinl1) taught me the most important lesson: Always write clean, understandable code. Avoid ternary operators, declare variables in one place, make functions as simple as possible. Basically things that so many JavaScript style guides also advise. But with the growing adoption of ES6/ES2015, I also saw an increase of code where most of these principles (except for keeping functions small) are ignored.

I think it has something to do with the increased flexibility of ES6. A lot of developers probably think since arrow functions — which are shorter than a normal function — can be used, they should also write everything else in the shortest, smartest way. However, in my opinion and experience, this leads to a less maintainable codebase, one that’s hard to read for people who don’t work on it on a daily basis. Be smarter! By applying simplicity and not cleverness to your code.

News Link

  • Carbide Alpha2 is a new kind of programming environment which requires no installation/setup, has auto-import for npm and GitHub, and does some other crazy stuff. Just have a look at all the amazing features that are listed on the website.

Concept & Design Link

5
Spokeo declared death to complexity and simplified their advanced search6. (Image credit: Ali Torbati7)

Security Link

  • Both the W3C and WICG (Web Incubator CG) share ideas on two new headers: Clear-Site-Data8 and Feature-Policy9. They both improve the security and privacy of users. While the first one can clean locally-stored objects, the latter declares features the browser is allowed to use within the origin, such as geolocation, cookies, and WebRTC. As a site-owner, you can use this to prevent a third-party from tracking your users.
  • NIST’s new password rules10 say that text messages shouldn’t be used for two-factor authentication anymore. A huge progress that will hopefully lead to less crappy 2FA in the future.
  • I recently shared an attack abusing target="_blank"11 on pages where users can add custom URLs. To make clear how bad the attack is, Ben Halpern now shows how he made it work on Instagram12 (they fixed it pretty fast). So remember to use rel="noopener" for any URL that you didn’t hard-code into the source.
New password rules13
The United States National Institute for Standards and Technology (NIST) formulated new guidelines for password policies14 to be used in the US government. (Image credit: Naked Security15)

Web Performance Link

JavaScript Link

  • The JavaScript library Grade.js17 produces complementary gradients generated from the top two dominant colors of an image.
  • Brecht Billiet explains why you don’t always need a third-party component and illustrates this with an example of building a modal in Angular 218.
  • Passport.js19 is an authentication middleware for Node.js, supporting authentication via username and password, Facebook, Twitter, and many more.

Work & Life Link

  • When dealing with clients, it’s important to ask the right questions20. It’s your job to find out what the end user needs and to guide the client to what they want.

Going Beyond… Link

  • We’ve been breaking global temperature records since ten months. And July was the hottest July on record21.
  • You can now contribute to OpenStreetView22 with your phone. The aim of creating an open-source alternative to Google’s Streetview functionality is really promising and has already some locations covered23. This is especially interesting in situations where people need fast updates — like in the case of the earthquake that stroke Italy this week and in which contributors updated all the maps in OpenStreetMap within a few hours.
  • Xaddress24 is an interesting idea of a universal address for every human on the world. It’s great to see the challenges of such systems and how we could solve them.
  • This interview with Steven Pinker25, psychology professor at Harvard University, explains why we think 2016 is the worst year ever. And next year will be the same. It’s a psychological issue since the news share only things that happened but not things that didn’t happen. If we look at the overall statistics of threats worldwide, we live in a safer and better world than ever before.

And with that, I’ll close for this week. If you like what I write each week, please support me with a donation26 or share this resource with other people. You can learn more about the costs of the project here27. It’s available via email, RSS and online.

— Anselm

Footnotes Link

  1. 1 https://drublic.de/
  2. 2 https://alpha.trycarbide.com/
  3. 3 https://medium.com/@alitorbati/death-to-complexity-how-we-simplified-advanced-search-a9ab2940acf0
  4. 4 https://www.smashingmagazine.com/2016/08/experience-design-essentials-animated-microinteractions-in-mobile-apps/
  5. 5 https://medium.com/@alitorbati/death-to-complexity-how-we-simplified-advanced-search-a9ab2940acf0
  6. 6 https://medium.com/@alitorbati/death-to-complexity-how-we-simplified-advanced-search-a9ab2940acf0
  7. 7 https://medium.com/@alitorbati/death-to-complexity-how-we-simplified-advanced-search-a9ab2940acf0
  8. 8 https://www.w3.org/TR/clear-site-data/
  9. 9 https://wicg.github.io/feature-policy/
  10. 10 https://nakedsecurity.sophos.com/2016/08/18/nists-new-password-rules-what-you-need-to-know/
  11. 11 https://wdrl.info/archive/129/977fcb771e018ba5f347e68a1ab515878c5bebb2
  12. 12 https://dev.to/ben/the-targetblank-vulnerability-by-example
  13. 13 https://nakedsecurity.sophos.com/2016/08/18/nists-new-password-rules-what-you-need-to-know/
  14. 14 https://nakedsecurity.sophos.com/2016/08/18/nists-new-password-rules-what-you-need-to-know/
  15. 15 https://nakedsecurity.sophos.com/2016/08/18/nists-new-password-rules-what-you-need-to-know/
  16. 16 https://css-tricks.com/use-webpagetest-api/
  17. 17 http://benhowdle.im/grade/
  18. 18 http://blog.brecht.io/Modals-in-angular2/
  19. 19 http://www.passportjs.org/
  20. 20 http://alistapart.com/article/why-arent-you-asking-questions
  21. 21 http://www.slate.com/blogs/bad_astronomy/2016/08/16/july_2016_was_the_hottest_july_on_record.html
  22. 22 https://www.openstreetmap.org/user/mvexel/diary/39274
  23. 23 http://openstreetview.org/map/@36.77409249464195,-122.83126831054686,8z
  24. 24 http://xaddress.org/
  25. 25 http://www.vox.com/2016/8/16/12486586/2016-worst-year-ever-violence-trump-terrorism
  26. 26 https://wdrl.info/donate
  27. 27 https://wdrl.info/costs/
SmashingConf New York

Hold on, Tiger! Thank you for reading the article. Did you know that we also publish printed books and run friendly conferences – crafted for pros like you? Like SmashingConf Barcelona, on October 25–26, with smart design patterns and front-end techniques.

↑ Back to topTweet itShare on Facebook

Advertisement

Upgrading CSS Animation With Motion Curves

artificial intelligence 5291510 1920

Upgrading CSS Animation With Motion Curves

There is UI animation, and then there is good UI animation. Good animation makes you go “Wow!” — it’s smooth, beautiful and, most of all, natural, not blocky, rigid or robotic. If you frequent Dribbble or UpLabs1, you’ll know what I am talking about.

Further Reading on Smashing: Link

With so many amazing designers creating such beautiful animations, any developer would naturally want to recreate them in their own projects. Now, CSS does provide some presets for transition-timing-function6, such as ease-in, ease-out and ease-in-out, which add some level of smoothness and realism, but they are very generic, aren’t they? How boring would it be if every animation on the web followed the same three timing functions?

One of the properties of transition-timing-function is cubic-bezier(n1, n2, n3, n4), in which you can pass four numbers to create your very own timing function. Towards the end of this article, you’ll know exactly what these four numbers represent — still, believe me, coming up with four numbers to capture the transition you are imagining in your head is nowhere close to being easy. But thanks to cubic-bezier8 and Ceasar9, you don’t have to. These tools bring motion curves to the web.


(Credit: m-2-h10)

Motion curves are primarily used by animators (for example, in Adobe After Effects11) to create advanced, realistic animations. With cubic-bezier and Ceasar, you can simply manipulate the shape of a curve, and those four numbers (n1, n2, n3, n4) will be filled in for you, which is absolutely great! Still, to use and make the most out of motion curves, you need to understand how they work, and that’s what we’re going to do in this article. Let’s begin.

Understanding Motion Curves Link

A motion curve is nothing but a plot between any animatable property12 and time. A motion curve defines how the speed of an animation running under its influence varies over time.

13
A motion curve is a plot between an animatable property and time. (View large version14)

Let’s take distance (translateX)15 as an example of an animatable property. (The explanation holds true for any other animatable property.)

Calculating speed at time t1 on a distance-time plot.16
Calculating speed at time t1 on the distance-time plot. (View large version17)

If you’ve had any experience with physics and basic calculus, you’ll know that deciphering speed from a distance-time graph is very simple. The first derivative of distance as a function of time, with respect to time, is speed, which means that an object following a distance-time curve would have greater speed in places where the curve is steep and lower in places where the curve is flatter. If you know how that works, great! You’re all set and can skip to the next section.

Now, I am aware that design and development is a diverse field, and not everyone has the same background. Perhaps the two paragraphs above were all jargon to you. Don’t fret. We’ll keep going and make sense of the jargon.

Consider the red box below. Let’s get a little callow here and call the red box “Boxy”; it’ll be easier to refer to it that way. All right, so Boxy is going to move from one edge of the screen to the other in a linear fashion, and we are going to analyze its motion.

One of the presets of transition-timing-function is linear. To make Boxy move, all we do is add the following class.

 .moveForward { transform: translateX(1000px); } 

To control the animation, we would set the transition property for Boxy as follows:

#boxy { width: 200px; height: 200px; background: red; transition-property: transform; transition-duration: 1s; transition-timing-function: linear; }

That’s a very verbose way to specify transition. In reality, you will almost always find transition written in its shorthand form:

#boxy { width: 200px; height: 200px; background: red; transition: transform 1s linear; }

Let’s see it go.

Boxy undergoing linear motion18
Box undergoing linear motion.

Robotic, isn’t it? You could say that this motion feels robotic because it’s linear, which is a perfectly plausible answer. But could you explain why? We can see that setting linear results in robotic motion, but what exactly is happening behind the scene? That’s what we’ll figure out first; we’re going to get to the innards and understand why this motion feels robotic, blocky and not natural.

Let’s start by graphing Boxy’s motion to see if we can gain some insight. Our graph will have two axes, the first being distance, and the second time. Boxy covers a total distance of 1000 pixels (distance) in 1 second (time). Now, don’t get scared by all the math below — it’s very simple.

Here is our very simple graph, with the axes as mentioned.

Empty graph with axes19
Empty graph with axes (View large version20)

Right now, it’s empty. Let’s fill it up with some data.

To start off with, we know that at 0 seconds, when the animation has not yet started, Boxy is in its initial position (0 pixels). And after 1 second has passed, Boxy has travelled a total of 1000 pixels, landing at the opposite edge of the display.

Boxy's initial and final positions21
Boxy’s initial and final positions (View large version22)

Let’s plot this data on the graph.

Graph with Boxy's initial and final positions plotted23
Graph with Boxy’s initial and final positions plotted (View large version24)

So far so good. But two data points are not enough — we need more. The following figure shows the positions of Boxy at different points of time (all thanks to my high-speed camera).

Boxy's positions at different points of time25
Boxy’s positions at different points of time (View large version26)

Let’s add this data to our graph.

Graph with different positions plotted27
Graph with different positions plotted (View large version28)

You could, of course, have many more data points for different times (for example, 0.375 seconds, 0.6 seconds, etc.) but what we have is enough to complete our graph. By joining all of the points, we have completed the graph. High five!

Final graph29
Final graph (View large version30)

Cool, but what does this tell us? Remember that we started our investigation with the goal of understanding why Boxy’s linear motion feels unnatural and robotic? At a glance, this graph we’ve just constructed doesn’t tell us anything about that. We need to go deeper.

Keep the graph in mind and let’s talk for a minute about speed. I know you know what speed is — I’d just like to put it in mathematical terms. As it goes, the formula for speed is this:

Mathematical formula for speed31
Mathematical formula for speed (View large version32)

Therefore, if a car covers a distance of 100 kilometers in 1 hour, we say its speed is 100 kilometers per hour.

Representing speed33
Representing speed (View large version34)

If the car doubles its speed, it will start covering double the distance (200 kilometers) in the same interval (1 hour), or, in other words, it will cover the original distance of 100 kilometers in half the time (0.5 hours). Make sense?

Similarly, if the car halved its speed (that is, slowed down by half), it would start covering a distance of 50 kilometers in the same interval (1 hour), or, in other words, it would cover the original distance of 100 kilometers in twice the time (2 hours).

Great! With that out of the way, let’s pick up where we left off. We were trying to figure out how the graph between distance and time can help us understand why Boxy’s linear motion feels robotic.

Hey, wait a second! We have a graph between distance and time, and speed can be calculated from distance and time, can’t it? Let’s try to calculate Boxy’s speed at different time intervals.

Calculating speed at different intervals35
Calculating speed at different intervals (View large version36)

Here, I’ve chosen three different time intervals: one near the start, one in the middle and one at the end near the final position. As is evident, at all three intervals, Boxy has exactly the same speed (s1 = s2 = s3) of 1000 pixels per second; that is, no matter what interval you choose in the graph above, you will find Boxy moving at 1000 pixels per second. Isn’t that odd? Things in real life don’t move at a constant speed; they start out slowly, gradually increase their speed, move for a while, and then slow down again before stopping, but Boxy abruptly starts with a speed of 1000 pixels per second, moving with the same speed and abruptly stopping at exactly the same speed. This is why Boxy’s movement feels robotic and unnatural. We are going to have to change our graph to fix this. But before diving in, we’ll need to know how changes to the speed will affect the graph drawn between distance and time. Ready? This is going to be fun.

Let’s double Boxy’s speed and see how the appearance of the graph changes in response. Boxy’s original speed, as we calculated above, is 1000 pixels per second. Because we have doubled the speed, Boxy will now be able to cover the distance of 1000 pixels in half the time — that is, in 0.5 seconds. Let’s put that on a graph.

Graph showing double speed37
Graph showing double speed (View large version38)

What if we tripled the speed? Boxy now covers 1000 pixels in one third of the time (a third of a second).

Graph showing triple speed39
Graph showing triple speed (View large version40)

Hmm, notice something? Notice how, when the graph changes, the angle that the line makes with the time axis increases as the speed increases.

All right, let’s go ahead and halve Boxy’s speed. Halving its speed means that Boxy will be able to cover only 500 pixels (half the original distance) in 1 second. Let’s put this on a graph.

Graph showing half speed41
Graph showing half speed (View large version42)

Let’s slow down Boxy a little more, making the speed one third of the original. Boxy will be able to cover one third of the original distance in 1 second.

Graph showing a third of the speed43
Graph showing a third of the speed (View large version44)

See a pattern? The line gets steeper and steeper as we increase Boxy’s speed, and starts to flatten out as we slow Boxy down.

Line gets steeper as speed increases and flattens out as speed decreases45
Line gets steeper as speed increases and flattens out as speed decreases. (View large version46)

This makes sense because, for a steeper line, a little progress in time produces a much higher change in distance, implying greater speed.

A small change in time produces a relatively large change in distance, making for a steeper graph.47
A small change in time produces a relatively large change in distance, making for a steeper graph. (View large version48)
A small change in time produces a relatively large change in distance, making for a steeper graph.49
A small change in time produces a relatively large change in distance, making for a steeper graph. (View large version50)

On the other hand, for a line that is less steep, a large change in time produces only a little change in distance, meaning a lower speed.

Change in time verus change in distance in a graph that is less steep51
Change in time versus change in distance in a graph that is less steep (View large version52)
Change in time versus change in distance in a graph that is less steep53
Change in time versus change in distance in a graph that is less steep (View large version54)

With all of the changes we have made, Boxy is still moving in a linear fashion, just at different speeds. However, with our newly gained knowledge of how changes to distance versus time can affect speed, we can experiment and draw a graph that makes Boxy move in a way that looks natural and realistic.

Let’s take it step by step. First, things in real life start out slow and slowly increase in speed. So, let’s do that.

In all of the iterations of the graph shown below, you will notice that the points at opposite corners remain fixed. This is because we are not changing the duration for which the animation runs, nor are we changing the distance that Boxy travels.

Constructing a custom motion curve55
Constructing a custom motion curve (View large version56)

If Boxy is to follow the graph above, it will move at a slower speed for 0.25 seconds, because the line is less steep starting from 0 to 0.25 seconds, and then it will abruptly switch to a higher speed after 0.25 seconds (the reason being that the line in the graph gets steeper after 0.25 seconds). We will need to smoothen this transition, though; we don’t want any corners — it’s called a motion curve, after all. Let’s convert that corner to a curve.

Constructing a custom motion curve57
Constructing a custom motion curve (View large version58)

Notice the smooth transition that Boxy undergoes from being at rest to gradually increasing in speed.

Boxy following the motion curve above59
Box following the motion curve above (View large version60)

Good! Next, objects in real life progressively slow down before stopping. Let’s change the graph to make that happen. Again, we’ll pick up a point in time after which we would like Boxy to start slowing down. How about around 0.6 seconds? I have smoothened out the transition’s corner to a curve here already.

Final custom motion curve61
Final custom motion curve (View large version62)

Look at Boxy go! A lot more natural, isn’t it?

Boxy following the custom motion curve63
Boxy following the custom motion curve (View large version64)

The curve we drew in place of the corner is actually a collection of many small line segments; and, as you already know, the steeper the line on the graph, the higher the speed, and the flatter the line, the slower the speed. Notice how in the left part of the image, the line segments that make up the curve get steeper and steeper, resulting in a gradual increase in speed, and progressively flatten out on the right side, resulting in the speed progressively decreasing?

A curve is nothing but a collection of many line segments.65
A curve is nothing but a collection of many line segments. (View large version66)

With all of this knowledge, making sense of motion curves becomes much easier. Let’s look at a few examples.

67
(View Large version)68
Example 169
Example 1 (View large version70)
71
(View Large version)72
Example 273
Example 2 (View large version74)
75
(View Large version)76
Example 377
Example 3 (View large version78)

Using Motion Curves In UI Animation Link

The next time you have to animate a UI element, you will have the power of motion curves at your disposal. Whether it’s a slide-out bar, a modal window or a dropdown menu, adding the right amount of animation and making it look smooth and natural will increase the quality of your user interface greatly. It will make the user interface just feel good. Take the slide-out menu below:

See the Pen nJial80 by Nash Vail (@nashvail9681) on CodePen9782.

Clicking on the hamburger menu brings in the menu from left, but the animation feels blocky. Line 51 of the CSS shows that the animation has transition-timing-function set to linear. We can improve this. Let’s head on over to cubic-bezier9183 and create a custom timing function.

If you’re reading this, it’s safe to assume that you’re a designer or a developer or both and, hence, no stranger to cubic bezier curves; there’s a good chance you’ve encountered them at least once. Bezier curves are a marvel. They are used primarily in computer graphics to draw shapes and are used in tools such as Sketch84 and Adobe Illustrator85 to draw vector graphics. The reason why cubic bezier curves are so popular is that they are so easy to use: Just modify the positions of the four different points, and create the kind of curve you need.

Because we always know the initial and final states of the animated object, we can fix two of the points. That leaves just two points whose positions we have to modify. The two fixed points are called anchor points, and the remaning two are control points.

Parts of a bezier curve86
Parts of a bezier curve (View large version87)

As you remember, cubic-bezier accepts four numbers (n1, n2, n3, n4) when you create a custom transition-timing-function. These four numbers represent nothing but the positions of the two control points: n1, n2 represents the x and y coordinates of the first control point, and n3, n4 represents the coordinates of the second control point. Because changing the position of the control points will change the shape of the curve and, hence, our animation overall, the result is the same when any or all of n1, n2, n3, n4 is modified. For example, the figure below represents cubic-bezier(.14, .78, .89, .35):

A cubic bezier curve representing (.14, .78, .89, .35).88
A cubic bezier curve representing (.14, .78, .89, .35) (View large version89)

The math behind these seemingly simple curves90 is fascinating.

All right, all right, let’s get back to where we were going with cubic-bezier9183: creating a custom transition-timing-function. I want the kind of animation in which the menu slides in very quickly and then gracefully slows down and ends:

Adjusting the cubic bezier curve92
Adjusting the cubic bezier curve (View large version93)

This looks good. The animation will start out fast and then slow down, rather than move at a constant speed throughout. I am simply going to copy cubic-bezier(.05, .69, .14, 1) from the top of the page and replace linear with it.

See the Pen nJial95 by Nash Vail (@nashvail9681) on CodePen9782.

See the difference? The second iteration feels much more natural and appealing. Imagine if every animation in your UI followed a natural timing function. How great would that be?

As we’ve seen, motion curves aren’t tricky at all. They are very easy to understand and use. With them, you can take your UI to the next level.

I hope you’ve learned how motion curves work. If you were going through a lot of trial and error to get motion curves to work the way you want, or if you were not using them at all, you should now be comfortable bending them to your will and creating beautiful animations. Because, after all, animation matters.

(al)

Footnotes Link

  1. 1 http://www.uplabs.com
  2. 2 https://www.smashingmagazine.com/2015/12/animating-clipped-elements-svg/
  3. 3 https://www.smashingmagazine.com/2015/06/practical-techniques-on-designing-animation/
  4. 4 https://www.smashingmagazine.com/2015/09/creating-cel-animations-with-svg/
  5. 5 https://www.smashingmagazine.com/2014/11/the-state-of-animation-2014/
  6. 6 https://developer.mozilla.org/en/docs/Web/CSS/transition-timing-function
  7. 7 https://dribbble.com/LukasStranak
  8. 8 http://cubic-bezier.com
  9. 9 https://matthewlein.com/ceaser/
  10. 10 https://dribbble.com/m-2-h
  11. 11 http://www.adobe.com/products/aftereffects.html
  12. 12 https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_animated_properties
  13. 13 https://www.smashingmagazine.com/wp-content/uploads/2016/08/css-animations-motion-curves-fig26_large-opt.png
  14. 14 https://www.smashingmagazine.com/wp-content/uploads/2016/08/css-animations-motion-curves-fig26_large-opt.png
  15. 15 https://css-tricks.com/almanac/properties/t/transform/#article-header-id-3
  16. 16 https://www.smashingmagazine.com/wp-content/uploads/2016/08/css-animations-motion-curves-fig27_large-opt.png
  17. 17 https://www.smashingmagazine.com/wp-content/uploads/2016/08/css-animations-motion-curves-fig27_large-opt.png
  18. 18 https://www.smashingmagazine.com/wp-content/uploads/2016/08/TNndMJe.gif
  19. 19 https://www.smashingmagazine.com/wp-content/uploads/2016/08/css-animations-motion-curves-fig1_large-opt.png
  20. 20 https://www.smashingmagazine.com/wp-content/uploads/2016/08/css-animations-motion-curves-fig1_large-opt.png
  21. 21 https://www.smashingmagazine.com/wp-content/uploads/2016/08/css-animations-motion-curves-fig2_large-opt.png
  22. 22 https://www.smashingmagazine.com/wp-content/uploads/2016/08/css-animations-motion-curves-fig2_large-opt.png
  23. 23 https://www.smashingmagazine.com/wp-content/uploads/2016/08/css-animations-motion-curves-fig3_large-opt.png
  24. 24 https://www.smashingmagazine.com/wp-content/uploads/2016/08/css-animations-motion-curves-fig3_large-opt.png
  25. 25 https://www.smashingmagazine.com/wp-content/uploads/2016/08/css-animations-motion-curves-fig4_large-opt.png
  26. 26 https://www.smashingmagazine.com/wp-content/uploads/2016/08/css-animations-motion-curves-fig4_large-opt.png
  27. 27 https://www.smashingmagazine.com/wp-content/uploads/2016/08/css-animations-motion-curves-fig5_large-opt.png
  28. 28 https://www.smashingmagazine.com/wp-content/uploads/2016/08/css-animations-motion-curves-fig5_large-opt.png
  29. 29 https://www.smashingmagazine.com/wp-content/uploads/2016/08/css-animations-motion-curves-fig6_large-opt.png
  30. 30 https://www.smashingmagazine.com/wp-content/uploads/2016/08/css-animations-motion-curves-fig6_large-opt.png
  31. 31 https://www.smashingmagazine.com/wp-content/uploads/2016/08/css-animations-motion-curves-fig7_large-opt.png
  32. 32 https://www.smashingmagazine.com/wp-content/uploads/2016/08/css-animations-motion-curves-fig7_large-opt.png
  33. 33 https://www.smashingmagazine.com/wp-content/uploads/2016/08/css-animations-motion-curves-fig8_large-opt.png
  34. 34 https://www.smashingmagazine.com/wp-content/uploads/2016/08/css-animations-motion-curves-fig8_large-opt.png
  35. 35 https://www.smashingmagazine.com/wp-content/uploads/2016/08/css-animations-motion-curves-fig9_large-opt.png
  36. 36 https://www.smashingmagazine.com/wp-content/uploads/2016/08/css-animations-motion-curves-fig9_large-opt.png
  37. 37 https://www.smashingmagazine.com/wp-content/uploads/2016/08/css-animations-motion-curves-fig10_large-opt.png
  38. 38 https://www.smashingmagazine.com/wp-content/uploads/2016/08/css-animations-motion-curves-fig10_large-opt.png
  39. 39 https://www.smashingmagazine.com/wp-content/uploads/2016/08/css-animations-motion-curves-fig11_large-opt.png
  40. 40 https://www.smashingmagazine.com/wp-content/uploads/2016/08/css-animations-motion-curves-fig11_large-opt.png
  41. 41 https://www.smashingmagazine.com/wp-content/uploads/2016/08/css-animations-motion-curves-fig12_large-opt.png
  42. 42 https://www.smashingmagazine.com/wp-content/uploads/2016/08/css-animations-motion-curves-fig12_large-opt.png
  43. 43 https://www.smashingmagazine.com/wp-content/uploads/2016/08/css-animations-motion-curves-fig13_large-opt.png
  44. 44 https://www.smashingmagazine.com/wp-content/uploads/2016/08/css-animations-motion-curves-fig13_large-opt.png
  45. 45 https://www.smashingmagazine.com/wp-content/uploads/2016/08/css-animations-motion-curves-fig14_large-opt.png
  46. 46 https://www.smashingmagazine.com/wp-content/uploads/2016/08/css-animations-motion-curves-fig14_large-opt.png
  47. 47 https://www.smashingmagazine.com/wp-content/uploads/2016/08/css-animations-motion-curves-fig15_large-opt.png
  48. 48 https://www.smashingmagazine.com/wp-content/uploads/2016/08/css-animations-motion-curves-fig15_large-opt.png
  49. 49 https://www.smashingmagazine.com/wp-content/uploads/2016/08/css-animations-motion-curves-fig16_large-opt.png
  50. 50 https://www.smashingmagazine.com/wp-content/uploads/2016/08/css-animations-motion-curves-fig16_large-opt.png
  51. 51 https://www.smashingmagazine.com/wp-content/uploads/2016/08/css-animations-motion-curves-fig17_large-opt.png
  52. 52 https://www.smashingmagazine.com/wp-content/uploads/2016/08/css-animations-motion-curves-fig17_large-opt.png
  53. 53 https://www.smashingmagazine.com/wp-content/uploads/2016/08/css-animations-motion-curves-fig18_large-opt.png
  54. 54 https://www.smashingmagazine.com/wp-content/uploads/2016/08/css-animations-motion-curves-fig18_large-opt.png
  55. 55 https://www.smashingmagazine.com/wp-content/uploads/2016/08/css-animations-motion-curves-fig19_large-opt.png
  56. 56 https://www.smashingmagazine.com/wp-content/uploads/2016/08/css-animations-motion-curves-fig19_large-opt.png
  57. 57 https://www.smashingmagazine.com/wp-content/uploads/2016/08/css-animations-motion-curves-fig20_large-opt.png
  58. 58 https://www.smashingmagazine.com/wp-content/uploads/2016/08/css-animations-motion-curves-fig20_large-opt.png
  59. 59 https://www.smashingmagazine.com/wp-content/uploads/2016/08/xs6l6oW.gif
  60. 60 https://www.smashingmagazine.com/wp-content/uploads/2016/08/xs6l6oW.gif
  61. 61 https://www.smashingmagazine.com/wp-content/uploads/2016/08/css-animations-motion-curves-fig21_large-opt.png
  62. 62 https://www.smashingmagazine.com/wp-content/uploads/2016/08/css-animations-motion-curves-fig21_large-opt.png
  63. 63 https://www.smashingmagazine.com/wp-content/uploads/2016/08/iI5mrff.gif
  64. 64 https://www.smashingmagazine.com/wp-content/uploads/2016/08/iI5mrff.gif
  65. 65 https://www.smashingmagazine.com/wp-content/uploads/2016/08/css-animations-motion-curves-fig22_large-opt.png
  66. 66 https://www.smashingmagazine.com/wp-content/uploads/2016/08/css-animations-motion-curves-fig22_large-opt.png
  67. 67 https://www.smashingmagazine.com/wp-content/uploads/2016/08/css-animations-motion-curves-fig23_large-opt.png
  68. 68 https://www.smashingmagazine.com/wp-content/uploads/2016/08/css-animations-motion-curves-fig23_large-opt.png
  69. 69 https://www.smashingmagazine.com/wp-content/uploads/2016/08/Ij44EBG.gif
  70. 70 https://www.smashingmagazine.com/wp-content/uploads/2016/08/Ij44EBG.gif
  71. 71 https://www.smashingmagazine.com/wp-content/uploads/2016/08/css-animations-motion-curves-fig24_large-opt.png
  72. 72 https://www.smashingmagazine.com/wp-content/uploads/2016/08/css-animations-motion-curves-fig24_large-opt.png
  73. 73 https://www.smashingmagazine.com/wp-content/uploads/2016/08/F4Ve4Xl.gif
  74. 74 https://www.smashingmagazine.com/wp-content/uploads/2016/08/F4Ve4Xl.gif
  75. 75 https://www.smashingmagazine.com/wp-content/uploads/2016/08/css-animations-motion-curves-fig25_large-opt.png
  76. 76 https://www.smashingmagazine.com/wp-content/uploads/2016/08/css-animations-motion-curves-fig25_large-opt.png
  77. 77 https://www.smashingmagazine.com/wp-content/uploads/2016/08/a0YYL8I.gif
  78. 78 https://www.smashingmagazine.com/wp-content/uploads/2016/08/a0YYL8I.gif
  79. 79 http://codepen.io/nashvail
  80. 80 ‘http://codepen.io/nashvail/pen/qNYmLG/’
  81. 81 ‘http://codepen.io/nashvail’
  82. 82 ‘http://codepen.io’
  83. 83 http://cubic-bezier.com
  84. 84 https://www.sketchapp.com/
  85. 85 http://www.adobe.com/in/products/illustrator.html
  86. 86 https://www.smashingmagazine.com/wp-content/uploads/2016/08/css-animations-motion-curves-fig28_large-opt.png
  87. 87 https://www.smashingmagazine.com/wp-content/uploads/2016/08/css-animations-motion-curves-fig28_large-opt.png
  88. 88 https://www.smashingmagazine.com/wp-content/uploads/2016/08/css-animations-motion-curves-fig29_large-opt.png
  89. 89 https://www.smashingmagazine.com/wp-content/uploads/2016/08/css-animations-motion-curves-fig29_large-opt.png
  90. 90 https://medium.freecodecamp.com/nerding-out-with-bezier-curves-6e3c0bc48e2f#.113c4usq9
  91. 91 http://cubic-bezier.com
  92. 92 https://www.smashingmagazine.com/wp-content/uploads/2016/08/bezierDemo.gif
  93. 93 https://www.smashingmagazine.com/wp-content/uploads/2016/08/bezierDemo.gif
  94. 94 http://codepen.io/nashvail
  95. 95 ‘http://codepen.io/nashvail/pen/rLvymO/’
  96. 96 ‘http://codepen.io/nashvail’
  97. 97 ‘http://codepen.io’
SmashingConf New York

Hold on, Tiger! Thank you for reading the article. Did you know that we also publish printed books and run friendly conferences – crafted for pros like you? Like SmashingConf Barcelona, on October 25–26, with smart design patterns and front-end techniques.

↑ Back to topTweet itShare on Facebook

Advertisement

Sucuri vs CloudFlare (Pros and Cons) – Which One is Better?

artificial intelligence 5291510 1920

Due to an increased emphasis on website security in today’s digital landscape, one of the most common requests we’ve gotten from readers is to do a pros and cons analysis of Sucuri vs CloudFlare to explain which one is better. Sucuri and CloudFlare are online services that offer website firewall, CDN, and DDoS protection services. In this article, we will compare Sucuri vs Cloudflare with pros and cons to find out which one is better.

Even the most secure websites on the internet are vulnerable to distributed denial of service attacks (DDoS), hacking attempts, and malware injection.

As a WordPress site owner you can use some security best practices like password protecting admin directory, limiting login attempts, adding two factor authentication, etc.

However these tips only work on software level which leaves your website mostly open to other types of attacks. These attacks can cause financial damage, data loss, poor search rankings and bad user experience.

Sucuri and CloudFlare offer a website application firewall (WAF).

This means that all your website’s traffic goes through their server scanners. If a request looks malicious, then the firewall would block it before it even reaches your website.

On the surface, these two services look nearly identical, but there are some key differences.

In this comparison, we’ll focus on:

  • Features
  • Pricing
  • Malware Removal Service

By the end, you’ll know exactly which platform is best for you.

Ready? Let’s compare Sucuri vs Cloudflare.

Features

In this section, we will look at the features offered by Sucuri and CloudFlare.

It’s important to note that both services offer different plans that come with different set of features.

As a user, make sure you’re not a victim of their marketing site because not all plans come with all the features.

CloudFlare Features

CloudFlare is best known for their free CDN service. They specialize in mitigating DDOS attacks using their Website Application Firewall product. CloudFlare keep your site available to users during an attack or under heavy traffic when your server is not responsive.

Their website firewall blocks suspicious traffic before it even reaches your website. The firewall also extends to form submissions which protects your website from comment spam and registration spam.

CloudFlare website firewall

CloudFlare also offers free and custom SSL certificates with all their plans. Free and pro plans only allow you to use CloudFlare issued certificate. For custom certificate you will need to upgrade to their Business or Enterprise plan.

While CloudFlare offer a free option that includes CDN, most other features including their Website Application Firewall require a paid plan.

CloudFlare doesn’t offer server scanning service to detect malware. It also doesn’t offer a malware removal guarantee if you were to be hacked on their watch.

Sucuri Features

Sucuri is one of the most reputable website security and monitoring service. They offer comprehensive website monitoring, scanning for malware, DDoS protection, and malware removal services.

Sucuri offers CloudProxy, a website firewall and load balancing service. It blocks suspicious traffic from reaching your website by effectively blocking DDoS attacks, code injection, bad bots, and other website threats. See our case study of how Sucuri helped us block 450,000 attacks in 3 months.

Sucuri offers integration with the free Let’s Encrypt SSL for their basic plan. You can also use custom SSL certificates with their professional and business plans.

Sucuri CloudProxy

Sucuri scans your website regularly for file changes, code injection, and malware. They clean up hacked sites, with support for all popular CMS software like WordPress, Joomla, Drupal, etc.

Winner: Sucuri is a clear winner because they offer a better combination of tools and services (Website Firewall + Load Balancing + Malware Cleanup / Hack Repair).

Pricing

Pricing is an important factor for many small businesses.

Here, we will compare the different pricing plans offered by CloudFlare and Sucuri, so you know exactly what you’re getting for your money.

FREE is not always better

CloudFlare Pricing Plans

CloudFlare offers a free CDN service for all. They don’t charge you for the bandwidth which means you will be able to use their free CDN regardless of your traffic volume.

However, this free plan does not come with the website application firewall. Your website may benefit from CDN, but it will not be properly protected against DDoS attacks, spam, bad traffic, etc.

For their web application firewall, you need the Pro plan which costs $20 / month (this is what you need for improved security).

This pro plan does not include advanced DDoS mitigation and custom SSL. For those features, you will need their Business plan which costs $200 per month.

Sucuri Pricing Plans

Unlike CloudFlare, Sucuri doesn’t offer a free plan. Their website security stack plan starts at $199.99 for an year, which is cheaper than CloudFlare’s pro plan.

This basic plan includes full website monitoring, website application firewall, DDoS protection, malware removal, and free LetsEncrypt SSL certificate.

Instead of excluding features from lower level plans, Sucuri uses priority as an incentive for their higher paying plans.

For example, malware removal estimated time for basic plan is 12 hours, 6 hours for professional plan, and 4 hours for business plan. However, the actual cleanup timings are way faster than that for all customers.

They offer 24/7 support as part of all plans. Their business plan subscribers can also use the Live Chat support.

Winner:Sucuri is an obvious choice for small businesses when it comes to pricing. CloudFlare Pro costs $240 / year vs Sucuri cost $199 / year and offer more features. To unlock same features, you’d have move up to CloudFlare’s $2400 / year plan. Sucuri’s most expensive plan is at $499 / year.

Malware Removal Service

Apart from denial of service attacks, malware and code injections are the most common threats faced by WordPress site owners.

Let’s see how both services protect your website against those common threats.

Website security and malware removal

CloudFlare – Security and Malware Removal

CloudFlare free version is basically a content delivery network which helps make your website fast.

The website security firewall comes with their paid plan. It includes CloudFlare’s ready to use custom rules set. These rules protect your site from common code injection hacks, XSS JavaScript exploits, and form submissions.

However, they do not offer file change detection, malware scanning, blacklist monitoring, and many other security features. You can add third-party apps for malware scanning, but these services will cost you additional fees.

Sucuri – Security and Malware Removal

Sucuri is a security focused company. They specialize in monitoring websites and protecting them against malware and other attacks.

Sucuri’s website application firewall protects you against DDOS, SQL injections, XSS JavaScript injections, comment and contact form spam.

However, if something crosses all those security barriers and somehow reaches your website, then Sucuri offers to clean up your website (for free).

If you already have a website affected with malware, then Sucuri will clean that up as well.

Winner:Sucuri – For combining website application firewall with monitoring, malware protection, and clean up services.

Conclusion

CloudFlare and Sucuri both offer protection against DDoS attacks on your website. CloudFlare does a little better in the content delivery network area.

Sucuri fares better in the overall features, better security monitoring, and lower prices. If you are using a CMS like WordPress, then Sucuri is what you need.

We hope this article helped you compare pros and cons of Sucuri vs CloudFlare. You may also want to see our list of 7 best WordPress backup plugins.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

Diverse Test-Automation Frameworks For React Native Apps

artificial intelligence 5291510 1920

Diverse Test-Automation Frameworks For React Native Apps

The bar is set high for today’s mobile apps. First, apps must meet the standard of quality that app markets expect. Secondly, mobile app users are very demanding. Plenty of alternatives are available to download, so users will not tolerate a buggy app. Because mobile apps have become such a crucial part of people’s lives, users won’t be shy about sharing their love or hate for an app — and that feedback gets in front of millions of users in seconds.

Further Reading on Smashing: Link

Mobile is more important than ever6. But getting an app just right, getting it to work across all possible devices, with different OS versions, display resolutions, chipsets and other hardware characteristics, and making the user experience smooth across all possible configurations, is a challenging task.

7
The increase in mobile platforms and device fragmentation. (View large version8)

A ton of great technologies, tools, frameworks and open-source components are available for building native mobile apps. What value does React Native9 bring to the scene, and how can we make sure that apps built with it are well received by their target audiences?

In this article, we’ll look at what’s available for testing React Native apps10. First, I’ll explain some key features of React Native, before looking at how to implement these tests. Secondly, I’ll categorize testing methods and frameworks on three levels (unit, integration, functional), providing examples for each. Finally, I’ll provide simple examples of how to implement tests using the most popular open-source test-automation frameworks for functional app testing.

The Basic Architecture Of React Native Apps

It all got started with React11 more than three years ago, when Facebook introduced its framework to web developers. It was bound to be popular, not just because it was authored and developed by Facebook, but because of the capabilities it provided to web developers — and especially how it changed the way we build apps.

The concept of this type of “learn once, write anywhere” framework wasn’t new, though; we had already seen JavaScript libraries do similar things (Sencha12, PhoneGap13 and Appcelerator14, among others), but something was better about React that had an impact on developers’ habits and how they break down an application’s UI into discrete components.

React Native does not use the DOM for rendering. Instead, it renders with native UI views, which means you are using the native components provided by the operating system. This sort of product-creation flow, where you replace the DOM API with a more declarative API, gives developers a more cohesive and simplified level of abstraction15.

React Native development flow on Android and iOS16
React Native development flow on Android and iOS. (Image: Testdroid676351422917) (View large version18)

The key thing about React Native is that it brings the React programming model19 to mobile apps, development and testing. It doesn’t actually work directly as a cross-platform tool or framework, but it accelerates the trend of building mobile apps on this new platform. And that’s one of the cornerstones of what makes React Native so powerful, easy to learn and easy to write on this new platform.

The major difference, as well as advantage, of native mobile versus the web is that, instead of running a JavaScript-based implementation in a browser and exposing HTML elements, we are now relying on the embedded JavaScriptCore in apps20, which get platform-specific UI elements.

Test Automation On Different Levels: Unit, Integration, Component And Functional

All mobile software is built using composition. On Android and iOS21, this means that small software components are arranged together to form larger, higher-level components with greater functionality, until the goals and requirements of the application have been met. A good testing practice is to run tests that cover functionality at all levels of the composition.

In this article, I’ll cover test methods and automation frameworks at three levels. The primary focus is on the highest level, functional testing, but React Native apps can be tested — and testing can be automated — on at least the following levels:

  • Unit testing

    This could be even as basic as testing JavaScript objects and methods on the component level.
  • Component testing

    Each component can be tested either visually or functionally. ReactTestUtils2322 provides a simple framework for testing React components.
  • Integration testing

    Integration testing comes next and is a phase when a group of different units are typically tested as an entity.
  • Functional testing

    Functional testing is a type of black-box testing that focuses on user requirements and interactions, and it covers all underlying software, all user interaction and the application as an entity.

In addition to ReactTestUtils2322, React Native provides useful unit-testing methods24, but none of them thoroughly cover the application’s actual logic. Therefore, mobile apps built on React Native benefit more from functional UI testing. A variety of functional test-automation frameworks25 are available, and we’ll look at few of the most popular ones in this article.

While unit testing can be done at the component level, functional test automation provides better capabilities for testing the larger entities in a React Native app. With React Native, component logic unit testing can be done in isolation, using traditional JavaScript libraries and forcing React Native to return regular components instead of native ones. With functional test-automation frameworks, UI components are part of the app and are easy to test as a whole.

I’ll separate these frameworks into cross-platform frameworks26 and platform-specific frameworks4027, as illustrated in the picture below.

Different test-automation options for React Native apps28
Different test-automation options for React Native apps. (Image: Testdroid676351422917) (View large version30)

The best part of React Native apps is that they are fully native for both major mobile platforms (Android and iOS). This means we get more frameworks, tools and native methods for testing purposes. We’ll look at functional test-automation frameworks in the section below titled “Using Functional Test-Automation Frameworks With React Native Apps31.”

Let’s start with unit-testing capabilities32, using a JavaScript test to illustrate.

Unit Testing With Jest and Jasmine Link

By default, React Native provides Jest33 tests for unit testing, and this works for both Android and iOS. Currently, test coverage isn’t perfect, but according to Facebook, more unit-testing capabilities will be introduced in React Native, and users can already build their own.

Jest uses the Jasmine behavior-driven framework34 as the basis for testing JavaScript code. Every test case starts from a describe() function call, similar to how JUnit uses the TestCase class. The describe() function takes two parameters: the description and title of the test case, and the function to be executed. The it() function includes all of the test steps and (similar to JUnit) provides a series of expect() functions.

Here is an example of a Jasmine test script for a player application.

describe("Player", function() { var player; var song; beforeEach(function() { player = new Player(); song = new Song(); }); it("should be able to play a song", function() { player.play(song); expect(player.currentlyPlayingSong).toEqual(song); //demonstrates use of custom matcher expect(player).toBePlaying(song); }); describe("when song has been paused", function() { beforeEach(function() { player.play(song); player.pause(); }); it("should indicate the song is paused", function() { expect(player.isPlaying).toBeFalsy(); // demonstrates use of 'not' with a custom matcher expect(player).not.toBePlaying(song); }); it("should be possible to resume", function() { player.resume(); expect(player.isPlaying).toBeTruthy(); expect(player.currentlyPlayingSong).toEqual(song); }); }); // demonstrates use of spies to intercept and test method calls it("tells the current song whether the user has made it a favorite", function() { spyOn(song, 'persistFavoriteStatus'); player.play(song); player.makeFavorite(); expect(song.persistFavoriteStatus).toHaveBeenCalledWith(true); }); //demonstrates use of expected exceptions describe("#resume", function() { it("should throw an exception if song is already playing", function() { player.play(song); expect(function() { player.resume(); }).toThrow("song is already playing"); }); }); });

This basic example shows how Jasmine can be used to test the functionality of an app, but it keeps the focus on method-level testing. In addition, React Native provides some basic capabilities for testing integrated components. This works for both native and JavaScript components and enables communication between them via a bridge.

Integration Testing Link

At the moment, integration tests highlighted in the React Native community are available only for iOS and are very limited in their ability to test components. The communication goes through the bridge and requires both native and JavaScript components. For this functionality, two components are available to implement customized integration tests, RCTestRunner35 and RCTestModule36.

A basic Objective-C example for building a test skeleton of an iOS app would start like this:

@implementation ExampleTests { RCTTestRunner *_runner; } - (void)setUp { [super setUp]; _runner = RCTInitRunnerForApp(@"IntegrationTestHarnessTest", nil); } - void()testExampleTests { [_runner runTest:_cmd module:@"ExampleTests"] } @end

However, there are other ways to run integration testing and to extend it to Android and iOS. A good alternative for running both unit and integration tests is Mocha37, which provides a feature-rich JavaScript test framework that runs on Node.js38. Mocha also provides behavior-driven development (BDD), test-driven development (TDD) and QUnit interfaces for testing.

For functional UI testing, I’ll be covering the most prominent and most used test-automation frameworks, including Appium, Calabash, XCTest and a few others.

Using Functional Test-Automation Frameworks With React Native Apps

To streamline the app development process and to maximize testing coverage, we have numerous open-source test-automation frameworks to choose from.

The best choice — if your app will run on several OS platforms — is a framework that supports multiple platforms39 and provides a robust foundation for test automation. In mobile, the term “cross-platform” refers to a framework that provides the same API, tools and capabilities for both Android and iOS.

In addition, a range of great platform-specific frameworks4027 are available. Naturally, each framework has been built for a particular platform and, in most cases, is easier to adopt for that platform. In addition to Appium and Calabash, I’ll cover four platform-specific frameworks in this article: Robotium and Espresso for Android, and XCTest and EarlGrey for iOS.

Different test-automation frameworks for functional UI testing41
Different test-automation frameworks for functional UI testing. (Image: Testdroid676351422917) (View large version43)

When it comes to test automation, bear in mind that apps built with React Native are fully native on both iOS and Android; hence, functional test-automation frameworks will work fine with them.

The example I’ll use with each framework is an implementation of a very basic radio button UI.

<Radio onSelect={this.onSelect.bind(this)} defaultSelect={this.state.optionSelected - 1}> <Option color="black" selectedColor="#000000"> <Item title="First option" description="First radio button"/> </Option> <Option color="black" selectedColor="#000000"> <Item title="Second option" description="Second radio button"/> </Option> <Option color="black" selectedColor="#000000"> <Item title="Third option" description="Third radio button"/> </Option> </Radio> 

The test snippet included in each framework section below shows how the test script deals with each UI element and how clicks and other user inputs are handled. The purpose of the examples is not to provide step-by-step instructions, but rather to compare examples and show what is available for test automation today and what programming languages can be used for testing.

Cross-Platform Frameworks

As stated, React Native is not actually a cross-platform framework, but adoption of it across other platforms is easy. In the next two sections, we’ll go through two popular cross-platform test-automation frameworks for mobile testing and mobile test automation.

Appium Link

Appium44 is an open-source test-automation framework, with an inspection tool that works well for native, hybrid and mobile web apps. It uses JSONWireProtocol45 internally to interact with iOS and Android apps, using Selenium WebDriver46. Because of this, Appium works extremely well for the mobile web as well, and the use cases are very similar if Selenium is used for web testing.

In fact, Appium has been a rising star in mobile test automation47 in the last year. Originally, it was built to provide cross-platform support for both major platforms, Android and iOS.

Being cross-platform means that the framework and its scripts work exactly the same on both platforms. In addition, Appium provides fantastic programming language support48 — developers can write tests using their favorite language (for example, Java, Ruby, Python, C#), tools and environment. It’s also easy to get started, to create and maintain reusable tests, and to execute those tests on real physical devices.

When it comes React Native-powered apps, JavaScript isn’t necessarily required; tests can be written in any language. For example, Appium scripts can look like this:

driver.findElement(By.id("com.example.app:id/radio0")).click(); driver.findElement(By.id("com.example.app:id/radio1")).click(); driver.findElement(By.id("com.example.app:id/radio2")).click(); driver.findElement(By.id("com.example.app:id/editText1")).click(); driver.findElement(By.id("com.example.app:id/editText1")).sendKeys("Simple Test"); driver.findElement(By.name("Answer")).click(); // or alternatively like this: driver.findElement(By.id("com.example.app:id/button1")).click();

So, how do these WebDriver functions access apps running on devices? Basically, Appium starts a test script on the device or emulator, which then creates a server and listens for commands from the main Appium server. It is the same as the Selenium server, which gets HTTP requests from Selenium client libraries49. The difference between Android and iOS is illustrated in the picture below:

How Appium works on Android and iOS50
How Appium works on Android and iOS. (Image: Testdroid676351422917) (View large version52)

With iOS, Selenium WebDriver gets a command from the Appium script (for example, click()) and sends it in the form of JSON via an HTTP request to the Appium server53. Appium knows the automation context and sends this command to the Instruments command server, which waits for the Instruments command client to pick it up and execute it with bootstrap.js in the iOS Instruments environment. Once the command is executed, the Instruments command client sends the message back to the Appium server, which logs everything related to the command in its console. This cycle keeps going until the test script has finished.

On Android, things work almost the same way, except that the frameworks used are Selendroid and UiAutomator54. In short, Appium translates WebDriver commands to UiAutomator (API level 17 or higher) or Selendroid (API level 16 or lower) commands. On a physical device, bootstrap.jar launches a TCP server that gets commands from a TCP client. The process is similar on iOS.

If you are interested in getting started with Appium, plenty of material is available, including step-by-step instructions55 and Appium tutorials56.

Calabash Link

Another great cross-platform testing framework is Calabash57, which enables anyone to write tests for mobile applications. The main difference is that Calabash tests are written in Cucumber58. The idea behind using this sort of language for tests is awesome: The test itself is like a specification, and all tests are simple and easy to read yet executable by the automation system.

Compared to Appium, Calabash provides an easier way to create cross-platform tests for Android and iOS. This is due to the straightforward vocabulary and specification-oriented language, which makes Calabash tests identical on both platforms. The actual tests are written in Gherkin59 and run in Cucumber.

Because of these capabilities, the differences between Calabash working on Android60 and on iOS61 applications are minor. Again, there is no implication for React Native apps because all components and user interfaces are fully native to these platforms.

Calabash on Android and iOS62
Calabash on Android and iOS. (Image: Testdroid676351422917) (View large version64)

The basic testing and test-creation flow, however, remains the same. Calabash (and Gherkin) tests comprise features, scenarios and steps. The recommended approach is to complete the highest-level descriptions first: features, followed by scenarios and then the actual steps. A good rule of thumb is to create Calabash features65 first.

Calabash features, scenarios and steps66
Calabash features, scenarios and steps. (Image: Testdroid676351422917) (View large version68)

The example below shows how our application and its UI components (radio buttons, text field and button) would be implemented in Calabash:

Feature: Answer the question feature Scenario: As a valid user, I want to answer app question, I wait for text "What is the best way to test application on a hundred devices?" Then I press radio button 0 Then I press radio button 1 Then I press radio button 2 Then I enter text "Simple Test" into field with id "editText1" Then I press view with id "Button1"

Steps usually begin with one of the keywords given, then, when, and or but. However, they don’t have to; they can use * instead.

Calabash is also widely used by non-developers, and it can be used for product specifications and documentation due to its easy-to-understand language and logic. Eventually, the features and scenarios are wrapped in Ruby code.

Setting up Calabash69 and starting to work with it are easy. If you have Bundler70 and Ruby (or rbenv) installed, just hit these few lines in your console, and a Calabash environment will soon be set up:

$ gem install calabash-android $ gem install calabash-cucumber

This will take care of installing Calabash-Android and Calabash-iOS, and your journey with test automation can begin.

Platform-Specific Frameworks

When it comes to automating tests on Android and iOS apps, there are certain advantages to using platform-specific frameworks over cross-platform ones. For instance, some frameworks are built closely to SDKs and IDEs71, which are readily available while an application is under development. Let’s look at a few examples of these types of frameworks for Android and iOS.

Robotium and ExtSolo (Android) Link

Robotium72 was one of the first testing frameworks to work for native and hybrid Android apps. The UI tests created with Robotium enable functional, system and user-acceptance tests for Android apps, spanning and handling multiple Android activities. In fact, Robotium provides support for very early versions of Android, starting from API level 8.

Recently, Robotium was extended with the ExtSolo library73, which provides various useful features for app testing:

  • automatic scaling of x and y clicks for any display resolution;
  • multi-path drags;
  • automatic screenshot capture at moment of test failure;
  • mock locations (GPS coordinates);
  • change of Android device language;
  • control of Wi-Fi connection;

With Java code, tests are easy to build using any Java SDK and IDE. The primary function used in this example is findViewById, which finds a view that is identified by the id attribute. The UI element could be also identified by a name, class or some other attribute. Our code example with an id attribute would look like this:

solo.clickOnView(solo.findViewById("com.example.app:id/radio0")); solo.clickOnView(solo.findViewById("com.example.app:id/radio1")); solo.clickOnView(solo.findViewById("com.example.app:id/radio2")); solo.enterText((EditText) solo.findViewById("com.example.app:id/editText1"), "Simple Test"); solo.clickOnView(solo.findViewById("com.example.app:id/button1"));

Robotium here is trying to locate UI elements based on the id, description and other characteristics. Unfortunately, this isn’t always the best approach and does not necessarily work well with webview components. However, with the help of the ExtSolo library, users can define clicks and other interactions on UI elements that scale with the resolution. Also, hardcoding coordinates is possible, and these scale when the display resolution changes.

If you are using Robotium, then getting started with Robotium ExtSolo is easy and effortless. Just clone the repository for yourself and build the library:

$ git clone https://github.com/bitbar/robotium-extensions $ ant clean instrument

After this, place the recently built .jar file in the libs folder in your Android Studio project, and make sure your project is linked to it. All of these great additional features and services are now in your workspace.

Espresso (Android) Link

The Espresso74 testing framework provides APIs for writing UI tests to simulate user interactions for an Android app. The Espresso API75 is lightweight and provides three main components: viewMatchers, viewActions and viewAssertions.

The beauty of Espresso is that it provides automatic synchronization of test methods and UI elements that are being tested. For example, if the test script wants to press a button but the button isn’t visible on the screen yet, it will wait until this button can be pressed (i.e. it is visible and a click can happen). This makes test execution very fast because no test scripts need to include any sleep or wait commands. Also, developers do not need additional logic to handle timing-related issues.

// R class ID identifier for radio buttons onView(withId(R.id.radio0)).perform(click()); onView(withId(R.id.radio1)).perform(click()); onView(withId(R.id.radio2)).perform(click()); onView(withId(R.id.EditText1)).perform(click()); // Instead of R, we use getIdentifier onView(withId(getInstrumentation().getTargetContext().getResources() .getIdentifier("com.example.app:id/EditText1", null, null))).perform((typeText("Simple Test"))); onView(withId(getInstrumentation().getTargetContext().getResources() .getIdentifier("com.example.app:id/Button1", null, null))).perform(click());

Espresso has its own pros and cons, and due to the lightweight API, not many additional services or function calls are available to developers. For instance, you must use alternative methods to take screenshots, manage tests, output test results and more.

At Google IO 201676 Google introduced Espresso Test Recorder as an integral part of Android Studio. While the feature is not yet available, it will definitely be worth the wait.

XCTest and KIF (iOS) Link

XCTest77 is tightly coupled with Xcode but is still usable with both real iOS devices and simulators. XCTest allows developers to write tests for components at any level and also provides a framework for UI testing capabilities. XCTest tests are grouped into subclasses of XCTestCase78. Writing any tests with XCTest should be trivial to iOS developers because XCTest is fully compatible with both Objective-C and Swift.

KIF79 (short for “keep it functional”) is an iOS integration test framework that is closely related to and that uses XCTest test targets. KIF tests can be executed directly in XCTestCase or any subclass. KIF allows for easy automation of iOS applications by leveraging the accessibility attributes that the OS makes available to those with visual disabilities.

Let’s see how our UI components would look with Objective-C:

- (void)testClicksOnRadioButtons { [tester tapViewWithAccessibilityLabel:@”Radio1”]; [tester tapViewWithAccessibilityLabel:@”Radio2”]; [tester tapViewWithAccessibilityLabel:@”Radio3”]; [tester enterText:@”Simple Test” intoViewWithAccessibilityLabel:@”editText1”]; [tester tapViewWithAccessibilityLabel:@”Answer”]; }

Alternatively, with Swift, the test would look as simple as this:

testClicksOnRadioButtons() { let app = XCUIApplication() app.radiobutton[0].tap() app.radiobutton[1].tap() app.radiobutton[2].tap() app.staticTexts[“Simple Test”] app.button[0].tap() }

Note that this high-level pseudo-code requires additional code in order to fully function. If you are looking for more information on XCTest and generally on using Xcode testing capabilities, Apple has you covered80.

EarlGrey (iOS) Link

It was just earlier this year when Google open-sourced81 its functional iOS app-testing framework, named EarlGrey. Being used internally by Google, it has worked relatively well with native iOS apps — YouTube, Google Calendar, Google Photos, Google Play Music, to name a few — and has sparked some serious interest. To get started with EarlGrey82, you’ll need the Xcode environment installed and basic knowledge of iOS development.

There are a lot of similarities between EarlGrey and Espresso (yes, both are developed by Google), and their characteristics make both frameworks work and execute tests quickly. Similar to Espresso, EarlGrey tests automatically wait for events (animations, network requests, etc.) before trying to interact with the UI. This makes writing tests easier because developers do not need to worry about sleep or wait commands. In addition, the code itself is easier to maintain because it provides procedural descriptions of the test steps.

EarlGrey also contains matchers that are available from the GREYMatchers83 class. The documentation recommends using UI elements with the accessibility parameters. To identify UI elements, developers can use grey_accessibilityID() or grey_accessibilityLabel().

- (void)testBasicSelectionAndAction { [[EarlGrey selectElementWithMatcher::grey_accessibilityID(@"ClickHere")] performAction:grey_tap()]; // Example of long press with EarlGrey matchers - (void)testLongPress { [[EarlGrey selectElementWithMatcher::grey_accessibilityLabel(@"Box")] performAction:grey_longPressWithDuration(0.5f)]; [[EarlGrey selectElementWithMatcher::grey_accessibilityLabel(@"One Long Press")] assertWithMatcher:grey_sufficientlyVisible()]; // Example of multi-select, visible click on items - (void)testCollectionMatchers { id visibleSendButtonMatcher = grey_allOf(grey_accessibilityID(@"Box"), grey_sufficientlyVisible(), nil); [[EarlGrey selectElementWithMatcher:visibleSendButtonMatcher] performAction:grey_tap()]; }

Similar to XCTest, our radio button implementation isn’t that straightforward, and buttons for XCTest should be defined as iOS-supported UIElements to enable clicks and user interactions.

Conclusion

We’ve covered the basics of React Native applications and how they can be tested using various methods and frameworks. This comes up quite often, but the industry standards for mobile test automation at the functional UI level will work on React Native apps just as they do with any other native apps. The test-automation frameworks we’ve covered here are widely used for native mobile apps, hybrid apps, the mobile web as well as React Native apps.

In summary, determining the programming language that a mobile application is built on is not critical because it won’t have any influence on the test-automation frameworks that it can be tested with. As discussed, plenty of powerful test-automation frameworks are available today, which React Native apps will work with when wrapped as an APK or IPA.

What are you using for React Native app testing? Weigh in with a comment below!

(al, ml)

Footnotes Link

  1. 1 https://www.smashingmagazine.com/2016/04/the-beauty-of-react-native-building-your-first-ios-app-with-javascript-part-1/
  2. 2 https://www.smashingmagazine.com/2016/04/consider-react-native-mobile-app/
  3. 3 https://www.smashingmagazine.com/2015/01/basic-test-automation-for-apps-games-and-mobile-web/
  4. 4 https://www.smashingmagazine.com/2016/03/server-side-rendering-react-node-express/
  5. 5 https://www.smashingmagazine.com/2015/05/client-rendered-accessibility/
  6. 6 http://www.smartinsights.com/mobile-marketing/mobile-marketing-analytics/mobile-marketing-statistics/
  7. 7 https://www.smashingmagazine.com/wp-content/uploads/2016/06/01-fragmentation-opt.png
  8. 8 https://www.smashingmagazine.com/wp-content/uploads/2016/06/01-fragmentation-opt.png
  9. 9 https://facebook.github.io/react-native/docs/
  10. 10 http://testdroid.com/tech/testing-react-native-apps-on-android-and-ios
  11. 11 https://code.facebook.com/projects/176988925806765/react/
  12. 12 https://www.sencha.com/
  13. 13 http://phonegap.com/
  14. 14 http://www.appcelerator.com/
  15. 15 https://www.smashingmagazine.com/2016/04/the-beauty-of-react-native-building-your-first-ios-app-with-javascript-part-1/
  16. 16 https://www.smashingmagazine.com/wp-content/uploads/2016/06/02-react-native-architecture-opt.png
  17. 17 http://testdroid.com
  18. 18 https://www.smashingmagazine.com/wp-content/uploads/2016/06/02-react-native-architecture-opt.png
  19. 19 https://www.smashingmagazine.com/2016/04/consider-react-native-mobile-app/
  20. 20 http://trac.webkit.org/wiki/JavaScriptCore
  21. 21 https://code.facebook.com/posts/1189117404435352/react-native-for-android-how-we-built-the-first-cross-platform-react-native-app/
  22. 22 http://facebook.github.io/react/docs/test-utils.html
  23. 23 http://facebook.github.io/react/docs/test-utils.html
  24. 24 https://facebook.github.io/react-native/docs/testing.html
  25. 25 https://www.smashingmagazine.com/2015/01/basic-test-automation-for-apps-games-and-mobile-web/#different-ways-to-automate-mobile-testing
  26. 26 #cross-platform-frameworks
  27. 27 #platform-specific-frameworks
  28. 28 https://www.smashingmagazine.com/wp-content/uploads/2016/06/03-testing-react-native-opt.png
  29. 29 http://testdroid.com
  30. 30 https://www.smashingmagazine.com/wp-content/uploads/2016/06/03-testing-react-native-opt.png
  31. 31 #test-automation-frameworks
  32. 32 https://facebook.github.io/react-native/docs/testing.html#jest-tests
  33. 33 http://facebook.github.io/jest/
  34. 34 http://jasmine.github.io/
  35. 35 https://github.com/facebook/react-native/blob/master/Libraries/RCTTest/RCTTestRunner.h
  36. 36 https://github.com/facebook/react-native/blob/master/Libraries/RCTTest/RCTTestModule.h
  37. 37 https://mochajs.org/
  38. 38 https://nodejs.org/en/
  39. 39 #cross-platform-frameworks
  40. 40 #platform-specific-frameworks
  41. 41 https://www.smashingmagazine.com/wp-content/uploads/2016/06/04-test-automation-frameworks-opt.png
  42. 42 http://testdroid.com
  43. 43 https://www.smashingmagazine.com/wp-content/uploads/2016/06/04-test-automation-frameworks-opt.png
  44. 44 http://appium.io/
  45. 45 https://code.google.com/p/selenium/wiki/JsonWireProtocol
  46. 46 http://docs.seleniumhq.org/projects/webdriver/
  47. 47 http://testdroid.com/news/37-things-you-should-know-about-appium
  48. 48 http://testdroid.com/news/appium-tip-1-how-to-get-started-setup-and-run-your-first-tests
  49. 49 https://www.smashingmagazine.com/2015/01/basic-test-automation-for-apps-games-and-mobile-web/#appium-executing-tests-on-real-devices-on-a-cloud-service
  50. 50 https://www.smashingmagazine.com/wp-content/uploads/2016/06/05-appium-architecture-opt.png
  51. 51 http://testdroid.com
  52. 52 https://www.smashingmagazine.com/wp-content/uploads/2016/06/05-appium-architecture-opt.png
  53. 53 http://testdroid.com/tech/how-to-use-selenium-for-cross-browser-testing-on-mobile-devices
  54. 54 http://testdroid.com/news/appium-tip-16-finding-elements-with-appium-automation-engine
  55. 55 https://blogs.technet.microsoft.com/antino/2014/09/22/how-to-set-up-a-basic-working-appium-test-environment/
  56. 56 http://testdroid.com/news/37-things-you-should-know-about-appium
  57. 57 https://github.com/calabash
  58. 58 https://cucumber.io/
  59. 59 https://github.com/cucumber/cucumber/wiki/Gherkin
  60. 60 https://github.com/calabash/calabash-android
  61. 61 https://github.com/calabash/calabash-ios
  62. 62 https://www.smashingmagazine.com/wp-content/uploads/2016/06/06-calabash-diagram-opt.png
  63. 63 http://testdroid.com
  64. 64 https://www.smashingmagazine.com/wp-content/uploads/2016/06/06-calabash-diagram-opt.png
  65. 65 http://testdroid.com/tech/creating-the-right-calabash-tests
  66. 66 https://www.smashingmagazine.com/wp-content/uploads/2016/06/07-calabash-features-scenarios-steps-opt.png
  67. 67 http://testdroid.com
  68. 68 https://www.smashingmagazine.com/wp-content/uploads/2016/06/07-calabash-features-scenarios-steps-opt.png
  69. 69 http://testdroid.com/tech/how-to-setup-and-get-started-with-calabash
  70. 70 http://bundler.io/
  71. 71 http://android-developers.blogspot.fi/2016/05/android-studio-22-preview-new-ui.html
  72. 72 https://github.com/RobotiumTech/robotium
  73. 73 https://github.com/bitbar/robotium-extensions
  74. 74 https://google.github.io/android-testing-support-library/docs/espresso/index.html
  75. 75 https://google.github.io/android-testing-support-library/docs/espresso/cheatsheet/
  76. 76 https://www.youtube.com/watch?v=isihPOY2vS4
  77. 77 https://developer.apple.com/library/ios/documentation/DeveloperTools/Conceptual/testing_with_xcode/
  78. 78 https://developer.apple.com/library/tvos/documentation/DeveloperTools/Conceptual/testing_with_xcode/chapters/04-writing_tests.html
  79. 79 https://github.com/kif-framework/KIF
  80. 80 https://developer.apple.com/library/tvos/documentation/DeveloperTools/Conceptual/testing_with_xcode/chapters/03-testing_basics.html
  81. 81 http://google-opensource.blogspot.com/2016/02/earlgrey-ios-functional-ui-testing.html
  82. 82 http://testdroid.com/news/how-to-get-started-with-earlgrey-ios-functional-ui-testing-framework
  83. 83 https://github.com/google/EarlGrey/blob/master/EarlGrey/Matcher/GREYMatchers.m
SmashingConf New York

Hold on, Tiger! Thank you for reading the article. Did you know that we also publish printed books and run friendly conferences – crafted for pros like you? Like SmashingConf Barcelona, on October 25–26, with smart design patterns and front-end techniques.

↑ Back to topTweet itShare on Facebook

Advertisement

How to Delay Posts From Appearing in WordPress RSS Feed

artificial intelligence 5291510 1920

Recently, one of our readers asked if it’s possible to delay posts from appearing in the WordPress RSS feed? Delaying posts in your RSS feed can save you from accidental publishing and beat content scrapers in SEO. In this article, we will show you how to delay post from appearing in WordPress RSS feed.

Why Delay Feed in WordPress?

Sometimes you may end up with a grammar or spelling mistake in your article. The mistake goes live and is distributed to your RSS feed subscribers. If you have email subscriptions on your WordPress blog, then those subscribers will get it as well.

Spelling mistakes go live to your RSS feed subscribers

By adding a delay between your RSS feed and your live site, you get a little time window to catch an error on a live site and fix it.

RSS feeds are also used by content scraping websites. They use it to monitor your content and copy your posts as soon as they appear live.

If you have a new website with little authority, then a lot of times these content scrapers may end up beating you in the search results.

Content scrapers use RSS feeds to auto-publish your posts

By delaying an article in the feed, you can give search engines enough time to crawl and index your content first.

Having said that, let’s see how to easily delay posts from appearing in WordPress RSS feed.

Delaying Posts in WordPress RSS Feed

This method requires you to add little code into WordPress. If this is your first time adding code manually, then take a look at our beginner’s guide on pasting snippets from web into WordPress.

You need to add the following code to your theme’s functions.php file or in a site-specific plugin.

 function publish_later_on_feed($where) { global $wpdb; if ( is_feed() ) { // timestamp in WP-format $now = gmdate('Y-m-d H:i:s'); // value for wait; + device $wait = '10'; // integer // http://dev.mysql.com/doc/refman/5.0/en/date-and-time-functions.html#function_timestampdiff $device = 'MINUTE'; //MINUTE, HOUR, DAY, WEEK, MONTH, YEAR // add SQL-sytax to default $where $where .= " AND TIMESTAMPDIFF($device, $wpdb->posts.post_date_gmt, '$now') > $wait "; } return $where; } add_filter('posts_where', 'publish_later_on_feed'); 

This code checks to see if a WordPress feed is requested. After that it sets the current time and the time you want to add as delay between post’s original date and the current time.

After that it adds the timestamp difference as the WHERE clause to the original query. The original query will now only return the posts where timestamp difference is greater than the wait time.

In this code we have used 10 minutes as $wait or delay time. Feel free to change that into any number of minutes you want. For example, 60 for 1 hour or 120 for two hours.

We hope this article helped you learn how to easily delay posts from appearing in WordPress RSS feed. You may also want to see our guide on how to show content only to RSS subscribers in WordPress.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

I Contributed To An Open-Source Editor, And So Can You

artificial intelligence 5291510 1920

I Contributed To An Open-Source Editor, And So Can You

A few months ago, Jason Grigsby’s post about autocompletion in forms1 made the rounds. I loved the idea of allowing users to fill in their credit card details by taking a picture of their card. What I didn’t love was learning all of the possible values for autofill by heart2. I’m getting lazy in my old age.

Lately, I’ve gotten spoiled from using an editor that does intelligent autocompletion for me, something that in the past only massive complex IDEs offered. Opening my editor of choice, I created an input element and added an autocomplete attribute, only to find that the code completion offered me the state of on or off. Disappointing.

What I wanted was the following:

All possible values for autocomplete offered by this editor

The great thing about our development environments these days is that we build the tools we use in the technologies that we use them to write. Yes, this sounds confusing — we’ve reached code Inception. Node.js3 allows us to run JavaScript on the back end, and with Electron4 we can create installable applications for all platforms using HTML, CSS and JavaScript.

Atom5 was the first editor to use this technology and to allow for contributions by being open source, closely followed by Microsoft’s Visual Studio Code6.

Almost all of the other editors in use allow us to write extensions, plugins or snippet collections in various formats. I deliberately didn’t want to write a plugin or extension, but rather wanted to add this functionality to the core of the editor. Plugins, extensions and snippets have their merits; for example, they are easy to update. The problem is that they need to be found and installed per user. I considered autocompletion too important and wanted to hack the editor itself instead.

Both Atom and Visual Studio Code are available on GitHub and come with instructions on how to extend them. The challenge is that this can feel daunting. I’m here today to show you that it isn’t as tough as you might think. Visual Studio Code is my current editor, and it features amazing autocompletion. That’s what I wanted to tackle.

Extensible and customizable tools are nothing new. Most of what we use can be extended in one way or another, whether in the form of add-ons, plugins or specialist languages. The first editor I used in anger was Allaire and Macromedia’s HomeSite7, which had funky languages like VTML8, WIZML9 and JScript, the Windows version of JavaScript at the time. I wrote a lot of extensions and toolbars for that editor, which very much boosted the productivity of my company back then.

Thankfully, these days, companies understand that offering specialist languages is time wasted, when the web stack has grown to become much more interesting to build applications with.

If you download Visual Studio Code now, you will see that my autocomplete feature is a part of it. And here is how I did that.

1. Complain Link

My first step was to go to Visual Studio Code’s GitHub repository10 and file an issue11 requesting this feature for the editor. This could also be your final step if you don’t want to do it yourself. Someone else who is looking for something to do for the project might find your complaint and tackle it for you. In my case, I wanted to find out more.

2. Fork The Code Link

Instead of just filing an issue, I went to the GitHub repository and forked the code. I used my personal account for this. You don’t need to be affiliated with Microsoft or get added to a special group. The repository is public and open. Everybody is welcome. There is even a code of conduct for contributions12, which means that people should be playing nice. I downloaded the code to my hard drive and followed the instructions on how to build the editor locally.

3. Get The Development Workflow In Place Link

Visual Studio Code is written in Node.js and TypeScript. The development flow starts with a script provided by the team, which gives me a development version of Visual Studio Code running next to the one I am using. A script running on the command line ensures that my changes are captured and that every time I save my code, the development version of the editor restarts and I can test the changes. All of this is nicely documented, from building and running the code from source13 to setting up the development workflow14. And it is independent of platform — you get instructions for Windows, Linux and Mac OS X.

You can see what this looks like on my computer in the following screenshot. The large-view editor (1) is the one I use to code the other; the one on the right (3) is the development edition; and on the bottom (2) is the script creating the new version of the development edition. Writing an editor in an editor does feel odd, but you get used to it.

Figure 215
(View large version16)

Don’t get discouraged if all of this doesn’t work for you on the first go. I hit a few snags and had to turn to Google and StackOverflow for solutions. The Node.js community was very helpful.

4. Write The Functionality Link

Next, I was ready to go all in and use TypeScript to write some clever code. I understood that this is where a lot of people throw in the towel, considering it too tough to continue.

My biggest issue was that I had no idea where to begin with this functionality. So, I did what we all do: I did a full text search for autocomplete in the whole project. Using this highly scientific approach, I found an htmlTags.ts file17 full of tag definitions and arrays of attribute values. I looked up the input element and found this:

input: new HTMLTagSpecification( nls.localize('tags.input', 'The input element represents a typed data field, usually with a form control to allow the user to edit the data.'), ['accept', 'alt', 'autocomplete:o', 'autofocus:v', 'checked:v', 'dirname', 'disabled:v', 'form', 'formaction', 'formenctype:et', 'formmethod:fm', 'formnovalidate:v', 'formtarget', 'height', 'inputmode:im', 'list', 'max', 'maxlength', 'min', 'minlength', 'multiple:v', 'name', 'pattern', 'placeholder', 'readonly:v', 'required:v', 'size', 'src', 'step', 'type:t', 'value', 'width']), 

That autocomplete:o looked interesting, so I checked where o is defined. Here’s what I found:

var valueSets: IValueSets = { … o: ['on', 'off'], … } 

That looked like what was happening when I added an autocomplete attribute. To change that, I went to the standard definition of possible autocomplete values18 and copied them.

I created a new value set named inputautocomplete and pasted in the values:

var valueSets: IValueSets = { … inputautocomplete: ['additional-name', 'address-level1', 'address-level2', 'address-level3', 'address-level4', 'address-line1', 'address-line2', 'address-line3', 'bday', 'bday-year', 'bday-day', 'bday-month', 'billing', 'cc-additional-name', 'cc-csc', 'cc-exp', 'cc-exp-month', 'cc-exp-year', 'cc-family-name', 'cc-given-name', 'cc-name', 'cc-number', 'cc-type', 'country', 'country-name', 'current-password', 'email', 'family-name', 'fax', 'given-name', 'home', 'honorific-prefix', 'honorific-suffix', 'impp', 'language', 'mobile', 'name', 'new-password', 'nickname', 'organization', 'organization-title', 'pager', 'photo', 'postal-code', 'sex', 'shipping', 'street-address', 't].sort()el-area-code', 'tel', 'tel-country-code', 'tel-extension', 'tel-local', 'tel-local-prefix', 'tel-local-suffix', 'tel-national', 'transaction-amount', 'transaction-currency', 'url', 'username', 'work'], … } 

I then went to all of the definitions of elements that support autocomplete and replaced the o with my own inputautocomplete:

input: new HTMLTagSpecification( nls.localize('tags.input', 'The input element represents a typed data field, usually with a form control to allow the user to edit the data.'), ['accept', 'alt', 'autocomplete:inputautocomplete' … ]), 

I saved my changes; the script rebuilt the editor; I tried the development version of the editor; and autocomplete worked the way I wanted it to.

5. Send A Pull Request Link

That was that. I committed my changes to Git (inside Visual Studio Code19), went to GitHub and added a pull request. A few days later, I got a comment saying that my pull request went through and that what I did would be part of the next build.

6. Be Baffled Link

Frankly, I didn’t think this was amazing enough to warrant a change to the core of the editor. I just wanted to play around. Many of you might think the same about the work you do. And that’s the thing: We’re wrong. Contributing to open-source projects doesn’t require you to be an amazing developer. Nor does it require you to be famous or part of the in-crowd. Sometimes all you need to do is look at something, analyze it and find a way to improve it.

It is up to us to make the tools we use better. If you see a way to contribute to an open-source project, don’t be shy. You might be the one who comes up with an idea so obvious and so simple that others have overlooked it. You might be the one who makes something more usable or nicer to look at. We all have skills to contribute. Let’s do more of that.

(al)

Footnotes Link

  1. 1 https://cloudfour.com/thinks/autofill-what-web-devs-should-know-but-dont/
  2. 2 https://html.spec.whatwg.org/multipage/forms.html#autofill
  3. 3 https://nodejs.org/en/
  4. 4 http://electron.atom.io/
  5. 5 https://atom.io/
  6. 6 http://code.visualstudio.com/
  7. 7 https://en.wikipedia.org/wiki/Macromedia_HomeSite
  8. 8 https://en.wikipedia.org/wiki/VTML
  9. 9 http://www.ulitzer.com/node/41695
  10. 10 https://github.com/Microsoft/vscode/
  11. 11 https://github.com/Microsoft/vscode/issues/7142
  12. 12 https://opensource.microsoft.com/codeofconduct/
  13. 13 https://github.com/Microsoft/vscode/wiki/How-to-Contribute#build-and-run-from-source
  14. 14 https://github.com/Microsoft/vscode/wiki/How-to-Contribute#development-workflow
  15. 15 https://www.smashingmagazine.com/wp-content/uploads/2016/08/editor-large-preview-opt.png
  16. 16 https://www.smashingmagazine.com/wp-content/uploads/2016/08/editor-large-preview-opt.png
  17. 17 https://github.com/Microsoft/vscode/blob/master/src/vs/languages/html/common/htmlTags.ts
  18. 18 https://html.spec.whatwg.org/multipage/forms.html#autofill
  19. 19 https://code.visualstudio.com/docs/editor/versioncontrol
SmashingConf New York

Hold on, Tiger! Thank you for reading the article. Did you know that we also publish printed books and run friendly conferences – crafted for pros like you? Like SmashingConf Barcelona, on October 25–26, with smart design patterns and front-end techniques.

↑ Back to topTweet itShare on Facebook

Advertisement

How to Change the Author of a Post in WordPress

artificial intelligence 5291510 1920

Do you want to change the author of a post in WordPress? Sometimes you may need to display a different author, then the person who added the post in WordPress. You do not need to copy and paste the entire WordPress post with a different user account. In this article, we will show you how to easily change the author of a post in WordPress with just a few clicks.

Before You Change The Author of a Post in WordPress

If you just want to show your own name on a post written by some other user on your WordPress site, then you are ready to follow the instructions in this article.

On the other hand, if you want to show a different user as author, then first you need to make sure that this user exists on your WordPress site. See our guide on how to add new users and authors in WordPress for detailed instructions.

You can see and manage all users on your WordPress site by visiting the Users page when logged in with your WordPress administrator account.

Managing users in WordPress

If you just want to change the way your name is displayed, then check out our guide on how to add or change your full name in WordPress.

Having said that, let’s see how to quickly and easily change the author of a post in WordPress.

Changing Author of a WordPress Post

First you need to edit the post or page where you want to change the author name. On the post edit screen, you need to click on the Screen Options menu at the top right corner of the screen.

Screen Options button

This will show a flydown menu on the screen with a bunch of options. You need to check the box next to ‘Author’ option.

Enable author box on posts screen

After that, you need to scroll down on the post edit screen just below the post editor. You will see the Author box there.

Simply click on the drop down menu and select a different author.

Select an author for the post

Don’t forget to click on the Save Draft or Update button to save your changes.

Save your changes by clicking on update or save draft button

That’s all, you have successfully changed the author of a post in WordPress.

Quickly Change Author for Multiple Posts in WordPress

Changing author by editing a post is easy. However, if you have to do this for multiple posts, then it would take quite a lot of time to do that.

There is an easier way to quickly change author for multiple WordPress posts at once. To bulk update authors, click on the Posts menu from your WordPress admin bar. This will list all the posts on your WordPress site.

By default, WordPress shows 20 posts per page. If you want to display more posts, then you need to click on the Screen Options and change the number of posts you want to display.

Show more posts in admin area

Now you need to select the posts where you want to change the author. After selecting posts, select ‘Edit’ from ‘Bulk Actions’ dropdown menu and then click the ‘Apply Button’.

Bulk edit posts in WordPress

WordPress will now show you Bulk Edit metabox. You need to select the new author by clicking on the dropdown menu next to Author option.

Bulk edit author for multiple posts in WordPress

Don’t forget to click on the ‘Update’ button to store your changes.

That’s all, you have successfully changed the author for multiple WordPress posts without editing them individually.

We hope this article helped you learn how to change the author of a post in WordPress. You may also want to see our comparison of the best WordPress backup plugins.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

Five Rules Of App Localization In China: Money, Dating And App Store

artificial intelligence 5291510 1920

Five Rules Of App Localization In China: Money, Dating And App Store

I recently sat down with Rock Zhang, a Chinese mobile entrepreneur. Rock is my classmate from business school, and we have both worked in the mobile industry for a while. In an age when the best marketing is good product management, Rock knows how to make millions of Chinese users fall in love with an app. I asked him to share his thoughts on app localization.

1
Screenshots from the most popular apps on China’s iOS App Store show some of the best practices to follow when localizing for the Chinese mobile market. (Large preview2)

For me, China has always been a hard market to crack. I’ve marketed several mobile apps in European and US markets, and my apps have been featured many times in the App Stores in Russia, Israel, Spain, Germany and the US. But in China, our growth was stalling, and I don’t think we ever got a request for promotional artwork to be featured in the App Store. Truth be told, my “Asian expansion strategy” usually boiled down to hiring freelance translators through Elance to help me localize App Store pages in Chinese, Korean and Japanese.

Soh Nee, Kevin and Eriko, the freelancers who I hired to work on several apps, would log into Weblate, a free open-source web-based translation system, and translate strings of text for in-app content. To localize App Store pages, I would send them screenshot designs and copy via email and Google Docs. The translators charged per source word count. It was cheap, but the approach was faulty at best. I feel the pain of many app developers and marketers who want to branch out to the East (especially now that Chinese App Store revenue has doubled over the last year) but lack resources, money, knowledge or other.

I’m not an expert in China. I’m a marketer and a Belarus-born European transplant in California. But I wanted to put together some kind of a beginner’s guide to localization in China for someone in design, marketing and product management who, like me, has little knowledge of Asia but a lot of ambition to grow their product overseas. Together with my good friend Bruce Wong, who is a cultural expert in Asia and has years of design thinking and user experience grooming at Stanford’s d.school, we’ve done research and come up with several simple localization tips. And we consulted Rock Zhang, the industry expert, to sketch out a general overview of the mobile market in China.

In this article, we’ll look at the top Chinese apps, including local market leaders such as Dianping, the Yelp of China, and the few US apps that are successful in China, such as the NBA app and Uber, and discuss how content, graphics and tone can make or break an app’s success.

Chinese App Market: Android Versus iOS Link

As tantalizing as it sounds for marketers to tap into the pool of well over 500 million smartphone users, China has historically been a hard market to crack. With the ban of Google Play in China and the hundreds of local app stores that have sprung up as a result, there’s no streamlined process for submitting apps on the Android market; getting featured and ranked is subject to negotiation, and IP rights regulation is lax.

Over 200 app stores compete on the Android market in China, but only the five big players3 truly own it: 360 Mobile Assistant4, YingYongBao of Tencent5, Baidu Mobile Assistant6, Wan Dou Jia (Pea Pod) and PP Assistant7. Many different stores for Android means different terms for developers. “The revenue sharing depends on the store, usually 50/50. For Tencent, it can be as high as 70/30, and the store takes the majority of the revenue,” Rock Zhang says.

“If you want to get your app featured on one or more of the multiple Chinese app stores, be prepared to negotiate,” Rock told me. Getting featured in China on the Android market is mostly about guanxi, the Chinese term for connections and networking. For an exclusive launch, you can negotiate rankings, getting featured and even revenue-sharing. The way it works is that you localize an app and submit the APK (Android application package) to several app stores. Then, you talk to the app stores’ reps and see what they offer in exchange for the right to be the first one to have it.

For iOS, Apple has made the process of app submission and approval more straightforward in China. The App Store has navigated China’s restrictive Internet policies and paved the path to local hearts and wallets after partnering with the country’s most popular payment service, UnionPay. Now, app developers looking to bring their product to the Chinese market can do so simply by adding Chinese localization. Seems easy: Translate App Store screenshot captions and in-app text, then add Simplified Chinese as a new language in iTunes Connect (the iOS developer’s dashboard). Not so fast.

Adding to the complexity of introducing your app to China is the huge influence of ecosystems belonging to China’s biggest tech players: Tencent, Alibaba and Baidu. Tencent’s WeChat is a prime example of the “app within an app” trend in China, where users can order food, request taxis and pay friends, all within their social messaging platform. Becoming a part of an ecosystem can give your app a huge boost because millions of users are a part of it (Wechat broke the 700 million mark 8 in early 2016). However, committing to an ecosystem does come with some disadvantages — namely, agreeing to be an exclusive app for one of the big three companies. This double-edged sword is yet one more layer to understand before you begin to localize for China.

Competing in China is tricky. To appeal to Chinese audiences, you need to go above and beyond word-for-word translation and adapt the app’s content and positioning for local consumers, potentially seeking partnerships with Chinese players to achieve maximum success. Here are a few rules to get you started.

Marketing To Chinese Users: Five Rules To Play By Link

Keep It Casual Link

This rule applies not only to the linguistic aspect of localization, but also to the higher-level approach to marketing and positioning for Chinese users. Top apps in the Chinese App Store speak to users on a personal level and in a helpful and simple tone.

For example, apps such as Taobao9 and Iqiyi10 cleverly describe a screenshot’s feature in four to six characters, followed by easy-to-understand specifics.

Screenshot from Iquyi app promoting its celebrity video platform11
Screenshot from Iqiyi promoting its celebrity video platform: “Iqiyi Bubbles – A more wonderful way to watch videos of famous stars” (Large preview12)

When localizing your screenshot’s caption, don’t cut corners with a simple translation tool. Instead, go with a trusted translator or service familiar with current Internet lingo and slang in China.

Chinese app localization13
(Large preview14)

Make It Social Link

Even when they are not primarily social, the most successful Chinese apps demonstrate some social or sharing ability in one or some of their screenshots in the App Store. Mainstream users in China don’t use social platforms such as Facebook and Twitter because of the government ban (they would have to access those and other banned websites through a VPN, which is too costly for many Chinese). However, it is important to add some social layer to boost engagement. WeChat15 and Weibo16, the WhatsApp and Twitter of China, are great ways to integrate social into your app.

App localization in China17
Eleme, a food delivery startup, allows friends to conveniently request their own meals in one order through WeChat’s group chat integration. (Large preview18)

Money, Money, Money Link

Localizing in China is no small feat, so prepare to adapt to the expectations of local users. It’s a developing country — making and saving money is a big goal for many Chinese smartphone users. In a country where the savings rate hovers around 50%19, more than double than that of the US, app developers and marketers understand that savings and discounts are a huge hit with Chinese users.

One striking example is the Chinese tradition of sending red envelopes (hong bao) filled with money around the Chinese New Year. This ritual has been directly digitized into virtual hong bao that users can send to each other. The trend has caught on not only among payment apps, but also in other categories of apps.

WeChat20
WeChat’s hong bao feature, red envelopes with real money that users can give away within the messaging app. (Image source21)

If yours is an e-commerce app, then explicitly showing discounts of 50%, 20%, even 5% is enough to draw the attention of thrifty Chinese mobile shoppers. Local mobile publishers have also taken the lead in using financial incentives to make their apps stickier. Dianping, the Yelp of China, draws and retains users through its amazing selection of coupons in many of its listed restaurants. For app developers, business partnerships and cross-promotions with coupons and rebates are a very effective way to attract users.

App localization in China22
Dianping users can enjoy discounts with lightning deals when they pay the bill with their phones — up to 50% off as advertised. (Large preview23)

Original Content Rules Link

As you walk on the street or take a subway in China, you’ll notice that everyone is looking down at their screens. Mobile content is constantly being devoured, and fresh content is always being sought out. Thanks to companies such as Xiaomi24 and innovative smartphone manufacturing, more and more people in China are becoming owners of Internet-enabled devices. China’s smartphone penetration rate has reached 50%25, which, for a country with a population of over 1.4 billion, translates to a lot of eyeballs and screens.

Youku26, which might be thought of as the Chinese YouTube but is actually more like the Chinese Netflix, is a leader in producing and distributing original content on the Internet. However, you don’t have to be a big media company to promote original content. Even social media apps are touting their original content from users. Although this tip depends on the app you’re trying to localize, if you do have original content to show, definitely make it clear in the App Store.

Users can watch original content on Iqiyi’s stories platform27
Users can watch original content on Iqiyi’s stories platform. (Large preview28)

Obey Cultural Norms Link

As with all localization efforts, pay attention to cultural norms, particularly in China. Some things that are considered normal and mainstream in the West, such as a dating app like Tinder, are untouchable subjects. Momo29, somewhat of an equivalent of Tinder in China, has an entirely different approach, refraining from suggestive, racy photos of attractive males and females. Instead, the App Store page features balanced genders and positions the app as a way for people to meet up and socialize.

Genders are balanced, and profile pictures are tame in Momo’s initial App Store screenshot30
Genders are balanced and profile pictures are tame in Momo’s initial App Store screenshot. (Large preview31)

But that doesn’t mean you always have to play it safe and not take a more risqué approach. In fact, one of Iqiyi’s screenshots features attractive female “anchors” and exotic sports cars. This shamelessly male-oriented approach, perhaps outlandish for app stores in the West, makes sense with Iqiyi’s large segment of young male users. While gender norms are one cultural difference, there are also different norms with age, income, occupation and more, making it very important to understand the nuances of Chinese culture for situations related to your app.

Long-lasting cultural norms have indeed influenced Chinese behaviors and mindsets around mobile, but keeping up with recent and emerging cultural trends can also be crucial to localization success. The tuhao, a term that originally referred to wealthy Chinese local landlords but now applies to uncouth Chinese nouveau riche with ostentatious taste32, has played a role in changing how the Chinese, especially younger ones, view money. Often the butt of jokes, tuhao have become a mainstream topic in Chinese society and are blamed for any showy displays of wealth — the Chinese have even given the gold iPhone 5s and 6 an apt popular nickname33, tuhao jin (tuhao gold). With all of the tuhao backlash, no one wants to be called out as a tuhao by their friends, so Alipay34, the world’s largest mobile payments platform, reassures potential users that they don’t have to worry about “showing off” when giving red envelopes (see rule 3).

Knowing cultural norms is one step, and pinning down the segment you’re targeting is another. Consulting an expert or doing your own user research will reveal the kinds of cultural overtones that your app should avoid — or highlight.

The tips above offer a starting point to plan your localization strategy in China. While native Chinese apps dominate the many app stores in China, the smashing success of a few Western challengers shows that staying the course and heeding important cultural distinctions is imperative for any successful venture into the Chinese market.

Case Study 1: Wording Matters: How Uber Takes Over China With Red Cars And “The People’s Taxi” Link

With one of the very few foreign apps in the top charts in China, Uber takes localization seriously. With a strong commitment to hyper-localizing35 in the many international markets where the ride-sharing app operates, Uber is intensely focused on winning the Chinese market, which entails tailoring its service to Chinese consumers. Rather than the usual moving black car icons on the app’s map, Uber drivers in China are represented with red cars36 — a welcome nod to both communist history and the auspicious cultural meaning of red in China. City-specific localization caters even further to local riders. In addition to the regular UberX and UberBlack services, Tianjin, near Beijing, has “The People’s Uber,” and the cosmopolitan hub of Shanghai has UberEnglish for English-speaking drivers.

In China, Uber drivers are represented with red cars instead of the usual black.37
In China, Uber drivers are represented with red cars instead of the usual black.

Case Study 2: Make Friends With Locals: How NBA Partners With Tencent To Stream Locally Curated Content In China Link

The NBA, which has a huge fanbase in China, has taken its time to launch a mobile app that truly engages its Chinese fans. Launched in January 2016 and racking 105,000 downloads in the first few hours38, the app gives 11 million Chinese fans access to game recaps and behind-the-scenes footage. Through a partnership with Tencent to stream games and feature content, the NBA China app has a wide reach with China’s growing base of smartphone and tablet users. Player and historical statistics are customized for Chinese fans, for whom some NBA players are more popular than they are in the US.

Even if you don’t have the resources and connections of companies such as Uber and the NBA, following their intense focus on Chinese consumers and culture is a good way to get started. Small things, like Uber’s red cars and “The People’s Uber,” add a delightful touch for Chinese users as they choose between the multitude of competing apps. Customized content, as the NBA’s China app shows, is a must for growing user engagement. Even with the excitement of China’s current mobile market, playing patiently like the NBA and finding the right partnership is sometimes the best way to survive and thrive in China’s intensely competitive mobile market.

Conclusion Link

Many people think localization is as simple as translating in-app content and app store pages. It’s more complex than that.

While truly understanding the Chinese market and getting localization right is a long and involved process, we hope that the few valuable tips shared here get you started on the right path.

  • Keep your marketing message casual and cool (hire a translator familiar with the local slang).
  • Skip the Facebook authentication. Integrate with WeChat and Weibo instead.
  • Offer deals and coupons for money-savvy Chinese users.
  • If your app offers fresh and original content, showcase it in the first screenshot.
  • Understand the general culture, but pin down the segment you’re targeting first and play up to different demographics, showcasing it in the first screenshot.
  • Don’t underestimate the importance of details such as color and wording.
  • Seek local partnerships to help you curate and customize content.

More than many nations, China is a country where language and tone carry nuanced differences that can be easily overlooked with hasty translation. Getting the message right is critical, but if you go beyond the language and adopt a mindset of cultural awareness, the payoff will be well worth it.

Further Resources Link

  1. China Internet Watch.39 A comprehensive website dedicated to all things Internet-related in China. Its mobile section is a great place to keep updated on the latest mobile app trends in China.
  2. AppInChina.40 A full-service marketing agency specializing in Chinese app store localization and promotion. It has a useful tool for identifying similar apps already existing on Chinese app stores.
  3. Geert Hofstede.41 An interactive tool that allows you to explore a country’s culture on the four core Hofstede dimensions.
  4. web2asia.42 Another agency for Chinese localization. Its blog articles are a great primer on Chinese e-commerce and search marketing.
  5. China Web Design Trends 2015.43 Kendra Schaefer for Smashing Magazine on the latest web design trends and digital habits in China.
  6. Color Perception Considerations in Marketing Design for Chinese Market.44 A great resource to consult for learning about what colors mean in their marketing implications in China.

(da, ml, al, il)

Footnotes Link

  1. 1 https://www.smashingmagazine.com/wp-content/uploads/2016/08/Chinese-App-Store-Feature-Large-opt.jpg
  2. 2 https://www.smashingmagazine.com/wp-content/uploads/2016/08/Chinese-App-Store-Feature-Large-opt.jpg
  3. 3 http://www.iimedia.cn/40366.html
  4. 4 http://developer.360.cn/
  5. 5 http://sj.qq.com/myapp/
  6. 6 http://shouji.baidu.com/
  7. 7 http://www.25pp.com/
  8. 8 http://www.businessinsider.com/wechat-breaks-700-million-monthly-active-users-2016-4
  9. 9 https://www.taobao.com/
  10. 10 http://www.iqiyi.com/
  11. 11 https://www.smashingmagazine.com/wp-content/uploads/2016/08/Iqiyi-large-preview-opt.png
  12. 12 https://www.smashingmagazine.com/wp-content/uploads/2016/08/Iqiyi-preview-opt.png
  13. 13 https://www.smashingmagazine.com/wp-content/uploads/2016/07/02-google-translate-opt.png
  14. 14 https://www.smashingmagazine.com/wp-content/uploads/2016/07/02-google-translate-opt.png
  15. 15 http://www.wechat.com/en/
  16. 16 http://weibo.com/login.php
  17. 17 https://www.smashingmagazine.com/wp-content/uploads/2016/08/eleme-large-preview-opt.png
  18. 18 https://www.smashingmagazine.com/wp-content/uploads/2016/08/eleme-large-preview-opt.png
  19. 19 http://www.cnbc.com/2015/10/25/china-savings-rate-versus-the-world-in-a-chart.html
  20. 20 https://www.smashingmagazine.com/wp-content/uploads/2016/08/alipay-preview-opt.png
  21. 21 http://a16z.com/2016/07/24/money-as-message/
  22. 22 https://www.smashingmagazine.com/wp-content/uploads/2016/08/dianping-large-preview-opt.png
  23. 23 https://www.smashingmagazine.com/wp-content/uploads/2016/08/dianping-large-preview-opt.png
  24. 24 http://www.mi.com/en/
  25. 25 http://www.statista.com/statistics/257045/smartphone-user-penetration-in-china/
  26. 26 http://www.youku.com/
  27. 27 https://www.smashingmagazine.com/wp-content/uploads/2016/08/iqiyi-story-platform-large-preview-opt.png
  28. 28 https://www.smashingmagazine.com/wp-content/uploads/2016/08/iqiyi-story-platform-large-preview-opt.png
  29. 29 https://www.immomo.com/?v=en
  30. 30 https://www.smashingmagazine.com/wp-content/uploads/2016/08/momo-mobile-app-large-preview-opt.png
  31. 31 https://www.smashingmagazine.com/wp-content/uploads/2016/08/momo-mobile-app-large-preview-opt.png
  32. 32 http://shanghaiist.com/2015/09/23/tuhao_proposal.php
  33. 33 http://sinosphere.blogs.nytimes.com/2013/10/15/yet-another-way-to-mock-chinas-new-rich/
  34. 34 https://global.alipay.com/ospay/home.htm
  35. 35 https://www.buzzfeed.com/johanabhuiyan/uber-takes-over-the-world?utm_term=.mqobBYBXR#.rmLx9X94L
  36. 36 http://www.huffingtonpost.com/2015/05/04/uber-beijing-communist_n_7203624.html
  37. 37 https://www.smashingmagazine.com/wp-content/uploads/2016/07/10-uber-opt.png
  38. 38 http://www.ibtimes.com/nba-china-mobile-app-launches-heres-why-chinese-fans-wanted-basketball-phones-2354301
  39. 39 http://www.chinainternetwatch.com
  40. 40 http://www.appinchina.co
  41. 41 https://geert-hofstede.com/china.html
  42. 42 http://www.web2asia.com
  43. 43 https://www.smashingmagazine.com/2015/02/china-web-design-trends-2015/
  44. 44 http://sampi.co/color-perception-considerations-in-marketing-design-for-chinese-market/#ixzz4EngizZ8A
SmashingConf New York

Hold on, Tiger! Thank you for reading the article. Did you know that we also publish printed books and run friendly conferences – crafted for pros like you? Like SmashingConf Barcelona, on October 25–26, with smart design patterns and front-end techniques.

↑ Back to topTweet itShare on Facebook

Web Development Reading List #150: Less Code, GitHub’s Security, And The Morals Of Science

artificial intelligence 5291510 1920

Web Development Reading List #150: Less Code, GitHub’s Security, And The Morals Of Science

There is a lot to learn this week. It starts with non-technical things like going for a walk to refresh your mind and finishes with how to prevent reverse XSS attacks in forms. But it doesn’t matter whether you learn how to build self-contained web components using the new specification or to maximize the efficiency of your Angular 2 app or just how you can write less code. What matters is that you keep asking questions and that you try to get better and smarter at your craft.

General Link

  • Heydon Pickering shares tips on writing less code1 to make your developer life easier. Something we all should remember.

Tools & Workflows Link

  • Nucleus52 is certainly not the first living style guide generator but it’s still worth sharing. The Node.js module fits into existing projects, follows the Patternlab splitting by default, and has a nice layout where you easily find the things you’re looking for.
  • If you ever lost a stash in git, here are a few tips on how to recover dropped stashes3.
4
Nucleus52 is a living style guide generator that fits in well in both new and existing projects.

Security Link

  • Matthew Green asks himself if Apple’s cloud key vault is a crypt backdoor6. In his explanatory answer, he shares why Apple’s method of using Hardware Security Modules is pretty clever and maybe worth learning more about if you’re interested in storing sensitive user data behind weak user-set passwords.
  • Using social engineering by pretending to be a valid website in the URL bar is easy with the RTL feature of Chrome and Firefox and this little trick7. I’m sure this type of attack is successful since most normal users do check if a URL is correct but they can’t see anything bad in it. A good reminder that we need to find better ways to let users know that the URL they visit is safe.
  • When we look into the source code of forms at github.com, we’ll find some interesting markup in there8. Its purpose: preventing XSS attacks. In this blog post we can learn about the tricks that GitHub uses9 to maximize the security of their web application.
  • Troy Hunt wraps up how our personal data is usually leaked10 and why security is a design process, not only an implementation process. Also a good primer on how to design a password recovery feature.
Address bar spoofing11
Who’s really behind the URL? Ray Baloch uncovers an address bar spoofing vulnerability12 in Chrome and Firefox. (Image credit: Rafay Baloch13)

Web Performance Link

  • Nolan Lawson wrote about the cost of small modules14, analyzing how much code is used when you build your codebase with a lot of small modules. The article reveals interesting stats and compares modern minifiers and JavaScript bundlers, as well as execution times of such bundles in various browsers.

JavaScript Link

Work & Life Link

Going Beyond… Link

  • Bill Gates shares what he learned from his school teacher20 and how only later he realized that students should ask teachers more questions. If we ask more, we will learn from others. It’s always harder to proactively communicate knowledge to other people than being asked for it.
  • Phillip Rogaway shares a paper on “The Moral Character of Cryptographic Work21” (PDF). An interesting read on the shift of power and why cryptography is often a political tool that demands high morals and ethical fundamentals of those who build it. Anyone who ever discussed the topic of morals and ethics in science should read this.

And with that, I’ll close for this week. If you like what I write each week, please support me with a donation22 or share this resource with other people. You can learn more about the costs of the project here23. It’s available via email, RSS and online.

— Anselm

Footnotes Link

  1. 1 http://www.heydonworks.com/article/on-writing-less-damn-code
  2. 2 https://holidaypirates.github.io/nucleus/
  3. 3 https://stackoverflow.com/questions/89332/how-to-recover-a-dropped-stash-in-git/7844566
  4. 4 https://holidaypirates.github.io/nucleus/
  5. 5 https://holidaypirates.github.io/nucleus/
  6. 6 http://blog.cryptographyengineering.com/2016/08/is-apples-cloud-key-vault-crypto.html?m=1
  7. 7 http://www.rafayhackingarticles.net/2016/08/google-chrome-firefox-address-bar.html
  8. 8 https://chloe.re/2016/07/19/protect-against-html-extraction/
  9. 9 https://chloe.re/2016/08/15/lets-look-at-some-of-the-security-at-github/
  10. 10 https://www.troyhunt.com/website-enumeration-insanity-how-our-personal-data-is-leaked/
  11. 11 http://www.rafayhackingarticles.net/2016/08/google-chrome-firefox-address-bar.html
  12. 12 http://www.rafayhackingarticles.net/2016/08/google-chrome-firefox-address-bar.html
  13. 13 http://www.rafayhackingarticles.net/2016/08/google-chrome-firefox-address-bar.html
  14. 14 https://nolanlawson.com/2016/08/15/the-cost-of-small-modules/
  15. 15 http://blog.mgechev.com/2016/08/14/ahead-of-time-compilation-angular-offline-precompilation/
  16. 16 https://medium.com/@addyosmani/offline-storage-for-progressive-web-apps-70d52695513c
  17. 17 https://developers.google.com/web/fundamentals/primers/shadowdom/
  18. 18 https://shift.newco.co/how-a-single-conversation-with-my-boss-changed-my-view-on-delegation-and-failure-ae5376451c8d
  19. 19 http://zenhabits.net/walk/
  20. 20 https://www.gatesnotes.com/Education/A-Teacher-Who-Changed-My-Life
  21. 21 http://web.cs.ucdavis.edu/~rogaway/papers/moral-fn.pdf
  22. 22 https://wdrl.info/donate
  23. 23 https://wdrl.info/costs/
SmashingConf New York

Hold on, Tiger! Thank you for reading the article. Did you know that we also publish printed books and run friendly conferences – crafted for pros like you? Like SmashingConf Barcelona, on October 25–26, with smart design patterns and front-end techniques.

↑ Back to topTweet itShare on Facebook

Building A Server-Side Application With Async Functions and Koa 2

artificial intelligence 5291510 1920

Building A Server-Side Application With Async Functions and Koa 2

One of the upcoming features of JavaScript that I especially like is the support for asynchronous functions1. In this article, I would like to show you a very practical example of building a server-side application using Koa 2, a new version of the web framework, which relies heavily on this feature.

First, I’ll recap what async functions are and how they work. Then, I’ll highlight the differences between Koa 1 and Koa 2. After that, I will describe my demo app for Koa 2, covering all aspects of development, including testing (using Mocha, Chai and Supertest) and deployment (using PM2).

Async Functions Link

The old problem of complex JavaScript applications is how to deal with callbacks and how to structure the code to avoid so-called “callback hell.” Several solutions have been developed over time, some of which are still based on callbacks and others that rely on more recent features of JavaScript — promises and generators. Let’s compare callbacks, promises and generators using the example of a function that fetches two JSON files in sequence.

// Fetch two files with callbacks function doWork(cb) { fetch('data1.json', (err1, result1) => { if (err1) { return cb(err1); } fetch('data2.json', (err2, result2) => { if (err2) { return cb(err2); } cb(null, { result1, result2, }); }) }); }

Nested anonymous inline callback functions are the primary indicator of callback hell. You could restructure the code and split the functions into modules, but you would have to rely on callbacks anyway.

// Fetch two files with promises function doWork(cb) { fetch('data1.json') .then(result1 => fetch('data2.json') .then(result2 => cb(null, { result1, result2, }))) .catch(cb); }

The promise-based version looks a bit better, but the calls are still nested and we need to reorganize the code to appear sequential.

// Fetch two files with generators function* doWork() { var result1 = yield fetch('data1.json'); var result2 = yield fetch('data2.json'); return { result1, result2 }; }

Generators allow for the shortest solution, and this looks like normal synchronous code, whereas the callback and promise snippets are clearly asynchronous and highly nested. Nevertheless, the generator solution requires that we change the function type to the generator function by adding * after the function keyword, and it requires the special way to invoke doWork. This looks somewhat unintuitive, and the async/await syntax addresses this drawback by providing better abstraction. Look at the same example using async functions:

async function doWork() { // Fetch two files with async/await var result1 = await fetch('data1.json'); var result2 = await fetch('data2.json'); return { result1, result2 }; }

This syntax can be interpreted as follows: Functions marked with the async keyword allow us to use the await keyword in them, which pauses the execution of the function to wait for the asynchronous operations to finish. The asynchronous operation can be represented by a generator, a promise or another async function. Also, you can use try/catch to handle any errors or rejections that occur during the async operations that you await. The same error-handling mechanism is possible with the generator-based control flow.

What is Koa? Link

Koa is positioned as a next generation web framework and it was designed by the people who created Express (and in particular, by TJ2). Koa is very lightweight and modular and allows writing code without using callbacks. Koa application is an array of middleware functions that run in sequence processing incoming requests and providing a response. Every middleware function has the access to the context object that wraps native node request and response objects and provides an improved API to work with them. Basic Koa application looks like this:

// This is Koa 1 var koa = require('koa'); var app = koa(); app.use(function *(){ this.body = 'Hello World'; }); app.listen(3000); 

This is not much except for this in the Koa core. Advanced functionality is provided by 3rd-party modules.

Koa 2 Versus Koa 1 Link

Koa 1 is famous for its early adoption of generators and for supporting generator-based control out of the box. This is what a typical piece of code for Koa 1 that uses the middleware cascading and improved error handling looks like:

// Adapted from https://github.com/koajs/koa // In Koa 1.0, middleware is a generator function. app.use(function *(next) { try { yield next; } catch (err) { // the request context is <code>this</code> this.body = { message: err.message } this.status = err.status || 500 } }) app.use(function *(next) { const user = yield User.getById(this.session.id); this.body = user; })

Koa 2 removes built-in support for generators and uses async functions instead. The signature of middleware functions will change to support async arrow functions. Here is what the same code looks like written for Koa 2:

// Taken from https://github.com/koajs/koa // Uses async arrow functions app.use(async (ctx, next) = > { try { await next(); // next is now a function, await instead of yield } catch (err) { ctx.body = { message: err.message }; ctx.status = err.status || 500; } }); app.use(async ctx => { // await instead of yield const user = await User.getById(ctx.session.id); // ctx instead of this ctx.body = user; });

Using normal functions, promises and generator functions is still possible, as described in the documentation for Koa 23.

Koa Versus Express Link

Koa is a simpler and leaner framework than Express, built on top of the Node.js’ HTTP module. Express provides built-in features for routing, templating and sending files and other features, whereas Koa provides the very minimum, as well as a generator-based (Koa 1) or async/await-based (Koa 2) control flow. Routing, templating and other features are provided as separate modules by the community, and normally there are several alternatives to choose from. The Koa section of GitHub has a document with additional insight4 on the differences between Koa and Express.

Status of Koa 2 Link

Koa 2 will be released once the async/await feature is available in Node.js natively. Fortunately, async/await and Koa 2.0 can be tested right now using Babel. We will get to this soon. First, let’s go over the scope of the app that I built to demonstrate Koa 2 and async functions.

Demo App Link

The goal here is to build a simple app that tracks page views for a static website — something like Google Analytics but much simpler. The app will have two endpoints:

  • one to store the information about an event (for example, a page view);
  • and one to get the total number of events;
  • additionally, the endpoints have to be secured with an API key.

Redis will be used to store the events data. The functionality will be tested by unit and API tests. The full source code of the app is available on Github5.

App Dependencies Link

Let’s start with the list of modules needed for the app, along with explanations for why they are needed. First, here are the dependencies needed at runtime:

npm install --save  # babel-polyfill provides the runtime that async functions need babel-polyfill  # The Koa framework itself koa@next  # Because Koa is minimalist, we need a parser # to parse JSON in the body of requests koa-bodyparser@next  # and the router koa-router@next  # The redis module to store the app's data redis # The Koa cors module to allow cross-origin requests kcors@next

Note that the version for Koa modules we are using is next. This means that this version will be compatible with Koa 2, and many modules already provide it. Here are the modules needed for development and testing:

npm install --save-dev  # To write assertions in our tests chai  # A popular testing framework mocha  # API-level tests supertest  # Babel CLI to build our app babel-cli  # A set of Babel plugins to support ES6 features babel-preset-es2015  # and to support stage-3 features babel-preset-stage-3  # Overrides Node.js's require and compiles modules at runtime babel-register  # To watch JavaScript files in development and restart the server # if there are changes in the files nodemon 

How to Organize the Application? Link

After trying out several ways to organize the application’s files, I came up with the following simple structure that is suitable for small apps and small teams:

  • index.js

    The main entry point of the app
  • ecosystem.json

    The PM2 ecosystem, which describes how to start the app
  • src

    The source of the app, containing JavaScript files to be compiled by Babel
  • config

    The app’s configuration files
  • build

    The build of the app, containing the compiled code from src

The src directory contains the following:

  • api.js

    The module that defines the app’s API
  • app.js

    The module that instantiates and configures the Koa app’s instance
  • config.js

    The module that provides the configuration of the app to other modules

If additional files or modules are needed as the app grows, we would put them in a subfolder of the src folder — for example, src/models for application models, src/routes for more modular API definitions, src/gateways for modules that interact with external services, and so on.

NPM Scripts As A Task Runner Link

After using Gulp and Grunt as task runners, I came to the conclusion that npm scripts are better than separate tools when working on server-side projects. One of the advantages of npm scripts is that they allow you to invoke locally installed modules as if there were globally installed. I use the following scripts, which need to be defined in package.json:

"scripts": { "start": "node index.js", "watch": "nodemon --exec npm run start", "build": "babel src -d build", "test": "npm run build; mocha --require 'babel-polyfill' --compilers js:babel-register" }

The start script simply runs index.js. The watch script runs the start script using the nodemon tool, which automatically restarts the server whenever you change something in the app. Note that nodemon is installed as a local development dependency and does not have to be installed globally.

The build script compiles the files in the src folder using Babel and outputs the results to the build folder. The test script runs the build script first and then runs tests using mocha. Mocha requires two modules: babel-polyfill, to provide runtime dependencies of the compiled code, and babel-register, to compile the test files before executing them.

Additionally, presets for Babel have to be added to package.json, so that you don’t have to provide them in the command line:

{ "babel": { "presets": [ "es2015", "stage-3" ] } }

This preset enable all ECMAScript 2015 features, as well as features that are currently in stage 36. With this installed and configured, we can start developing the app.

The Application’s Code Link

First, let’s look at index.js:

const port = process.env.PORT || 4000; const env = process.env.NODE_ENV || 'development'; const src = env === 'production' ? './build/app' : './src/app'; require('babel-polyfill'); if (env === 'development') { // for development use babel/register for faster runtime compilation require('babel-register'); } const app = require(src).default; app.listen(port);

The module reads two environmental variables: PORT and NODE_ENV. NODE_ENV should be either development or production. In development mode, babel-register will be used to compile modules at runtime. babel-register caches the results of the compilation and, thus, reduces the server start time, so that you can iterate faster during development. Because this module is not recommended for production use, the precompiled version from the build directory will be used in production mode.

index.js is the only file of the project that will not be compiled by Babel and that must use native module syntax (i.e. CommonJS). Therefore, the app’s instance is located in the default property of the imported app module, which is an ECMAScript 6 module that exports the app’s instance as a default export:

export default app;

This is important to keep in mind if you mix ECMAScript 6 and CommonJS modules.

Now to the app.js file itself. This and the other files discussed below are always compiled by Babel in both development and production environments, and the new syntax (including async functions) may be used freely in them:

import Koa from 'koa'; import api from './api'; import config from './config'; import bodyParser from 'koa-bodyparser'; import cors from 'kcors'; const app = new Koa() .use(cors()) .use(async (ctx, next) => { ctx.state.collections = config.collections; ctx.state.authorizationHeader = `Key ${config.key}`; await next(); }) .use(bodyParser()) .use(api.routes()) .use(api.allowedMethods()); export default app;

Here, we are using ECMAScript 2015’s import syntax to import the required modules. Then, we create a new instance of the Koa application and attach several middleware functions to it using the use method. The last thing we do is export the app so that it can be used by index.js.

The second middleware function in the chain is an async function and an arrow function at the same time:

app.use(async (ctx, next) => { // Set up the request context ctx..state.collections = config.collections; ctx..state.authorizationHeader = `Key ${config.key}`; await next(); // The execution will reach here only when // the next function returns and finishes all async tasks // console.log('Request is done'); })

In Koa 2, the next parameter is an async function that triggers the next middleware function in the list. Just like in Koa 1, you can control whether the current middleware function should do its job before or after the others by putting the call to next either at the beginning of the current function or at the end. Also, you can catch all errors in the downstream middleware functions by wrapping the await next(); statement in a try/catch statement wherever doing so makes sense.

Defining the API Link

The api.js file is where the core logic of our app resides. Because Koa does not provide routing out of the box, the app has to use the koa-router module:

import KoaRouter from 'koa-router'; const api = KoaRouter();

Here, koa-router provides functions to define middleware functions for specific HTTP methods and paths — for example, the route that stores events in the database:

// Declare a post method and what it does // :collection is a parameter api.post('/:collection', // First, validate auth key validateKey, // Then, validate that the provided collection exists validateCollection, // Handle adding the new item to the collection async (ctx, next) => { // Use ES6 destructuring to extract the collection param const { collection } = ctx.params; // Wait until the persistence layer saves the item const count = await ctx .state .collections[collection] .add(ctx.request.body); // Reply with 201 Created when the item is saved ctx.status = 201; });

Each method can have several handlers, which run sequentially and have exactly the same signature as the middleware functions defined in the top level of app.js. For example, validateKey and validateCollection are simply async functions that validate the incoming request and return 404 or 401 if the provided event collection does not exist or if the API key is not valid:

const validateCollection = async (ctx, next) => { const { collection } = ctx.params; if (!(collection in ctx.state.collections)) { return ctx.throw(404); } await next(); } const validateKey = async (ctx, next) => { const { authorization } = ctx.request.headers; if (authorization !== ctx.state.authorizationHeader) { return ctx.throw(401); } await next(); }

Note that arrow middleware functions cannot refer to the context of the current request using this (i.e. this is always undefined in the examples thus far). Therefore, request and response objects as well as Koa helpers are available in the context object (ctx). Koa 1 had no separate context object, and this referred to the current request context.

After defining other API methods7, we finally export the API to be connected to the Koa application in app.js:

export default api;

Persistence Layer Link

In api.js, we accessed the collections array in the context ctx, which we initialized in app.js. These collection objects are responsible for storing and retrieving data stored in Redis. The Collection class is as follows:

// Use promise-based Redis client const redis = require('promise-redis')(); const db = redis.createClient(); class Collection { // Full source: // https://github.com/OrKoN/koa2-example-app/blob/master/src/collection.js async count() { // We can `await` for promises // The await syntax allows us to work with // async calls as if they were synchronous var count = await db .zcount(this.name, '-inf', '+inf'); return Number(count); } async add(event) { await db .zadd(this.name, 1, JSON.stringify(event)); await this._incrGroups(event); } async _incrGroups(event) { // ES6 for:of syntax allows for easier iteration // groupBy is an array that holds possible attributes of the event for (let attr of this.groupBy) { // We can use await inside loops, // thus calling async operations sequentially in the loop await db.hincrby(`${this.name}_by_${attr}`, event[attr], 1); } } } export default Collection;

The async/await syntax is really helpful here because it allows us to coordinate several async operations easily — for example, in a loop. But there is one important thing to keep in mind. Let’s look at the _incrGroups method:

async _incrGroups(event) { // ES6 for:of syntax allows iterating easier for (let attr of this.groupBy) { // We can use await inside loops, // thus calling async operations sequentially in the loop await db.hincrby(`${this.name}_by_${attr}`, event[attr], 1); } }

Here, the keys are incremented sequentially, meaning that the next key will be incremented once the previous incrementation has succeeded. But this kind of job can be done in parallel! With async/await, the task might not be easy to accomplish, but promises can help:

// Start all increments in parallel // because there is no await inside the map callback here const promises = this.groupBy.map(attr => db.hincrby(`${this.name}_by_${attr}`, event[attr], 1)); // Wait for all of them to finish await Promise.all(promises);

The interchangeability of promises and async functions is very helpful.

Testing Link

The app’s tests are located in the test folder8. Let’s look at apiSpec.js, which represents the test specification for the app’s API:

import { expect } from 'chai'; import request from 'supertest'; import app from '../build/app'; import config from '../build/config';

We import expect from chai and supertest. We use the precompiled version of the app and the config to make sure that we are testing exactly the same code that will be running in production. Next, we write the tests for the API, leveraging the async/await syntax to achieve sequential execution of the test steps:

describe('API', () => { const inst = app.listen(4000); describe('POST /:collection', () => { it('should add an event', async () => { const page = 'http://google.com'; const encoded = encodeURIComponent(page); const res = await request(inst) .post(<code>/pageviews</code>) .set({ Authorization: 'Key ' + config.key }) .send({ time: 'now', referrer: 'a', agent: 'b', source: 'c', medium: 'd', campaign: 'e', page: page }) .expect(201); // here res is available // you can use res.headers, res.body etc // no callback for <code>expect</code> or <code>end</code> functions is required. expect(res.body).to.be.empty; }); }); });

Note that functions passed to it functions are marked with async. This means that await can be used to run asynchronous tasks, including the supertest requests, which return then-able objects and which, therefore, are compatible with what await expects.

Deployment With PM2 Link

Once the app is ready and tests have passed, let’s prepare everything to run the app in production. For this, let’s declare ecosystem.json, which will hold the production configuration of the app:

{ "apps" : [ { "name" : "koa2-example-app", // The entry point to the compiled version of the app "script" : "index.js", // In production, we don't want to watch for changes in files "watch" : false, // And we want to merge logs from all instances "merge_logs" : true, // We want to timestamp log messages "log_date_format": "YYYY-MM-DD HH:mm Z", "env": { // And include environment variables for the app "NODE_ENV": "production", "PORT": 4000 }, // Start two processes of the app, and balance the load between them "instances": 2, // Start app as a cluster "exec_mode" : "cluster_mode", // Watch failures and auto-restart processes "autorestart": true } ] }

If your app requires additional servers (for example, a cron job), you can add them to ecosystem.json, and they will be started together with the main server. To start the app on the production server, you can run this:

pm2 start ecosystem.json

And to persist the configuration, you would run this:

pm2 save

PM2 provides some monitoring features (try pm2 list, pm2 info, pm2 monit). For example, PM2 shows how much memory your application is using. This basic Koa application consumes 44 MB per Node.js process.

Conclusion Link

Babel allows us to build apps using ECMAScript syntax that is not natively available but that includes async/await, which makes writing asynchronous code more enjoyable. The code that uses the async/await syntax is easier to read and maintain. Koa 2 and Babel allow you to start using async functions right now.

Nevertheless, Babel brings additional overhead and requires additional configuration and an extra build step. Therefore, waiting until async/await is natively available in Node.js is recommended. Koa 2 should be officially released once this happens. Then, Koa 2 will be a good alternative to Express because it is more modular and simpler and allows for configuration the way you want it.

The deployment section of this tutorial might be too simple and unscalable. It leaves open the question of how and when to build and actually deploy the code — you can do this manually (rsync, scp) or set up a continuous integration server for this. Also, the inner architecture of the app is too simple yet is suitable for a demo. Larger and more ambitious apps might require other entities, such as gateways, mappers, repositories and so on, but all of them can leverage async functions.

I hope you’ve enjoyed this tutorial. Thanks for reading!

Links Link

(al)

Footnotes Link

  1. 1 https://tc39.github.io/ecmascript-asyncawait/
  2. 2 https://github.com/tj
  3. 3 https://github.com/koajs/koa/tree/v2.x#common-function
  4. 4 https://github.com/koajs/koa/blob/master/docs/koa-vs-express.md
  5. 5 https://github.com/OrKoN/koa2-example-app
  6. 6 https://github.com/tc39/ecma262#current-proposals
  7. 7 https://github.com/OrKoN/koa2-example-app/blob/master/src/api.js
  8. 8 https://github.com/OrKoN/koa2-example-app/tree/master/test
  9. 9 https://github.com/koajs/koa/wiki
  10. 10 https://tc39.github.io/ecmascript-asyncawait/
  11. 11 https://github.com/OrKoN/koa2-example-app
  12. 12 https://github.com/koajs/koa/wiki#middleware
  13. 13 https://github.com/koajs/koa/issues/533
  14. 14 https://github.com/nodejs/promises/issues/4

Hold on, Tiger! Thank you for reading the article. Did you know that we also publish printed books and run friendly conferences – crafted for pros like you? Like SmashingConf Barcelona, on October 25–26, with smart design patterns and front-end techniques.

↑ Back to topTweet itShare on Facebook

Photoshop Etiquette For Responsive Web Design

artificial intelligence 5291510 1920

Photoshop Etiquette For Responsive Web Design

It’s been almost five years since Photoshop Etiquette151 launched, which officially makes it a relic on the web. A lot can happen on the web in a few years, and these past five have illustrated that better than most.

In 2011, everyone was just getting their feet wet with responsive web design. The traditional comp-to-HTML workflow was only beginning to be critiqued, and since then, we’ve seen a myriad of alternatives. Style Tiles2, Style Prototypes3, Visual Inventories4, Element Collages5, style guides6, and even designing in the browser have all been suitable approaches to multi-device design. With a shift from page-based design to building a design system, it’s truly an exciting time.

Further Reading on SmashingMag: Link

There’s also been an explosion of tools attempting to make a responsive workflow more efficient. Applications like Webflow and Macaw have made breakpoint visualization digestible for the code-averse. Many designers have moved on from Photoshop as their workhorse to Sketch, Affinity Designer, or similar. Others have adopted apps like Keynote for prototyping.

11
A flurry of new tools and techniques has seemingly put good ol’ fashioned etiquette on the back burner.

Is ‘Etiquette’ Still Relevant? Link

With alternatives to the heavy Photoshopping we may be familiar with, it’s fair to question if we still need etiquette. For the sake of this article, we’ll define etiquette as transferring files in an organized, clear, and discernible way. Responsive design typically comes with a lot of moving pieces, from @2x images, concatenated CSS files, and more. With seemingly more to do in order to publish a website, being efficient is unquestionably high priority, if we want to be profitable.

Often masked as efficiency, poor organization and communication are products of rushing to ship a project. With Photoshop taking on different roles in our workflows, layers and exported files are easy targets for cutting corners. The fact remains: anything worth doing is worth doing well.

If we want to save time, we need to invest a bit upfront in staying organized and clear. Inefficiency is inheriting a file from a coworker and spending valuable time attempting to figure out where to start because it’s not clearly labeled. It’s having to fix images that have already been exported. At worst, it’s not being able to find the file you need in the first place.

What’s New In Photoshop Etiquette? Link

Photoshop Etiquette was given a fresh coat of paint by Adjacent12, a design studio in Syracuse, NY. For those new to the concept, Photoshop Etiquette is a best practices guide that promotes efficiency through clarity in web design. Though engineered for Photoshop, many of these principles apply to Sketch and similar, layer-based design tools.

The guide is broken down into the following sections:

  • File organization
  • Layer structure
  • Asset exporting
  • Type execution
  • Effect application
  • Quality check

Those familiar with the site will see a lot of familiar guidelines, such as quintessential tips like ‘Name Your Layers’ and ‘Name Files Accurately’, each an attempt at ridding the earth of practices like ‘Layer copy copy 5’ and ‘client-final-v3.psd’, respectively. If you dig a little deeper, you’ll find a glut of responsive resources attached to various guidelines, and a few tips for designing for multiple devices.

1. Consolidate Your PSDs Link

If you’re making multiple comps for multiple pages, Photoshop now has artboards that can help you stick to a single document. This helps eliminate confusion about which PSD is the right PSD.

If you can swing it, try using artboards, layer comps, or smart objects instead of managing tons of PSDs.
If you can swing it, try using artboards, layer comps, or smart objects instead of managing tons of PSDs.

2. Work Collaboratively Link

With the addition of Creative Cloud Libraries and Linked Smart Objects, designers can share assets quite easily. For example, if you’re creating a pattern or component guide in Photoshop, one designer can be working on a component while another designer simultaneously works on a different one. These components can be shared within a Library, or as Linked Smart Objects that are pulled into a master PSD.

Between Linked Smart Objects and CC Libraries, there
Between Linked Smart Objects and CC Libraries, there’s plenty of options for being collaborative.

3. Don’t Design To The Device Link

This can be argued, but if responsive design is about embracing all devices, perhaps we shouldn’t use popular Apple device presets as document sizes in Photoshop. Instead, allow your design to dictate breakpoints because of layout stress, wherever it falls. The exception is if you’re designing a device or platform-specific app, where targeting such presets is helpful.

Allow your design to dictate breakpoints, not popular-for-the-moment device widths.
Allow your design to dictate breakpoints, not popular-for-the-moment device widths.

4. Be Non-Destructive Link

With the rising implementation and support for SVG, it’s important for designers to sustain vector assets in Photoshop and not flatten them. Photoshop now allows you to save out SVGs, giving us one more reason to be nondestructive with our pixels.

5. Be Aware Of Screen Resolution Link

Speaking of SVG, it has really become a great approach to serving one asset that can adapt to any size and not lose fidelity. Having a Retina asset workflow13, whether SVG or @2x/@3x images, has become part of a responsive practitioner’s workflow.

6. Compress Link

Performance is a worthy cause, not only for a developer but for a designer. I’ve often rationalized that if I want to include heavy web fonts and their Open Type features in my projects, I’ll need to make up the difference by aggressively compressing my images to stay within a performance budget. Third party tools like TinyPNG14 have made image compression a breeze.

Performance is a designer
Performance is a designer’s task. Make sure you’re squeezing any extra file size out of your images.

As our web design workflows and use of Photoshop continues to change, so will the site. While it encompasses a Photoshop-centric workflow, there’s a few tips for ones where Photoshop is used sparingly, as well. The guide only advocates that if, and when, you use Photoshop, communicate your intent as clearly as possible.

Fueled By Community Link

One of the primary focuses for Photoshop Etiquette151 is growth, manifested in more guidelines, more resources, and more perspectives. A feature has been added to the site providing easier access to submit a new guideline for review, something hundreds of designers and developers did over the years by tracking me down on Twitter or hunting down an email address.

In the wake of Google Translate’s inaccuracies, there’s also an open call for translations by community volunteers.

It’s exciting to see how Photoshop Etiquette has resonated with so many organizations and individuals. How can it help you and your team?

(vf, il)

Footnotes Link

  1. 1 http://photoshopetiquette.com/
  2. 2 http://styletil.es/
  3. 3 http://seesparkbox.com/foundry/our_new_responsive_design_deliverable_the_style_prototype
  4. 4 http://danielmall.com/articles/visual-inventory/
  5. 5 http://danielmall.com/articles/rif-element-collages/
  6. 6 http://styleguides.io/
  7. 7 https://www.smashingmagazine.com/2015/05/retina-design-in-photoshop/
  8. 8 https://www.smashingmagazine.com/2015/06/creating-advanced-animations-in-photoshop/
  9. 9 https://www.smashingmagazine.com/2016/03/the-retina-asset-workflow-youve-always-wanted-for-photoshop/
  10. 10 https://www.smashingmagazine.com/2016/01/responsive-image-breakpoints-generation/
  11. 11 http://photoshopetiquette.com/
  12. 12 http://weareadjacent.com
  13. 13 https://www.smashingmagazine.com/2015/05/retina-design-in-photoshop/
  14. 14 http://tinypng.com
  15. 15 http://photoshopetiquette.com/
SmashingConf New York

Hold on, Tiger! Thank you for reading the article. Did you know that we also publish printed books and run friendly conferences – crafted for pros like you? Like SmashingConf Barcelona, on October 25–26, with smart design patterns and front-end techniques.

↑ Back to topTweet itShare on Facebook

S(GH)PA: The Single-Page App Hack For GitHub Pages

artificial intelligence 5291510 1920

Sponsored PostS(GH)PA: The Single-Page App Hack For GitHub Pages

For some time now, I’ve wanted the ability to route paths for a GitHub Pages website to its index.html for handling as a single-page app (SPA). This is table-stakes because such apps require all requests to be routed to one HTML file, unless you want to copy the same file across all of your routes every time you make a change to the project. Currently, GitHub Pages doesn’t offer a route-handling solution; the Pages system is intended to be a flat, simple mechanism for serving basic project content.

In case you weren’t aware, GitHub does provide one morsel of customization for your project website: the ability to add a 404.html file and have it served as your custom error page. I took a first stab at an SPA hack simply by duplicating my index.html file and renaming the copy to 404.html. Turns out that many folks have experienced the same issue1 with GitHub Pages and liked the general idea. However, the problem that some folks on Twitter correctly raised was that the 404.html page is still served with a status code of 404, which is not good for search engine crawlers. The gauntlet had been thrown down, and I decided to answer — and answer with vigor!

One More Time, With Feeling Link

After sleeping on it, I thought to myself, “Self, we’re deep in dirty hack territory, so why don’t I make this hack even dirtier?!” To that end, I developed an even better hack that provides the same functionality and simplicity, while also preserving your website’s crawler juice — and you don’t even need to waste time duplicating your index.html file and renaming it to 404.html anymore! The following solution should work in all modern desktop and mobile browsers (Edge, Chrome, Firefox, Safari) and in Internet Explorer 10+.

Template and Demo: If you want to skip the explanation and get the goods, here’s a template repo2, and a test URL to see it in action3.

That’s So Meta Link

The first thing I did was investigate other options for getting the browser to redirect to the index.html page. That part was pretty straightforward. You basically have three options: a server config, a JavaScript location manipulation, or a refresh meta tag. The first one is obviously a no-go for GitHub pages. And JavaScript is basically the same as a refresh, but arguably worse for crawler indexing. That leaves us with the meta tag. A meta tag with a refresh value of 0appears to be treated as a 301 redirect4 by search engines, which works out well for this use case.

You’ll need to start by adding a 404.html file to a gh-pages repository that contains an empty HTML document inside it. That document must total more than 512 bytes (explained below). Next, put the following markup in your 404.html page’s head element:

<script> sessionStorage.redirect = location.href; </script> <meta http-equiv="refresh" content="0;URL='/REPO_NAME_HERE'">

This code sets the attempted entrance URL to a variable on the standard sessionStorage object and immediately redirects to your project’s index.html page using a meta refresh tag. If you’re doing a Github Organization site, don’t put a repo name in the content attribute replacer text, just do this: content="0;URL='/'"

Customizing Route Handling Link

If you want more elaborate route handling, just include some additional JavaScript logic in the script tag shown above. You can tweak several things: the composition of the href that you pass to the index.html page; which pages should remain on the 404 page (via dynamic removal of the meta tag); and any other logic you want to put in place to dictate what content is shown based on the inbound route.

512 Magical Bytes Link

This is, hands down, one of the strangest quirks I have ever encountered in web development. You must ensure that the total size of your 404.html page is greater than 512 bytes, because if it isn’t, Internet Explorer will disregard it and show a generic browser 404 page instead. When I finally figured this out, I had to crack open a beer to cope with the amount of time it took.

Let’s Make History Link

To capture and restore the URL that the user initially navigated to, you’ll need to add the following script tag to the head of your index.html page before any other JavaScript acts on the page’s current state:

<script> (function(){ var redirect = sessionStorage.redirect; delete sessionStorage.redirect; if (redirect && redirect != location.href) { history.replaceState(null, null, redirect); } })(); </script>

This bit of JavaScript retrieves the URL that we cached in sessionStorage over on the 404.html page and replaces the current history entry with it. How you choose to handle things from here is up to you, but I’d use popstate and hashchange if I were you.

Well, folks, that’s it. Now go celebrate by writing some single-page apps on GitHub Pages!

This article is part of a web development series from Microsoft tech evangelists and engineers on practical JavaScript learning, open-source projects and interoperability best practices, including Microsoft Edge5 browser.

We encourage you to test across browsers and devices (including Microsoft Edge — the default browser for Windows 10) with free tools on dev.microsoftedge.com6, including the F12 developer tools7: seven distinct, fully documented tools to help you debug, test and speed up your web pages. Also, visit the Edge blog8 to stay informed by Microsoft developers and experts.

(al)

Footnotes Link

  1. 1 https://twitter.com/csuwildcat/status/730558238458937344
  2. 2 https://github.com/csuwildcat/sghpa
  3. 3 https://csuwildcat.github.io/sghpa/foo/bar
  4. 4 http://sebastians-pamphlets.com/google-and-yahoo-treat-undelayed-meta-refresh-as-301-redirect/
  5. 5 https://blogs.windows.com/msedgedev/2015/05/06/a-break-from-the-past-part-2-saying-goodbye-to-activex-vbscript-attachevent/?wt.mc_id=DX_873182
  6. 6 https://dev.windows.com/en-us/?wt.mc_id=DX_873182
  7. 7 https://developer.microsoft.com/en-us/microsoft-edge/platform/documentation/f12-devtools-guide/?wt.mc_id=DX_873182
  8. 8 https://blogs.windows.com/msedgedev/?wt.mc_id=DX_873182

↑ Back to topTweet itShare on Facebook

Creativity Under The Microscope: Running A UI Design Critique

artificial intelligence 5291510 1920

Creativity Under The Microscope: Running A UI Design Critique

Criticism is easy. It seems like everybody has an opinion, but, as the author Harlan Ellison points out, “You are not entitled to your opinion. You are entitled to your informed opinion.” To become informed, though, requires exploration. Design critiques are an important part of any product exploration.

A design critique — where the creator discusses and explains the creation with the rest of the team and/or client — is not about badgering the designer or pushing them to justify every decision they made. That’s just criticism. A good design critique is meant to explore the design, find where it is working and where it could be improved. If done well, design critiques allow everyone on the team to feel as if they have been heard and allow clients to give valuable feedback.

If you are the person running the critique, getting to constructive criticism is often a challenge, especially with groups that do not have experience with the design critique format. In an agile environment, you will often have coders, project managers, product managers and people from other disciplines sitting in to give feedback, and you need to know how to quickly get them up to speed on the expectations if you want to get anywhere fast.

Principles For Running A Great UI Critique Link

From my own experience, I’ve found that design critiques for user interfaces (UIs) need to be performed throughout the entire product design and development process, at least weekly, and possibly even daily at certain times. They keep the product design on track, and they become even more critical in an interactive agile or lean UX product environment, where designs go through multiple iterations before deployment. Running a UI design critique is a challenge, requiring you not only to explain decisions, but also to listen carefully to other ideas.

1
The critique allows your team to create together. (Image: Jamie Cummings2) (View large version3)

Establishing clear principles — not “rules” — at the beginning of every critique is imperative. Unlike rules, which are dogmatic and feel restrictive, principles help everyone understand the expectations but still allow for the freeform discussion that is needed.

Chief among these expectations is for everybody to agree on why you are actually critiquing what you are looking at. Jason Ulaszek recommends:

Start by asking about the purpose or intention behind the design you’re critiquing. Why are we asking for this piece of information? What expectations have been set that allow us to ask for it? What will we do with it? If we can answer those questions, then we move on to discussing various options of interpreting the need for the element and respective advantages and disadvantages with each option.

Critique4
Be prepared to show and tell. (Image: Jason CranfordTeague5) (View large version6)

To help you keep to this guideline, I recommend following the standard principles you might apply to any design critique, whether it involves UI design or not:

  • Show respect.

    It might sound cliched, but if everyone in the critique is not respectful of the opinions and skills of the others at the table, then the critique will quickly degrade into hostility.
  • Designate roles.

    Before starting, clarify who will be taking on which role(s) during the critique. It’s best to mix these up from critique to critique so that no one feels left out, and it’s optimal if the three lead roles are different people (but that is not always practical).

    • Presenter

      This is the person responsible for presenting the design and the thinking behind it. This person answers all questions or directs them to other people in the critique who can answer them.
    • Moderator

      If possible, it is best if this role is performed by someone not directly responsible for the design, often the project or product manager. The moderator ensures that everyone stays on topic and that everyone is heard.
    • Note-taker

      This person focuses on recording what is discussed and is especially vital for making sure that the takeaways (another principle, listed below) are clearly defined at the end of the critique. The note-taker should not be left out of the discussion, although their role might lean towards getting other members of the team to clarify what they have said.
  • State the goals for the project and for the critique up front.

    Quickly remind everyone of the goals of the project and what this specific critique will cover. Keep the critique focused on the task at hand, rather than allowing the scope to creep to other considerations that would derail the primary purpose of the discussion.
  • Review the audience(s).

    To reinforce that the people in the critique are not the target audience for the product, remind everyone about who is.
  • Avoid coming up with “the answers.”

    Participants will feel a strong desire to solve problems and come up with the “answer” in a critique. However, the best solutions rarely arise in the actual meeting. The point of a critique is to probe for issues and discuss multiple potential solutions for the designer to take away and consider.
  • Agree on takeaways.

    After everything has been said in the critique, the note-taker needs to review the takeaway tasks for everyone who participated to ensure that everyone is on the same page for the next critique.

Unfortunately, all too often, UI design critiques focus heavily on the visual and not enough on the interactive, much less temporal, nature of the design. For a UI design critique, add the following elements:

  • Identify the presentation media.

    Along with identifying the audience, review the platform and technologies being used to create the product. Is this an iPhone app? A website? Are you using AngularJS? C#? Make sure these are all considered so that you avoid proposing solutions that wouldn’t work.
  • Outline the process flow.

    You need to know the road map. For UI design, that would be the process flow for the user’s experience. This might come in the form of storyboards, journey maps or other ways of describing the process, but everyone should be familiar with it before considering the UI.
  • Demo the product, but show more than tell.

    I cannot stress this one enough: A great user experience has a lot more showing than telling. The end user will need to know exactly how the product works with minimal explanation. Your demo should also require as little explanation as possible. As the saying goes, a good UI is like a joke: If you have to explain it, it’s not very good.

Asking The Right Questions Link

Plenty of questions7 and statements8 work against strong cooperation in a design critique. Here are a few questions that I have found open dialogue for exploring designs in a collaborative, rather than combative, way, which you can suggest to your team.

Ask More Questions.9
The key is to ask the right questions. (Image: Jonathan Simcoe10) (View large version11)

“How Did You Come Up With That Solution?” Link

A great place to start any critique or conversation is to ask the designer how — not why — they did something. Asking why immediately puts them on the defensive, while asking how invites exploration of the concept’s origin without the need for justification.

Description of the image.12
Finding answers is easy. Asking the right questions is hard. (Image: Jason CranfordTeague13) (View large version14)

“Why” questions push us towards trying to prove something is “true,” rather than explaining it as one possibility. According to Aaron Morton15:

“Why” elicits a story, explanations of why something is true. If you ask why nothing is working out the way you want it to, you are likely to create a story, which may or may not be true. This is dangerous territory in making you feel bad.

Instead of asking “why,” consider asking “how” questions to elicit a story about the process of creation, rather than a defence of its existence. From there, you can then ask what possibilities the designer considered before, and only then explore alternatives they may not have considered. But listen carefully to what the designer has already tried before offering suggestions. They may have overlooked something, but don’t go into the conversation assuming so.

“Where Did You Get the Idea To Do It That Way?” Link

Thomas Edison famously said, “Genius is one percent inspiration and ninety-nine percent perspiration.” But he largely stole his one percent from Nikola Tesla. Then again, Picasso said, “Good artists borrow, great artists steal” (but he probably stole that line).

A central idea of Pixar Animation president Ed Catmull16’s book Creativity, Inc is that having a great team is more important than having a great idea:

Getting the right people and the right chemistry is more important than getting the right idea.

We rarely conceive ideas in a vacuum, and thinking about where we got our inspiration from can push our own innovation. Even better, bringing our inspirations together in a team setting can spawn new ideas.

A word of caution: Be careful not to sound accusatory or condescending — i.e. implying they stole the idea. Though, you do want the designer to push their own understanding of the motivations for their ideas and where they came from, without squishing the innovation.

“When Does That Need to Happen?” Link

Just like in comedy, timing is everything in temporal design17, and events need to happen at the right time and in the right order. When we are designing, though, that order is not always obvious until we have to sit down and explain it.

A great UI is like a great story, and that means you have to carefully pace it. How much information is just enough to get started with a form? Are you displaying data in the right context for the user to understand? Is this the right moment to reveal the conclusion?

Jason Kunesh, CEO of Public Good18, a startup that helps nonprofits connect with people through the news, tells me:

For our customers, a great interaction at the right moment is the difference between a happy fan of the product or service and a lost opportunity to connect. Turning a casual interaction into a lasting relationship depends on a series of tiny, positive interactions and messages arriving when people are ready for them.

Part of the critique process should be to iron out the wrinkles in the timing of the interface by asking at every opportunity whether this is the right moment to perform an action, ask a question or present data.

“Can We Use Motion to Add Visual Cues?” Link

This question will surprise a lot of designers who are used to the static nature that has dominated UI design for years. However, movement, animation and transitions are becoming the norm in experience design. Motion will soon be as important to consider in a design as color.

Animated UI.19
Motion is as important as color in modern UI design. (Image: Jakub Antalík20) (View large version21)

According to UI animation expert Rachel Neighbors22:

With the rise of flat design and the UX stumbles that have come with it, we’ve seen just how dangerous it can be to strip visual cues from a site’s components. Animation can be used to the opposite effect.

Movement or change could be as simple as a change in opacity or color, or a monkey’s arm stretching across the page, or a sun rising as the user completes a task. Asking about adding moment-to-moment movement in a UI design will often push the designer to change their perspective in good ways. Push the designer to think beyond the discrete moment and to discuss the design in time, not just in space.

“How Could We Make It Simpler?” Link

Simplicity is hard. It seems like adding is always easier than taking away, and many UIs suffer from what I like to call the “snowflake in a blizzard” syndrome: Sure, every snowflake is unique, but you’ll never notice that in a blizzard. In UI design, we all too often see interfaces chockablock full of links, buttons, controls and images. Clients will often think they need to include everything the audience might ever need, to the point that you can’t find anything you actually need.

Simple.23
Reduce noise and clutter. (Image: Bench24) (View large version25)

I put the simplicity question to Steve Krug, author of Don’t Make Me Think26:

I think it’s a very useful question. I would have thought it’s a lesson everyone’s absorbed by now, but I know they haven’t. I always like to say that anything on the page or screen that’s not part of the solution — for the user’s real goals — is noise and a candidate for being thrown overboard.

At every step in a design, we need to ask ourselves, How can we create something that requires less thought yet keeps the same power? In a critique, this is best expressed by asking how to make something simpler. It’s important to maintain clarity in the design, but to do so with fewer clicks, less text and not as many form fields. Get down to the bare minimum needed to get the job done, and your users will thank you.

“What Happens Next?” Link

A great design critique shares a lot in common with a great interview: They are both about exploration. One of the greatest interviewers, Studs Terkel, said27:

[Interviewing] isn’t an inquisition; it’s an exploration, usually an exploration into the past. So I think the gentlest question is the best one, and the gentlest is, “And what happened then?”

Applying this to a UI design, we always need to ask the designer to think about what happens next. This question invites them to think beyond what they considered to be the end. Users must always have somewhere to go next.

One of the greatest challenges to envisioning any UI is to consider all of the possible paths, not just the “happy path” we want the user to take. What happens after they click a button? What happens if there is an error? What happens after they submit a form? Ask what happens next until you’ve considered every possible scenario, otherwise you run the risk of leaving the user hanging, which is always a bad experience.

Don’t Just Ask Questions to Answer Them Link

When asking these questions — or any others for that matter — don’t ask simply so that you can answer yourself. It is annoying when someone asks you a question not to hear your answer or to understand your thinking but simply to hear their own voice.

Blank Notebook.28
Be ready to take notes and listen. (Image: Luis Llerena29) (View large version30)

If you are one of those people, cut it out immediately. Ask all of your questions with your mind wide open to the answers given. Then, craft your responses based on those answers, not the answers you wanted to hear.

What A Good UI Critique Looks Like Link

Critiques will vary greatly depending on the skills, goals and responsibilities of the participants. However, a good critique always focuses on specific aspects of the product and thoroughly explores the presented solution.

A UI critique focuses not just on what the product looks like at the moment, but on how it works over time and whether this best suits the user’s needs. Rather than considering the user’s needs, participants will often wonder why something wasn’t done the way they expected. Jason Ulaszek of UX for Good31 agrees, telling me about his own critiques:

Staying objective in our discussion and considering the mental model of the individual tasked with using the design [i.e. the user] is critical in how we discuss the solution.

Always keep in mind that — like cell-based animation, where a second’s worth of the final film could take weeks or months to produce — while we might spend hours agonizing over a minute detail in the interface, it will probably be just a blip on the user’s radar.

CCTV Cams.32
The whole team needs to be looking in the same direction. (Image: Matthew Wiebe33) (View large version34)

Steve Krug had this to say when I asked him about this:

We’re thinking, “great literature” (or at least “product brochure”), while the user’s reality is much closer to “billboard going by at 60 miles an hour.” It’s incredibly hard for UI designers to realize just how quickly people are zooming through — or past — the interface they’ve worked so hard to develop, and how little of it they actually take in.

A good UI critique slows down to consider every element, but recognizes that this is not how the user will be seeing the design. If the participants in your critique do not have formal training to speak directly to color, typography or experience design, they can still consider these important factors in all UI designs:

  • Consistency

    Are the design and its implementation consistent throughout the product? This includes color, typography, controls, imagery and any design element (static or interactive) that is used more than once in the interface.
  • Context

    Have you consistently respected the context of the user as they are using the product? Constantly asking this question is key because you are likely not in that context, but merely simulating it, while designing or testing.
  • Voice

    Do the brand and design have a clear, consistent and recognizable voice?
  • Transitions

    Are you using transitions from state to state for any significant changes in the UI? Modern designs are about far more than the visual. Consider how all interface elements move and change during the user’s interaction.
  • Simplicity

    Is the design as simple as it can be to get the job done?

Avoiding Hostile Critiques Link

Critiques can be — and often are — done in a pugnacious way, where members of the team, for whatever reason, are inclined to criticize the work without listening to the thought process that went into its creation. They bring their own biases to the design, rather than consider the user, and they often just try to show how clever they are.

You can always tell when a critique becomes overly aggressive: The designer tends to become prickly about their decisions, rather than explain how they arrived at them and discuss alternatives. The key to avoiding aggressive critiques is to set out clear principles and ask open-ended, constructive questions. Remember that the idea is to strengthen the design collaboratively, not to win a design battle.

I find aggressive critiques to be unhelpful and usually harmful. Antagonistic critiques force the designer into a defensive posture, entrenching them in what they have done, rather than empowering them to expand it. Design is — to a very large extent — intuitive and not always easily qualifiable, much less quantifiable.

However, that does not mean the critique is purely about the designer’s opinion; it is about the designer’s well-informed opinion gained through years of study. Web producer Phillip Djwa35 of Agentic feels that the key is to…

… speak from my experience, and not try to generalize. For example, I would ask, “I wonder whether the opening banner is communicating enough of the brand?” instead of, “Wow, people will never understand what brand value we have.”

Final Word: A Critique Is Not Usability Testing Link

It’s easy to trick yourself into thinking that you speak for the audience, either through the use of personas or your own biases. No matter how many personas you create or critiques you run through, you are not your audience. Steve Krug tells me:

This is one reason why I think every designer should spend time watching people try to use what they’ve built (aka usability tests).

Toolchest.36
A design critique is just one tool in your UX toolchest. (Image: Todd Quackenbush37) (View large version38)

Just like a laser level39 versus a bubble level, usability testing is more precise and accurate than internal critiques, but also generally more time-consuming and expensive. Regular design critiques are invaluable for keeping a project on target but can never replace getting out in the field and testing with real-life users. Otherwise, all you are doing is talking to yourself.

(ah, al, il)

Footnotes Link

  1. 1 https://www.smashingmagazine.com/wp-content//uploads/2016/08/create-opt.jpeg
  2. 2 https://unsplash.com/@bamagal
  3. 3 https://www.smashingmagazine.com/wp-content//uploads/2016/08/create-opt.jpeg
  4. 4 https://www.smashingmagazine.com/wp-content//uploads/2016/08/critique-opt.jpg
  5. 5 http://cranfordTeague.com/
  6. 6 https://www.smashingmagazine.com/wp-content//uploads/2016/08/critique-opt.jpg
  7. 7 https://medium.com/jasonspeaking-report/6-seemingly-innocent-questions-guaranteed-to-kill-creativity-c4d35aa8f2cd#.kbk4wne2l
  8. 8 https://medium.com/jasonspeaking-report/6-statements-that-kill-ui-creativity-f0a8384a63aa#.ahc7de9j9
  9. 9 https://www.smashingmagazine.com/wp-content//uploads/2016/08/questions-opt.jpeg
  10. 10 https://unsplash.com/@jdsimcoe
  11. 11 https://www.smashingmagazine.com/wp-content//uploads/2016/08/questions-opt.jpeg
  12. 12 https://www.smashingmagazine.com/wp-content//uploads/2016/08/solution-opt.jpg
  13. 13 http://cranfordteague.com/
  14. 14 https://www.smashingmagazine.com/wp-content//uploads/2016/08/solution-opt.jpg
  15. 15 http://lateralaction.com/articles/creative-questions
  16. 16 http://waltdisneystudios.com/corp/unit/6/bio/53
  17. 17 https://medium.com/jasonspeaking-report/temporal-design-thinking-8b37e2879d08#.u8qxa5do8
  18. 18 https://publicgood.com/
  19. 19 https://www.smashingmagazine.com/wp-content//uploads/2016/08/goals-animation.gif
  20. 20 https://dribbble.com/antalik
  21. 21 https://www.smashingmagazine.com/wp-content//uploads/2016/08/goals-animation.gif
  22. 22 http://rachelnabors.com/
  23. 23 https://www.smashingmagazine.com/wp-content//uploads/2016/08/simple-opt.jpg
  24. 24 https://unsplash.com/@benchaccounting
  25. 25 https://www.smashingmagazine.com/wp-content//uploads/2016/08/simple-opt.jpg
  26. 26 https://www.sensible.com/
  27. 27 http://www.nytimes.com/2008/11/01/books/01terkel.html
  28. 28 https://www.smashingmagazine.com/wp-content//uploads/2016/08/notes-opt.jpeg
  29. 29 https://unsplash.com/@albertosaure
  30. 30 https://www.smashingmagazine.com/wp-content//uploads/2016/08/notes-opt.jpeg
  31. 31 http://www.uxforgood.com
  32. 32 https://www.smashingmagazine.com/wp-content//uploads/2016/08/looks-opt.jpeg
  33. 33 https://unsplash.com/@matthewwiebe/
  34. 34 https://www.smashingmagazine.com/wp-content//uploads/2016/08/looks-opt.jpeg
  35. 35 http://www.agentic.ca/studio/phillip-djwa
  36. 36 https://www.smashingmagazine.com/wp-content//uploads/2016/08/tools-opt.jpg
  37. 37 https://unsplash.com/@toddquackenbush
  38. 38 https://www.smashingmagazine.com/wp-content//uploads/2016/08/tools-opt.jpg
  39. 39 http://www.dewalt.com/en-us/products/hand-tools/measuring-and-layout-tools/self-leveling-line-lasers/12v-max-compatible-red-cross-line-laser/dw088lr
SmashingConf New York

Hold on, Tiger! Thank you for reading the article. Did you know that we also publish printed books and run friendly conferences – crafted for pros like you? Like SmashingConf Barcelona, on October 25–26, with smart design patterns and front-end techniques.

↑ Back to topTweet itShare on Facebook