<?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: Jashua</title>
    <description>The latest articles on DEV Community by Jashua (@jouo).</description>
    <link>https://dev.to/jouo</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%2F314303%2F6c2af4f3-512b-4b41-84c9-60a4e6f6693d.png</url>
      <title>DEV Community: Jashua</title>
      <link>https://dev.to/jouo</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/jouo"/>
    <language>en</language>
    <item>
      <title>Which book helped you understand how to design good programs?</title>
      <dc:creator>Jashua</dc:creator>
      <pubDate>Mon, 10 Oct 2022 15:53:57 +0000</pubDate>
      <link>https://dev.to/jouo/which-book-helped-you-understand-how-to-design-good-programs-28a</link>
      <guid>https://dev.to/jouo/which-book-helped-you-understand-how-to-design-good-programs-28a</guid>
      <description>&lt;p&gt;I've written plenty of programs in Java, Python and Bash. I've read language-specific books and books about best coding practices, etc.&lt;/p&gt;

&lt;p&gt;But I still don't have a solid understanding of what's right or wrong when writing code, in terms of design (or something of that nature)&lt;/p&gt;

&lt;p&gt;Brief example, I know what an interface and abstract class is in Java, I know their differences like the palm of my hand, but when I'm writting code I'm still not certain which one to use or when to use them.&lt;/p&gt;

&lt;p&gt;I want to be better, please help me with book suggestions &amp;lt;3&lt;/p&gt;

</description>
      <category>discuss</category>
    </item>
    <item>
      <title>Persistent connection to Kafka through Spring Boot?</title>
      <dc:creator>Jashua</dc:creator>
      <pubDate>Fri, 26 Nov 2021 16:49:43 +0000</pubDate>
      <link>https://dev.to/jouo/persistent-connection-to-kafka-through-spring-boot-gdo</link>
      <guid>https://dev.to/jouo/persistent-connection-to-kafka-through-spring-boot-gdo</guid>
      <description>&lt;p&gt;Please excuse the ambiguity as I'm trying to be as clear as possible with the little knowledge that I have.&lt;/p&gt;

&lt;p&gt;We have a Kafka cluster and the idea is to have a Spring Boot application to serve as the bridge between the Producers, Consumers and Kafka.&lt;/p&gt;

&lt;p&gt;I've worked with simple REST, CRUD applications, in which I basically interact with the server on a request basis.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Question:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;How do I go about creating a persistent connection between Spring and Kafka to send and receive messages?&lt;/p&gt;

&lt;p&gt;Does the protocol matter?&lt;/p&gt;

</description>
      <category>help</category>
      <category>java</category>
      <category>programming</category>
      <category>kafka</category>
    </item>
    <item>
      <title>Where can I put C++ into practice? (real world usage)</title>
      <dc:creator>Jashua</dc:creator>
      <pubDate>Sun, 28 Mar 2021 12:08:48 +0000</pubDate>
      <link>https://dev.to/jouo/where-can-i-put-c-into-practice-real-world-usage-2p5l</link>
      <guid>https://dev.to/jouo/where-can-i-put-c-into-practice-real-world-usage-2p5l</guid>
      <description>&lt;p&gt;I'm aware that C++ is a powerful language that is used "everywhere"... but could we please get into specifics?&lt;/p&gt;

&lt;p&gt;For example, servers come to mind when I think about Java, front-end interactivity would be JavaScript, Linux CLI programs coulde be Shell or Python, etc.&lt;/p&gt;

&lt;p&gt;In that sense, what about C++? what things can I do with it that have real world usage?&lt;/p&gt;

</description>
      <category>help</category>
    </item>
    <item>
      <title>Intermediate or Advanced books on Java</title>
      <dc:creator>Jashua</dc:creator>
      <pubDate>Wed, 23 Dec 2020 03:08:13 +0000</pubDate>
      <link>https://dev.to/jouo/intermediate-or-advanced-books-on-java-178c</link>
      <guid>https://dev.to/jouo/intermediate-or-advanced-books-on-java-178c</guid>
      <description>&lt;p&gt;Java is one of the skills that my application architect was looking for and I have a year worth of experience on it using Spring Boot, I also have knowledge of Design Patterns and data structures.&lt;/p&gt;

&lt;p&gt;However, I'm a Junior so I still can't confidently say that &lt;strong&gt;I know Java&lt;/strong&gt;, I feel stuck.&lt;/p&gt;

&lt;p&gt;I'd appreciate any book suggestions that could help me feel more comfortable with Java, intermediate or advanced books.&lt;/p&gt;

&lt;p&gt;Please and thank you! :) &lt;/p&gt;

</description>
      <category>help</category>
      <category>java</category>
    </item>
    <item>
      <title>Java Design Patterns</title>
      <dc:creator>Jashua</dc:creator>
      <pubDate>Thu, 30 Jul 2020 18:39:17 +0000</pubDate>
      <link>https://dev.to/jouo/java-design-patterns-5d56</link>
      <guid>https://dev.to/jouo/java-design-patterns-5d56</guid>
      <description>&lt;p&gt;I can't praise Robert Cecil Martin enough, a couple months ago I had to read Clean Code and that book single-handedly changed my perspective on how to write quality source code and the importance of TDD.&lt;/p&gt;

&lt;p&gt;Having said that, I came to realize that although my programs run, I may not be designing them properly as I lack knowledge on design patterns.&lt;/p&gt;

&lt;p&gt;I'm looking for some guidance, be it personal suggestions on books or courses, anything that may help.&lt;/p&gt;

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

</description>
      <category>help</category>
      <category>java</category>
    </item>
    <item>
      <title>What does the terms front-end and back-end cover? (opinions)</title>
      <dc:creator>Jashua</dc:creator>
      <pubDate>Wed, 15 Jul 2020 01:32:45 +0000</pubDate>
      <link>https://dev.to/jouo/what-does-the-terms-front-end-and-back-end-cover-opinions-3ja7</link>
      <guid>https://dev.to/jouo/what-does-the-terms-front-end-and-back-end-cover-opinions-3ja7</guid>
      <description>&lt;p&gt;For example, whenever I hear the term &lt;strong&gt;front-end&lt;/strong&gt; I think about sketching, design, color theory, UI/UX, coding...&lt;/p&gt;

&lt;p&gt;For &lt;strong&gt;back-end&lt;/strong&gt;: databases, coding, algorithms, devops, systems...&lt;/p&gt;

&lt;p&gt;My definitions could be completely wrong, but that's just how I personally perceive them.&lt;/p&gt;

&lt;p&gt;How do &lt;strong&gt;you&lt;/strong&gt; perceive those two terms? :)&lt;/p&gt;

</description>
      <category>discuss</category>
    </item>
    <item>
      <title>Microk8s Kubernetes - How do I connect two services?</title>
      <dc:creator>Jashua</dc:creator>
      <pubDate>Wed, 13 May 2020 08:37:59 +0000</pubDate>
      <link>https://dev.to/jouo/microk8s-kubernetes-how-do-i-connect-two-services-3bga</link>
      <guid>https://dev.to/jouo/microk8s-kubernetes-how-do-i-connect-two-services-3bga</guid>
      <description>&lt;p&gt;I'm using Microk8s Kubectl in Ubuntu server, I was following some tutorials from &lt;a href="https://www.youtube.com/channel/UCdngmbVKX1Tgre699-XLlUA/videos"&gt;Nana's YouTube channel&lt;/a&gt; and she explained, for example, how to connect a Mongo Express service to a MongoDB service, however I'm getting an error.&lt;/p&gt;

&lt;p&gt;I actually used her files provided &lt;a href="https://gitlab.com/nanuchi/kubernetes-tutorial-series-youtube/-/tree/master/demo-kubernetes-components"&gt;here&lt;/a&gt; and the problem persists, so I wonder if I have to do anything extra in Microk8s.&lt;/p&gt;

&lt;p&gt;Error shown in Mongo Express logs (using her files):&lt;/p&gt;

&lt;p&gt;/docker-entrypoint.sh: line 14: mongodb-service: Try again&lt;br&gt;
/docker-entrypoint.sh: line 14: /dev/tcp/mongodb-service/27017: Invalid argument&lt;br&gt;
retrying to connect to mongodb-service:27017&lt;/p&gt;

&lt;p&gt;Any help is welcome, thank you very much :)&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;FIXED&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;The problem was the &lt;strong&gt;coredns&lt;/strong&gt; deployment wasn't working properly, pod shown as &lt;code&gt;0/1&lt;/code&gt;, you can check these by running: &lt;code&gt;get all --namespace kube-system&lt;/code&gt;, therefore Mongo Express wasn't finding MongoDB by the DNS.&lt;/p&gt;

&lt;p&gt;I found the following command that displayed some other problems: &lt;code&gt;microk8s.inspect&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Then I did as the inspection suggested:&lt;br&gt;
&lt;code&gt;sudo ufw allow in on cni0&lt;/code&gt;&lt;br&gt;
&lt;code&gt;sudo ufw allow out on cni0&lt;/code&gt;&lt;br&gt;
&lt;code&gt;sudo apt install iptables-persistent&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Upon doing so everything worked correctly!&lt;/p&gt;

</description>
      <category>help</category>
      <category>devops</category>
      <category>kubernetes</category>
    </item>
    <item>
      <title>Is DevOps a good career for Jr developers?</title>
      <dc:creator>Jashua</dc:creator>
      <pubDate>Fri, 01 May 2020 06:17:51 +0000</pubDate>
      <link>https://dev.to/jouo/is-devops-a-good-career-for-jr-developers-4lla</link>
      <guid>https://dev.to/jouo/is-devops-a-good-career-for-jr-developers-4lla</guid>
      <description>&lt;p&gt;I had been focusing on back-end with Java and MySQL, but months ago I moved towards Docker, Kubernetes, Jenkins, Ansible, Linux servers, and I honestly find those way more interesting (AWS is on my list)&lt;/p&gt;

&lt;p&gt;But I began second guessing my choice because I mostly hear people talk about front-end and back-end, I hardly ever hear anyone mention DevOps, at all.&lt;/p&gt;

&lt;p&gt;Is DevOps a decent career path to pursue compared to back-end?&lt;/p&gt;

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

</description>
      <category>devops</category>
      <category>help</category>
    </item>
    <item>
      <title>JVM memory leak, where to begin?</title>
      <dc:creator>Jashua</dc:creator>
      <pubDate>Thu, 13 Feb 2020 02:11:30 +0000</pubDate>
      <link>https://dev.to/jouo/jvm-memory-leak-where-to-begin-26pe</link>
      <guid>https://dev.to/jouo/jvm-memory-leak-where-to-begin-26pe</guid>
      <description>&lt;p&gt;How do you find the root of the problem?&lt;/p&gt;

&lt;p&gt;I just made a simple Spring Boot app to test an API, it began at 200mb, slowly but surely increasing, after 8 hours is nearly at 300mb&lt;/p&gt;

&lt;p&gt;I haven't even touched it, it's just idle in the background&lt;/p&gt;

</description>
      <category>help</category>
      <category>java</category>
    </item>
    <item>
      <title>Is there a point to use Docker Swarm on a single computer?</title>
      <dc:creator>Jashua</dc:creator>
      <pubDate>Mon, 10 Feb 2020 00:47:37 +0000</pubDate>
      <link>https://dev.to/jouo/is-there-a-point-to-use-docker-swarm-on-a-single-computer-2dim</link>
      <guid>https://dev.to/jouo/is-there-a-point-to-use-docker-swarm-on-a-single-computer-2dim</guid>
      <description>&lt;p&gt;By now I understand the purpose of Docker itself and I've been using it for local development for quite a bit&lt;/p&gt;

&lt;p&gt;The course I'm following introduces Docker Swarm by using it locally on a single machine, by making use of Virtual Machines (I think)&lt;/p&gt;

&lt;p&gt;So that got me thinking, learning purposes aside, is there a benefit to use Docker Swarm on a single machine?&lt;/p&gt;

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

</description>
      <category>help</category>
      <category>docker</category>
    </item>
    <item>
      <title>HTML form input to nested JSON objects?</title>
      <dc:creator>Jashua</dc:creator>
      <pubDate>Wed, 05 Feb 2020 17:37:18 +0000</pubDate>
      <link>https://dev.to/jouo/html-form-input-to-nested-json-objects-2n0k</link>
      <guid>https://dev.to/jouo/html-form-input-to-nested-json-objects-2n0k</guid>
      <description>&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
   &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;main-field&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;value&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
   &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;main-nested&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:{&lt;/span&gt;
      &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;nested-field&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;value&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;nested-array&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:[&lt;/span&gt;
         &lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;item-1&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;value&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;
         &lt;span class="p"&gt;},&lt;/span&gt;
         &lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;item-2&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;value&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;
         &lt;span class="p"&gt;}&lt;/span&gt;
      &lt;span class="p"&gt;]&lt;/span&gt;
   &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;How can I convert an HTML form to such JSON structure?&lt;/p&gt;

&lt;p&gt;I thought I would find an straight forward answer, but I haven't.&lt;/p&gt;

&lt;p&gt;I'm not a front-end developer, but my co-workers do use JavaScript and jQuery, if that's needed. (sadly we do not use React or Angular)&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>help</category>
    </item>
    <item>
      <title>Why do Java containers (docker) take so much memory?</title>
      <dc:creator>Jashua</dc:creator>
      <pubDate>Sun, 02 Feb 2020 18:24:33 +0000</pubDate>
      <link>https://dev.to/jouo/why-does-java-containers-docker-take-so-much-memory-34l5</link>
      <guid>https://dev.to/jouo/why-does-java-containers-docker-take-so-much-memory-34l5</guid>
      <description>&lt;p&gt;I might be doing something wrong, I was just testing how to "dockerize" a spring boot &lt;strong&gt;FatJar&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;First I tried a simple Eureka server, docker showed around &lt;strong&gt;350 mb&lt;/strong&gt; memory usage.&lt;/p&gt;

&lt;p&gt;I went ahead to dockerize a simple hello world, it has nothing else on it, yet it was taking around &lt;strong&gt;150 mb&lt;/strong&gt; memory.&lt;/p&gt;

&lt;p&gt;Is this normal? why does it need that much? I don't get it&lt;/p&gt;

</description>
      <category>explainlikeimfive</category>
      <category>docker</category>
      <category>java</category>
      <category>memory</category>
    </item>
  </channel>
</rss>
