<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Java on SivaLabs</title><link>https://www.sivalabs.in/tags/java/</link><description>Recent content in Java on SivaLabs</description><generator>Hugo</generator><language>en</language><lastBuildDate>Wed, 11 Nov 2026 12:31:08 +0530</lastBuildDate><atom:link href="https://www.sivalabs.in/tags/java/rss.xml" rel="self" type="application/rss+xml"/><item><title>My AI Agentic Workflow</title><link>https://www.sivalabs.in/blog/my-ai-agentic-workflow/</link><pubDate>Tue, 10 Nov 2026 06:00:00 +0530</pubDate><guid>https://www.sivalabs.in/blog/my-ai-agentic-workflow/</guid><description>&lt;p&gt;I&amp;rsquo;d been getting good results with &lt;strong&gt;Opus 5.5&lt;/strong&gt; and &lt;strong&gt;GPT-6.1 Sol&lt;/strong&gt; in JetBrains Air, so I decided to take things a step further. I put a list of requirements in a Markdown file and used &lt;code&gt;/loop&lt;/code&gt; or &lt;code&gt;/goal&lt;/code&gt; to let the agents work through them.&lt;/p&gt;
&lt;p&gt;The agents finished implementing the requirements, but they made plenty of assumptions along the way. I ended up with a lot of code that only partially worked as intended. Untangling those assumptions and cleaning up the implementation looked like more work than rebuilding the use cases one at a time.&lt;/p&gt;
&lt;p&gt;So, my idea of &amp;ldquo;let&amp;rsquo;s build a software factory&amp;rdquo; is shelved for now :-)&lt;/p&gt;
&lt;p&gt;I see two main problems with handing AI a large batch of requirements:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;It&amp;rsquo;s easy to leave design decisions unstated.&lt;/strong&gt; Requirements that seem clear at first often hide questions about behavior, permissions, and edge cases. The agent fills in whatever we leave open.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;The resulting code is hard to review as a whole.&lt;/strong&gt; When so much changes at once, it&amp;rsquo;s difficult to build a clear understanding of how the system works and whether it behaves as intended.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;That brought me back to my tried-and-tested approach: &lt;strong&gt;one feature at a time&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Generating code is fast. Figuring out whether it builds what I wanted still takes work.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;That&amp;rsquo;s the challenge my workflow tries to address. Here&amp;rsquo;s how I go from an idea to an implementation I can review without spending the whole day untangling assumptions.&lt;/p&gt;</description></item><item><title>Harness Engineering for Java and Spring Boot Applications</title><link>https://www.sivalabs.in/blog/harness-engineering-for-java-and-spring-boot-applications/</link><pubDate>Thu, 29 Oct 2026 06:00:00 +0530</pubDate><guid>https://www.sivalabs.in/blog/harness-engineering-for-java-and-spring-boot-applications/</guid><description>&lt;p&gt;I want to accelerate development using AI coding agents, but I don&amp;rsquo;t want to give up on code quality to get there. Generating code faster is useful only if I can keep the application understandable, maintainable, and correct as it grows.&lt;/p&gt;
&lt;p&gt;An agent can implement a feature, generate tests, and refactor several classes in a few minutes. Reviewing all those changes carefully still takes time. If every review requires me to point out formatting issues, explain package boundaries again, and ask for missing authorization tests, I have moved the bottleneck rather than removed it.&lt;/p&gt;</description></item><item><title>Don't Pollute Your Spring Boot Main EntryPoint Class</title><link>https://www.sivalabs.in/blog/dont-pollute-spring-boot-main-class/</link><pubDate>Tue, 16 Jun 2026 04:59:17 +0530</pubDate><guid>https://www.sivalabs.in/blog/dont-pollute-spring-boot-main-class/</guid><description>&lt;p&gt;Most Spring Boot applications start with a beautifully boring main class.&lt;/p&gt;
&lt;p&gt;Then one day we need caching. We add &lt;code&gt;@EnableCaching&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Then we need async processing. We add &lt;code&gt;@EnableAsync&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Then scheduling. Then JPA auditing. Then maybe something else.&lt;/p&gt;
&lt;p&gt;Before we know it, the main class has become the place where every framework feature goes to live.&lt;/p&gt;
&lt;p&gt;At first glance, this feels harmless. The application starts. The feature works. Everybody moves on.&lt;/p&gt;
&lt;p&gt;This works great&amp;hellip; until a slice test gets involved.&lt;/p&gt;
&lt;p&gt;Let&amp;rsquo;s look at why adding every &lt;code&gt;@EnableXXX&lt;/code&gt; annotation to the Spring Boot main class can make your tests more fragile, and what I prefer to do instead.&lt;/p&gt;</description></item><item><title>A Few Hard Learned Lessons On Structuring Spring Boot Applications</title><link>https://www.sivalabs.in/blog/a-few-hard-learned-lessons-on-structuring/</link><pubDate>Fri, 12 Jun 2026 04:59:17 +0530</pubDate><guid>https://www.sivalabs.in/blog/a-few-hard-learned-lessons-on-structuring/</guid><description>&lt;p&gt;One of the most common questions developers ask when starting a Spring Boot project is:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;How should I structure my code?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;If you spend enough time in Java circles, you&amp;rsquo;ll quickly run into recommendations like &lt;strong&gt;Clean Architecture, Hexagonal Architecture, Onion Architecture, Ports and Adapters&lt;/strong&gt;, and a dozen variations of the same idea.&lt;/p&gt;
&lt;p&gt;Now, before anyone gets upset: I think those architectures solve real problems.&lt;/p&gt;
&lt;p&gt;The issue is that many teams adopt them on day one, long before they actually have those problems.&lt;/p&gt;</description></item><item><title>The Power of Value Objects</title><link>https://www.sivalabs.in/blog/the-power-of-value-objects/</link><pubDate>Sun, 04 Jan 2026 04:59:17 +0530</pubDate><guid>https://www.sivalabs.in/blog/the-power-of-value-objects/</guid><description>&lt;p&gt;A &lt;strong&gt;Value Object&lt;/strong&gt; is a domain concept defined by its values rather than by identity.
For example, we can represent &lt;strong&gt;EventId&lt;/strong&gt;, &lt;strong&gt;EventCode&lt;/strong&gt; or &lt;strong&gt;Email&lt;/strong&gt; as a value object.
In this article, let&amp;rsquo;s explore the benefits of using value objects over primitive types.&lt;/p&gt;</description></item><item><title>Announcing FeatureTracker Application</title><link>https://www.sivalabs.in/blog/feature-tracker-application-announcement/</link><pubDate>Wed, 18 Jun 2025 04:59:17 +0530</pubDate><guid>https://www.sivalabs.in/blog/feature-tracker-application-announcement/</guid><description>&lt;p&gt;As a Java Developer Advocate at JetBrains, I frequently demonstrate IntelliJ IDEA features through videos and articles. To do this, I usually create small demo applications focused on specific features. While this works well initially, the number of such applications grows quickly. Soon, it becomes difficult to remember which app was built for what purpose, turning it into a maintenance headache.&lt;/p&gt;</description></item><item><title>You Can Code Offline With Local AI(Ollama)</title><link>https://www.sivalabs.in/blog/code-offline-with-local-ai-ollama/</link><pubDate>Thu, 09 Jan 2025 23:29:17 +0000</pubDate><guid>https://www.sivalabs.in/blog/code-offline-with-local-ai-ollama/</guid><description>&lt;p&gt;ChatGPT and other Generative AI tools took the world by a storm.
People are using these AI tools for various purposes such as to explore a topic,
to seek answers to their questions or to get help in coding, etc.
ChatGPT and Google&amp;rsquo;s Gemini are very popular AI tools that are available for free with some usage limitations.&lt;/p&gt;</description></item><item><title>Spring AI RAG using Embedding Models and Vector Databases</title><link>https://www.sivalabs.in/blog/spring-ai-rag-using-embedding-models-vector-databases/</link><pubDate>Thu, 14 Mar 2024 23:29:17 +0000</pubDate><guid>https://www.sivalabs.in/blog/spring-ai-rag-using-embedding-models-vector-databases/</guid><description>&lt;p&gt;In this article, we will explore the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Introduction to Embedding Models.&lt;/li&gt;
&lt;li&gt;Loading data using DocumentReaders.&lt;/li&gt;
&lt;li&gt;Storing embeddings in VectorStores.&lt;/li&gt;
&lt;li&gt;Implementing RAG (Retrieval-Augmented Generation), a.k.a. Prompt Stuffing.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Let&amp;rsquo;s get started.&lt;/p&gt;</description></item><item><title>Getting Started with Spring AI and OpenAI</title><link>https://www.sivalabs.in/blog/getting-started-with-spring-ai-and-open-ai/</link><pubDate>Sat, 09 Mar 2024 23:29:17 +0000</pubDate><guid>https://www.sivalabs.in/blog/getting-started-with-spring-ai-and-open-ai/</guid><description>&lt;p&gt;In this article, we will explore the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Introduction to Spring AI.&lt;/li&gt;
&lt;li&gt;Interacting with OpenAI using Spring AI.&lt;/li&gt;
&lt;li&gt;Using &lt;strong&gt;PromptTemplates&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Using &lt;strong&gt;OutputConverters&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Let&amp;rsquo;s get started.&lt;/p&gt;</description></item><item><title>LangChain4j Retrieval-Augmented Generation (RAG) Tutorial</title><link>https://www.sivalabs.in/blog/langchain4j-retrieval-augmented-generation-tutorial/</link><pubDate>Sun, 25 Feb 2024 23:29:17 +0000</pubDate><guid>https://www.sivalabs.in/blog/langchain4j-retrieval-augmented-generation-tutorial/</guid><description>&lt;p&gt;In this article, we will explore the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Understand the need for &lt;strong&gt;Retrieval-Augmented Generation (RAG)&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Understand &lt;strong&gt;EmbeddingModel&lt;/strong&gt;, &lt;strong&gt;EmbeddingStore&lt;/strong&gt;, &lt;strong&gt;DocumentLoaders&lt;/strong&gt;, &lt;strong&gt;EmbeddingStoreIngestor&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Working with different EmbeddingModels and EmbeddingStores.&lt;/li&gt;
&lt;li&gt;Ingesting data into EmbeddingStore.&lt;/li&gt;
&lt;li&gt;Querying LLMs with data from EmbeddingStore.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Let&amp;rsquo;s get started.&lt;/p&gt;</description></item><item><title>LangChain4j AiServices Tutorial</title><link>https://www.sivalabs.in/blog/langchain4j-ai-services-tutorial/</link><pubDate>Thu, 22 Feb 2024 23:29:17 +0000</pubDate><guid>https://www.sivalabs.in/blog/langchain4j-ai-services-tutorial/</guid><description>&lt;p&gt;In this article, we will explore the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Using LangChain4j &lt;strong&gt;AiServices&lt;/strong&gt; to interact with LLMs.&lt;/li&gt;
&lt;li&gt;How to ask questions and map responses to different formats?&lt;/li&gt;
&lt;li&gt;Summarizing the given text in different formats.&lt;/li&gt;
&lt;li&gt;Analyzing the sentiment of the given text.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Let&amp;rsquo;s get started.&lt;/p&gt;</description></item><item><title>Generative AI Conversations using LangChain4j ChatMemory</title><link>https://www.sivalabs.in/blog/generative-ai-conversations-using-langchain4j-chat-memory/</link><pubDate>Tue, 20 Feb 2024 23:29:17 +0000</pubDate><guid>https://www.sivalabs.in/blog/generative-ai-conversations-using-langchain4j-chat-memory/</guid><description>&lt;p&gt;In this article, we will explore the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;How to use LangChain4j &lt;strong&gt;ChatMemory&lt;/strong&gt; and &lt;strong&gt;ConversationalChain&lt;/strong&gt; to implement conversation style interaction?&lt;/li&gt;
&lt;li&gt;How to ask questions using &lt;strong&gt;PromptTemplate&lt;/strong&gt;?&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;In the &lt;a href="https://www.sivalabs.in/blog/getting-started-with-generative-ai-using-java-langchain4j-openai-ollama/"&gt;previous article&lt;/a&gt;, we have seen how to interact with OpenAI using Java and LangChain4j.&lt;/p&gt;
&lt;p&gt;Let&amp;rsquo;s get started.&lt;/p&gt;</description></item><item><title>Getting Started with Generative AI using Java, LangChain4j, OpenAI and Ollama</title><link>https://www.sivalabs.in/blog/getting-started-with-generative-ai-using-java-langchain4j-openai-ollama/</link><pubDate>Sun, 18 Feb 2024 23:29:17 +0000</pubDate><guid>https://www.sivalabs.in/blog/getting-started-with-generative-ai-using-java-langchain4j-openai-ollama/</guid><description>&lt;p&gt;In this article, we will explore the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Brief introduction to Generative AI?&lt;/li&gt;
&lt;li&gt;How to interact with OpenAI APIs using Java?&lt;/li&gt;
&lt;li&gt;How to use LangChain4j to interact with OpenAI?&lt;/li&gt;
&lt;li&gt;How to run a LLM model locally using Ollama?&lt;/li&gt;
&lt;li&gt;Working with Ollama using LangChain4j and Testcontainers.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Let&amp;rsquo;s get started.&lt;/p&gt;</description></item><item><title>Should I use a framework or libraries?</title><link>https://www.sivalabs.in/blog/should-i-use-framework-or-libraries/</link><pubDate>Mon, 22 Jan 2024 23:29:17 +0000</pubDate><guid>https://www.sivalabs.in/blog/should-i-use-framework-or-libraries/</guid><description>&lt;p&gt;In the software development world, trends come and go, and often we go through the same cycle again and again.
It seems 2024 is the year of &lt;strong&gt;&amp;ldquo;Framework vs Libraries&amp;rdquo;&lt;/strong&gt; debate. I mean this debate is not new, but it is getting louder again.&lt;/p&gt;</description></item><item><title>Should you use Lombok? Or, is it bad for you?</title><link>https://www.sivalabs.in/blog/should-you-use-lombok-or-is-it-bad-for-you/</link><pubDate>Mon, 24 Apr 2023 23:29:17 +0000</pubDate><guid>https://www.sivalabs.in/blog/should-you-use-lombok-or-is-it-bad-for-you/</guid><description>&lt;p&gt;I&amp;rsquo;m a happy &lt;a href="https://projectlombok.org/"&gt;Lombok&lt;/a&gt; library user. I found this library a decade ago, and I&amp;rsquo;ve been using it ever since.
I don&amp;rsquo;t remember facing any major problems with it so far.&lt;/p&gt;
&lt;p&gt;However, I see a few people that I greatly admire and learn from often complain that Lombok is very bad, and you should avoid it.
Obviously, I am curious to know what am I missing? I know a couple of scenarios where using Lombok brings some challenges.
Apart from it, I really enjoy using the Lombok library.&lt;/p&gt;</description></item><item><title>Announcing My "Spring Boot - The Missing Guide" Video Series on YouTube</title><link>https://www.sivalabs.in/blog/announcing-my-springboot-missing-guide-video-series/</link><pubDate>Sun, 05 Feb 2023 23:29:17 +0000</pubDate><guid>https://www.sivalabs.in/blog/announcing-my-springboot-missing-guide-video-series/</guid><description>&lt;h3 id="tldr"&gt;TLDR;&lt;/h3&gt;
&lt;p&gt;I am happy to announce that I am starting the &lt;strong&gt;Spring Boot - The Missing Guide&lt;/strong&gt; video series on my &lt;a href="https://www.youtube.com/c/sivalabs"&gt;SivaLabs YouTube Channel&lt;/a&gt;.
This &lt;strong&gt;Spring Boot - The Missing Guide&lt;/strong&gt; video series is for those who need help understanding Spring Boot&amp;rsquo;s magic.
In this series, I will explain the core concepts used in Spring and Spring Boot with practical examples.&lt;/p&gt;</description></item><item><title>Why I think Go is more verbose than Java</title><link>https://www.sivalabs.in/blog/why-go-is-more-verbose-than-java/</link><pubDate>Wed, 04 Jan 2023 23:29:17 +0000</pubDate><guid>https://www.sivalabs.in/blog/why-go-is-more-verbose-than-java/</guid><description>&lt;p&gt;Few months ago I asked on Twitter &amp;ldquo;why you think Java is complex?&amp;rdquo; to understand others perspective.&lt;/p&gt;</description></item><item><title>My Plans for 2023</title><link>https://www.sivalabs.in/blog/my-plans-for-2023/</link><pubDate>Mon, 02 Jan 2023 23:29:17 +0000</pubDate><guid>https://www.sivalabs.in/blog/my-plans-for-2023/</guid><description>&lt;p&gt;First of all, &lt;strong&gt;Wish you a very happy new year and I hope this year will bring more joy and happiness into your lives.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;I would like to share how was 2022 for me and what my plans are for 2023.&lt;/p&gt;</description></item><item><title>Spring Boot 3 : Error Responses using Problem Details for HTTP APIs</title><link>https://www.sivalabs.in/blog/spring-boot-3-error-reporting-using-problem-details/</link><pubDate>Tue, 29 Nov 2022 23:29:17 +0000</pubDate><guid>https://www.sivalabs.in/blog/spring-boot-3-error-reporting-using-problem-details/</guid><description>&lt;p&gt;Spring Framework 6 implemented the &lt;strong&gt;Problem Details for HTTP APIs&lt;/strong&gt; specification, &lt;a href="https://www.rfc-editor.org/rfc/rfc7807.html"&gt;RFC 7807&lt;/a&gt;.
In this article we will learn how to handle exceptions in Spring Boot 3 REST API(which uses Spring Framework 6) and provide error responses using &lt;strong&gt;ProblemDetails&lt;/strong&gt; API.&lt;/p&gt;</description></item><item><title>Using Java Records with Spring Boot 3</title><link>https://www.sivalabs.in/blog/using-java-records-with-spring-boot-3/</link><pubDate>Fri, 25 Nov 2022 23:29:17 +0000</pubDate><guid>https://www.sivalabs.in/blog/using-java-records-with-spring-boot-3/</guid><description>&lt;p&gt;Records were introduced in Java 14 as a preview feature and became a standard feature with JDK 16.
Records are a concise representation of immutable data class.&lt;/p&gt;</description></item><item><title>Announcing My "Spring Boot Tips Video Series" on YouTube</title><link>https://www.sivalabs.in/blog/announcing-my-springboot-tips-video-series/</link><pubDate>Mon, 09 May 2022 23:29:17 +0000</pubDate><guid>https://www.sivalabs.in/blog/announcing-my-springboot-tips-video-series/</guid><description>&lt;h3 id="tldr"&gt;TLDR;&lt;/h3&gt;
&lt;p&gt;I am happy to announce that I am going to create &lt;strong&gt;&amp;ldquo;Spring Boot Tips Video Series&amp;rdquo;&lt;/strong&gt; on my &lt;a href="https://www.youtube.com/c/SivaLabs"&gt;SivaLabs YouTube Channel&lt;/a&gt;.
This &lt;strong&gt;&amp;ldquo;Spring Boot Tips Series&amp;rdquo;&lt;/strong&gt; is to help people who are new to &lt;a href="https://spring.io"&gt;Spring Boot&lt;/a&gt; to learn &lt;strong&gt;how to use Spring Boot&lt;/strong&gt;
with a keen focus on &lt;strong&gt;understanding how it works behind the scenes&lt;/strong&gt;.&lt;/p&gt;</description></item><item><title>My attempt to understand why people perceive Java as complex</title><link>https://www.sivalabs.in/blog/my-attempt-to-understand-why-people-perceive-java-as-complex/</link><pubDate>Sun, 03 Apr 2022 23:29:17 +0000</pubDate><guid>https://www.sivalabs.in/blog/my-attempt-to-understand-why-people-perceive-java-as-complex/</guid><description>&lt;p&gt;I work as an Architect/TechLead/SeniorDeveloper depending on client engagement.
And, &lt;strong&gt;Java&lt;/strong&gt; is the primary programming language that I have used most of my career.
In recent years I got an opportunity to work with &lt;strong&gt;Go&lt;/strong&gt;, &lt;strong&gt;NodeJS&lt;/strong&gt; and &lt;strong&gt;.Net Core&lt;/strong&gt; technologies too.
I find Java, especially with &lt;strong&gt;Spring Boot&lt;/strong&gt;, a solid platform to build enterprise grade applications.&lt;/p&gt;</description></item><item><title>Code simplicity by Abstraction vs Verbosity</title><link>https://www.sivalabs.in/blog/code-simplicity-by-abstraction-vs-verbosity/</link><pubDate>Mon, 27 Dec 2021 23:29:17 +0000</pubDate><guid>https://www.sivalabs.in/blog/code-simplicity-by-abstraction-vs-verbosity/</guid><description>&lt;p&gt;Java is and has been the primary programming language I have used throughout my career.
If I want to build something quick for a prototype or if I need to pick the tech stack with a tight deadline then Java is my first choice.
Especially after Java 8 it becomes more and more feature rich and powerful.&lt;/p&gt;</description></item><item><title>Kubernetes - Exposing Services to outside of Cluster using Ingress</title><link>https://www.sivalabs.in/blog/kubernetes-ingress/</link><pubDate>Tue, 21 Sep 2021 23:29:17 +0000</pubDate><guid>https://www.sivalabs.in/blog/kubernetes-ingress/</guid><description>&lt;p&gt;In the previous article &lt;a href="https://www.sivalabs.in/blog/kubernetes-blue-green-deployments/"&gt;Kubernetes - Blue/Green Deployments&lt;/a&gt; we have learned how to release a new version of application using &lt;strong&gt;Blue/Green Deployments strategy&lt;/strong&gt;.&lt;/p&gt;</description></item><item><title>Kubernetes - Blue/Green Deployments</title><link>https://www.sivalabs.in/blog/kubernetes-blue-green-deployments/</link><pubDate>Mon, 13 Sep 2021 23:29:17 +0000</pubDate><guid>https://www.sivalabs.in/blog/kubernetes-blue-green-deployments/</guid><description>&lt;p&gt;In the previous article &lt;a href="https://www.sivalabs.in/blog/kubernetes-deployment-rolling-updates/"&gt;Kubernetes - Releasing a new version of the application using Deployment Rolling Updates&lt;/a&gt; we have learned how to release a new version of application using &lt;strong&gt;Deployment Rolling Updates&lt;/strong&gt; and how to use &lt;strong&gt;Readiness&lt;/strong&gt; and &lt;strong&gt;Liveness&lt;/strong&gt; probes to route traffic to only fully initialized containers.&lt;/p&gt;</description></item><item><title>Kubernetes - Releasing a new version of the application using Deployment Rolling Updates</title><link>https://www.sivalabs.in/blog/kubernetes-deployment-rolling-updates/</link><pubDate>Mon, 06 Sep 2021 23:29:17 +0000</pubDate><guid>https://www.sivalabs.in/blog/kubernetes-deployment-rolling-updates/</guid><description>&lt;p&gt;In the previous article &lt;a href="https://www.sivalabs.in/blog/getting-started-with-kubernetes/"&gt;Getting Started with Kubernetes&lt;/a&gt; we have learned how to deploy a Spring Boot application on Kubernetes(Minikube) using &lt;strong&gt;Deployment&lt;/strong&gt; and &lt;strong&gt;Service&lt;/strong&gt; primitives. We also looked at how to access our application using &lt;strong&gt;NodePort&lt;/strong&gt; on Minikube IP address.&lt;/p&gt;</description></item><item><title>Getting Started with Kubernetes</title><link>https://www.sivalabs.in/blog/getting-started-with-kubernetes/</link><pubDate>Tue, 31 Aug 2021 23:29:17 +0000</pubDate><guid>https://www.sivalabs.in/blog/getting-started-with-kubernetes/</guid><description>&lt;p&gt;&lt;a href="https://www.docker.com/"&gt;Docker&lt;/a&gt; and &lt;a href="https://kubernetes.io/"&gt;Kubernetes&lt;/a&gt; has revolutionized how we build and run the applications.
In recent years containerization becomes new normal, and many organizations start using Kubernetes as Container Orchestration Platform.&lt;/p&gt;</description></item><item><title>Get Super Productive with Intellij File Templates</title><link>https://www.sivalabs.in/blog/get-super-productive-with-intellij-file-templates/</link><pubDate>Wed, 18 Aug 2021 23:29:17 +0000</pubDate><guid>https://www.sivalabs.in/blog/get-super-productive-with-intellij-file-templates/</guid><description>&lt;p&gt;&lt;a href="https://www.jetbrains.com/idea/"&gt;Intellij IDEA&lt;/a&gt; is the most popular IDE for &lt;strong&gt;Java&lt;/strong&gt; development and there are tons of features to explore and become more productive.
We all know about &lt;a href="https://www.jetbrains.com/help/idea/using-live-templates.html"&gt;Live Templates&lt;/a&gt; which can be used to expand a small expression to common code snippets.&lt;/p&gt;
&lt;p&gt;Recently I came to know about &lt;strong&gt;File Templates&lt;/strong&gt;, and I realized I can put it to good use and be more productive.&lt;/p&gt;</description></item><item><title>Tutorials</title><link>https://www.sivalabs.in/tutorials/</link><pubDate>Mon, 30 Nov 2020 02:32:39 +0000</pubDate><guid>https://www.sivalabs.in/tutorials/</guid><description>&lt;h3 id="spring-ai"&gt;Spring AI&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://www.sivalabs.in/blog/spring-ai-chat-with-llms/"&gt;Spring AI : Chat with LLMs&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.sivalabs.in/blog/spring-ai-structured-output/"&gt;Spring AI : Structured Output&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.sivalabs.in/blog/spring-ai-chat-memory/"&gt;Spring AI : Chat Memory&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id="spring-boot"&gt;Spring Boot&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://www.sivalabs.in/blog/getting-started-with-spring-boot/"&gt;Getting Started with Spring Boot&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.sivalabs.in/blog/spring-boot-testing-tutorial/"&gt;Spring Boot Testing Tutorial&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.sivalabs.in/blog/spring-boot-application-configuration-tutorial/"&gt;Spring Boot Application Configuration Tutorial&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.sivalabs.in/blog/spring-boot-logging-tutorial/"&gt;Spring Boot Logging Tutorial&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.sivalabs.in/blog/spring-boot-profiles-tutorial/"&gt;Spring Boot Profiles Tutorial&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.sivalabs.in/blog/spring-boot-jdbctemplate-tutorial/"&gt;Spring Boot JdbcTemplate Tutorial&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.sivalabs.in/blog/spring-boot-database-transaction-management-tutorial/"&gt;Spring Boot Database Transaction Management Tutorial&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.sivalabs.in/blog/spring-boot-flyway-database-migration-tutorial/"&gt;Spring Boot Flyway Database Migration Tutorial&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.sivalabs.in/blog/spring-boot-rest-api-best-practices-part-1/"&gt;Spring Boot REST API Best Practices - Part 1 : Implementing Get Collection API&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.sivalabs.in/blog/spring-boot-rest-api-best-practices-part-2/"&gt;Spring Boot REST API Best Practices - Part 2 : Implementing Create and Update APIs&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.sivalabs.in/blog/spring-boot-rest-api-best-practices-part-3/"&gt;Spring Boot REST API Best Practices - Part 3 : Implementing FindById and DeleteById APIs&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.sivalabs.in/blog/spring-boot-rest-api-best-practices-part-4/"&gt;Spring Boot REST API Best Practices - Part 4 : Exception Handling in REST APIs&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.sivalabs.in/blog/why-springboot-so-popular-how-to-learn-springboot/"&gt;Why Spring Boot is so popular and how to learn Spring Boot effectively?&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.sivalabs.in/blog/why-springboot/"&gt;Why Spring Boot?&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.sivalabs.in/blog/how-springboot-autoconfiguration-magic/"&gt;How Spring Boot AutoConfiguration magic works?&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.sivalabs.in/blog/creating-custom-springboot-starter-for/"&gt;Creating Custom Spring Boot Starter for Twitter4j&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.sivalabs.in/blog/springboot-messaging-rabbitmq/"&gt;Spring Boot Messaging with RabbitMQ&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.sivalabs.in/blog/session-management-using-spring-session-jdbc-datastore/"&gt;Session Management using Spring Session with JDBC DataStore&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.sivalabs.in/blog/spring-boot-best-practices/"&gt;Spring Boot Best Practices&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.sivalabs.in/blog/spring-boot-testing/"&gt;Testing Spring Boot Applications&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.sivalabs.in/blog/spring-boot-integration-testing-using-testcontainers-starter/"&gt;Spring Boot Integration Testing using TestContainers Starter&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.sivalabs.in/blog/remote-debugging-spring-boot-application/"&gt;Remote debugging Spring Boot application&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.sivalabs.in/blog/retrying-method-execution-using-spring-aop/"&gt;Retrying Method Execution using Spring AOP&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id="spring-security-oauth-20-tutorials"&gt;Spring Security OAuth 2.0 Tutorials&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://www.sivalabs.in/blog/spring-security-oauth2-tutorial-introduction/"&gt;Spring Security OAuth 2 Tutorial - 1 : Getting familiar with OAuth 2 concepts&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.sivalabs.in/blog/spring-security-oauth2-tutorial-authorization-code-flow/"&gt;Spring Security OAuth 2 Tutorial - 2 : Authorization Code Flow&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.sivalabs.in/blog/spring-security-oauth2-tutorial-client-credentials-flow/"&gt;Spring Security OAuth 2 Tutorial - 3 : Client Credentials Flow&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.sivalabs.in/blog/spring-security-oauth2-tutorial-authorization-code-flow-with-pkce/"&gt;Spring Security OAuth 2 Tutorial - 4 : Authorization Code Flow with PKCE&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.sivalabs.in/blog/spring-security-oauth2-tutorial-implicit-and-resource-owner-password-credentials-flow/"&gt;Spring Security OAuth 2 Tutorial - 5 : Implicit &amp;amp; Resource Owner Password Credentials Flows&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.sivalabs.in/blog/spring-security-oauth2-tutorial-microservices-project-setup/"&gt;Spring Security OAuth 2 Tutorial - 6 : Microservices Sample Project Setup&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.sivalabs.in/blog/spring-security-oauth2-tutorial-securing-springmvc-client-application/"&gt;Spring Security OAuth 2 Tutorial - 7 : Securing Spring MVC Client Application&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.sivalabs.in/blog/spring-security-oauth2-tutorial-securing-resource-server/"&gt;Spring Security OAuth 2 Tutorial - 8 : Securing Resource Server&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.sivalabs.in/blog/spring-security-oauth2-tutorial-integrating-client-and-resource-server/"&gt;Spring Security OAuth 2 Tutorial - 9 : Invoking Secured Resource Server APIs from Client Application&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.sivalabs.in/blog/spring-security-oauth2-tutorial-service-to-service-communication-using-client-credentials-flow/"&gt;Spring Security OAuth 2 Tutorial - 10 : Service to Service Communication using Client Credentials Flow&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id="spring-cloud"&gt;Spring Cloud&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://www.sivalabs.in/blog/spring-cloud-tutorials-introduction-to-spring-cloud-config-server/"&gt;Introduction to Spring Cloud Config Server&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.sivalabs.in/blog/spring-cloud-tutorials-auto-refresh-config-changes-using-spring-cloud-bus/"&gt;Auto Refresh Config Changes using Spring Cloud Bus&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id="microservices"&gt;Microservices&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://www.sivalabs.in/blog/microservices-using-springboot-spring-cloud-part-1-overview/"&gt;Part 1 : MicroServices : Spring Boot &amp;amp; Spring Cloud Overview&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.sivalabs.in/blog/microservices-part-2-configuration-management-spring-cloud-config-vault/"&gt;Part 2 : MicroServices : Configuration Management with Spring Cloud Config and Vault&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.sivalabs.in/blog/microservices-springcloud-eureka/"&gt;Part 3 : MicroServices : Spring Cloud Service Registry and Discovery&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.sivalabs.in/blog/spring-cloud-netflix-circuit-breaker/"&gt;Part 4 : MicroServices : Spring Cloud Circuit Breaker using Netflix Hystrix&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.sivalabs.in/blog/microservices-part-5-spring-cloud-zuul-proxy-as-api-gateway/"&gt;Part 5 : MicroServices : Spring Cloud Zuul Proxy as API Gateway&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.sivalabs.in/blog/microservices-part-6-distributed-tracing-with-spring-cloud-sleuth-and-zipkin/"&gt;Part 6 : MicroServices : Distributed Tracing with Spring Cloud Sleuth and Zipkin&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id="kubernetes"&gt;Kubernetes&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://www.sivalabs.in/blog/getting-started-with-kubernetes/"&gt;Getting Started with Kubernetes&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.sivalabs.in/blog/kubernetes-deployment-rolling-updates/"&gt;Kubernetes - Releasing a new version of the application using Deployment Rolling Updates&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.sivalabs.in/blog/kubernetes-blue-green-deployments/"&gt;Kubernetes - Blue/Green Deployments&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.sivalabs.in/blog/kubernetes-ingress/"&gt;Kubernetes - Exposing Services to outside of Cluster using Ingress&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id="jooq"&gt;jOOQ&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://www.sivalabs.in/blog/spring-boot-jooq-tutorial-getting-started/"&gt;jOOQ Tutorial - 1 : Getting Started&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.sivalabs.in/blog/spring-boot-jooq-tutorial-crud-operations/"&gt;jOOQ Tutorial - 2 : Implementing CRUD Operations&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.sivalabs.in/blog/spring-boot-jooq-tutorial-fetching-one-to-one-associations/"&gt;jOOQ Tutorial - 3 : Fetching One-to-One Relationships&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.sivalabs.in/blog/spring-boot-jooq-tutorial-fetching-one-to-many-associations/"&gt;jOOQ Tutorial - 4 : Fetching One-to-Many Relationships&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.sivalabs.in/blog/spring-boot-jooq-tutorial-fetching-many-to-many-associations/"&gt;jOOQ Tutorial - 5 : Fetching Many-to-Many Relationships&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id="mybatis"&gt;MyBatis&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://www.sivalabs.in/blog/mybatis-tutorial-part1-crud-operations/"&gt;MyBatis Tutorial: Part1 – CRUD Operations&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.sivalabs.in/blog/mybatis-tutorial-part-2-crud-operations-using-annotations/"&gt;MyBatis Tutorial: Part-2: CRUD operations Using Annotations&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.sivalabs.in/blog/mybatis-tutorial-part-3-mapping-relationships/"&gt;MyBatis Tutorial: Part 3 – Mapping Relationships&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.sivalabs.in/blog/mybatis-tutorial-part4-spring-integration/"&gt;MyBatis Tutorial : Part4 – Spring Integration&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id="thoughts--opinions"&gt;Thoughts &amp;amp; Opinions&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://www.sivalabs.in/blog/few-things-i-learned-the-hardway-in-15-years-of-my-career/"&gt;Few Things I learned in the HardWay in 15 years of my career&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.sivalabs.in/blog/my-life-as-software-developer-in-india/"&gt;My Life as a Software Developer in India&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.sivalabs.in/blog/a-developers-perspective-on-spring-vs-javaee/"&gt;A Developers Perspective on Spring vs JavaEE&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.sivalabs.in/blog/can-microservices-architecture-solve-all-your-problems/"&gt;Can MicroServices Architecture Solve All Your Problems?&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.sivalabs.in/blog/clean-code-dont-mix-different-levels-of-abstractions/"&gt;Clean Code: Don&amp;rsquo;t mix different levels of abstractions&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.sivalabs.in/blog/keep-code-clean-watchdog-spotthebug/"&gt;Keep The Code Clean: WatchDog &amp;amp; SpotTheBug Approach&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.sivalabs.in/blog/frameworks-making-developers-dumb/"&gt;Are frameworks making developers dumb?&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.sivalabs.in/blog/10-things-to-become-outstanding-java/"&gt;10 things to become an outstanding Java developer&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description></item><item><title>All the resources you ever need as a Java &amp; Spring application developer</title><link>https://www.sivalabs.in/blog/all-the-resources-you-ever-need-as-a-java-spring-application-developer/</link><pubDate>Sun, 13 Sep 2020 23:29:17 +0000</pubDate><guid>https://www.sivalabs.in/blog/all-the-resources-you-ever-need-as-a-java-spring-application-developer/</guid><description>&lt;p&gt;Nowadays software development is a challenging task as the number of programming languages, frameworks, libraries are increasing rapidly day by day.
Luckily, the number of resources to learn on the internet for free also increased a lot. There are a ton of free resources to learn almost everything on the internet.
There are lots of official documentation, blog posts, Udemy courses, YouTube videos etc.&lt;/p&gt;</description></item><item><title>GoLang from a Java developer perspective</title><link>https://www.sivalabs.in/blog/golang-from-a-java-developer-perspective/</link><pubDate>Wed, 01 Jul 2020 23:29:17 +0000</pubDate><guid>https://www.sivalabs.in/blog/golang-from-a-java-developer-perspective/</guid><description>&lt;p&gt;Gone are the days we can call ourselves as Java developer, .NET developer, Python developer etc.
Nowadays we might need to work with multiple languages to some extent such as Python for scripting, Go for CLI utilities etc.&lt;/p&gt;
&lt;p&gt;Out of personal interest I started learning &lt;a href="https://golang.org/"&gt;Go Language&lt;/a&gt; 3 months ago and I am using Go for our current application. In this article I would like to share my first impression on Go language.&lt;/p&gt;</description></item><item><title>Remote debugging Spring Boot application</title><link>https://www.sivalabs.in/blog/remote-debugging-spring-boot-application/</link><pubDate>Sat, 30 May 2020 23:29:17 +0000</pubDate><guid>https://www.sivalabs.in/blog/remote-debugging-spring-boot-application/</guid><description>&lt;p&gt;We all know how to run Spring Boot application in debug mode from our favorite IDEs(IntelliJ IDEA, Eclipse etc) and debug the code.
Recently I had to debug a Spring Boot application which is running on a remote server.&lt;/p&gt;
&lt;p&gt;There is already lot of information on the Internet on how to remote debug java applications, but some approaches didn&amp;rsquo;t work for me.
So, here I would like to share my findings.&lt;/p&gt;</description></item><item><title>What I Learned in Week-14, 2020</title><link>https://www.sivalabs.in/blog/what-i-learned-2020-week-14/</link><pubDate>Sun, 05 Apr 2020 23:29:17 +0000</pubDate><guid>https://www.sivalabs.in/blog/what-i-learned-2020-week-14/</guid><description>&lt;p&gt;It&amp;rsquo;s been tough time for everyone due to the Corona virus situation.
Staying at home for weeks and weeks is not easy, but it is very necessary thing to do so that we don&amp;rsquo;t spread the virus.&lt;/p&gt;
&lt;p&gt;However, if I look on the bright side I used to spend minimum 3 hours for office commute everyday.
Now I am using that time for various other activities including learning some new things.&lt;/p&gt;</description></item><item><title>Imposing Code Structure Guidelines using ArchUnit</title><link>https://www.sivalabs.in/blog/impose-architecture-guidelines-using-archunit/</link><pubDate>Wed, 01 Apr 2020 23:29:17 +0000</pubDate><guid>https://www.sivalabs.in/blog/impose-architecture-guidelines-using-archunit/</guid><description>&lt;p&gt;While building the software, we all agree, as a team, to follow a set of guidelines which are typically considered as best practices.
But during the development, developers might violate those guidelines unknowingly or ignorance.
Typically, we rely upon &lt;strong&gt;code reviews&lt;/strong&gt; or code quality checking tools like &lt;strong&gt;SonarQube&lt;/strong&gt;, &lt;strong&gt;PMD&lt;/strong&gt;, etc. to check for such violations.
But some of the guidelines could be opinionated decisions which might not be able to automate using SonarQube, PMD etc.&lt;/p&gt;</description></item><item><title>What I Learned in Week-11, 2020</title><link>https://www.sivalabs.in/blog/what-i-learned-2020-week-11/</link><pubDate>Sat, 14 Mar 2020 23:29:17 +0000</pubDate><guid>https://www.sivalabs.in/blog/what-i-learned-2020-week-11/</guid><description>&lt;p&gt;I come across many blog posts from various sources like &lt;a href="https://twitter.com/sivalabs"&gt;Twitter&lt;/a&gt;,
&lt;a href="https://stackoverflow.com/"&gt;StackOverflow&lt;/a&gt;, etc., and some of them are very helpful.
Also, in day-to-day work I learn a few new things, explore some new tools.
Usually I keep track of this information using &lt;strong&gt;Browser Bookmarks&lt;/strong&gt; and &lt;a href="https://app.getpocket.com/"&gt;Pocket&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;I thought maybe this information could be useful for others too. So, I am going to share it weekly on my blog.&lt;/p&gt;</description></item><item><title>Clean Code: Don't mix different levels of abstractions</title><link>https://www.sivalabs.in/blog/clean-code-dont-mix-different-levels-of-abstractions/</link><pubDate>Sun, 29 Dec 2013 00:53:00 +0000</pubDate><guid>https://www.sivalabs.in/blog/clean-code-dont-mix-different-levels-of-abstractions/</guid><description>&lt;p&gt;We spend more time reading code than writing it. So if the code is more readable, it will obviously increase developer productivity.&lt;/p&gt;
&lt;p&gt;Many people associate the readability of code with coding conventions like following standard naming conventions, closing files, DB resources, etc. When it comes to code reviews, most people focus on these trivial things only, like checking for naming convention violations or whether resources are properly released in a finally block.&lt;/p&gt;</description></item><item><title>MyBatis Tutorial: Part1 – CRUD Operations</title><link>https://www.sivalabs.in/blog/mybatis-tutorial-part1-crud-operations/</link><pubDate>Sun, 21 Oct 2012 11:10:00 +0000</pubDate><guid>https://www.sivalabs.in/blog/mybatis-tutorial-part1-crud-operations/</guid><description>&lt;p&gt;MyBatis is an SQL Mapper tool which greatly simplifies database programming when compared to using JDBC directly.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.sivalabs.in/blog/mybatis-tutorial-part1-crud-operations/"&gt;&lt;strong&gt;MyBatis Tutorial: Part1 – CRUD Operations&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.sivalabs.in/blog/mybatis-tutorial-part-2-crud-operations-using-annotations/"&gt;&lt;strong&gt;MyBatis Tutorial: Part-2: CRUD operations Using Annotations&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.sivalabs.in/blog/mybatis-tutorial-part-3-mapping-relationships/"&gt;&lt;strong&gt;MyBatis Tutorial: Part 3 – Mapping Relationships&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.sivalabs.in/blog/mybatis-tutorial-part4-spring-integration/"&gt;&lt;strong&gt;MyBatis Tutorial : Part4 – Spring Integration&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Step1:&lt;/strong&gt; Create a Maven project and configure MyBatis dependencies.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-xml" data-lang="xml"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#f92672"&gt;&amp;lt;project&lt;/span&gt; &lt;span style="color:#a6e22e"&gt;xmlns=&lt;/span&gt;&lt;span style="color:#e6db74"&gt;&amp;#34;http://maven.apache.org/POM/4.0.0&amp;#34;&lt;/span&gt; 
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#a6e22e"&gt;xmlns:xsi=&lt;/span&gt;&lt;span style="color:#e6db74"&gt;&amp;#34;http://www.w3.org/2001/XMLSchema-instance&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#a6e22e"&gt;xsi:schemaLocation=&lt;/span&gt;&lt;span style="color:#e6db74"&gt;&amp;#34;http://maven.apache.org/POM/4.0.0 
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#e6db74"&gt; http://maven.apache.org/xsd/maven-4.0.0.xsd&amp;#34;&lt;/span&gt;&lt;span style="color:#f92672"&gt;&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#f92672"&gt;&amp;lt;modelVersion&amp;gt;&lt;/span&gt;4.0.0&lt;span style="color:#f92672"&gt;&amp;lt;/modelVersion&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#f92672"&gt;&amp;lt;groupId&amp;gt;&lt;/span&gt;com.sivalabs&lt;span style="color:#f92672"&gt;&amp;lt;/groupId&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#f92672"&gt;&amp;lt;artifactId&amp;gt;&lt;/span&gt;mybatis-demo&lt;span style="color:#f92672"&gt;&amp;lt;/artifactId&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#f92672"&gt;&amp;lt;version&amp;gt;&lt;/span&gt;0.0.1-SNAPSHOT&lt;span style="color:#f92672"&gt;&amp;lt;/version&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#f92672"&gt;&amp;lt;packaging&amp;gt;&lt;/span&gt;jar&lt;span style="color:#f92672"&gt;&amp;lt;/packaging&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#f92672"&gt;&amp;lt;name&amp;gt;&lt;/span&gt;mybatis-demo&lt;span style="color:#f92672"&gt;&amp;lt;/name&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#f92672"&gt;&amp;lt;url&amp;gt;&lt;/span&gt;http://maven.apache.org&lt;span style="color:#f92672"&gt;&amp;lt;/url&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#f92672"&gt;&amp;lt;properties&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#f92672"&gt;&amp;lt;project.build.sourceEncoding&amp;gt;&lt;/span&gt;UTF-8&lt;span style="color:#f92672"&gt;&amp;lt;/project.build.sourceEncoding&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#f92672"&gt;&amp;lt;/properties&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#f92672"&gt;&amp;lt;build&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#f92672"&gt;&amp;lt;plugins&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#f92672"&gt;&amp;lt;plugin&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#f92672"&gt;&amp;lt;groupId&amp;gt;&lt;/span&gt;org.apache.maven.plugins&lt;span style="color:#f92672"&gt;&amp;lt;/groupId&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#f92672"&gt;&amp;lt;artifactId&amp;gt;&lt;/span&gt;maven-compiler-plugin&lt;span style="color:#f92672"&gt;&amp;lt;/artifactId&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#f92672"&gt;&amp;lt;version&amp;gt;&lt;/span&gt;2.3.2&lt;span style="color:#f92672"&gt;&amp;lt;/version&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#f92672"&gt;&amp;lt;configuration&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#f92672"&gt;&amp;lt;source&amp;gt;&lt;/span&gt;1.6&lt;span style="color:#f92672"&gt;&amp;lt;/source&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#f92672"&gt;&amp;lt;target&amp;gt;&lt;/span&gt;1.6&lt;span style="color:#f92672"&gt;&amp;lt;/target&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#f92672"&gt;&amp;lt;encoding&amp;gt;&lt;/span&gt;${project.build.sourceEncoding}&lt;span style="color:#f92672"&gt;&amp;lt;/encoding&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#f92672"&gt;&amp;lt;/configuration&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#f92672"&gt;&amp;lt;/plugin&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#f92672"&gt;&amp;lt;/plugins&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#f92672"&gt;&amp;lt;/build&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#f92672"&gt;&amp;lt;dependencies&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#f92672"&gt;&amp;lt;dependency&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#f92672"&gt;&amp;lt;groupId&amp;gt;&lt;/span&gt;junit&lt;span style="color:#f92672"&gt;&amp;lt;/groupId&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#f92672"&gt;&amp;lt;artifactId&amp;gt;&lt;/span&gt;junit&lt;span style="color:#f92672"&gt;&amp;lt;/artifactId&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#f92672"&gt;&amp;lt;version&amp;gt;&lt;/span&gt;4.10&lt;span style="color:#f92672"&gt;&amp;lt;/version&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#f92672"&gt;&amp;lt;scope&amp;gt;&lt;/span&gt;test&lt;span style="color:#f92672"&gt;&amp;lt;/scope&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#f92672"&gt;&amp;lt;/dependency&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#f92672"&gt;&amp;lt;dependency&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#f92672"&gt;&amp;lt;groupId&amp;gt;&lt;/span&gt;org.mybatis&lt;span style="color:#f92672"&gt;&amp;lt;/groupId&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#f92672"&gt;&amp;lt;artifactId&amp;gt;&lt;/span&gt;mybatis&lt;span style="color:#f92672"&gt;&amp;lt;/artifactId&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#f92672"&gt;&amp;lt;version&amp;gt;&lt;/span&gt;3.1.1&lt;span style="color:#f92672"&gt;&amp;lt;/version&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#f92672"&gt;&amp;lt;/dependency&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#f92672"&gt;&amp;lt;dependency&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#f92672"&gt;&amp;lt;groupId&amp;gt;&lt;/span&gt;mysql&lt;span style="color:#f92672"&gt;&amp;lt;/groupId&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#f92672"&gt;&amp;lt;artifactId&amp;gt;&lt;/span&gt;mysql-connector-java&lt;span style="color:#f92672"&gt;&amp;lt;/artifactId&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#f92672"&gt;&amp;lt;version&amp;gt;&lt;/span&gt;5.1.21&lt;span style="color:#f92672"&gt;&amp;lt;/version&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#f92672"&gt;&amp;lt;scope&amp;gt;&lt;/span&gt;runtime&lt;span style="color:#f92672"&gt;&amp;lt;/scope&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#f92672"&gt;&amp;lt;/dependency&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#f92672"&gt;&amp;lt;/dependencies&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#f92672"&gt;&amp;lt;/project&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;&lt;strong&gt;Step#2:&lt;/strong&gt; Create the table USER and a Java domain Object User as follows:&lt;/p&gt;</description></item><item><title>Keep The Code Clean: WatchDog &amp; SpotTheBug Approach</title><link>https://www.sivalabs.in/blog/keep-code-clean-watchdog-spotthebug/</link><pubDate>Tue, 28 Aug 2012 04:55:00 +0000</pubDate><guid>https://www.sivalabs.in/blog/keep-code-clean-watchdog-spotthebug/</guid><description>&lt;p&gt;Before discussing the &lt;strong&gt;WatchDog &amp;amp; SpotTheBug Approach&lt;/strong&gt;, let me give a brief context on the need for this.&lt;/p&gt;
&lt;p&gt;Three months back, I was asked to write core infrastructure code for our new application, which uses all the latest and greatest technologies.
I have written the infrastructure code and implemented two use cases to demonstrate which logic should go into which layer, and the code looks good (at least to me :-)). Then I moved on to my main project, and I was hearing that the project that I designed (from now onwards, I will refer to this as ProjectA) is going well.&lt;/p&gt;</description></item><item><title>Are frameworks making developers dumb?</title><link>https://www.sivalabs.in/blog/frameworks-making-developers-dumb/</link><pubDate>Mon, 22 Aug 2011 01:16:00 +0000</pubDate><guid>https://www.sivalabs.in/blog/frameworks-making-developers-dumb/</guid><description>&lt;p&gt;Last week, I had to conduct interviews to hire senior Java developers with around 5 years of experience. But after the interview process was over, I felt like frameworks make developers&amp;rsquo; lives easier but, at the same time, make them dumber.&lt;/p&gt;
&lt;p&gt;Everyone puts almost all the new frameworks on their resume, claiming they have &amp;ldquo;Strong, working experience on Spring, Hibernate, Web Services, etc.&amp;rdquo;.&lt;/p&gt;
&lt;p&gt;Here is how the interviews went.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Me:&lt;/strong&gt; You have used Spring in your latest project. What are the advantages of using Spring?
&lt;strong&gt;Interviewee:&lt;/strong&gt; We can configure beans in XML, and it will take care of instantiating and giving them to us.&lt;/p&gt;</description></item><item><title>10 things to become an outstanding Java developer</title><link>https://www.sivalabs.in/blog/10-things-to-become-outstanding-java/</link><pubDate>Wed, 26 Jan 2011 07:11:00 +0000</pubDate><guid>https://www.sivalabs.in/blog/10-things-to-become-outstanding-java/</guid><description>&lt;p&gt;If you are a Java developer and passionate about technology, you can follow the tips below, which will make you an outstanding Java developer.&lt;/p&gt;
&lt;h4 id="1-have-a-strong-foundation-and-understanding-of-oo-principles"&gt;1. Have a strong foundation and understanding of OO Principles&lt;/h4&gt;
&lt;p&gt;For a Java developer, having a strong understanding of Object-Oriented Programming is a must. Without a strong foundation in OOPS, one can&amp;rsquo;t realize the beauty of an object-oriented programming language like Java. If you don&amp;rsquo;t have a good idea of what OOPS is, even though you are using an OOP language, you may still be coding in a procedural way. Just studying the definitions of OO principles won&amp;rsquo;t help much. You should know how to apply those OO principles when designing a solution in an OO way. So, one should have strong knowledge of object modeling, inheritance, polymorphism, and design patterns.&lt;/p&gt;</description></item></channel></rss>