<?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: Keanu Dirkse</title>
    <description>The latest articles on DEV Community by Keanu Dirkse (@naicigam28).</description>
    <link>https://dev.to/naicigam28</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%2F522306%2F79d77841-bc89-4c4d-8d49-1ecdf5b1bc13.png</url>
      <title>DEV Community: Keanu Dirkse</title>
      <link>https://dev.to/naicigam28</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/naicigam28"/>
    <language>en</language>
    <item>
      <title>What IDE do you use?</title>
      <dc:creator>Keanu Dirkse</dc:creator>
      <pubDate>Sun, 28 Jul 2024 17:03:54 +0000</pubDate>
      <link>https://dev.to/naicigam28/what-ide-do-you-use-1j2n</link>
      <guid>https://dev.to/naicigam28/what-ide-do-you-use-1j2n</guid>
      <description>&lt;p&gt;Hi everyone!&lt;/p&gt;

&lt;p&gt;I'm curious to see what IDEs are popular in the community right now. I'm currently using VS Code and enjoying it, but I'm also learning how to use neovim&lt;/p&gt;

&lt;p&gt;I'd love to hear about your experiences with different IDEs. What are you using? What do you love about it? Any recommendations for someone trying to decide between a few options?&lt;/p&gt;

</description>
      <category>discuss</category>
    </item>
    <item>
      <title>Python virtual Environments</title>
      <dc:creator>Keanu Dirkse</dc:creator>
      <pubDate>Sat, 27 Jul 2024 16:39:00 +0000</pubDate>
      <link>https://dev.to/naicigam28/python-virtual-environments-pl2</link>
      <guid>https://dev.to/naicigam28/python-virtual-environments-pl2</guid>
      <description>&lt;h2&gt;
  
  
  TL;DR
&lt;/h2&gt;

&lt;p&gt;Essentially this allows you to create an isolated environment for each python application you create. Meaning each application can use difference libraries or even different version of the same library without interfering with each other.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is VENV
&lt;/h2&gt;

&lt;p&gt;A python virtual environment or VENV is a lightweight self-contained directory tree that contains a Python installation for a particular version of python, plus a number of additional packages.&lt;/p&gt;

&lt;p&gt;Each python application you create can use its own virtual environment. This resolves the problem of conflicting requirements between applications.&lt;/p&gt;

&lt;p&gt;The &lt;a href="https://docs.python.org/3/library/venv.html" rel="noopener noreferrer"&gt;venv module&lt;/a&gt; is used to create the virtual environment. &lt;/p&gt;

&lt;h2&gt;
  
  
  How to install venv
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pip &lt;span class="nb"&gt;install &lt;/span&gt;virtualenv
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Create a virtual environment
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;python &lt;span class="nt"&gt;-m&lt;/span&gt; venv /path/to/new/virtual/environment
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Use a virtual environment
&lt;/h2&gt;

&lt;p&gt;For Linux or Mac OS your new venv can be activated by using this command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;source&lt;/span&gt; /path/to/new/virtual/environment/bin/activate
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For windows:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;\path\to\new\virtual\environment\Scripts\activate.bat
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Once activated you should be able to install libraries via pip like you normally would but it will now be installed into you virtual environment&lt;/p&gt;

&lt;h2&gt;
  
  
  Exiting your virtual environment
&lt;/h2&gt;

&lt;p&gt;Just like with activation venv provides a handy deactivate script. For Linux or Mac OS your new venv can be deactivated by using this command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;deactivate
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;or if that does not work:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;source&lt;/span&gt; /path/to/new/virtual/environment/bin/deactivate
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For windows:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;\path\to\new\virtual\environment\Scripts\deactivate.bat
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Why should you use a virtual environment
&lt;/h2&gt;

&lt;p&gt;When you run Python and its libraries from the system, you are restricted to a specific Python version chosen by your operating system. This approach can lead to version conflicts among the libraries when running multiple Python applications on the same installation. Additionally, modifying the system Python may disrupt other OS features that rely on it. Using a virtual environment isolates each application thus solving this problem.&lt;/p&gt;

</description>
      <category>python</category>
    </item>
    <item>
      <title>How to update your npm packages with npm-check</title>
      <dc:creator>Keanu Dirkse</dc:creator>
      <pubDate>Sun, 21 Jul 2024 12:32:03 +0000</pubDate>
      <link>https://dev.to/naicigam28/update-your-npm-packages-with-npm-check-45ii</link>
      <guid>https://dev.to/naicigam28/update-your-npm-packages-with-npm-check-45ii</guid>
      <description>&lt;p&gt;A quick guide to updating all of your outdated npm packages using  &lt;a href="https://www.npmjs.com/package/npm-check" rel="noopener noreferrer"&gt;npm-check&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  How to use npm-check
&lt;/h2&gt;

&lt;h3&gt;
  
  
  See what is outdated
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npx npm-check
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;npm-check is a tool that checks for outdated, incorrect, and unused dependencies. This will tell you if anything needs updating. The above command will run the tool via npx. &lt;/p&gt;

&lt;p&gt;NPX stands for Node Package execute. It allows developers to run any Javascript package on NPM without needing to install the package first&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fg9nha5faajjfmmr3ltin.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fg9nha5faajjfmmr3ltin.png" alt="screenshot of npx npm-check output" width="800" height="132"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Update packages via npm-check
&lt;/h3&gt;

&lt;h4&gt;
  
  
  Interactive update
&lt;/h4&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npx npm-check -u
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This allows you to choose which packages to update&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbgj15lo6ueycx4xw0kqn.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbgj15lo6ueycx4xw0kqn.png" alt="screenshot of npx npm-check -u output" width="800" height="192"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  Update all
&lt;/h4&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npx npm-check -y
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This will update all your packages without prompting you. Use with caution as some updates may include breaking changes&lt;/p&gt;

&lt;h2&gt;
  
  
  Updating using npm update
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npm update --save
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This updates the package.json to use the latest versions of their dependencies. It is worth noting that this will avoid updating to a major breaking change version.&lt;/p&gt;

</description>
      <category>npm</category>
      <category>node</category>
      <category>javascript</category>
    </item>
  </channel>
</rss>
