<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: invot</title>
    <description>The latest articles on DEV Community by invot (@invot).</description>
    <link>https://dev.to/invot</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F141154%2F79a30e83-a490-405c-af6e-b4c0d190fa52.jpeg</url>
      <title>DEV Community: invot</title>
      <link>https://dev.to/invot</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/invot"/>
    <language>en</language>
    <item>
      <title>How to Know Thy User</title>
      <dc:creator>invot</dc:creator>
      <pubDate>Mon, 09 Mar 2020 19:34:28 +0000</pubDate>
      <link>https://dev.to/invot/how-to-know-thy-user-907</link>
      <guid>https://dev.to/invot/how-to-know-thy-user-907</guid>
      <description>&lt;p&gt;More often than not, the person using an application is represented by an icon that’s profoundly vague. It's a monotone stamp, devoid of any expression or recognizable features. &lt;strong&gt;This icon could not be further from the truth.&lt;/strong&gt; The User is a unique individual with their own set of expertise and experience. They think. They feel. They probably drink less coffee than I do.&lt;/p&gt;

&lt;p&gt;So I'd like to hear your feedback on how you go about getting to &lt;em&gt;know thy user&lt;/em&gt;. &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;How do I best communicate with my hallowed Users and develop a relationship with them that's advantageous towards my goals?&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;What is important for me to know about them? Monitor size? Blood type? Favorite band? What, no matter the project, is essential knowledge? What else falls under the "it depends" category?&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Which tools are available to make this process awesome for everyone? What is a "must-have" for creating that link between you and the User group?&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>discuss</category>
      <category>ux</category>
      <category>userresearch</category>
    </item>
    <item>
      <title>What Chickens Teach Us About Color Psychology</title>
      <dc:creator>invot</dc:creator>
      <pubDate>Mon, 10 Feb 2020 19:48:45 +0000</pubDate>
      <link>https://dev.to/invot/what-chickens-teach-us-about-color-psychology-5dci</link>
      <guid>https://dev.to/invot/what-chickens-teach-us-about-color-psychology-5dci</guid>
      <description>&lt;p&gt;We like to think that we are the masters of our own destiny: that dspite a constant blitzkrieg of flashy, modern-world stimulation, we have sole governance over our thoughts and feelings. Our minds are a private, impenetrable chamber from which our thoughts spring forth. Our hearts and minds are inside of us. They belong to us. The outside world can't lay dominance over these things. &lt;em&gt;Right&lt;/em&gt;?&lt;/p&gt;

&lt;p&gt;We like to think this. A world where our wills can bend and fold to the whims of whatever stimuli we come across - now that's scary. Can a clever TV commercial really convince people to eat a hamburger? Can a mediocre, otherwise-uninteresting book actually force someone to &lt;a href="https://en.wikipedia.org/wiki/The_Catcher_in_the_Rye_in_popular_culture#Shootings"&gt;murder John Lennon?&lt;/a&gt; Can the mere sight of a particular &lt;em&gt;color&lt;/em&gt; change the way we think, feel, and behave?&lt;/p&gt;

&lt;p&gt;I'd like to say no. But I can't. Because &lt;em&gt;chickens&lt;/em&gt; wear &lt;em&gt;sunglasses&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;Let me explain:&lt;/p&gt;

&lt;p&gt;During the 1950's, farmers realized that raising chickens under red light yielded a multitude of benefits: The chickens were less aggressive. They were happier, friendlier, and more productive. Not only did these chickens eat less, they also produced more eggs. Additionally, chickens basking under red lights were far less likely to engage in the pesky habit of cannibalizing one-another. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--1joSBppV--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/ad96f43kwrgyrxiursrm.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--1joSBppV--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/ad96f43kwrgyrxiursrm.jpg" alt=""&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In short, happy chickens bathed in red light means larger profits for the farm owner. Unfortunately, the farm workers were not very happy working under red lights, as they struggled to see properly. So farmers devised an alternative approach: tiny, rose-tinted glasses. &lt;/p&gt;

&lt;p&gt;This eyeware quickly saturated the industry. Afterwards, the price to produce an egg dropped to below a third of a cent. An entire industry had been forever changed.&lt;/p&gt;

&lt;p&gt;So, if something as simple as red lenses can have such a profound psychological effect on chickens, could the same thing happen with people? Are we any wiser than &lt;em&gt;chickens&lt;/em&gt; wearing &lt;em&gt;sunglasses&lt;/em&gt;?&lt;/p&gt;

&lt;p&gt;According to interior decorators, the answer is &lt;em&gt;no&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;Something as simple as the color of a wall can affect the way people behave, and how they see the world around them.&lt;/p&gt;

&lt;p&gt;"Red is never boring," proclaims interior designer &lt;a href="https://citystudiosinteriors.com/about"&gt;Denna McLaughlin&lt;/a&gt;. "A couple of big red chairs are inviting ... I also love red for drapery … it gives the room a soft red glow that makes people want to be together." Like chickens, seeing red invokes a clear emotional response in people. But unlike chickens, the color of blood doesn't always placate us. In a study where prison cells were painted various colors, it was found &lt;a href="http://www.orthomolecular.org/library/jom/1979/pdf/1979-v08n04-p218.pdf"&gt;pink walls reduced aggressive behavior&lt;/a&gt; in inmates the most. Red, inversely, was associated with an increase in aggressive behavior.&lt;/p&gt;

&lt;p&gt;"Color is all around us and even in our vocabulary. We say we feel ‘blue'," says interior designer and color expert Elaine Ryan. Colors and emotions are deeply intertwined in our psyche. Walking into a room decorated in blue can have a &lt;a href="https://www.verywellmind.com/the-color-psychology-of-blue-2795815"&gt;surprising impact&lt;/a&gt;: In these rooms conversions are quieter, workers are more productive, and pulse rates lower. &lt;a href="https://www.thespruce.com/how-room-color-affects-mood-451990"&gt;Painting the walls blue&lt;/a&gt; will result in the room appearing smaller. &lt;a href="https://interiorsbymelanie.com/the-psychology-of-floor-colour/"&gt;Installing a blue floor&lt;/a&gt; will result in people feeling less hungry. This association between color and emotion reaches so deeply within us, “feeling blue” &lt;a href="https://www.sciencedaily.com/releases/2015/09/150902112006.htm"&gt;can literally prevent us from seeing other colors&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;We’ve studied this phenomena since the Middle Ages, and scientists continue to study it today:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;In 1996, scientists discovered the color of a placebo pills is &lt;a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC2359128"&gt;reported to be a factor&lt;/a&gt; in their effectiveness.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;In 2000, the city of Glasgow installed blue street lighting in certain neighborhoods and &lt;a href="https://web.archive.org/web/20120717111424/http://seattletimes.nwsource.com/html/nationworld/2008494010_bluelight11.html"&gt;subsequently reported&lt;/a&gt; a reduced crime rate in those areas.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;In 2014, scientists &lt;a href="https://www.nature.com/articles/srep05899"&gt;noticed&lt;/a&gt; that the color red affects time perception in men, but not in women.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It is a fact that our environment can affect our mood, our productivity and our creativity. Yet, this doesn't mean we cannot likewise influence our environment. &lt;strong&gt;The colors in our world definitely color us, so it’s important we deliberately color our world in return.&lt;/strong&gt; Understanding how our surroundings impact our minds allows us to better enforce the independence of our thought.&lt;/p&gt;

&lt;p&gt;Take a moment to realize that what you're feeling, and what other's feel too, is part of a collaborative effort between every creative force in the universe. When José Ortega y Gasset said “I am I, and my circumstance”, he was probably not thinking about chickens in sunglasses. However, little things, like the color of your computer's desktop wallpaper, can effect how you feel about your life overall. So don't only be &lt;em&gt;be mindful of what you create&lt;/em&gt;, but also &lt;em&gt;be mindful of the company you keep&lt;/em&gt;. &lt;strong&gt;What's around you is also inside of you.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Though it may be nice to believe that our minds are a fortress - completely unaffected by our surroundings - it's simply not true. And if someone ever asks me how I could possibly know that with such certainty, my answer is simple: &lt;/p&gt;

&lt;p&gt;"because &lt;em&gt;chickens&lt;/em&gt; wear &lt;em&gt;sunglasses&lt;/em&gt;."&lt;/p&gt;

</description>
      <category>design</category>
      <category>color</category>
      <category>psychology</category>
      <category>ux</category>
    </item>
    <item>
      <title>12 Tips to Improve Accessibility</title>
      <dc:creator>invot</dc:creator>
      <pubDate>Thu, 28 Feb 2019 20:07:59 +0000</pubDate>
      <link>https://dev.to/invot/12-tips-to-improve-accessibility-4g8e</link>
      <guid>https://dev.to/invot/12-tips-to-improve-accessibility-4g8e</guid>
      <description>&lt;p&gt;It’s a common assumption that accessibility is only for people with disabilities. Though individuals with visual, auditory, physical, speech, cognitive and neurological disabilities should always be kept in mind, an accessible web should be designed for, and benefit, &lt;strong&gt;everyone&lt;/strong&gt;. People with or without disabilities. Web users and web developers. Keep in mind that peoples' needs and preferences are wildly diverse. An accessible web gives your users the flexibility to access digital materials in whatever way they need or want to.&lt;/p&gt;

&lt;h2&gt;
  
  
  Concepts to Keep in Mind
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Human beings are all different and diverse&lt;/strong&gt;. Just as we celebrate the diversity of individuals in a cultural context, so should we design technologies that take diverse needs and preferences into account.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Accessible design is innovative design&lt;/strong&gt;. The same design principles that make technologies accessible — semantic mark-up, intuitive information hierarchy, machine-readable text — are also principles that promote mobile design and a semantic web.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Technology has the potential to be a great equalizer&lt;/strong&gt; — but inaccessible technology only further excludes people. Let’s embrace the potential of technology to let people be as independent, self-sufficient, and connected as possible.&lt;/p&gt;

&lt;h2&gt;
  
  
  The 12 Methods to Improve Accessibility
&lt;/h2&gt;

&lt;p&gt;Below you will find a list of some key principles of accessible design. Most accessibility principles can be implemented very easily and will not impact the overall “look and feel” of your web site.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href="http://webaim.org/techniques/alttext"&gt;Provide appropriate alternative text&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Alternative text provides a textual alternative to non-text content (such as pictures and images) in web pages. It is especially helpful for people who are blind and rely on a screen reader to have the content of the website read to them.  &lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href="http://webaim.org/techniques/semanticstructure"&gt;Provide appropriate document structure&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Headings, lists, and other structural elements provide meaning and structure to web pages. They can also facilitate keyboard navigation within the page.  &lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href="http://webaim.org/techniques/tables"&gt;Provide headers for data tables&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Tables are used online for layout and to organize data. Tables that are used to organize tabular data should have appropriate table headers (the &lt;/p&gt;
&lt;th&gt; element). Data cells should be associated with their appropriate headers, making it easier for screen reader users to navigate and understand the data table.  
&lt;li&gt;
&lt;p&gt;&lt;a href="http://webaim.org/techniques/forms"&gt;Ensure users can complete and submit all forms&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Ensure that every form element (text field, checkbox, dropdown list, etc.) has a label and make sure that label is associated to the correct form element using the  element. Also make sure the user can submit the form and recover from any errors, such as the failure to fill in all required fields.  &lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href="http://webaim.org/techniques/hypertext"&gt;Ensure links make sense out of context&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Every link should make sense if the link text is read by itself. Screen reader users may choose to read only the links on a web page. Certain phrases like “click here” and “more” must be avoided.  &lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href="http://webaim.org/techniques/captions"&gt;Caption and/or provide transcripts for media&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Videos and live audio must have captions and a transcript. With archived audio, a transcription may be sufficient.  &lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Ensure accessibility of non-HTML content, including &lt;a href="http://webaim.org/techniques/acrobat"&gt;PDF files&lt;/a&gt;, &lt;a href="http://webaim.org/techniques/word"&gt;Microsoft Word&lt;/a&gt; documents, &lt;a href="http://webaim.org/techniques/powerpoint"&gt;PowerPoint&lt;/a&gt; presentations and &lt;a href="http://webaim.org/techniques/flash"&gt;Adobe Flash&lt;/a&gt; content&lt;/p&gt;

&lt;p&gt;In addition to all of the other principles listed here, PDF documents and other non-HTML content must be as accessible as possible. If you cannot make it accessible, consider using HTML instead or, at the very least, provide an accessible alternative. PDF documents should also include a series of tags to make it more accessible. A tagged PDF file looks the same, but it is almost always more accessible to a person using a screen reader.  &lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href="http://webaim.org/techniques/skipnav"&gt;Allow users to skip repetitive elements on the page&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You should provide a method that allows users to skip navigation or other elements that repeat on every page. This is usually accomplished by providing a “Skip to Main Content,” or “Skip Navigation” link at the top of the page which jumps to the main content of the page.  &lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href="http://webaim.org/articles/visual/colorblind"&gt;Do not rely on color alone to convey meaning&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The use of color can enhance comprehension, but do not use color alone to convey information. That information may not be available to a person who is colorblind and will be unavailable to screen reader users.  &lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href="http://webaim.org/techniques/writing"&gt;Make sure content is clearly written and easy to read&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;There are many ways to make your content easier to understand. Write clearly, use clear fonts, and use headings and lists appropriately.  &lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href="http://webaim.org/techniques/javascript"&gt;Make JavaScript accessible&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Ensure that JavaScript event handlers are device independent (e.g., they do not require the use of a mouse) and make sure that your page does not rely on JavaScript to function.  &lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href="https://developer.mozilla.org/en-US/docs/Learn/Accessibility/CSS_and_JavaScript"&gt;Design to standards&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Ensure that every page is fully-functional even when the stylesheets are disabled. HTML compliant and accessible pages are more robust and provide better search engine optimization. &lt;a href="http://webaim.org/techniques/css"&gt;Cascading Style Sheets (CSS)&lt;/a&gt; allow you to separate content from presentation. This provides more flexibility and accessibility of your content.&lt;/p&gt;
&lt;/li&gt;

&lt;/th&gt;
&lt;/li&gt;
&lt;/ol&gt;

</description>
    </item>
    <item>
      <title>Dr Browsersupport: Or How I Learned to Stop Worrying and Target Evergreen Browsers</title>
      <dc:creator>invot</dc:creator>
      <pubDate>Thu, 28 Feb 2019 20:03:05 +0000</pubDate>
      <link>https://dev.to/invot/dr-browsersupport-or-how-i-learned-to-stop-worrying-and-target-evergreen-browsers-1n4m</link>
      <guid>https://dev.to/invot/dr-browsersupport-or-how-i-learned-to-stop-worrying-and-target-evergreen-browsers-1n4m</guid>
      <description>&lt;p&gt;As a developer, your work is your art, and you want to share it with the world. After countless hours, you polish and perfect your work. It's &lt;em&gt;beautiful&lt;/em&gt;. It's &lt;em&gt;ready&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;This is why there’s no worse feeling than when a customer opens a link to your project and, with a quick &lt;em&gt;poof,&lt;/em&gt; they’re staring at a scrambled rendition of your &lt;em&gt;magnum opus&lt;/em&gt;. Both of you wonder why this is happening, but it quickly hits you: For whichever reason, your client has failed to sever ties with the dreaded beast that is &lt;em&gt;Internet Explorer&lt;/em&gt;. They later mention the site also looks “off” on their nephew’s &lt;a href="https://en.wikipedia.org/wiki/Tamagotchi"&gt;Tamagotchi&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;It’s a delicate tightrope we walk as developers: &lt;strong&gt;we want to build rich, cutting-edge experiences while at the same time invite everyone to the party&lt;/strong&gt;. In a world where consumers are unsure &lt;a href="https://www.theatlantic.com/technology/archive/2015/07/what-is-a-computer-anymore/399014"&gt;what a computer even is anymore&lt;/a&gt;, where people can access the web from their &lt;a href="https://www.twowaymirrors.com/smart-mirror"&gt;mirrors&lt;/a&gt;, watches, and even their &lt;a href="https://www.fastcompany.com/3056820/this-comfy-shoe-doubles-as-a-footstep-powered-wi-fi-hotspot"&gt;shoes&lt;/a&gt;, how can we ensure we are providing the best experience to everyone? And how can we politely break the news to those holding on to their &lt;a href="https://en.wikipedia.org/wiki/Intel_80386"&gt;dusty 386 tower&lt;/a&gt; that &lt;a href="http://outdatedbrowser.com/en"&gt;we need to move on&lt;/a&gt;?&lt;/p&gt;

&lt;p&gt;For most developers the concept of &lt;a href="https://developer.mozilla.org/en-US/docs/Learn/Tools_and_testing/Cross_browser_testing"&gt;Cross-Browser Testing&lt;/a&gt; is nothing new. In recent years, as web rendering engines have largely found consensus on how to operate, it’s becoming a more permissible task to avoid. What renders properly in Chrome will likely render just the same in Firefox, Edge, and Safari (on OSX anyway). That is because all these browsers share a common trait: They’re &lt;a href="https://www.techopedia.com/definition/31094/evergreen-browser"&gt;Evergreen&lt;/a&gt;.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;The term "evergreen" refers to the release strategy. Evergreen browsers are updated frequently in the background, &lt;strong&gt;constantly aligning their compliance with the latest&lt;/strong&gt; &lt;a href="https://en.wikipedia.org/wiki/Web_standards"&gt;&lt;strong&gt;Web Standards&lt;/strong&gt;&lt;/a&gt; and also adding proprietary features. The version of an evergreen browser lost its importance, because an evergreen browser is expected to run on the most recent version.&lt;/p&gt;

&lt;p&gt;&lt;a href="http://www.adam-bien.com/roller/abien/entry/what_is_an_evergreen_browser"&gt;&lt;em&gt;What is an Evergreen Browser?&lt;/em&gt;&lt;/a&gt; &lt;em&gt;- Adam Bien&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The reasons to keep your browser &lt;a href="https://www.whatismybrowser.com/guides/how-to-be-safe-online/why-should-i-update-my-web-browser"&gt;up-to-date&lt;/a&gt; are &lt;a href="https://computer.howstuffworks.com/update-internet-browser.htm"&gt;far-and-wide&lt;/a&gt;. However, there are a few reasons why someone might browse through the nostalgic lens of IE9 or Netscape: they either don’t know they &lt;em&gt;need&lt;/em&gt; to update or they don’t know &lt;em&gt;how.&lt;/em&gt; The majority of the sites they visit may still be functional, and may provide no cue that anything is wrong, though the console quietly fills with errors behind-the-scenes. Nobody told them &lt;a href="https://browser-update.org/"&gt;how or why they should use a better browser&lt;/a&gt;!&lt;/p&gt;

&lt;p&gt;Developing modern web applications that maintain compatibility with older browsers is admirable, but it ultimately leaves your projects stuck in the long-forgotten age of MySpace. &lt;strong&gt;New technologies exist so we can use them&lt;/strong&gt;, not just supplement their functionality with polyfills.&lt;/p&gt;

&lt;h2&gt;
  
  
  Prompting to Update
&lt;/h2&gt;

&lt;p&gt;Web usage statistics show that a vast majority of web users have already adopted an Evergreen browser. For desktop users, all new machines come with an Evergreen browser pre-installed. For mobile devices, they are the only option. In fact, as of January 2019, browsers that do not auto-update account for &lt;a href="https://www.w3schools.com/browsers/browsers_explorer.asp"&gt;less than 2% of web traffic&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;However, this 2% should not be brushed off so quickly. It’s important that we &lt;a href="https://medline-confluence.atlassian.net/wiki/spaces/DCOP/blog/2019/02/27/114394344/12+Tips+to+Improve+Accessibility"&gt;build a better web for everyone&lt;/a&gt;. So, for anyone running an unsupported browser, it’s important to inform users to upgrade.&lt;/p&gt;

&lt;p&gt;By either &lt;em&gt;prompting the user that your application will not work properly in an unsupported browser&lt;/em&gt;, or by flat-out &lt;em&gt;barring their access with a prompt&lt;/em&gt;, you’re drawing a hard line in the sand that needs to exist: The world is constantly changing. The world-wide-web is changing even faster. Update or be left behind. It’s dangerous not to.&lt;/p&gt;

&lt;h2&gt;
  
  
  Browser Sniffing
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Browser_detection_using_the_user_agent"&gt;Browser sniffing&lt;/a&gt; (also known as browser detection) is a &lt;a href="https://dev.to/_elmahdim/safe-reliable-browser-sniffing-39bp"&gt;set of techniques&lt;/a&gt; used to determine the web browser a visitor is using, and to serve browser-appropriate content to the visitor. Though this practice is still somewhat common, &lt;strong&gt;its usefulness is exclusive to non-evergreen browsers&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Older developers might recall the most common way to employ browser detection. IE allowed developers to target older versions using &lt;a href="https://www.quirksmode.org/css/condcom.html"&gt;conditional comments&lt;/a&gt;. For the time, it was a glorious work-around to the massive inconsistencies that existed between versions.&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;!--[if IE 8 ]&amp;gt; &amp;lt;html class="ie8"&amp;gt; &amp;lt;![endif]--&amp;gt;
&amp;lt;!--[if IE 9 ]&amp;gt; &amp;lt;html class="ie9"&amp;gt; &amp;lt;![endif]--&amp;gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;The example above applies a conditional class to the &lt;code&gt;HTML&lt;/code&gt; element, allowing you to load stylesheets, scripts, and other assets that target a specific version of a browser.&lt;/p&gt;

&lt;h2&gt;
  
  
  Feature Detection
&lt;/h2&gt;

&lt;p&gt;Thankfully, the web is now a very different place. Versioning is much less meaningful in newer browsers. Developers don’t write applications to spec for a specific browser. Instead, they employ specific technologies, or features. Only browsers that support that set of features can properly run their software.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.html5rocks.com/en/tutorials/detection/"&gt;Feature detection&lt;/a&gt; (also feature testing) is a technique used for handling differences between runtime environments (typically web browsers or user agents), by &lt;a href="https://modernizr.com/"&gt;programmatically testing for clues&lt;/a&gt; that the environment may or may not offer certain functionality. Feature detection is arguably more reliable and future-proof than other techniques like browser sniffing and browser-specific CSS hacks.&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;if ("geolocation" in navigator) {
  navigator.geolocation.getCurrentPosition(function(position) {
    // show the location on a map, perhaps using the Google Maps API
  });
} else {
  // Give the user a choice of static maps instead 
  // Or prompt them to upgarde their browser
}
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;Feature detection allows software to take an inventory of the technologies it uses, allows for graceful degradation, and can provide detailed reasons as to why something is unsupported in the User's current environment – along with detailed steps on how to address the issue.&lt;/p&gt;

&lt;h2&gt;
  
  
  Final Words
&lt;/h2&gt;

&lt;p&gt;It’s hard roping off your work from a certain audience, prompting them to instead adhere to &lt;em&gt;your&lt;/em&gt; standards. Something about forcing a user to do something to their system feels very… &lt;em&gt;un-developery&lt;/em&gt;. But the importance of this is paramount: Polyfills only go so far, and security issues abound in older browsers. Giving users a free pass to use dangerously outdated technology includes a hefty price-tag for all of us. The amount of additional code required to run a modern site in a non-modern browser can double its footprint and slow the experience for everyone - even those using modern browsers. Let’s use the time we’ve traditionally spent crying over IE’s &lt;a href="https://github.com/philipwalton/flexbugs"&gt;strange implementation&lt;/a&gt; of web technologies and instead: &lt;em&gt;develop&lt;/em&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Resources
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://modernizr.com/"&gt;Modernizr&lt;/a&gt; is a popular feature detection library that tells you what HTML, CSS and JavaScript features your user’s browser has to offer.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="http://featurejs.com/"&gt;Feature.js&lt;/a&gt; is another fast, simple and lightweight browser feature detection library written in plain JavaScript.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://github.com/phiggins42/has.js/"&gt;has.js&lt;/a&gt; is another popular alternative for feature detection.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://developer.mozilla.org/en-US/docs/Learn/Tools_and_testing/Cross_browser_testing/Feature_detection"&gt;MDN’s&lt;/a&gt; Web Docs offers a great tutorial on how to implement feature detection into your project.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.npmjs.com/package/feature-detect"&gt;feature-detect&lt;/a&gt; is a node package that provides feature detection support for Node.js or Io.js compatible environments. It is not intended to provide feature detection support in browser environments.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
    </item>
  </channel>
</rss>
