<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Nijin Vinodan on Medium]]></title>
        <description><![CDATA[Stories by Nijin Vinodan on Medium]]></description>
        <link>https://medium.com/@vinodan.nijin?source=rss-93debe612329------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*gPosacu3Tjf8772ihQfZJg.jpeg</url>
            <title>Stories by Nijin Vinodan on Medium</title>
            <link>https://medium.com/@vinodan.nijin?source=rss-93debe612329------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 20 Nov 2026 05:21:45 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@vinodan.nijin/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[When AI becomes the front door, who owns your customer?]]></title>
            <link>https://medium.com/@vinodan.nijin/when-ai-becomes-the-front-door-who-owns-your-customer-e6f711356b36?source=rss-93debe612329------2</link>
            <guid isPermaLink="false">https://medium.com/p/e6f711356b36</guid>
            <category><![CDATA[customer-experience]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[user-experience]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[agentic-commerce]]></category>
            <dc:creator><![CDATA[Nijin Vinodan]]></dc:creator>
            <pubDate>Wed, 18 Nov 2026 14:44:47 GMT</pubDate>
            <atom:updated>2026-11-18T14:44:47.578Z</atom:updated>
            <content:encoded><![CDATA[<p><em>What changes when people tell an AI assistant what they need before they decide which business to use?</em></p><p>Let’s assume the year is before 2000. You run a business, and someone tells you, “<strong><em>You need a website.</em></strong>”</p><p>Until then, customers might walk into your store, call you or ask someone who had bought from you before. Now they could look you up before doing any of those things. Your business had another front door.</p><p>Then came the mobile app. Customers could browse, buy and get help from a device they carried everywhere. The store was still there. So was the website. Each new channel gave customers another way to reach you.</p><p><strong>Fast-forward to 2026.</strong> Now imagine what shopping could look like as AI agents take on more of the work. You tell an agent what you need. It looks across businesses, compares what’s available and, where supported, helps you buy or book once you approve.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GkK4Fehvrxjq2-RwLawaAA.png" /></figure><p>Take a family trip, for example. Instead of opening a booking site and working through filters, you could simply ask:</p><blockquote>“Find a hotel in Andaman for two adults and two children, from 26 to 31 December. Keep it under ₹8,000 a night, and make sure we can cancel if our plans change.”</blockquote><p>A search engine could already introduce customers to businesses they’d never heard of. What’s different here is how much of the journey can happen in one conversation. The family can go from describing what they want to confirming a booking without ever opening the hotel’s website or app.</p><p><strong>Now flip the coin.</strong></p><p>For the family, finding a hotel just got easier. For the hotel, the challenge is getting onto the shortlist in the first place.</p><ul><li><strong>The booking you see:</strong> The agent recommends your hotel, and a family books. That’s a win worth celebrating.</li><li><strong>The shortlist you never see:</strong> Another family asks for exactly what you offer, but the agent can’t tell that your rooms fit four people. It recommends other hotels. That family never reaches your website, so there’s no abandoned booking to investigate.</li></ul><p>You can’t guarantee that an agent will recommend you. But you can ask a better question: <strong>When we’re a good fit, can the agent see why and help the customer take the next step?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aepJGPIvm5YQL8fd_5B6Mg.png" /></figure><p>For businesses, that journey has three stages: <strong>Discover, Check and Act.</strong></p><p><strong>Discover: Can the assistant explain why your offer fits?</strong></p><p>A hotel website says, “Perfect for families.” It sounds good, but can two adults and two children share a room? Do the children’s ages affect eligibility? Is breakfast included for all four?</p><p>An assistant can find the hotel and still lack enough information to recommend it accurately. A room description that says “Sleeps two adults and two children under 12” gives it something specific to compare against the customer’s request.</p><p>Start with the questions customers already ask your sales or support teams before buying. Make those answers easy to find, specific and consistent wherever you publish them. Then try a few realistic requests. Check whether the assistant mentions your business, gets the facts right and explains why the offer fits.</p><p><strong>Check: Can the assistant verify the offer right now?</strong></p><p>A room that fits the family may already be booked. The price on a public page may be a starting rate. And free cancellation may apply to one rate but not another.</p><p>Checking means getting a current answer from the hotel or a supported travel partner: Is the room available for those dates? What’s the total after taxes? When does free cancellation end for this particular offer?</p><p>Finding a public listing doesn’t automatically give an assistant access to the booking system. It needs a supported connection to verify live details. Where that connection doesn’t exist, a link to the right page can help the family verify the offer themselves.</p><p><strong>Act: Can the customer complete the next step with confidence?</strong></p><p>Checking tells the family what’s available. Acting creates a booking. The assistant should show the dates, total price and cancellation terms, get the family’s approval and return a confirmation from the booking system. If the terms change before the booking goes through, the family should see the new offer before committing.</p><p>Now imagine the booking request times out. Did it fail, or did the hotel accept it without returning a confirmation? Before trying again, the system needs to check what happened. Otherwise, one request could become two bookings.</p><p>The conversation may happen elsewhere, but the business still owns the promise. It decides what can be offered and under which terms. Engineering makes sure the system enforces those terms and can confirm the outcome or recover when something goes wrong.</p><p>This applies well beyond hotels. A retailer can help a customer find a compatible product, verify that it’s in stock and place an approved order. A telecom provider can explain a plan, check coverage at the customer’s address and submit an activation request.</p><p><strong>What to do today? </strong>Pick one customer journey and try it from outside your own website or app. See whether an assistant can explain why the offer fits, verify the details that matter and help the customer take the next step. Fix one gap, then run the same test again.</p><p><strong><em>If customers stopped opening your app tomorrow, could they still choose your business and complete what they came to do?</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e6f711356b36" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Myth of Zero UI: Why AI Agents and Visual UI Are Stronger Together!]]></title>
            <link>https://medium.com/@vinodan.nijin/the-myth-of-zero-ui-why-agents-wont-replace-screens-anytime-soon-f1dbdb3a64f7?source=rss-93debe612329------2</link>
            <guid isPermaLink="false">https://medium.com/p/f1dbdb3a64f7</guid>
            <category><![CDATA[user-interface]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[user-experience-design]]></category>
            <dc:creator><![CDATA[Nijin Vinodan]]></dc:creator>
            <pubDate>Mon, 08 Dec 2025 05:12:56 GMT</pubDate>
            <atom:updated>2025-12-08T05:26:34.802Z</atom:updated>
            <content:encoded><![CDATA[<p>As AI-driven ecosystems mature, a popular narrative has emerged - <strong>“Agents will replace UI.”</strong></p><p>The assumption is that users will simply express intent : “<strong><em>Book my trip</em></strong>,” “<strong><em>Prepare my report</em></strong>,” “<strong><em>Renew my policy</em></strong>” etc., and autonomous agents will handle everything behind the scenes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1011/1*BnWWmzpr7fi-AVY5K5Gk9w.png" /></figure><p>While intent-driven automation is powerful, the idea that <strong>everything can become agentic</strong> is not only unrealistic, but fundamentally misaligned with how people make decisions and how businesses operate.</p><blockquote>The future is <strong><em>not</em></strong> Zero UI.<br> The future is a <strong>Hybrid Experience Model</strong></blockquote><ol><li><strong>Agents manage intent, orchestration, and intelligent automation</strong>, while</li><li><strong>UI handles discovery, business visibility, trust, promotions, and exploration.</strong></li></ol><p>Let’s use<em> </em><strong><em>travel application </em></strong>as an example to illustrate this shift, but the principles apply across every consumer-facing industry.</p><h3>1. What Agentic Experiences Do Exceptionally Well</h3><p>AI agents excel <em>where</em> <em>…</em></p><ul><li>Intent is clear</li><li>Workflow steps are repetitive</li><li>Personalization enhances outcomes</li><li>Users want speed rather than exploration</li></ul><p>In travel application, <em>for example</em></p><blockquote>“Find me the fastest flight to Chennai tomorrow morning.”<br> “Shortlist 4-star hotels under ₹5,000 with breakfast around airport.”</blockquote><p>The agent interprets intent, filters options, compares prices, and returns the best choices; cutting out steps users previously had to perform manually.</p><p>But automation is only <strong>half</strong> of what a modern digital experience must support.</p><h3>2. UI Becomes the Last Mile, Not the Starting Point</h3><h4>Pre-AI: UI was the product</h4><p>Users had to navigate screens, fill forms, apply filters, and manually complete flows.</p><h4>AI-first: The Agent is the product</h4><p>In AI-first apps, the Agent becomes the product, and the UI shifts into a complementary role:</p><ul><li>A place to show what the Agent has already done</li><li>A place for the user to approve, modify, or override actions</li><li>A trace of reasoning — <em>Why this? What next? What were the trade-offs?</em></li></ul><p>In this world, UI becomes the last mile, not the starting point.</p><blockquote>The journey now looks like <br><em>“State intent → Agent works → UI presents outcomes for validation.”</em></blockquote><p>UI transitions from <strong>operational</strong> to <strong>oversight</strong> mode.</p><h3>3. Will AI-First Apps Be Mostly Chat Interfaces?</h3><p>No! Chat surface will carry <em>micro UI</em> elements.</p><p>There’s a misconception that AI-first experiences will turn every application into a single chat window. In reality, <strong>chat becomes the entry point for intent</strong>, but it doesn’t replace the full spectrum of UI.</p><p>Instead, the chat stream itself will contain micro UI components</p><ul><li>Small cards</li><li>Inline summaries</li><li>Buttons</li><li>Quick reply chips</li><li>Carousels</li><li>Mini comparison tables</li><li>Embedded visuals (maps, dates, prices)</li></ul><p>These micro UI blocks (<em>Figure 2</em>) make the chat interactive without forcing users to navigate multiple screens.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EBjK5YvS6fOPJF2cMVI4_w.png" /><figcaption>Figure 1. Chat Interface with text rich content</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9DwTRFL-8XqfbIfh_8l88Q.png" /><figcaption>Figure 2. Chat Interface with Micro UI Elements</figcaption></figure><p>But beyond the chat window, AI-first apps will still require <strong>full UI surfaces</strong> <em>like</em></p><ul><li>Dashboards for overviews</li><li>Payment pages for secure transactions</li><li>Approval screens for review</li><li>Comparison views for options</li><li>Galleries and media surfaces</li><li>Promotional and business-driven panels</li></ul><blockquote>Chat becomes the intent layer, micro UI becomes the interaction layer, and traditional UI becomes the outcome and validation layer.</blockquote><p>This creates a fluid, hybrid experience; not a chat-only future.</p><blockquote>Chat triggers workflows. <br>Micro UI conveys results quickly.<br>Full UI supports decisions.</blockquote><h3>4. Why pure Agentic Interfaces would fail in the Real World</h3><p>Even with powerful AI, systems cannot rely on intent alone.<br> 3 structural realities guarantee UI will remain essential.</p><h4>a. Business needs don’t disappear : Ads, Offers &amp; Visibility Matter</h4><p>Digital platforms depend on promotions, sponsored content, partner deals, seasonal campaigns, upsells and cross sells.<br>These are push-driven elements of digital ecosystems.</p><p>Without an UI, platforms will loose revenue, merchant visibility, marketing inventory etc.,</p><p>A promotion surface must still remain, regardless of how intelligent the agent becomes.</p><h4>b. Human Behavior is not 100% Intent-Driven</h4><p>Most users frequently browse without clear goals.</p><ul><li><strong>Travel:</strong> Weekend ideas</li><li><strong>Retail:</strong> Trending gadgets</li><li><strong>Banking:</strong> Available offers</li><li><strong>Food Delivery:</strong> New restaurants</li><li><strong>Media:</strong> Latest releases</li></ul><p>Exploration is inherently <strong>visual</strong>, <strong>serendipitous</strong>, and <strong>UI-driven</strong>.</p><blockquote>Google Home and Alexa have supported <em>Zero UI</em> interactions for years, yet we still gravitate toward visual interfaces.</blockquote><blockquote>Voice is simply <strong>one mode of input and output communication : </strong>useful, hands-free, and natural, but it is <strong>not a replacement for UI </strong>yet.</blockquote><blockquote>Humans prefer visual confirmation, comparison, and control, which is why screens continue to play a crucial role even in voice-first ecosystems.</blockquote><p>No conversational agent <strong><em>yet</em></strong> can fully replace the human desire to browse and discover.</p><h4>c. Trust requires Transparency and Visual validation</h4><p>Even when AI selects the best option, users want to review..</p><ul><li>Comparisons</li><li>Alternatives</li><li>Prices</li><li>Ratings</li><li>Review summaries</li><li>Policies</li><li>Fine print</li><li>Maps</li></ul><p>Thus UI becomes the <strong>trust layer</strong>, essential for confidence and control.</p><h3>5. The Perfect Combination : Hybrid Future</h3><p>Rather than replacing UI, AI reshapes its purpose. The digital experience becomes a combination of 2 layers.</p><p>Layer 1 : Agentic Interface (<em>Intent → Action → Recommendation</em>)<br>Layer 2 : Outcome-Based UI (<em>Discovery → Business → Transparency</em>)</p><p>Travel is only one such example; the same pattern applies across sectors:</p><ul><li><strong>Retail:</strong> Agent finds products → UI displays deals, comparisons.</li><li><strong>Banking:</strong> Agent recommends plans → UI explains, compares, validates.</li><li><strong>Insurance:</strong> Agent renews → UI displays policy details, add-ons.</li><li><strong>Food Delivery:</strong> Agent suggests → UI showcases offers, menus.</li><li><strong>Media:</strong> Agent curates → UI presents thumbnails, categories, previews.</li></ul><blockquote>Across all industries<br><strong>Agents orchestrate. UI validates.</strong></blockquote><p><em>The winners of the next cycle won’t be the ones with the smartest agents, but the ones who best integrate those agents into a human-centric UI. Stop building chatbots; start building hybrid interfaces.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f1dbdb3a64f7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Light and Dark Mode in a React App With CSS Styles]]></title>
            <link>https://medium.com/swlh/setting-up-light-and-dark-mode-in-a-react-application-just-with-styles-7790dea22aed?source=rss-93debe612329------2</link>
            <guid isPermaLink="false">https://medium.com/p/7790dea22aed</guid>
            <category><![CDATA[reactjs]]></category>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Nijin Vinodan]]></dc:creator>
            <pubDate>Thu, 10 Sep 2020 13:18:22 GMT</pubDate>
            <atom:updated>2020-09-11T07:04:17.897Z</atom:updated>
            <content:encoded><![CDATA[<h3>Light and Dark Mode in a React App With CSS Styles</h3><h4>Easily add dark mode support to your app</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2cvGTjNLZv3WoT7gBOK3mg.png" /><figcaption>Image credit: Author</figcaption></figure><p>This article highlights how to set up Light and Dark Mode in React application with SCSS modules.</p><p>In my personal opinion, I feel the presentation should be controlled only by the stylesheets and we must not add additional overhead in the React components (JS/JSX) to handle the theme changes.<br>Also, it will be better to configure the theme in the root component (Mostly App.js/App.tsx in react’s case)</p><p>Let’s create a react application using create-react-app with TypeScript configured.</p><pre>npx create-react-app my-app-name --template typescript</pre><blockquote><strong>Typescript</strong> is optional here. Feel free to create react application with normal JavaScript.</blockquote><p>Next, Let’s install SCSS in our project using <strong>npm install node-sass</strong>. <br>Convert the existing .css files into .<strong>scss</strong> files and change any imports to use .<strong>scss.</strong></p><blockquote>SCSS is again optional here. We could achieve theme styling using normal CSS as well.</blockquote><p><strong>Creating a Theme Stylesheet</strong></p><ol><li>Create a <strong>styles</strong> folder within <strong>src</strong> and create a file called <strong>theme.scss</strong></li></ol><p>Now let’s define two class selectors for light and dark mode respectively with CSS Variables.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/08072fb0f016f81d880cad5f9b2c8b93/href">https://medium.com/media/08072fb0f016f81d880cad5f9b2c8b93/href</a></iframe><blockquote>Here we have defined the colour variations for light and dark modes (Theme Color, Theme Page Background and Theme Text Color).<br>We could also move the colours (#000, #FFF etc) to a partial _<strong>variables.scss</strong> file for better readability and maintainability.</blockquote><p>2. Import <strong><em>theme.scss</em></strong> into our <strong>App.tsx.</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e420492b3b4b8c86b31033c2e8f107fa/href">https://medium.com/media/e420492b3b4b8c86b31033c2e8f107fa/href</a></iframe><p>Next, let’s add a state variable <strong>“theme”</strong> to hold the current application mode <em>(Line #7)</em>. Let’s also refer the state variable in the className <em>(Line #10).</em></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/6c3e5cf12c73bc7102f21163638c1507/href">https://medium.com/media/6c3e5cf12c73bc7102f21163638c1507/href</a></iframe><p>Add styles for<strong>&lt;div className = {`App ${theme}`}&gt;</strong> in <em>App.scss</em> using the theme variables. Depending on the selected theme, the <em>background</em> and <em>color</em> properties will get updated in runtime.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/6ebe1d8b7fbaa419cc4ca9823438e081/href">https://medium.com/media/6ebe1d8b7fbaa419cc4ca9823438e081/href</a></iframe><p><em>Feel free to add additional stylings as shown below.</em></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/089f244e098dafd6caabe193a29254be/href">https://medium.com/media/089f244e098dafd6caabe193a29254be/href</a></iframe><p>Let’s start the application with the command <strong>npm start </strong>and view it in the browser.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vu-irm0qKRbmxmNnlQvY3A.png" /></figure><p>Try changing the state variable to <strong>dark</strong> and check the output.</p><pre>const [theme, setTheme] = useState(&#39;dark&#39;);</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MyYqLkhIcAMhlv_hv7QMmQ.png" /></figure><p><strong>So Simple? In reality, we could associate a click action to toggle between light and dark mode. We could maintain the theme in a <em>Context</em> as well.</strong></p><blockquote>You can play around with the application here <a href="https://codesandbox.io/s/switching-between-light-and-dark-mode-5hf9w">https://codesandbox.io/s/switching-between-light-and-dark-mode-5hf9w</a></blockquote><p><strong>Extending Theme to Components</strong></p><p>For instance, let’s create a Button Component. <br>1. Create a folder called <strong>components</strong> inside the <strong>src </strong>folder<strong>.<br></strong>2. Create another folder called <strong>button</strong> inside components and create two file — <em>button.tsx</em> and <em>button.module.scss.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/510/1*UfdK_wgiESla8L6ESTfzew.png" /><figcaption>Folder Structure</figcaption></figure><p>Add the following code to <em>button.tsx</em>.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b05a434f5985a22be86f5c831be1cccb/href">https://medium.com/media/b05a434f5985a22be86f5c831be1cccb/href</a></iframe><p>Now, let’s add some button styles. Observe how the background-color is provided. It is referred from the theme variable. <br>So when the light mode is on, the button color will be <strong>#A80000</strong> (<em>red</em>) and when we switch to dark mode, it will appear in <strong>#A80000</strong> (<em>blue</em>).</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/574dde1bf32fec21d05ba9f4cb8089d0/href">https://medium.com/media/574dde1bf32fec21d05ba9f4cb8089d0/href</a></iframe><p>Similarly, we could have mode specific colors in theme.scss and use it across all pages and components.</p><blockquote>Did you notice that <strong>button.tsx</strong> has no logic wrt. dark and light mode? The entire theming is taken care by the stylesheet.</blockquote><p>Let’s include the <strong><em>Button</em></strong> in our <em>App.tsx</em> and view the output in light and dark mode.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/246f2c5a1b5a6ba0fc4dc9005dc2fda5/href">https://medium.com/media/246f2c5a1b5a6ba0fc4dc9005dc2fda5/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WwzB3yZsKvKMqoRl0TbxsA.png" /></figure><p><strong>Download Starter</strong></p><p>Checkout this repository for the base react application with theme configuration. <br>Download it and run “<strong>npm i</strong>” to install all node-modules.<br><a href="https://github.com/nijin-vinodan/react-starter-templates/tree/master/examples/starter-react-dark-light-mode">https://github.com/nijin-vinodan/react-starter-templates/tree/master/examples/starter-react-dark-light-mode</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7790dea22aed" width="1" height="1" alt=""><hr><p><a href="https://medium.com/swlh/setting-up-light-and-dark-mode-in-a-react-application-just-with-styles-7790dea22aed">Light and Dark Mode in a React App With CSS Styles</a> was originally published in <a href="https://medium.com/swlh">The Startup</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Developer Checklist — React Application Initial Set Up]]></title>
            <link>https://medium.com/swlh/developer-checklist-react-application-initial-set-up-d4568799b825?source=rss-93debe612329------2</link>
            <guid isPermaLink="false">https://medium.com/p/d4568799b825</guid>
            <category><![CDATA[react]]></category>
            <category><![CDATA[eslint]]></category>
            <category><![CDATA[development-tips]]></category>
            <category><![CDATA[reactjs]]></category>
            <category><![CDATA[prettier]]></category>
            <dc:creator><![CDATA[Nijin Vinodan]]></dc:creator>
            <pubDate>Wed, 02 Sep 2020 14:15:36 GMT</pubDate>
            <atom:updated>2020-09-09T14:11:52.034Z</atom:updated>
            <content:encoded><![CDATA[<h3>Developer Checklist — React Application Initial Set Up</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1b_VXG5HkqJY1C2RcfPC4w.jpeg" /></figure><p>It is very easy to get started with a react app just with a single “<em>create-react-app”</em> command. But it is always recommended to make sure that we have few things checked off from our initial set up checklist before making our hands dirty with code. These checklist items can definitely help the project in the long run.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vMYdLKtB7lwWZ9YCax78CA.png" /><figcaption>Set Up Roadmap</figcaption></figure><blockquote>From the above roadmap, <br>1. Dark Lines highlight the recommended checklist.<br>2. Dotted Lines - if you wish to skip any paths.</blockquote><p><strong>Step 1: Create React Application</strong></p><p>Let’s navigate to our codebase folder and create the project using “<strong>create-react-app</strong>” command.</p><pre>npx create-react-app my-app-name</pre><blockquote>Note: You are welcome to use <strong>yarn</strong>.</blockquote><p>In case, if we are going to develop using Typescript, create the project using the following command.</p><pre>npx create-react-app my-app-name --template typescript</pre><blockquote>Note: Highly recommend to use Typescript instead of plain JS.</blockquote><blockquote><strong>General Guideline — Run “npm start” after each step just to make sure that create-react-app starter app works fine after additional packages are installed. Resolve issues, if any.</strong></blockquote><p><strong>Step 2: Set up SCSS</strong></p><blockquote>This step is applicable only if you wish to use SCSS instead of CSS for styling.<br><strong>(Recommend to use SCSS in your application)</strong>.</blockquote><p>Let’s install node-sass first.</p><pre>npm i --save-dev node-sass</pre><p>Boom! SCSS has been set up in the project directory. <br>1. Convert existing <strong>.css</strong> files (App.css and index.css) to <strong>.scss</strong> files. <br>2. Change any imports to use .<strong>scss</strong>.</p><p><strong>Step 3: Set up ESLint</strong></p><p>With ESLint, we could enforce some guidelines in our project and avoid common pitfalls. Let’s install ESLint and ESLint Plugin React to our project first.</p><pre>npm install eslint eslint-plugin-react --save-dev</pre><blockquote>Try running “<strong>npm start</strong>” at this point. <br>In case, there is an error, follow the instructions that appear on the terminal.<br>Sometimes, react-scripts may not be updated to use the latest ESLint versions. In such cases, just figure out the ESLint version which react-scripts is looking for from the terminal logs and install that version.</blockquote><blockquote>Example &gt; <strong>npm install eslint@6.6.0 — save-dev</strong></blockquote><blockquote>Please Note : For typescript, we need additional packages like @typescript-eslint/eslint-plugin and @typescript-eslint/parser</blockquote><blockquote>Refer the steps in ReadMe — <a href="https://github.com/nijin-vinodan/react-starter-templates/tree/master/examples/starter-react-ts-scss-eslint-prettier">https://github.com/nijin-vinodan/react-starter-templates/tree/master/examples/starter-react-ts-scss-eslint-prettier</a></blockquote><p>Create a .eslintrc file at the project root and then we can run ESLint on any files.</p><p>This configuration file takes the form of a JSON object. We can specify any options (<em>Lint rules</em>) like <em>parserOptions, environment</em> etc.</p><blockquote>Here, <strong>eslint-plugin-react</strong> adds predefined react rules. We could override them in the rules section.</blockquote><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/162eabb05c36401b16ceab879c6b258d/href">https://medium.com/media/162eabb05c36401b16ceab879c6b258d/href</a></iframe><blockquote>You can view the entire list of configurations here<br><a href="https://eslint.org/docs/user-guide/configuring">https://eslint.org/docs/user-guide/configuring</a></blockquote><p>Add the following to <em>package.json along with other scripts.</em></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e98bc459ca31242922e3757334607665/href">https://medium.com/media/e98bc459ca31242922e3757334607665/href</a></iframe><p><strong><em>npm run lint:fix</em></strong> will run the ESLint on all our project files and fix whatever is possible.</p><p><strong>Step 4: Set up Prettier</strong></p><p>Prettier helps in formatting the code. It makes sure the entire codebase looks uniform when there are multiple developers working on it. Let us install Prettier within our project directory.</p><pre>npm install prettier --save-dev</pre><p>Now, let’s configure prettier. Create a .<em>prettierrc</em> file in the project root directory and add few prettier options.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/fa7fc660d9f539a9ee9a7725b7e2645b/href">https://medium.com/media/fa7fc660d9f539a9ee9a7725b7e2645b/href</a></iframe><blockquote>For more Prettier options and detailed explanation on options, checkout<br><a href="https://prettier.io/docs/en/options.html">https://prettier.io/docs/en/options.html</a></blockquote><p>Let’s also set up Prettier CLI which will format our code based on the options specified. <em>Add the following code snippet to package.json along with other scripts.</em></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/7dacbe8c3afc44ffef1b47628b23a77e/href">https://medium.com/media/7dacbe8c3afc44ffef1b47628b23a77e/href</a></iframe><p><strong>Step 5: Integrate Prettier with ESLint</strong></p><blockquote>Did you know ESLint can also format your code to some extent? Well, if we are using Prettier, we need to replace ESLint’s formatting rules.</blockquote><blockquote>Note: We are only going to replace ESLint’s formatting rules and not the code-quality rules. ESLint will still check the quality for us based on the rules specified.</blockquote><p>Now, let’s integrate Prettier in our ESLint configuration by installing the following as we need to replace ESLint’s formatting rules. <br>Install the following packages.</p><p>eslint-config-prettier disables rules that conflict with Prettier<br>eslint-plugin-prettier adds the rule that format content using Prettier</p><pre>npm install --save-dev eslint-config-prettier eslint-plugin-prettier</pre><p>We can enable this configuration by using the recommended one in eslintrc file.</p><pre>{<br>    &quot;extends&quot;: [&quot;plugin:prettier/recommended&quot;]<br>}</pre><p><strong>Step 6: Set up Pre-Commit Hook</strong></p><p><strong>husky</strong> is a tool that allows to set up Git Hooks easily. We could set up a pre-commit hook with husky that will make sure the ESLint and Prettier scripts are run before the code is committed to your repository.</p><pre>npm install --save-dev husky</pre><p>The above command will install husky in the project. Now, let’s set up the husky pre-commit hook. Let’s add the following code to our <em>package.json </em>to configure pre-commit hook.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/be6aa6292d726c3729830d7436142176/href">https://medium.com/media/be6aa6292d726c3729830d7436142176/href</a></iframe><p>This ensures that ESLint and Prettier runs before committing.</p><p><strong>Step 7: Set up Project Folders and Start Working on the development!</strong></p><p><strong>Download Source</strong></p><p>Checkout this repository for react app starters configured with Typescript, SCSS, ESLint and Prettier. Download it and run “npm i” to install all node-modules.</p><p><a href="https://github.com/nijin-vinodan/react-starter-templates/tree/master/examples">https://github.com/nijin-vinodan/react-starter-templates/tree/master/examples</a></p><p><strong>References</strong></p><ul><li><a href="https://create-react-app.dev/docs/adding-typescript/">Adding TypeScript | Create React App</a></li><li><a href="https://thomlom.dev/setup-eslint-prettier-react/">How to setup ESLint and Prettier for your React apps</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d4568799b825" width="1" height="1" alt=""><hr><p><a href="https://medium.com/swlh/developer-checklist-react-application-initial-set-up-d4568799b825">Developer Checklist — React Application Initial Set Up</a> was originally published in <a href="https://medium.com/swlh">The Startup</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Better Ways to Organise CSS Properties]]></title>
            <link>https://medium.com/swlh/better-ways-to-organise-css-properties-9a066e7ded62?source=rss-93debe612329------2</link>
            <guid isPermaLink="false">https://medium.com/p/9a066e7ded62</guid>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[styling]]></category>
            <category><![CDATA[css]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Nijin Vinodan]]></dc:creator>
            <pubDate>Sun, 21 Jun 2020 13:14:51 GMT</pubDate>
            <atom:updated>2020-06-22T14:13:31.585Z</atom:updated>
            <content:encoded><![CDATA[<h4>Make your CSS easier to understand with a little more organisation</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*_SKhnr4_XwQnneHP" /><figcaption>Photo by <a href="https://unsplash.com/@hansonluu?utm_source=medium&amp;utm_medium=referral">Hanson Lu</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Have you noticed how products are arranged in a Super Market? Soaps, Shampoos and Body Lotions are arranged together. Rice, Wheat and Dhall products are always grouped together. Similarly it is important for us to write CSS by organising how properties should be written within a selector.</p><blockquote>This article highlights how properties inside a selector should be written and not on the specificity of how selectors should be written.</blockquote><p>Look at the below CSS class selector “<strong><em>card</em></strong>”. This selector would definitely produce a neat output in the DOM. But do you notice how the properties are written inside the selector?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XKJqpTbwYSkbO_qIM-oxig.png" /></figure><p><em>Yeah! You guessed it. There is no proper order or grouping in the way the properties are written.</em></p><p><strong><em>font-size</em></strong> is on the first line, <strong><em>font-weight</em></strong> comes somewhere in the middle and <strong><em>font-family</em></strong> is in the end. This is <em>analogous</em> to how products belonging to same category are placed at different spots in a Super Market (<em>Soaps with Dhall items, Shampoos with Vegetables etc</em>).</p><blockquote>As a developer, I would want to try out multiple properties at different times. In this case, how can I make sure that all properties are grouped together?</blockquote><blockquote>Most of you would have this question, right?</blockquote><blockquote>The answer is very <strong>simple.</strong> You actually try to build it with your own flow, but you would need to place the properties at appropriate groups, so that your code will look neat and organised. This way of writing would definitely come up with practice.</blockquote><blockquote>At a later point of time, it will help you and your fellow developers to debug and spot properties easily.</blockquote><blockquote>Why should I bother - I have Chrome Inspector to debug!<em> 😔😔</em></blockquote><h3>Let’s Get Started!</h3><p>From the “card” selector, we understand that we would need to draw a card first<em>(Card typically would look like a square or rectangle </em><strong><em>box</em></strong><em>)</em>. In order to draw a <strong><em>box</em></strong>, we need to know its <strong><em>dimensions</em></strong>. In CSS, dimensions are mentioned with <strong><em>width</em></strong> and <strong><em>height</em></strong> properties. So it’s better to start with width and height.</p><figure><img alt="Image : Step 1 : Write Dimension Properties" src="https://cdn-images-1.medium.com/max/1024/1*askzk5-6PH-oA2CqTH4ViA.png" /><figcaption><strong>Step 1 : Write Dimension Properties</strong></figcaption></figure><p>Next, along with width and height, add other box-model properties like <strong><em>margin, padding, border</em></strong>. Let’s also group<em> </em><strong><em>border-radius</em></strong><em> </em>with this as it corresponds to how a border should look like.</p><figure><img alt="Image : Step 2: Write Box Model Properties" src="https://cdn-images-1.medium.com/max/1024/1*oLU4LfTLfl_rvj82cqzxGw.png" /><figcaption><strong><em>Step 2: Write Box Model Properties</em></strong></figcaption></figure><p><strong><em>Other Properties</em></strong></p><ol><li><strong><em>outline</em> </strong>— similar to border.</li><li><strong><em>box-sizing</em></strong></li><li>Group <strong><em>min-width </em></strong>and<strong><em> max-width</em></strong> after width.</li><li>Group <strong><em>min-height</em></strong> and <strong><em>max-height </em></strong>after height.</li><li>In case of <strong><em>before</em></strong> and <strong><em>after</em></strong> pseudo selectors, prefer to have <strong><em>content</em></strong> with this stack.</li></ol><p>Now, we have the card ready with its dimensions and spacings. We will have to inform the browser to place it on the screen. Usually card’s placement is decided by <strong><em>position</em></strong>, <strong><em>float</em></strong> and <strong><em>display</em></strong> properties.</p><p>And so, even before drawing the card, it would be better if we could write how the card has to be placed in the DOM.</p><blockquote>Which one should I write first? <strong><em>position </em></strong><em>or</em><strong><em> float </em></strong><em>or</em><strong><em> display?</em></strong></blockquote><ol><li>Prefer to write <strong>position</strong> <em>first</em>, if position is <strong><em>absolute</em></strong> or <strong><em>fixed</em></strong>. In both cases, the element is moved out of the DOM flow and so it would be better to tell the browser about where we would like to place it.</li><li>Prefer to write <strong>float</strong> <em>first</em>, if the position is relative or sticky.</li><li>Prefer to write <strong>display </strong><em>first, </em>if the display is <strong>none. </strong>In that case, the browser need not have to draw anything on the DOM.</li></ol><figure><img alt="Image: Step 3: Write Placement Properties (Position | Float | Display)" src="https://cdn-images-1.medium.com/max/1024/1*bZJ0Cz8409vTfB9cKXrrHg.png" /><figcaption><strong><em>Step 3: Write Placement Properties (Position | Float | Display)</em></strong></figcaption></figure><p><strong><em>Other Properties</em></strong></p><ol><li>Write <strong><em>top, left, bottom</em></strong> or <strong><em>right</em></strong> after the position property.</li><li>Write <strong><em>z-index</em></strong> after the position property.</li><li><strong><em>visibility</em></strong> — similar to display.</li><li>In case of <strong>display: flex</strong>, add flex properties like <strong><em>flex-direction, flex-wrap, justify-content </em></strong><em>etc.,</em><strong><em> </em></strong>after display.</li></ol><p>Next, let’s add some presentation properties like<strong><em> background, box-shadow. </em></strong>They can be grouped together as they are responsible for adding appearances to the element.</p><figure><img alt="Image : Step 4: Write Appearance Properties (Background | Box-Shadow)" src="https://cdn-images-1.medium.com/max/1024/1*lcVVeHtNFjTQZG9rbj6o5Q.png" /><figcaption><strong><em>Step 4: Write Appearance Properties (Background | Box-Shadow)</em></strong></figcaption></figure><p>It’s time to add text-related properties. In order to write a text, we need to describe about the <strong><em>font</em></strong> which we are going to use. So, let’s write the font properties first.</p><p>After fonts, we can also add the other properties which describe the <strong><em>text </em></strong><em>like</em><strong><em> color, line-height, letter-spacing, text-align</em></strong> etc.,</p><figure><img alt="Image : Step 5: Write Font &amp; Text Properties" src="https://cdn-images-1.medium.com/max/1024/1*9x40HmpXibpsZGPzH-rdWA.png" /><figcaption><strong><em>Step 5: Write Font &amp; Text Properties</em></strong></figcaption></figure><p><strong><em>Other Properties</em></strong></p><ol><li>Prefer to group all <strong><em>font</em></strong> properties together.</li><li>Prefer to group all <strong><em>text</em></strong> properties together like <strong><em>text-align, text-decoration, text-shadow</em></strong> and <strong><em>text-transform.</em></strong></li><li>Prefer to group <strong><em>white-space, word-wrap, word-break</em></strong> etc., here</li><li><strong><em>user-select</em></strong></li></ol><p>Last but one, let’s add <strong><em>transform, transition</em></strong> and <strong><em>animation</em></strong> properties to the selector.</p><figure><img alt="Image : Step 6: Write Transform &amp; Animation Properties" src="https://cdn-images-1.medium.com/max/1024/1*KRbE197_53XSWN8W8ZBkSA.png" /><figcaption><strong><em>Step 6: Write Transform &amp; Animation Properties</em></strong></figcaption></figure><p>Finally, we can add other properties like <strong><em>overflow, opacity etc., </em></strong>which cannot be mostly stacked under any group in the end.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RYMDPwcVjiZDbOJy4hfYmw.png" /><figcaption><strong>Organising Properties in a Selector</strong></figcaption></figure><p>If we try to organise CSS properties in the similar way under each selector, it would be easy to read through. When we need to add another property in future, we will just have to find the right location to place it. This way, we could definitely ensure our CSS file is <strong><em>readable </em></strong>and<strong><em> maintainable.</em></strong></p><p><em>Thanks for reading. Hope this helps!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9a066e7ded62" width="1" height="1" alt=""><hr><p><a href="https://medium.com/swlh/better-ways-to-organise-css-properties-9a066e7ded62">Better Ways to Organise CSS Properties</a> was originally published in <a href="https://medium.com/swlh">The Startup</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[It’s Your Space–Write Readable Code.]]></title>
            <link>https://medium.com/better-programming/its-your-space-write-readable-code-efbd159faa19?source=rss-93debe612329------2</link>
            <guid isPermaLink="false">https://medium.com/p/efbd159faa19</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[code]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[swift]]></category>
            <dc:creator><![CDATA[Nijin Vinodan]]></dc:creator>
            <pubDate>Mon, 23 Mar 2020 19:09:11 GMT</pubDate>
            <atom:updated>2020-03-23T19:09:11.554Z</atom:updated>
            <content:encoded><![CDATA[<h3>It’s Your Space–Write Readable Code</h3><h4>Whitespace and comments are your friends</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*3n8SlN3irRBjvL9Y" /><figcaption>Photo by <a href="https://unsplash.com/@grohsfabian?utm_source=medium&amp;utm_medium=referral">Fabian Grohs</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Most of us adhere to coding guidelines and practices when writing code. We’re aware of how variables, functions, classes, etc., should be named. We log comments when necessary, to help other developers working on the project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TBF-3Ihx33vST8XglcBOGA.png" /><figcaption>Fig 1. Code Comparison : Left Pane vs Right Pane</figcaption></figure><p>Both panes have the same code, but the one on the right has comments. Comments in code make it easier for other developers.</p><p>But how easy is it for the other person to scan and reach a particular section in a large chunk of code? This is where<strong><em> </em></strong><em>line spacing</em> comes into play.</p><p>In Fig. 2 Notice Line Numbers (12, 25, 35) are left blank intentionally, to ensure that there’s is a logically cut between two different components or sections.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qKwRLcsn2e-dZ-WVgeyELw.png" /><figcaption>Fig 2. Code with Line-Spacing</figcaption></figure><p>Do you find it difficult to spot a piece of code, as comments appear to be of the same length as code?</p><p>What if the IDE doesn’t have separate colours for code and comments?</p><p>This is where we could apply long comments, as shown below. Here there is a clear demarcation between different pieces of code:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ai3YKn144u_tqeRbH860NA.png" /><figcaption>Fig 3: Code with Line Spacing and Logical Comments Division</figcaption></figure><p><em>Don’t worry about the increase in file size because of these extra lines and comments. Code compression techniques will take care of this when the code is moved to production.</em></p><p>The same logic applies to Javascript files as well. A line spacing between two functions can improve the code readability and neatness.</p><p>Here’s another example of how a React Native functional code component can be written.</p><p>Checkout <strong>screens/home-screen</strong></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fsnack.expo.io%2Fembedded%2F%40nijinvinodan%2Fcode-spacing-example&amp;display_name=Expo+Snack&amp;url=https%3A%2F%2Fsnack.expo.io%2F%40nijinvinodan%2Fcode-spacing-example&amp;image=https%3A%2F%2Fs3.amazonaws.com%2Fexp-brand-assets%2FSnackIcon_200.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=expo" width="700" height="500" frameborder="0" scrolling="no"><a href="https://medium.com/media/4680a45d3c8c20d74f634d9322214a31/href">https://medium.com/media/4680a45d3c8c20d74f634d9322214a31/href</a></iframe><p><em>This could be a small additional step that we, as developers, could take to ensure our code is neat and understandable.</em></p><blockquote>S<strong>ocial distancing</strong> makes a difference.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=efbd159faa19" width="1" height="1" alt=""><hr><p><a href="https://medium.com/better-programming/its-your-space-write-readable-code-efbd159faa19">It’s Your Space–Write Readable Code.</a> was originally published in <a href="https://betterprogramming.pub/">Better Programming</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[JavaScript Form Validations Can Be a Nightmare for Users]]></title>
            <link>https://medium.com/better-programming/js-form-validations-can-be-nightmares-to-users-what-not-to-do-while-validating-forms-1601e162b6fa?source=rss-93debe612329------2</link>
            <guid isPermaLink="false">https://medium.com/p/1601e162b6fa</guid>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[angular]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[react]]></category>
            <dc:creator><![CDATA[Nijin Vinodan]]></dc:creator>
            <pubDate>Fri, 11 Oct 2019 05:41:12 GMT</pubDate>
            <atom:updated>2019-11-11T16:15:38.046Z</atom:updated>
            <content:encoded><![CDATA[<h4>What not to do while validating forms</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HREK7nuLHOwVHWuI7BUlkw.png" /></figure><h3>1. Stop Throwing Errors When Your User Is Typing</h3><p>It’s important to respect what your user types. In 90% of scenarios, users are running on a happy autopilot (and they’ll definitely be typing the correct thing).</p><figure><img alt="Form containing email, first name, last name and password" src="https://cdn-images-1.medium.com/max/1024/1*7B45COhtdCVOh3qRzQDoOA.gif" /><figcaption>Figure 1: Email on key-press validations</figcaption></figure><p>Consider the above scenario<em> </em>(Figure 1) — a user is in the process of keying in a correct email address, but the form tries to validate on key press. Why should the form throw an error message when the user is typing a correct address?</p><ol><li>Avoid key-press validation for email, names, and contact numbers. Rather, validate them on blur or change.</li><li>For fields like password, validate the constraints on key press. Example: Your password constraint might include a lowercase, uppercase, number, and symbol. In such scenarios, highlight the user’s progress on key press. This will help them.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RYgtJsGt5mpK3EEcUPdkrw.gif" /><figcaption>Figure 2: Password on-focus validations</figcaption></figure><p>Throwing error messages while typing will usually shift the user’s focus from their input to the error block. Take care before you show an error message.</p><h3>2. Avoid Showing Consolidated Error Messages at the Top or Bottom of the Form</h3><p>Preference highlighting the error messages nearer to the input fields rather than showing them at the top or bottom of the form.</p><p>If your form is too long, then it may be difficult for users to scroll and find out what went wrong.</p><p>While designing, consider people from different age groups. The elderly and people who are using your application for the first time might find it difficult to guess what went wrong.</p><p>For lesser than three fields, if the situation demands, it’s OK to show consolidated messages in one place. Make sure the error messages are within the user’s visibility.</p><h3>3. Show Error Messages Then and There</h3><p>Don’t wait for the user to complete the entire form to highlight what went wrong. Once the user moves out of a field, validate it, and show warnings or errors if necessary.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/772/1*fcjRyURdD4qMij_-7wcTiA.gif" /><figcaption>Figure 3: Form showing error messages on submit</figcaption></figure><p>Why should we surprise the user in the end?</p><p>Figure 3 shows an example of how the form validates only when the user clicks Register. Until the last click, the user may not be aware of the errors they have committed. It’d be better if the form had validated on blur of the input.</p><p>When you save your validation errors till the user submits the form, it can be time consuming for the user to revisit and refill in the form. Also, depending on the value in one field, users might tend to change other fields as well. By delaying the validation, you are simply prolonging the form completion time.</p><h3>4. Remove Existing Error Message(s) When the User Starts Typing Again</h3><p>When the user types again to correct his previous mistake, guide him. Don’t let the error stay until the user keys in a correct input.</p><p>When not cleared, the user will be confused about whether what he’s typing is right or wrong.</p><h3>5. Don’t Blame Your Users, Guide Them</h3><p>Users are always correct. Provide a gentle message rather than a strong one.</p><p>Icons are preferable to highlight what’s right and wrong. Again, use a gentle icon to highlight. Choose a warning icon over a cross icon to highlight errors. (See Figure 3 for an example of a warning icon.)</p><p>Save the user from committing an error by using appropriate input types.</p><p><strong>Example:</strong> Use &lt;input type = “number”&gt; if you wish users to enter only numbers in a particular field. Do not use &lt;input type = “text”&gt; in the above case and then wait for the user to enter into the error zone. Be wise in choosing your input type.</p><h3>6. Provide an Option to Clear or Reset Form Errors</h3><p>Finally, always have buttons to clear, reset, and/or close the form. User freedom is important, and it shouldn’t be time consuming.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1601e162b6fa" width="1" height="1" alt=""><hr><p><a href="https://medium.com/better-programming/js-form-validations-can-be-nightmares-to-users-what-not-to-do-while-validating-forms-1601e162b6fa">JavaScript Form Validations Can Be a Nightmare for Users</a> was originally published in <a href="https://betterprogramming.pub/">Better Programming</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I fell in love with outskirts of Chennai]]></title>
            <link>https://medium.com/@vinodan.nijin/how-i-fell-in-love-with-outskirts-of-chennai-54e200ed5488?source=rss-93debe612329------2</link>
            <guid isPermaLink="false">https://medium.com/p/54e200ed5488</guid>
            <category><![CDATA[cycling]]></category>
            <category><![CDATA[chennai]]></category>
            <category><![CDATA[nature-photography]]></category>
            <category><![CDATA[nature]]></category>
            <category><![CDATA[travel]]></category>
            <dc:creator><![CDATA[Nijin Vinodan]]></dc:creator>
            <pubDate>Sun, 07 Apr 2019 04:21:29 GMT</pubDate>
            <atom:updated>2019-04-07T04:21:29.100Z</atom:updated>
            <content:encoded><![CDATA[<p>As of March 2019, I have cycled 6000 kilometres in 2 years. My daily target varies from 15 to 25 km and 40+ kms in the weekends. Although it seems to be a small ride for cyclists who ride 100+ kilometres on weekends, believe me short rides around the outskirts are worth every day. I do get occasional rest during the weekdays due to late night office works, still I make it a point to get on the cycle just to fall in love with the nature’s visual treat.</p><blockquote>I call it a “<strong>PERFECT</strong> <strong>morning</strong>” only if I had completed a ride.</blockquote><p>I live in a place called <strong><em>Pattabiram</em></strong>, one of the suburban outskirts of Chennai city (Tamil Nadu, India). This place is geographical well placed with city on the east and villages or small towns in its north, west and south. However, in next 2–3 years, I am afraid that the city would extend eating up all villages in and around my region.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/798/1*42eynj1GhMdcB3vujwfUJw.png" /><figcaption>Chennai City and its Suburbs</figcaption></figure><p>We all love to travel to long destinations by packing our backpacks, don’t we? The question here is how many of you have explored your <em>neighbourhood</em>?</p><p>We may look for relaxation by travelling to hill stations, remote forests etc., but trust me small rides to nearby towns and villages can help you to get refreshed everyday.</p><blockquote><em>Look what I found in outskirts of my city!</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zK168H8SIQIy99kSVbbMdA.png" /><figcaption>Paddy Fields, Thamaraipakkam</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ESRDTc-QSiZ9qkGrs1u1HA.jpeg" /><figcaption>Sunrise, Voyalanallur Village</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bf5mnoheALr20D1_2ZD2DQ.jpeg" /><figcaption>Coconut Groove, Semencherry Village</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Lx6tVlmP7Ex_-p_O3UdSIw.jpeg" /><figcaption>Evening Sky, Palavedu Village</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2tch--NOqa8vFfzFRg8t-w.jpeg" /><figcaption>Shivan Temple (13th Century) — Thirumanam Village</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PlncsXWhocHSszKHQVv8fw.png" /><figcaption>Shivan Temple Tank — Thirumanam</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cH7nJqb9wLJwdYAzeDXyKQ.png" /><figcaption>Outer Ring Road - Nemillicherry</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*atzog1zBsG5h_l4RTc6V1g.png" /><figcaption>Thirumanam — Vellavedu Roads</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HzcR2pl6WeVTzjwXygGUUw.png" /><figcaption>Chittukadu Village</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ICM3dva3H6r79wj4UubjqQ.png" /><figcaption>Outer Ring Road - Pattabiram</figcaption></figure><p>If you are already living in a small town or village, walk around to spot what captures your love and if you are living in big cities like Chennai, Mumbai or Bangalore, it’s high time to explore what is in it’s rural regions. Consider a cycle ride, as car and bikes may fail to click the nature views against its speed.</p><p>This is my neighbourhood story, yours might be more beautiful than this. Explore!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=54e200ed5488" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Users lose trust when you mock them with fake discounts or promotions]]></title>
            <link>https://medium.com/@vinodan.nijin/users-lose-trust-when-you-mock-them-with-fake-discounts-or-promotions-869d9a547bed?source=rss-93debe612329------2</link>
            <guid isPermaLink="false">https://medium.com/p/869d9a547bed</guid>
            <category><![CDATA[user-experience]]></category>
            <category><![CDATA[business]]></category>
            <category><![CDATA[heuristics]]></category>
            <category><![CDATA[ux]]></category>
            <category><![CDATA[design]]></category>
            <dc:creator><![CDATA[Nijin Vinodan]]></dc:creator>
            <pubDate>Fri, 04 May 2018 04:17:44 GMT</pubDate>
            <atom:updated>2018-05-05T05:32:10.220Z</atom:updated>
            <content:encoded><![CDATA[<p>Trust is an important driving factor in business. How would you feel if someone says that he/she would sell a Product A for Rs.X and later keep on increasing the cost to Rs. X + Y + Z?</p><p><strong><em>Online Vendor A</em></strong> : Sir, it costs Rs. 5000. Would you like to buy it?</p><p><strong><em>You</em></strong> : Yes/No. (<em>If your answer was Yes, the conversation continues.</em>)</p><p><strong><em>Online Vendor A</em></strong>: Here you go! Sold!</p><p><strong><em>Online Vendor B</em></strong> : Sir, it costs Rs. 4000. Would you like to buy it?</p><p><strong><em>You</em></strong>: Yes/No. (<em>If your answer was Yes, the conversation continues.</em>)</p><p><strong><em>Online Vendor B</em></strong>: Here you go, adding service charges, transportation charges and then applying discounts, the total cost comes to Rs. 5500.</p><p><strong><em>You</em></strong>: Double thoughts! (You have already made up your mind in the beginning that you would get this product at Rs. 4000 and as humans we may not be suddenly able to )</p><p>I recently came across applications where the vendors lure users using promotions and then add extra cost in the end. There are chances that the business might loose their potential customers if there are other competing applications in the market.</p><p>Let’s have a look at how the interfaces of MakeMyTrip and OYO Rooms guide user through out their booking process.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RNQwj2r0qLMP_6_srVQ1dQ.png" /></figure><p>Both apps look great in their interfaces but one lacks in transparency. In the first case, there has been increase the price throughout the booking flow and at some places users are not very clear on why prices have been increased. In the later application, the booking flow is simple and there is no change in booking price throughout the flow.</p><p>Users always prefer transparency just like in second case. It can increase the trust and gradually increase your business.</p><p>Note: To be honest, both applications offers great deals and discounts, but it will be great if MakeMyTrip becomes more transparent.</p><p><strong>Designing Tips</strong></p><ol><li>Never have hidden costs. People may re-think when they see a sudden hike in cost.</li><li>Reduce the number of steps the customer has to go through in arriving at the final destination.</li><li>Transparency in data will increase user trust on business.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=869d9a547bed" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Creating Rays & Patterns using Sketch Border]]></title>
            <link>https://medium.com/@vinodan.nijin/creating-rays-patterns-using-sketch-border-3ebb30f9dbd2?source=rss-93debe612329------2</link>
            <guid isPermaLink="false">https://medium.com/p/3ebb30f9dbd2</guid>
            <category><![CDATA[sketch]]></category>
            <category><![CDATA[design]]></category>
            <category><![CDATA[tips]]></category>
            <category><![CDATA[sketchapp]]></category>
            <dc:creator><![CDATA[Nijin Vinodan]]></dc:creator>
            <pubDate>Tue, 25 Jul 2017 14:35:58 GMT</pubDate>
            <atom:updated>2017-07-25T14:35:58.300Z</atom:updated>
            <content:encoded><![CDATA[<p>SketchApp can do wonders with Borders. You can create different patterns using the Shape Borders.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rcxMwD-W3uLLEHp0rydrNA.jpeg" /><figcaption>All these patterns were created by altering the border of Oval Shape in Sketch</figcaption></figure><h3>How to create Patterns using Border</h3><p><strong>Step 1</strong> : Let’s take Oval Shape as an example (Click ‘O’ key to create an oval shape). Let it’s dimension be 700*700</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uZD1kmsIa5zYpuBUBTm8iQ.png" /><figcaption>Step 1 : Draw a Circle (700*700)</figcaption></figure><p><strong>Step 2</strong> : Increase the Border Thickness (Probably a bigger number. say 400)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5a7O4gEXPWzfizLgvAGp3A.png" /><figcaption>Step 2: Add Border (400) to the Circle</figcaption></figure><p><strong>Step 3</strong>: Click on the Gear Symbol near Borders and change the Dash Value. Try changing Dash and Gap Values to create different Pattern.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/436/1*iH98dZvq6xdzPTru4wnzOg.png" /><figcaption>Step 3A: Try Changing Dash Value to create patterns</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q1cUOOo_dmpCuMExrP0uww.png" /><figcaption>Step 3B: Observe the Pattern. Try changing Dash, Gap Values to create different patterns.</figcaption></figure><p><strong>Step 4</strong>: Change Fills &amp; Border Color</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nsvUNsHzyicM8OSXVO8g_g.png" /><figcaption>Step 4 : Pattern with Color filled. The Dash value is changed to 20.</figcaption></figure><p>Guess, this story would have helped you to learn how to create different patterns using Borders. Try the same behavior with different shapes and enjoy designing patterns magically.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3ebb30f9dbd2" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>