<?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: Daniel Barwikowski</title>
    <description>The latest articles on DEV Community by Daniel Barwikowski (@dbarwikowski).</description>
    <link>https://dev.to/dbarwikowski</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%2F200135%2Fd749d87e-80fe-4300-930c-b57b0b6afab9.jpeg</url>
      <title>DEV Community: Daniel Barwikowski</title>
      <link>https://dev.to/dbarwikowski</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/dbarwikowski"/>
    <language>en</language>
    <item>
      <title>How to track 'Temporary fix'</title>
      <dc:creator>Daniel Barwikowski</dc:creator>
      <pubDate>Mon, 19 Apr 2021 11:41:08 +0000</pubDate>
      <link>https://dev.to/dbarwikowski/how-to-track-temporary-fix-301h</link>
      <guid>https://dev.to/dbarwikowski/how-to-track-temporary-fix-301h</guid>
      <description>&lt;p&gt;What are your ideas on tracking temporary fixes?&lt;br&gt;
Do you ever return to them?&lt;br&gt;
If this is just a part of bigger issue how do you know when it is time to remove the fix ang go back to normal?&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Why jQuery unobtrusive validation sucks 😒</title>
      <dc:creator>Daniel Barwikowski</dc:creator>
      <pubDate>Thu, 23 Apr 2020 13:17:41 +0000</pubDate>
      <link>https://dev.to/dbarwikowski/why-jquery-unobtrusive-validation-sucks-1oab</link>
      <guid>https://dev.to/dbarwikowski/why-jquery-unobtrusive-validation-sucks-1oab</guid>
      <description>&lt;p&gt;If you ever used &lt;code&gt;jquery.validate&lt;/code&gt; then you might have used &lt;code&gt;groups&lt;/code&gt; feature.&lt;/p&gt;

&lt;p&gt;It allows you to group inputs so when one or more of them have invalid value, then one (and only one) error is displayed.&lt;/p&gt;

&lt;p&gt;It's useful when you don't want to flood user with list of errors.&lt;br&gt;
For example:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;split date into three inputs: day, month and year.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Now, you might want to display error like: 'Date is incorrect, please verify and correct' whenever day, month or year is incorrect.&lt;/p&gt;

&lt;p&gt;Without grouping you would have 3 errors is all 3 inputs have incorrect value&lt;br&gt;
&lt;code&gt;34-13-asdf&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;It's easy to setup such validation in &lt;code&gt;jQuery validate&lt;/code&gt; but it's not so easy to do with &lt;code&gt;jQuery unobtrusive validation&lt;/code&gt;.&lt;/p&gt;

&lt;h1&gt;
  
  
  What is unobtrusive validation?
&lt;/h1&gt;

&lt;p&gt;It's just a framework that allows you to setup validation with usage of &lt;code&gt;data-val-*=""&lt;/code&gt; attributes.&lt;br&gt;
It means that you don't have to write any &lt;code&gt;js&lt;/code&gt; to setup form validation.&lt;br&gt;
While it sound cool it's also limiting you with many options.&lt;/p&gt;

&lt;h1&gt;
  
  
  What is the problem? Just create new validator!
&lt;/h1&gt;

&lt;p&gt;jQuery.validate checks if there is existing validator for element and returns existing validator skipping all configuration you might wanted to add.&lt;/p&gt;

&lt;p&gt;Of course I could remove it and add new one but then you have to handle &lt;code&gt;hooks&lt;/code&gt; and all common settings you (or someone) might have added...&lt;/p&gt;

</description>
      <category>jquery</category>
      <category>validation</category>
      <category>unobtrusive</category>
      <category>frontend</category>
    </item>
  </channel>
</rss>
