Programming

json-simple example — step-by-step Programming tutorial on Progressive Robot

json-simple example

URL: https://www.progressiverobot.com/json-simple-example/ json-simple is a simple java toolkit for JSON. json-simple library is fully compliance with JSON specification (RFC4627). json-simple ![json-simple, json simple example, json example](images/json-simple-example-section-1.png) json-simple uses [Map](/community/tutorials/java-map) and [List](/community/tutorials/java-list) internally for JSON processing. We can use json-simple for parsing JSON data as well as writing JSON to file. One of the best feature […]

Read more
Java Object clone() Method - Cloning in Java — step-by-step Programming tutorial on Progressive Robot

Java Object clone() Method – Cloning in Java

Java Object class comes with native clone() method that returns the copy of the existing instance. To use java cloning, all you need is to implement the marker interface java.lang.Cloneable so that it won’t throw CloneNotSupportedException at runtime.

Read more
How To Build a GraphQL API With Golang to Upload Files to object storage — step-by-step Programming tutorial on Progressive Robot

How To Build a GraphQL API With Golang to Upload Files to object storage

Uploading files with GraphQL can be a challenge, since there is no built-in support for file uploads. In this tutorial, you will learn to upload images to a third-party storage service directly from your backend application. You will build a GraphQL API that uses an S3-compatible AWS GO SDK from a Go backend application to upload images to object storage. The Go back-end application will expose a GraphQL API and store user data in a PotsgreSQL database.

Read more
Como converter tipos de dados em Go — step-by-step Programming tutorial on Progressive Robot

Como converter tipos de dados em Go

Na linguagem Go, os tipos de dados são usados para classificar um tipo específico de dados, determinando os valores que você pode atribuir ao tipo e às operações que você pode realizar com ela. Ao programar, há momentos em que você terá que converter valores entre os no tipos,…

Read more
Thread Safety in Java — step-by-step Programming tutorial on Progressive Robot

Thread Safety in Java

URL: https://www.progressiverobot.com/thread-safety-in-java/ Thread Safety in Java is a very important topic. Java provides multi-threaded environment support using Java Threads, we know that multiple threads created from same Object share object variables and this can lead to data inconsistency when the threads are used to read and update the shared data. Thread Safety ![thread safe, thread […]

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

AtomicInteger in Java

Today we will look into AtomicInteger in Java. Atomic operations are performed in a single unit of task without interference from other operations. Atomic operations are necessity in multi-threaded environment to avoid data inconsistency. AtomicInteger ![AtomicInteger, java atomicinteger, atomic integer](images/atomicinteger-java-section-1.png) Let's create a simple multi-threaded program where every thread increments the shared count variable 4 […]

Read more
Java Project Lombok — step-by-step Programming tutorial on Progressive Robot

Java Project Lombok

URL: https://www.progressiverobot.com/java-project-lombok/ Project Lombok is a very useful tool for java projects to reduce boiler plate code. Problem Statement !java project lombok In Java vs. other language debate, the first knock which you get from other language supporters is that Java requires lot of boiler plate code and you just cannot get over it, and […]

Read more
How To Use Variadic Functions in Go — step-by-step Programming tutorial on Progressive Robot

How To Use Variadic Functions in Go

A variadic function is a function that accepts zero, one, or more values as a single argument. While variadic functions are not the common case, they can be used to make your code cleaner and more readable.

Read more
JSP Exception Handling - JSP Error Page — step-by-step Programming tutorial on Progressive Robot

JSP Exception Handling – JSP Error Page

URL: https://www.progressiverobot.com/jsp-exception-handling-jsp-error-page/ Exception handling in JSP is done by JSP exception pages. Exception Handling in JSP Sometime back I wrote a post about [Servlet Exception Handling](/community/tutorials/servlet-exception-and-error-handling-example-tutorial "Servlet Exception and Error Handling Example Tutorial") and why do we need it. Same explanation is also applicable for JSP pages also and that's why Java EE provides a […]

Read more
CHAT