2 days agoUnderstanding the Maven Build LifecycleMaven, a widely used build automation and project management tool, can seem a bit overwhelming at first glance. One of the key concepts you need to grasp to make the most of Maven is its build lifecycle. In this guide, we’ll delve deep into the Maven build lifecycle, breaking it…Java5 min readJava5 min read
Mar 18What’s the difference between FTP, FTPS, and SFTPIn today’s interconnected world, transferring files between computers is a common task. However, when it comes to transferring files over a network, security becomes a major concern. This is where protocols like FTP, FTPS, and SFTP come into play. …Software Development2 min readSoftware Development2 min read
Feb 26What’s the difference between SSL, TLS and CASSL (Secure Sockets Layer) and TLS (Transport Layer Security) are both cryptographic protocols used to establish secure communication channels over the internet. While they share many similarities, they differ in terms of their history and technical implementation. SSL was originally developed by Netscape in the 1990s and was widely used…Networking2 min readNetworking2 min read
Feb 17Which code should be in the controller, service, and repository?The specific code that should be included in a controller, service, and repository depends on the specific application and its requirements. However, in general, here are some guidelines for each Controller Receives requests from clients Validates inputs and outputs Communicates with the service layer Returns responses to clients Here’s an…Software Development2 min readSoftware Development2 min read
Feb 16Authentication vs AuthorizationAuthentication and authorization are two essential concepts in information security that are often used interchangeably. However, they are distinct processes that serve different purposes in protecting sensitive information. In this article, we will discuss the difference between authentication and authorization and their importance in safeguarding digital assets. What is Authentication? …Software Development3 min readSoftware Development3 min read
Feb 5The difference between Primitive and Reference type variables in JavaYou might wonder when you code in java and see these variables. int Integer bool Boolean What’s the difference between them, and how to use them correctly? First, let’s talk about their definition between them. Primitive Type The primitive type is the variable that stores the actual value in the…Java2 min readJava2 min read
Jan 4What is hoisting in JavaScript?In JavaScript, hoisting refers to the behavior of variable declarations being moved to the top of their containing scope. This means that a variable can be used before it is declared. For example: console.log(x); // Output: undefined var x = 5; Even though the variable x is declared after it…JavaScript2 min readJavaScript2 min read
Dec 3, 2022How to use Postgres replacePostgres replace function is used to replace a substring of a text with another substring. The syntax for using the PostgreSQL REPLACE function is: REPLACE(old_text, old_substring, new_substring) For example, we have a table email template for preparing email detail for multiple clients. id|subject |detail…Postgres2 min readPostgres2 min read
Nov 8, 2022Python lambda with examplePython lambda function is a way to create an anonymous function, which can be passed as argument to another function. Here is how we can write the lambda function Lambda functions are widely used in Python for short-lived tasks. They are ideally suited for event-driven programming and are often used in a concurrency framework. For example Thank you for reading & Happy coding :) My recommended book: Getting Started with Python: Understand key data structures and use Python in object-oriented programmingPython1 min readPython1 min read
Oct 17, 2022Understanding Python scopeWhen we run some python programs with variables, sometime we might confuse why the variable I’ve declared got the wrong value. Sometimes it is because we don’t understand the python variable scope. There are 4 variable scopes local scope enclosing scope global scope built-in scope Let’s understand by example first. Here is the output global scope: eggshell enclosing scope: egg white local scope: yolkSoftware Development1 min readSoftware Development1 min read