Programming

Session Management in Java - HttpServlet, Cookies, URL Rewriting — step-by-step Programming tutorial on Progressive Robot

Session Management in Java – HttpServlet, Cookies, URL Rewriting

URL: https://www.progressiverobot.com/java-session-management-servlet-httpsession-url-rewriting/ Session Management in Java Servlet Web Applications is a very interesting topic. Session in Java Servlet are managed through different ways, such as Cookies, HttpSession API, URL rewriting etc. ![Session Management in Java, Session in Java Servlet using Cookies, HttpServlet, URL Rewriting](images/java-session-management-servlet-httpsession-url-rewriting-section-1.png) This is the third article in the series of Web Applications […]

Read more
How to Add Extra Information to Errors in Go — step-by-step Programming tutorial on Progressive Robot

How to Add Extra Information to Errors in Go

In Go 1.13, new features were added to make it easier to add extra information to errors: fmt.Errorf, errors.Is, and errors.As. In this tutorial, you’ll create a program that uses these functions to include additional information in errors returned from your functions, and then create your own custom error struct that supports the wrapping and unwrapping functionality.

Read more
Proxy Design Pattern — step-by-step Programming tutorial on Progressive Robot

Proxy Design Pattern

URL: https://www.progressiverobot.com/proxy-design-pattern/ Proxy Design pattern is one of the Structural design pattern and in our opinion one of the simplest pattern to understand. Proxy Design Pattern ![proxy design pattern](images/proxy-design-pattern-section-1.png) Proxy design pattern intent according to GoF is: Provide a surrogate or placeholder for another object to control access to it. The definition itself is very […]

Read more
Using the getch() function in C/C++ — step-by-step Programming tutorial on Progressive Robot

Using the getch() function in C/C++

In this article, we'll take a look at using the getch() function in C/C++. The getch() function is very useful if you want to read a character input from the keyboard. While this is not a part of the C standard, this is still a POSIX C function. So, we can still use this function […]

Read more
How to Sort a HashMap by Value in Java? — step-by-step Programming tutorial on Progressive Robot

How to Sort a HashMap by Value in Java?

URL: https://www.progressiverobot.com/sort-hashmap-by-value-java/ HashMap in java provides quick lookups. They store items in "key, value" pairs. To get a value from the HashMap, we use the key corresponding to that entry. HashMaps are a good method for implementing Dictionaries and directories. Key and Value can be of different types (eg – String, Integer). We can sort […]

Read more
Cómo manejar panics en Go — step-by-step Programming tutorial on Progressive Robot

Cómo manejar panics en Go

Los errores que un programa encuentra se dividen en dos categorías generales: los que el programador anticipa y los que no anticipa. La interfaz error que abarcamos en nuestros dos artículos anteriores sobre el [manejo de…

Read more
Deadlock in Java Example — step-by-step Programming tutorial on Progressive Robot

Deadlock in Java Example

Deadlock in java is a programming situation where two or more threads are blocked forever. Java deadlock situation arises with at least two threads and two or more resources. Here I have written a simple program that will cause java deadlock scenario and then we will see how to analyze it. Deadlock in Java ![deadlock […]

Read more
CHAT