<?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: phanatuan</title>
    <description>The latest articles on DEV Community by phanatuan (@phanatuan).</description>
    <link>https://dev.to/phanatuan</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%2F115460%2Fc9874bf9-4717-4872-8441-f6e8151e074f.jpeg</url>
      <title>DEV Community: phanatuan</title>
      <link>https://dev.to/phanatuan</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/phanatuan"/>
    <language>en</language>
    <item>
      <title>When knowing how to code could bite you back</title>
      <dc:creator>phanatuan</dc:creator>
      <pubDate>Thu, 14 May 2020 10:12:22 +0000</pubDate>
      <link>https://dev.to/phanatuan/when-knowing-how-to-code-could-bite-you-back-p50</link>
      <guid>https://dev.to/phanatuan/when-knowing-how-to-code-could-bite-you-back-p50</guid>
      <description>&lt;p&gt;I always think knowing how to code is an advantage, a major one. I could come up with an idea and execute it at the same time.&lt;/p&gt;

&lt;p&gt;It’s correct! But it dawns on me after a while that being a coder makes me consider a more complicated path for an idea.&lt;/p&gt;

&lt;p&gt;I do not know code before (2 years ago), and I built up a successful blog with 2000 visits/day, earning a respectable income with only Wordpress and Shared Hosting (Yes!! Shared Hosting - and I message the Customer Service team a lot! I do not know SHIT!).&lt;/p&gt;

&lt;p&gt;I focus on the core: content, and promoting the content (aka hustling). It’s simple, easy, and most importantly it works!&lt;/p&gt;

&lt;p&gt;Now, I take almost 2 months just to have 10 article on my &lt;a href="https://constantdelights.com"&gt;newly launched blog&lt;/a&gt;. I built a custom admin, cook up a frontend with fancy site generator (Gatsby), and plug in an old-soul NodeJS API.&lt;/p&gt;

&lt;p&gt;But then I realize, the most important focus for a blog is content. Everything else is a nice-to-have, but without content, your blog is just a no-man-land. Why I have to dread with all the fancy technology set up, rather than kicking start and drill in the most important stuff: creating content?&lt;/p&gt;

&lt;p&gt;Maybe it’s not the problem with coding. It’s MY problem of over-complicating things, and suffering the shiny object syndrome. With code, I feel powerful. I feel I could tackle anything with 50 lines of code (or more). And I try to make use of the newly found power by finding every single opportunity to utilize it.&lt;/p&gt;

&lt;p&gt;So … How to fix this? Truth to be told, I do not know. The good thing now is I finally launch, but I still find myself tinkering with the coding part to fine tune the details bit by bit, which again prevent myself from the core of my business.&lt;/p&gt;

&lt;p&gt;Maybe I have to live with this, like we eventually learn to live with Covid-19. I’ll write a follow-up to this post once I figure out!&lt;/p&gt;

&lt;p&gt;Quite an important thought for the day huh?&lt;/p&gt;

&lt;p&gt;Tuan&lt;/p&gt;

&lt;p&gt;This post was originally posted on &lt;a href="https://tuanphan.org/posts/when-knowing-code-bite-you-back"&gt;my blog&lt;/a&gt;&lt;/p&gt;

</description>
      <category>codenewbie</category>
      <category>gatsby</category>
      <category>personal</category>
    </item>
    <item>
      <title>Problems with Gatsby &amp; WordPress</title>
      <dc:creator>phanatuan</dc:creator>
      <pubDate>Tue, 21 Jan 2020 16:27:08 +0000</pubDate>
      <link>https://dev.to/phanatuan/problems-with-gatsby-wordpress-l2l</link>
      <guid>https://dev.to/phanatuan/problems-with-gatsby-wordpress-l2l</guid>
      <description>&lt;p&gt;I am a self-taught coder, and I am in the process of porting my shared-hosted Wordpress to Gatsby (hosted on Netlify). &lt;/p&gt;

&lt;p&gt;I make the basic works (displaying the post and pages onto Netlify). However, I have some following concerns: &lt;/p&gt;

&lt;p&gt;For page and post content, the data returns is &lt;code&gt;html&lt;/code&gt; format. It was displayed in React as&lt;br&gt;
&lt;br&gt;
 &lt;code&gt;&amp;lt;div dangerouslySetInnerHTML={{__html: wordpressPost.content}} /&amp;gt;&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;The problems arise are: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;How could I add custom format for the Wordpress content (the &lt;code&gt;p&lt;/code&gt;, &lt;code&gt;h1&lt;/code&gt;, ...) &lt;/li&gt;
&lt;li&gt;How could I add the &lt;code&gt;email newsletter&lt;/code&gt; form (maybe at 50% of the content, or after the 3rd paragraph) &lt;/li&gt;
&lt;li&gt;How could I use the Gatsby &lt;code&gt;Link&lt;/code&gt; component for &lt;code&gt;&amp;lt;a&amp;gt;&lt;/code&gt; tag that points to the site (internal URL) &lt;/li&gt;
&lt;li&gt;How to add &lt;code&gt;advertisement code block&lt;/code&gt; across the content &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;... &lt;/p&gt;

&lt;p&gt;I would really appreciate if someone could shed light on these matters. I really love the Gatsby look and feel, but these issues are holding me back. &lt;/p&gt;

&lt;p&gt;Thanks, &lt;br&gt;
Tuan. &lt;/p&gt;

</description>
      <category>gatsby</category>
      <category>wordpress</category>
    </item>
  </channel>
</rss>
