<?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: Gunabalan.S</title>
    <description>The latest articles on DEV Community by Gunabalan.S (@gunabalans).</description>
    <link>https://dev.to/gunabalans</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%2F1329236%2Fee59c6e1-184f-42e3-8f0e-bc5bcf43bc3b.jpeg</url>
      <title>DEV Community: Gunabalan.S</title>
      <link>https://dev.to/gunabalans</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/gunabalans"/>
    <language>en</language>
    <item>
      <title>is it allowed to share with AI platforms ?</title>
      <dc:creator>Gunabalan.S</dc:creator>
      <pubDate>Sat, 06 Apr 2024 04:49:25 +0000</pubDate>
      <link>https://dev.to/gunabalans/no-more-private-source-code--1ha</link>
      <guid>https://dev.to/gunabalans/no-more-private-source-code--1ha</guid>
      <description>&lt;p&gt;The industry is experiencing a notable shift, where the integration of AI tools has become essential. However, for AI to provide precise insights and suggestions, it often requires access to your content for better comprehension. &lt;/p&gt;

&lt;p&gt;This raises a pertinent question: Example in case of code base, While open-source code bases are freely shareable, what about private ones?&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;is it allowed to share with AI platforms ?&lt;/strong&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;it depends on various factors including the terms of service of the AI platform, any legal or contractual obligations, and the policies of the organization or individual who owns the code. In many cases, sharing private code with AI platforms may require consent or authorization to ensure compliance with privacy and security measures.&lt;/p&gt;
&lt;/blockquote&gt;

</description>
    </item>
    <item>
      <title>Is Devin AI the end (or future) of coding?!</title>
      <dc:creator>Gunabalan.S</dc:creator>
      <pubDate>Sat, 23 Mar 2024 12:47:19 +0000</pubDate>
      <link>https://dev.to/gunabalans/is-devin-ai-the-end-or-future-of-coding-496m</link>
      <guid>https://dev.to/gunabalans/is-devin-ai-the-end-or-future-of-coding-496m</guid>
      <description>&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/XKkoVpupYdw"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Remove file from Git change tracking list</title>
      <dc:creator>Gunabalan.S</dc:creator>
      <pubDate>Sun, 17 Mar 2024 10:40:27 +0000</pubDate>
      <link>https://dev.to/gunabalans/remove-file-from-git-change-tracking-list-2lik</link>
      <guid>https://dev.to/gunabalans/remove-file-from-git-change-tracking-list-2lik</guid>
      <description>&lt;p&gt;The list is in the .gitignore file. Perhaps you added these files later, causing Git to start tracking them. How do you remove them from Git's tracking list?&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git update-index --assume-unchanged .\frontend\src\config.json

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;div class="ltag__tag ltag__tag__id__29"&gt;
    &lt;div class="ltag__tag__content"&gt;
      &lt;h2&gt;#&lt;a href="https://dev.to/t/git" class="ltag__tag__link"&gt;git&lt;/a&gt; Follow
&lt;/h2&gt;
      &lt;div class="ltag__tag__summary"&gt;
        Software for tracking changes in any set of files, usually used for coordinating work among programmers collaboratively developing source code during software development.
      &lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;



</description>
      <category>git</category>
    </item>
    <item>
      <title>Deleting the Last Commit Locally Before Pushing to Remote</title>
      <dc:creator>Gunabalan.S</dc:creator>
      <pubDate>Thu, 14 Mar 2024 16:57:34 +0000</pubDate>
      <link>https://dev.to/gunabalans/deleting-the-last-commit-locally-before-pushing-to-remote-5gf</link>
      <guid>https://dev.to/gunabalans/deleting-the-last-commit-locally-before-pushing-to-remote-5gf</guid>
      <description>&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git reset --soft HEAD~
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;C:\Projects&amp;gt; git reset --soft HEAD~&lt;br&gt;
fatal: Cannot do a soft reset in the middle of a merge.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git reset --hard HEAD~

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;HEAD is now at f1sssebd &lt;/p&gt;

&lt;p&gt;Note: reset --hard will delete local changes&lt;/p&gt;

</description>
      <category>git</category>
    </item>
    <item>
      <title>Feature Branch</title>
      <dc:creator>Gunabalan.S</dc:creator>
      <pubDate>Thu, 14 Mar 2024 16:38:14 +0000</pubDate>
      <link>https://dev.to/gunabalans/feature-branch-3mn9</link>
      <guid>https://dev.to/gunabalans/feature-branch-3mn9</guid>
      <description>&lt;p&gt;A feature branch is a separate branch for developing a specific feature in Git.&lt;br&gt;
&lt;code&gt;git checkout -b feature-branch&lt;/code&gt;&lt;/p&gt;

</description>
      <category>git</category>
    </item>
    <item>
      <title>GIT MERGE Quick Reference</title>
      <dc:creator>Gunabalan.S</dc:creator>
      <pubDate>Thu, 14 Mar 2024 16:22:45 +0000</pubDate>
      <link>https://dev.to/gunabalans/git-merge-quick-reference-1ijj</link>
      <guid>https://dev.to/gunabalans/git-merge-quick-reference-1ijj</guid>
      <description>&lt;p&gt;This sequence of commands allows you to merge changes from a feature branch (&lt;code&gt;feature-branch&lt;/code&gt;) into the &lt;code&gt;development&lt;/code&gt; branch and then delete the feature branch both locally and remotely.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Switch to  Branch: example "Development"
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git checkout development
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;Merge Feature Branch to Development:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git merge feature-branch
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;Delete Feature Branch (from Local):
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git branch -d feature-branch
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;Delete Feature Branch (from Remote):
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git push origin --delete feature-branch
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
    </item>
    <item>
      <title>Use callback in setState when referencing the previous state.eslintreact/no-access-state-in-setstate</title>
      <dc:creator>Gunabalan.S</dc:creator>
      <pubDate>Mon, 11 Mar 2024 15:06:03 +0000</pubDate>
      <link>https://dev.to/gunabalans/use-callback-in-setstate-when-referencing-the-previous-stateeslintreactno-access-state-in-setstate-18k</link>
      <guid>https://dev.to/gunabalans/use-callback-in-setstate-when-referencing-the-previous-stateeslintreactno-access-state-in-setstate-18k</guid>
      <description>&lt;p&gt;&lt;strong&gt;Example&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;       const actions = this.state.actions.filter((item) =&amp;gt; item.key !== key2);
       this.setState({ actions, more_action: 'add' });

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Solution&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;      this.setState((prevState) =&amp;gt; {
        const newActions = prevState.actions.filter((item) =&amp;gt; item.key !== key2);
        return { actions: newActions, more_action: 'add' };
      });
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Note&lt;/strong&gt;&lt;br&gt;
prevState is available in setState callback, which is important for avoiding race conditions and ensuring that state updates are based on the latest values.&lt;/p&gt;

</description>
      <category>eslint</category>
    </item>
    <item>
      <title>ORM vs SQL vs query builder</title>
      <dc:creator>Gunabalan.S</dc:creator>
      <pubDate>Wed, 06 Mar 2024 16:45:07 +0000</pubDate>
      <link>https://dev.to/gunabalans/orm-vs-sql-vs-query-builder-414n</link>
      <guid>https://dev.to/gunabalans/orm-vs-sql-vs-query-builder-414n</guid>
      <description>&lt;p&gt;ORM may initially provide a comfortable development experience, but its efficiency diminishes when dealing with a user base as small as 10,000. The slowdown becomes noticeable, especially with multiple joins or lengthy logic. In my personal experience with Laravel PHP projects, I opted to move away from ORM.&lt;/p&gt;

&lt;p&gt;While direct SQL introduces challenges, such as data marshaling between JSON and objects or the serialization and de-serialization process, using query builders like Medoo PHP proved to be a wise choice. These tools are lightweight and alleviate some of the burdens, allowing for a smoother development process.&lt;/p&gt;

&lt;p&gt;However, in situations where extensive processing is required, like generating invoices for over 10,000 users, employing stored procedures becomes a preferable solution.&lt;/p&gt;

</description>
      <category>database</category>
    </item>
  </channel>
</rss>
