<?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: Christopher Cavalea</title>
    <description>The latest articles on DEV Community by Christopher Cavalea (@chriscavs).</description>
    <link>https://dev.to/chriscavs</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%2F1087385%2F735deef4-7f69-4e80-96ca-ccdb12e08972.jpeg</url>
      <title>DEV Community: Christopher Cavalea</title>
      <link>https://dev.to/chriscavs</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/chriscavs"/>
    <language>en</language>
    <item>
      <title>Passwords Are Bad UX</title>
      <dc:creator>Christopher Cavalea</dc:creator>
      <pubDate>Thu, 01 Jun 2023 18:38:22 +0000</pubDate>
      <link>https://dev.to/chriscavs/passwords-are-bad-ux-410f</link>
      <guid>https://dev.to/chriscavs/passwords-are-bad-ux-410f</guid>
      <description>&lt;p&gt;My spicy hot opinion of the week: passwords are bad UX.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why do we force users to create passwords?&lt;/strong&gt;  Better yet, why do we force them to create a password, impose significant limitations on how they create it, and then punish them if they cannot remember it?&lt;/p&gt;

&lt;p&gt;We live in an internet age, where web applications assist in essential and common human interactions every second of every day.  Every one of those web applications requires that users create a password.  And every password we require users to create makes them &lt;strong&gt;worse off&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;u&gt;Users are worse off with passwords because it creates opportunities for pain where they did not exist before&lt;/u&gt;.  All of these scenarios occur when you force users to create a password:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Users must remember the password, or pay for a tool that will remember/create the password for them.&lt;/li&gt;
&lt;li&gt;Users must walk through cumbersome password recovery flows if they forget their password.&lt;/li&gt;
&lt;li&gt;Users will randomly get kicked out of applications when their auth token expires, leading to (1) and (2)&lt;/li&gt;
&lt;li&gt;Users must monitor or pay for software that monitors every password they've ever made, in case this information is leaked to the dark web.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;When a user encounters one of the above while using your application, they can attribute their pain directly to you and your app.&lt;/p&gt;

&lt;p&gt;I would argue that &lt;strong&gt;it is irresponsible from a UX/UI perspective (not just a security perspective) to force users to create passwords&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Is there no better way to ensure a secure connection than a piece of text?  Well, of course there is.  For example, &lt;a href="https://www.wired.com/story/google-passkey-password-replacement/"&gt;Google has rolled out passkey support for Google Accounts&lt;/a&gt;.  This gets rid of passwords AND 2FA for Google accounts that opt in.&lt;/p&gt;

&lt;p&gt;However, there may be other options, and I urge you all to sit down and think for a few minutes today about the question:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What would the world look like without passwords?&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>security</category>
      <category>ux</category>
      <category>design</category>
    </item>
    <item>
      <title>Aimless.js - The Missing JS Randomness Library</title>
      <dc:creator>Christopher Cavalea</dc:creator>
      <pubDate>Mon, 22 May 2023 18:01:35 +0000</pubDate>
      <link>https://dev.to/chriscavs/aimlessjs-the-missing-js-randomness-library-29k3</link>
      <guid>https://dev.to/chriscavs/aimlessjs-the-missing-js-randomness-library-29k3</guid>
      <description>&lt;p&gt;Hello Dev Community!&lt;/p&gt;

&lt;p&gt;My name is Chris and I released v1.0.0 of Aimless.js &lt;a href="https://github.com/ChrisCavs/aimless.js"&gt;on Github&lt;/a&gt; this week.  I think it's a pretty cool utility library for generating random numbers, and I wanted to share some of the things it could do!&lt;/p&gt;

&lt;p&gt;Check out my &lt;a href="https://chriscavs.github.io/aimless-demo/"&gt;demo page&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;My goal with this project was to create a library that made no assumptions regarding the PRNG that a user might use, and instead focus on the applications of PRNGs inside of frontend applications.  For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;bool&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;boolWithEngine&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;aimless.js&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;

&lt;span class="nx"&gt;bool&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="c1"&gt;// true/false&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;customBool&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;boolWithEngine&lt;/span&gt;&lt;span class="p"&gt;(()&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="nx"&gt;customBool&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="c1"&gt;// always false&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Aimless.js provides a large variety of utilities, all of which accept custom PRNGs and create a minuscule import weight via code bundlers.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;normalDist&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;aimless.js&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;results&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[]&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;mean&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;std&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;

&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="nx"&gt;i&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="nx"&gt;i&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="mi"&gt;100000&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="nx"&gt;i&lt;/span&gt;&lt;span class="o"&gt;++&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nx"&gt;results&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;push&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="nx"&gt;normalDist&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;mean&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;std&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
  &lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="c1"&gt;// You can expect that the mean of results will equal 0 +/- .001,&lt;/span&gt;
&lt;span class="c1"&gt;// with a standard deviation of 1&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This is v1.0.0 of a project I plan to maintain indefinitely, and I'm looking for community feedback around ways to improve it or additional utilities that the community would find useful! I will be compiling any feedback and preparing a v1.1.0 minor release in the near future.&lt;/p&gt;

&lt;p&gt;If you like the project, share the &amp;lt;3 with a star &lt;a href="https://github.com/ChrisCavs/aimless.js"&gt;on GitHub&lt;/a&gt;.  Thank you!&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>opensource</category>
      <category>github</category>
      <category>frontend</category>
    </item>
  </channel>
</rss>
