<?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: Hong duc</title>
    <description>The latest articles on Forem by Hong duc (@hongduc).</description>
    <link>https://forem.com/hongduc</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%2F27736%2F906de22a-10ef-4f44-a3cf-84d64c5600de.jpeg</url>
      <title>Forem: Hong duc</title>
      <link>https://forem.com/hongduc</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/hongduc"/>
    <language>en</language>
    <item>
      <title>Ways to deploy code to production server (linux server) with jenkins ?</title>
      <dc:creator>Hong duc</dc:creator>
      <pubDate>Sun, 19 Jul 2020 04:46:45 +0000</pubDate>
      <link>https://forem.com/hongduc/ways-to-deploy-code-to-production-server-linux-server-with-jenkins-ll5</link>
      <guid>https://forem.com/hongduc/ways-to-deploy-code-to-production-server-linux-server-with-jenkins-ll5</guid>
      <description>&lt;p&gt;I want to automate the process of build then deploy (some nodejs application) to production server with jenkins. Right now my company using svn to deploy code production server, that is commit code to svn then log in production server via ssh and run svn up.&lt;br&gt;
I don't think I can automate the deploy stage with svn, so I want to seek another way to deploy code to production server that is also easy to automate with jenkins.&lt;br&gt;
Thanks&lt;/p&gt;

</description>
      <category>discuss</category>
    </item>
    <item>
      <title>request-response pattern with socket.io, Am I using anti pattern ?</title>
      <dc:creator>Hong duc</dc:creator>
      <pubDate>Mon, 01 Jul 2019 08:26:27 +0000</pubDate>
      <link>https://forem.com/hongduc/request-response-pattern-with-socket-io-am-i-using-anti-pattern-4m8c</link>
      <guid>https://forem.com/hongduc/request-response-pattern-with-socket-io-am-i-using-anti-pattern-4m8c</guid>
      <description>&lt;p&gt;Hello, I am building a chat app using socket.io. But something hit me.&lt;br&gt;
Right now, I am re-implementing the request-response pattern with socket.io, because every time client send a message, I need to know whether the message is sent or not or timeout. But doing this I thought why not use http to send message ? But I remember that I want to avoid request overhead.&lt;/p&gt;

&lt;p&gt;Am I using anti pattern here ? Am I doing thing the wrong way ?&lt;br&gt;
Thank you&lt;/p&gt;

</description>
      <category>help</category>
      <category>discuss</category>
    </item>
    <item>
      <title>What is your favorite company development culture/motto ?</title>
      <dc:creator>Hong duc</dc:creator>
      <pubDate>Fri, 28 Jun 2019 08:13:16 +0000</pubDate>
      <link>https://forem.com/hongduc/what-is-your-favorite-company-development-culture-motto-1j62</link>
      <guid>https://forem.com/hongduc/what-is-your-favorite-company-development-culture-motto-1j62</guid>
      <description>&lt;p&gt;I just read this &lt;a href="https://blog.discordapp.com/how-discord-stores-billions-of-messages-7fa6ec7ee4c7"&gt;discord blog&lt;/a&gt; and saw this&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;This is actually part of our company culture: &lt;strong&gt;build quickly to prove out a product feature, but always with a path to a more robust solution.&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;So that is how discord work, this is something I need to learn to do and it kind of fun too :).&lt;br&gt;
I wonder what other development culture/motto out there&lt;/p&gt;

</description>
      <category>discuss</category>
    </item>
    <item>
      <title>In RMDBS is join table bad for perfomance ?</title>
      <dc:creator>Hong duc</dc:creator>
      <pubDate>Mon, 24 Jun 2019 03:03:18 +0000</pubDate>
      <link>https://forem.com/hongduc/in-rmdbs-is-join-table-bad-for-perfomance-1954</link>
      <guid>https://forem.com/hongduc/in-rmdbs-is-join-table-bad-for-perfomance-1954</guid>
      <description>&lt;p&gt;In the company I work for, we use Postgres, one time while we creating a simple chat app, I suggest that we join &lt;code&gt;messages table&lt;/code&gt; with &lt;code&gt;user table&lt;/code&gt; so that we can get the &lt;code&gt;message author name&lt;/code&gt;. But my boss say it bad, he say that join with big table slow everything down, the more data has to join the slower it get.&lt;/p&gt;

&lt;p&gt;I only learn basic stuff about RMDBS like join,inner join, etc... . So I really don't understand, why my boss say that. What I learn from school is different, when you design RMBDS model &lt;code&gt;normalized&lt;/code&gt; you have to use join, it normal stuff.&lt;/p&gt;

&lt;p&gt;The model is like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Message {
  author_name,
  body
}

User {
  user_name
}
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;I really need some help, I am confusing right now, Thank you&lt;/p&gt;

</description>
      <category>help</category>
      <category>discuss</category>
    </item>
    <item>
      <title>When query db should I check if data exists first then select it ?</title>
      <dc:creator>Hong duc</dc:creator>
      <pubDate>Sat, 12 Jan 2019 02:32:36 +0000</pubDate>
      <link>https://forem.com/hongduc/when-query-db-should-i-check-if-data-exists-first-then-select-it--4hg6</link>
      <guid>https://forem.com/hongduc/when-query-db-should-i-check-if-data-exists-first-then-select-it--4hg6</guid>
      <description>

&lt;p&gt;I always just select data then check if returned data is null or not, but I wonder if that is a good way.&lt;br&gt;
But if I check for data exists then that will make 2 call to db, 1 for check and 1 for select, is this good ?&lt;br&gt;
Or maybe I just overthinking it :).&lt;br&gt;
What are your though about this ?&lt;/p&gt;

&lt;p&gt;Thank you&lt;/p&gt;


</description>
      <category>discuss</category>
      <category>sql</category>
      <category>bestpractice</category>
    </item>
    <item>
      <title>DevTube - The best developer videos in one place</title>
      <dc:creator>Hong duc</dc:creator>
      <pubDate>Mon, 02 Jul 2018 02:19:36 +0000</pubDate>
      <link>https://forem.com/hongduc/devtube---the-best-developer-videos-in-one-place-40dc</link>
      <guid>https://forem.com/hongduc/devtube---the-best-developer-videos-in-one-place-40dc</guid>
      <description>&lt;p&gt;I just find out this site, really good&lt;/p&gt;

&lt;p&gt;&lt;a href="https://dev.tube/"&gt;https://dev.tube/&lt;/a&gt;&lt;/p&gt;

</description>
      <category>sharedev</category>
    </item>
    <item>
      <title>What method do you do when you want to remember app behavior ?</title>
      <dc:creator>Hong duc</dc:creator>
      <pubDate>Mon, 25 Jun 2018 05:23:02 +0000</pubDate>
      <link>https://forem.com/hongduc/what-method-do-you-do-when-you-want-to-remember-app-behavior--182m</link>
      <guid>https://forem.com/hongduc/what-method-do-you-do-when-you-want-to-remember-app-behavior--182m</guid>
      <description>&lt;p&gt;A method I am doing right now is just to write it down on excel&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A bot that check postgres connection and send email alert
&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fctgeruae6u1jmim0pwjk.png" alt="some_image"&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I do it this way because it fast and simple, not drawing any thing (because I lazy :) ), but it just a stupid and lazy way, so I want to know what others developer around the world do :D&lt;/p&gt;

</description>
      <category>discuss</category>
    </item>
    <item>
      <title>Have you ever build application with Faas. What is your usecase ?</title>
      <dc:creator>Hong duc</dc:creator>
      <pubDate>Tue, 14 Nov 2017 11:15:11 +0000</pubDate>
      <link>https://forem.com/hongduc/have-you-ever-build-application-with-faas-what-is-your-usecase--1bj</link>
      <guid>https://forem.com/hongduc/have-you-ever-build-application-with-faas-what-is-your-usecase--1bj</guid>
      <description>&lt;p&gt;I just read about Serverless Architectures and Faas, It sound cool and low price. What is the usecase should I apply to my project (mobile, web, ...) ?&lt;/p&gt;

</description>
      <category>discuss</category>
    </item>
    <item>
      <title>Hello dev.to</title>
      <dc:creator>Hong duc</dc:creator>
      <pubDate>Thu, 27 Jul 2017 15:42:04 +0000</pubDate>
      <link>https://forem.com/hongduc/hello-devto</link>
      <guid>https://forem.com/hongduc/hello-devto</guid>
      <description>&lt;p&gt;Hello dev.to my name is Phan Nguyen Hong Duc. I am a developer from Viet Nam. I like java, javascript, clojure. I like to try new thing, like apply new design pattern, new programming paradigm. I like clean code, I am now reading clean code and try to apply it but not good :D. The end.&lt;/p&gt;

</description>
      <category>duc</category>
      <category>hello</category>
    </item>
  </channel>
</rss>
