Clean code

Kafka Connect example: Mysql to Elastic Search

Reading Time: 3 minutes Overview: Hello everyone, in this blog, we will see an example of Kafka connect in which we will take a MySQL table, stream it to a Kafka topic, and from there load it to Elasticsearch and index its content. Installation: Now first of all we will install MySQL and Elastic search to our local system. For installing simply run: The next step is to make Continue Reading

Understanding Java enums

Functional Java CodeStyle [Part: 3]

Reading Time: 3 minutes The world is a stage where all of us are artists and constant learning is the foundation of success. So, to improve ourselves here we are going to know more about coding style in which we will look deep into Tools in Java. We will see why it is important and how to achieve that. As in the previous blog, we saw clean coding basic Continue Reading

Understanding Java enums

Functional Java CodeStyle [Part: 2]

Reading Time: 5 minutes The world is a stage where all of us are artists and constant learning is the foundation of success. So, to improve ourselves here we are going to know more about coding style in which we will look deep into SOLID principles in Java. We will see why it is important and how to achieve that. As in the previous blog, we saw several code Continue Reading

Functional Java CodeStyle [Part: 1]

Reading Time: 5 minutes The world is a stage where all of us are artists and constant learning is the foundation of success. So, to improve ourselves here we are going to know more about clean code in Java. We will see why it is important and how to achieve that in Java. Clean Code First of all, before knowing how to write a clean code see what is Continue Reading

What Is Liskov Substitution Principle (LSP)? With Real World Examples!

Reading Time: 4 minutes In this article, we are going to discuss what is Liskov Substitution Principle (LSP) with real world examples. So your Object-Oriented Programming skills are at par and now you want to apply your knowledge to live projects. After all, understanding the 4 basic pillars of Object-Oriented Programming and knowing a few cool things like constructor chaining and static methods should be enough to pull off Continue Reading

Let’s Clean that Code

Reading Time: 8 minutes Writing a clean code that nobody mocks is a little difficult, but by cultivating a habit, following best practices, it is not impossible to achieve.

How to write Clean Code- Part2

Reading Time: 3 minutes In our previous blog, we discussed some of the tips to write clean code. However, those are not just enough for better programming. Instead, there are some points to take care which helps in writing more better code. And, here in part 2, we will majorly focus on those points which were not been covered in Part1 such as Exception Handling, Data Structures & Unit Continue Reading

Coding Best practices to follow with Scala

Reading Time: 4 minutes If you are reading this blog there may be two reasons. First, you are the programmer and second, you want to be a better programmer. So here we go, Even bad code can function, But if the code isn’t clean, it can bring a development organization to its knees. Every year, countless hours and significant resources are lost because of the poorly written code. But Continue Reading

The Law of Demeter

Reading Time: 3 minutes You’ll often get to hear from good programmers about having “loosely coupled” classes. What do they mean by saying that? Let’s understand this first before jumping onto the Law of Demeter. Loosely Coupled  In object-oriented design, the amount of coupling refers to how much the design of one class depends on the design of another class. In other words, how often do changes in class

Do you think your code is Perfect? Well, Think again.

Reading Time: 8 minutes “Any fool can write code that a computer can understand. Good programmers write code that humans can understand.” – Martin Fowler “I can code.” I always say to myself. But do others think the same? Is my code good enough for people to understand? Do other people think “Damn I wish I could write such code.?” –  that’s the main question I always had in Continue Reading

Clean Code – Robert C. Martin’s Way

Reading Time: 7 minutes Writing good code in accordance with all the best practices is often overrated. But is it really? Writing good and clean code is just like good habits which will come with time and practice. We always give excuses to continue with our patent non-efficient bad code. Reasons like no time for best practices, meeting the deadlines, angry boss, tired of the project etc. Most of Continue Reading

SOLID PRINCIPLES

SOLID Principles: Basic building block of the software system

Reading Time: 4 minutes “Good software system begins with clean code” and by “clean code”, I mean it is code that is easy to understand and easy to change. This is the point where there is a need to know about SOLID Principles which helps us in writing the clean code as the code is like humour. “When you have to explain it, it’s bad.” The SOLID PRINCIPLES tell Continue Reading

Creating a DSL (Domain Specific Language) using ANTLR ( Part-II) : Writing the Grammar file.

Reading Time: 3 minutes Earlier we discussed in our blog how to configure the ANTLR plugin for the intellij for getting started with our language. In this post we will discuss the basics of the ANTLR  and exactly how can we get started with our main goal. What is the lexer, parser and what are their roles and many other things. So lets get started, Antlr stands for ANother Continue Reading