Saturday, October 5, 2024

10 Code Review Checklist and Best practices in Java

What to review while doing Code review
Code Review and Unit testing are some of the best development practices I always recommend, strive for, and enforce as much as possible. Even just by doing code review and Junit test case always offer positive results it can be improved a lot by constantly learning from our mistakes, others mistakes and by observing how others are doing it. I always try to get my code review done by someone with more technical and domain experience so that I can capture any domain-specific scenarios which have been missed during think through the process.

How to find the first element in Stream in Java 8? findFirst() Example

In Java 8, you can use the Stream.findFirst() method to get the first element of Stream in Java. This is a terminal operation and is often used after applying several intermediate operations e.g. filter, mapping, flattening, etc. For example, if you have a List of String and you want to find the first String whose length is greater than 10, you can use the findFirst() method along with stream() and filter() to get that String. The stream() method gets the Stream from a List, which then allows you to apply several useful methods defined in the java.util.Stream class like filter(), map(), flatMap() etc.

Top 10 Data Science Certification Courses for Python and R Developers in 2025 - Best of Lot

Hello guys, Data Science, Machine Learning, Deep Learning, and Artificial intelligence are really hot at this moment and offering a lucrative career to programmers with high pay and exciting work. It's an excellent opportunity for programmers who are willing to learn these new skills and upgrade themselves. It's also important from the job perspective because Robots and chatbots are getting smarter day by day, thanks to these technologies, and most likely will take over some of the jobs which many programmers do today. Hence, it's essential for software engineers and developers to upgrade themselves with these skills.

Top 5 Online Courses to Learn Artificial Intelligence in 2025 - Best of Lot

If you want to learn Artificial Intelligence in 2025 and looking for the best online courses then you have come to the right place. Earlier, I have shared the best Data Science courses and today, I am going to share the best courses to learn Artificial Intelligence in 2025. These are the best online courses for Artificial Intelligence or AI for beginners and curated from sites like Udemy, Pluralsight, and Coursera, three of the best online learning platforms. These courses have been created by experts like Andrew Ng, an AI pioneer and founder of Coursera, and trusted by thousands of programmers and non-technical people who want to learn AI.  You can also join them to learn Artificial Intelligence in 2025. 

Top 10 Coursera Certifications, Courses, and Specializations to Learn Essential Skills in 2025 - Best of Lot

Hello guys, if you are looking for the best Coursera courses, certification, and specialization to join in 2025 then you have come to the right place. In the last few articles I have shared the best Coursera courses to learn PythonSoftware Development, and Cloud Computing, and today, I will share the best Coursera courses, specializations, and certifications you can join in 2025. Taking online courses and certifications have become mandatory in order to have a professional and successful career and the process is similar to a college education just by staying at your home taking classes watching videos and passing the quizzes and done you are now officially certified and when it comes to the best platform to learn online no one can compete with Coursera.

Friday, October 4, 2024

10 Examples of Optional in Java 8

Null is bad, it can crash your program. Even its creator called it a billion-dollar mistake hence you should always try to avoid using nulls whenever you can. For example, you should not return a null String when you can return an empty String, similarly never return null collections when you can return an empty collection. I have shared many such tips in my earlier article, 10 tips to avoid NullPointerException and my reader liked that a lot. But, I wrote that article a couple of years ago when Java 8 was not around and there was no Optional, a new way to avoid NullPointerException in Java, but, things have changed now.

Why use SLF4J over Log4J for logging in Java? Example

Every Java programmers know that logging is critical for any Java application, especially server-side application, and many of them are already familiar with various logging libraries e.g. java.util.logging, Apache log4j, logback, but if you don't know about SLF4J, Simple logging facade for Java,  then it's time to learn and use SLF4J in your project. In this Java article, we will learn why using SLF4J is better than using log4j or java.util.logging. It’s been a long time, since I wrote 10 logging tips for Java programmer,I don’t remember anything I have writing about logging.

Top 10 Coursera Courses and Certifications to Learn Web Development in 2024 - Best of Lot

Hello guys, If someone asked me 10 years ago about how to learn web development and get a job I would more likely say that you have to go to college and get your Bachelor’s degree and then try to get a job or internship. In short, it was only possible to become a web developer by spending years on education and thousands of dollars, now the internet has changed the game nowadays. These days many online platforms like CourseraUdemyPluralsight, CodeCademy, and Educative appeared to the world allowing people to take online training courses in almost any industry and web development is one of them. 

Top 6 Courses to Learn IntelliJIDEA and Android Studio IDE for Java and Kotlin Programmers in 2024 [Best & FREE]

There is no doubt that IntelliJ IDEA is THE best IDE for Java development, even though Eclipse may still be probably used by more people because it's FREE, IntelliJ IDEA is the most feature-rich and complete IDE. The Android Studio, which is the official IDE for Android development in Java, is also based upon IntelliJ IDEA, which further cement its place as the IDE Java developer should learn. The only thing which stops many other Java developers and me from moving from IntelliJ IDEA in the past was the lack of resources. Since Eclipse was free from the start, there are tons of resources, like books, courses, and tutorials are available. 

Top 5 Free Courses to Learn Kubernetes for Developers and DevOps Engineers in 2024 - Best of Lot

Hello guys, DevOps is becoming an essential skill in today's Programming and Software Development world and Kubernetes is an important concept and tool for DevOps engineers. It takes container-based deployment to another level and allows you to manage it on the scale. You can use Kubernetes to scale your container environment or let Kubernetes do all the work for you by leveraging its auto-scaling feature. Many DevOps beginners think that Docker and Kubernetes are the same but they are not. Docker provides a container to deploy your application and commands to interact with those but container but Kubernetes is actually a container management technology, which decides how many containers are needed and deal with other management aspects.

Thursday, October 3, 2024

How to replace NULL with Empty String in SQL Server? ISNULL() vs COALESCE() Examples

We often need to replace NULL values with empty String or blank in SQL e.g. while concatenating String. In SQL Server, when you concatenate a NULL String with another non-null String the result is NULL, which means you lose the information you already have. To prevent this, you can replace NULL with empty String while concatenating. There are two ways to replace NULL with blank values in SQL Server, function ISNULL(), and COALESCE(). Both functions replace the value you provide when the argument is NULL like ISNULL(column, '') will return empty String if the column value is NULL.

Top 5 Courses to Learn Python 3 in 2024 - Best of Lot

If you are a Programmer or a Computer Science graduate and thinking of learning Python in 2024, then you have come to the right place. In this article, I am going to share some of the best online courses to learn Python 3 in 2024. Python is one of the most popular programming languages, and it's used in many domains, like Web development, Automation, Data Science, Machine learning, etc. In recent years, Python has also become a default language for Data Science and Machine learning Projects, and that's another reason why many experienced programmers are learning Python in 2024.

10 Books Every Java Programmer Should Read - Best of Lot, Must Read

If you are a Java programmer and wondering what to read to improve your knowledge of Java and become a better Java developer, then you have come to the right place. In this article, I am going to share some of the best Java books ever written. In fact, this is my list of all-time great Java books. They have withstood the test of time and emerges as more and more successful years after years. It doesn't matter if you read them this year or reading them next year, you are always going to learn a lot, and that's why I call them all-time great books.

The OCAJP 1Z0-808 - Best Books and Mock Exams for Java 8 OCA Certification

From the last couple of months, I have been helping a few developers to prepare for Java 8 associate certification with exam code 1Z0-808, also known as OCAJP 8. From my experience, both for preparing for Sun certification and helping other developers to get Java certified, I can say that two keys to be successful in Oracle Java SE certification are choosing an excellent study guide/course and buying one or two top quality mock exam simulators. When I say success, it doesn't mean just passing the exam but scoring above 90% because passing score 65% is not very difficult to achieve and anybody can pass OCAJP 8 by just a couple of month of practice but to score 90% and above is not that easy, you need to prepare and prepare hard.

2 Books to Prepare Oracle Java Certification Exams - OCA and OCP Java SE 6,7, 8 OCPJP 8

There was a time when Sun Certification was very hot and programmers feel proud of being Sun Certified Java Professional(SCJP). After Oracle took over Sun in early 2010, it changed names of all the examination from SCJP to OCPJP or OCJP, and now OCA and OCP for Java SE 7 and Java SE 8. I see there is a lot of confusion among certification nowadays, but essentially they are of the same level at previous SCJP. Since Java gets new language features with every new release, subsequently a new certification title is introduced. I am not agreed with upgrading your Java certification with every release, it doesn't make much sense to me, but many programmers prefer to get certified and keep it updated.

Top 10 Free Java Programming Books, EBooks and PDF for Beginners and Experienced Programmers

Who doesn't like free stuff? Well, I do like and many Java programmers like me simply love free Java books, eBooks, and PDFs. Fortunately, the Internet is full of free books and eBooks but unfortunately, many of them are of not good quality. Most of the eBooks which are freely available either are sample chapters of popular Java programming books or they are simply old and out-of-date. In my last article, I have shared a lot of such books and the feedback was that most of them, even though they are good in the past, have simply not up to the mark. The search goes on and while browsing the net a couple of days back I hit the jackpot when I found these free Java books from O'Reilly.

Wednesday, October 2, 2024

5 Reasons to Use Composition over Inheritance in Java and OOP - Example

Favor composition over inheritance is one of the popular object-oriented design principles, which helps to create flexible and maintainable code in Java and other object-oriented languages. Many times I have seen people suggesting use composition instead of inheritance, in fact, my favorite books like Head First Design Patterns also advocate this design principle. The Head First books have their own way of explaining, why composition is better than inheritance, and though it's long it's quite interesting and informative. It was the first chapter of this book, which helped me a lot in understanding this key OOP concept. 

Difference between char, varchar, nchar and nvarchar data types in SQL Server? Example

What is the difference between char and varchar in SQL, followed by nchar and nvarchar, is one of the popular SQL interview questions, and surprisingly not every programmer knows this basic difference. If you go with the name, which you should, then you can figure out that char is a fixed-length data type while varchar should be a variable-length data type. Though all char, varchar, nchar, and nvarchar are used to store text or String data there are subtle differences between them. As I said char is fixed length, which means a variable or a column like Zipcode char(10) will take only 10 bytes to store data, including space.

Top 5 Books to Learn SQL and Database Design for Programmers and DBAs - Best of Lot

The database design and modeling are one of those topics which rarely get the attention they deserve, especially at the start of the project, but once things have gone out of hand, then everybody talks about them. Comments like - this database is designed poorly, the schema is not performing well, you cannot add a new column easily, etc. becomes very common. The most problem with database design is that it is mainly done by application developers like Java or C++ developer who knows SQL, but they are not the expert on how to design tables and schema. 

Top 6 Courses to learn D3.js for Data Visualization with JavaScript in 2024 - Best of Lot

If you have done any Data visualization work then you might have heard about D3 - one of the excellent JavaScript libraries, which allows you to create beautiful interactive data visualization for the web. It's prevalent among Data Scientists and Data Analysts who often need these visualizations and charts to present data insights to stakeholders and business people. If you are not familiar with D3, no need to worry because, In this article, I am going to share some of the awesome courses to learn D3 in 2024. These courses teach you the basics of data visualization with D3 by binding data to a web page’s elements and customizing the elements based on that very data. You will also learn how to build different kinds of charts like Bar charts, Pie charts, Mind maps, etc using D3.js

Top 7 Object Oriented Programming and Design Courses for Java Programmers in 2024 - Best of Lot

There is no doubt that Object-oriented programming is a pillar of software development and one of the reasons for the massive success of Java. Good knowledge of Object-oriented programming helps you to create better software. It also allows you to communicate your ideas better with your team members and fellow programmers. Despite being such an important technology, it's difficult to find programmers who understand OOP well. Many programmers just think that OOP is nothing more than Abstraction, Inheritance, Encapsulation, and Polymorphism, without genuinely understanding these concepts and mastering them.

Top 8 Courses to learn Microsoft Azure Cloud in 2024 - Best of Lot

Hello guys, if you want to learn about the Microsoft Azure Cloud Platform, you have come to the right place. In the past, I have shared the best courses to pass Azure FundamentalsAzure Administrator, and Azure Architect certifications. Today, I will share the best online course to learn the Azure platform for Beginners. These are top-quality courses from expert trainers and instructors and are picked from Udemy, Coursera, and edX. You can use these courses to learn Microsoft Azure core services and prepare for different Microsoft Azure certifications like AZ-900, AZ-303, and AZ-20 Azure developer associate certification.

Tuesday, October 1, 2024

Observer design Pattern in Java with Real world code Example

Observer design pattern in Java is a fundamental core Java pattern where Observe watches for any change in state or property of Subject. For Example, Company updates all its shareholders for any decision they make here Company is Subject and Shareholders are Observers, any change in the policy of company and the Company notifies all its Shareholders or Observer. This was a simple real-world explanation of the Observer pattern. 

Top 8 Courses to learn Reactive Spring Boot and WebFlux in 2024 - Best of Lot

Hello Java programmers, if you want to learn Reactive Programming with Spring Boot and WebFlux and are looking for some online courses to start with, you have come to the right place. Earlier, I have shared the best Spring Courses and best Spring Boot courses, and today, I will share the best online course to learn Reactive Programming with Spring Boot and Web Flux. In recent times, Reactive programming has become very popular. It is a programming paradigm that focuses on an asynchronous, event-driven, non-blocking approach for processing data which paves for writing a next-generation scalable web application in Java.  This means a thorough knowledge of reactive programming is a must for creating scalable web applications, and that's why Java developers need to learn reactive programming. 

DesignGuru.io Review - Is Grokking Advanced System Design Interview Course Worth it?

Hello guys, Before I give my review of DesignGuru's Grokking Advanced System Design Interview course, let me tell you a little bit more about this course so that we are on the same page. As you must already know if you have ever gone through for a software engineering interview, system design questions are an integral part of the process. System design plays a very important part as it is considered more important than solving coding problems. And in order to impress your potential employers, you have to be able to show your real design skills and convince them that you are able to work with complex design systems.

Review - Is ByteByteGo System Design Interview Course by Alex Xu Really Worth it in 2024?

Hello guys, if you are preparing for System Design Interview in 2024 then you may have most likely come across names like ByteByteGo, Alex Xu or System Design Interview - An Insider Guide by Alex Xu, and if you are wondering what they are or you know about them but thinking whether ByteByteGo is worth it or not? then you have come to the right place. Yes, ByteByteGo is indeed worth considering for your System Design Interview preparation. because its created by Alex Xu, an expert with FAANG interview experience, the platform offers in-depth coverage of system design topics. The author's use of diagrams to explain concepts in detail enhances the learning experience. 

Review - Is Grokking the System Design interview Course on DesignGuru Worth it?

Hello guys,  we are here again today for another exciting topic to discuss. But today, we will not discuss something related to Java or any other language or spring boot. Today, we will discuss something that is immensely practical and has the potential to land you very high-paying jobs. Today we are going to review a course that focuses on System Design! System Design is crucial for coding interviews! And it's also one of the most challenging topics to master. I have shared the best System design courses for coding interviews and books in the past. Today, I will review one of the top system design courses for technical discussions, Grokking the System Design Interview by Design Gurus.