Home » 2019

Yearly Archives: 2019

Java Queue Interface

Introduction: A Queue is a FIFO (First In First Out) abstract data type (ADT). In other words, the elements are removed in the order in which they were inserted. The java.util.Queue is an interface in Java and extends from java.util.Collection. Some of the commonly used Queue implementation classes include a LinkedList, an ArrayDeque and a PriorityQueue. Types of Queues: There ...

Read More »

Spring Boot Exit Codes – Create Custom Exit Code

spring-interview-questions-answers

When running a Spring Boot application, we get a system exit code of 0, when everything goes fine.  For any unhandled exceptions, the application returns with an exit code 1. It’s possible for us to return a custom exit code from our Spring Boot application. In this tutorial, we’ll learn to do so. Implementing ExitCodeGenerator: Let’s start by creating a ...

Read More »

Software Development: The Road to Mastery

No one is born with mastery in software development. It is a journey that takes years of experience to attain. Whether born from curiosity, given an assignment, or necessity; many of the steps to achieve mastery are much the same. There are also aspects of learning and honing in mastery in other skills, professions and physical disciplines that cross over ...

Read More »

Angular Route Guards Example

Welcome readers, in this tutorial, we will implement the Route Guards in an angular application. 1. Introduction Angular is a Typescript-based open-source framework that helps developers build single page applications Offers Object-oriented features and supports the dynamic loading of the pages Supports Two-way data-binding, Property ([]), and Event (()) binding techniques Supports command-line-interface to easily initiate and manage the angular ...

Read More »

Java ArrayDeque

Introduction: ArrayDeque in Java is a class that implements a Deque interface. It’s an array-based implementation of a double-ended queue. As the name suggests, a double-ended queue is a queue that allows us to add or remove items from both front and rear ends. Before we dive in, let’s quickly look at a few noteworthy points on an ArrayDeque: An ...

Read More »

Using @ResponseStatus for Http Status in Spring

spring-interview-questions-answers

Introduction: In Spring MVC, we can set the status of the HttpResponse in several ways. In this tutorial, we’ll achieve it using the @ResponseStatus annotation. We can use @ResponseStatus to mark a method or an exception class with a status code and reason that should be returned. On invoking the marked handler method or when a specified exception is thrown, ...

Read More »

Microservices adventures: Ignoring platform complexity

I think there is a common misconception about microservices out there. The popular opinion is that microservices supposed to be the cure for all of our problems. However, I say that by themselves, they can only cure half of them. To cure the other half, you are supposed to combine microservices with the latest DevBizSecDbaQaOps practices and transform your company ...

Read More »

JKS: Extending a Self-Signed Certificate

Sometimes you don’t have a PKI in place but you still need a key and a corresponding certificate to sign stuff (outside of the TLS context). And after the certificate in initially generated jks file expires, you have few options – either generate an entirely new keypair, or somehow “extend” the existing certificate. This is useful mostly for testing and ...

Read More »