<?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>Forem: dumo</title>
    <description>The latest articles on Forem by dumo (@dumorando).</description>
    <link>https://forem.com/dumorando</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%2F1576244%2Fedd02c06-2d9b-47a5-b88e-247487e4078a.png</url>
      <title>Forem: dumo</title>
      <link>https://forem.com/dumorando</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/dumorando"/>
    <language>en</language>
    <item>
      <title>How to setup a Svelte project</title>
      <dc:creator>dumo</dc:creator>
      <pubDate>Wed, 05 Jun 2024 03:55:15 +0000</pubDate>
      <link>https://forem.com/dumorando/how-to-setup-a-svelte-project-4kho</link>
      <guid>https://forem.com/dumorando/how-to-setup-a-svelte-project-4kho</guid>
      <description>&lt;h1&gt;
  
  
  How to setup a Svelte project
&lt;/h1&gt;

&lt;p&gt;You first have to have Node.JS and npm installed on your computer.&lt;br&gt;
First of all run &lt;code&gt;bun create vite .&lt;/code&gt; or &lt;code&gt;npm create vite .&lt;/code&gt; for NPM users.&lt;br&gt;
Use the down arrow key to scroll to Svelte, then hit enter.&lt;br&gt;
Press JavaScript, or Typescript, your choice. Sveltekit is an advanced topic and if you are a beginner you should stick to Svelte/javascript.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>javascript</category>
      <category>beginners</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>localforage vs localstorage</title>
      <dc:creator>dumo</dc:creator>
      <pubDate>Tue, 04 Jun 2024 19:31:13 +0000</pubDate>
      <link>https://forem.com/dumorando/localforage-vs-localstorage-43ap</link>
      <guid>https://forem.com/dumorando/localforage-vs-localstorage-43ap</guid>
      <description>&lt;h1&gt;
  
  
  Localforage vs Localstorage
&lt;/h1&gt;

&lt;p&gt;So, whats the difference between localforage and localstorage? And why do people recommend localforage rather then localstorage?&lt;/p&gt;

&lt;p&gt;Its quite simple actually.&lt;/p&gt;

&lt;h2&gt;
  
  
  Localforage
&lt;/h2&gt;

&lt;p&gt;Localforage is an asynchronous based local database simular to localstorage but internally it uses IndexedDB.&lt;/p&gt;

&lt;p&gt;IndexedDB is an arguably better alternative to localstorage, the problem is its kinda complex.&lt;br&gt;
Localforage has a simple localstorage like syntax for IndexedDB.&lt;br&gt;
Localforage also has a fallback to other storage methods for old browsers.&lt;/p&gt;

&lt;p&gt;It's good for saving large data as IndexedDB has more storage then localstorage.&lt;/p&gt;

&lt;h2&gt;
  
  
  Localstorage
&lt;/h2&gt;

&lt;p&gt;Localstorage is a synchronous based local database.&lt;br&gt;
You don't need to use promises/async syntax for it.&lt;/p&gt;

&lt;p&gt;It has a lot less storage then IndexedDB.&lt;br&gt;
It's great for saving user settings without using cookies.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;Its ultimately your choice.&lt;br&gt;
I personally recommend localstorage for simply saving settings like dark mode, etc but i recommend localforage for saving data that is large in size, or if you can only use async in the current situation.&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
