Tag: learn to code together
-
Why do you need to override equals and hashCode methods in Java?
If you have used some data structures such as a hash map or a hash set for storing your custom object, you probably have to write your own implementation of […]
-
Frequently used git commands
Have you just landed your dream job as a programmer? Congrats! We can have different backgrounds and work on different tech stacks. However, no matter which technologies you use, working […]
-
Building a Web Development PC
It’s no secret that web developers have to meet certain computer specifications if they want to do their work efficiently. For example, the Digital Hacker’s guide suggests a RAM that’s at least […]
-
Understanding Method References in Java
Before Java 8, to provide an implementation for an interface, we need either to create a concrete class that implements this interface or, more concisely we can, use an anonymous […]
-
A Gentle Guide to Socket in Java
What is Socket? A socket is an interface to send and receive data in two programs on the network in a bidirectional manner. In other words, a socket represent one […]
-
How to configure Tomcat Server to Run Web Application on IntelliJ IDEA
In this article, we are going to learn how to configure the Tomcat server to run a simple “Hello World” application on the web browser with JSP and Servlet (i.e […]
-
What is tail recursion?
In many functional programming languages such as Haskell or Scala, tail recursion is an interesting feature in which a recursive function calls itself as the last action. For example, we […]
-
Different ways to Iterate any Map in Java
1. Using entrySet() The Map.entrySet() returns a collection view Set<Map.Entry<K, V>> of the mappings in this map. To iterate over a map, we can use the getKey() method to get […]
-
Call by Name vs. Call by Value in Scala
Substitution Model In Scala, expressions are evaluated based on the substitution model, the idea is that all evaluation does is reduce an expression into a single value like what we […]
-
Quicksort algorithm – Lomuto partition scheme
There are a multifarious number of sorting algorithms have been proposed and being used nowadays. Perhaps you’re already familiar with some sorting algorithms such as Bubble Sort, Selection Sort, or […]