Hi 👋,

I’m Shubham

Senior Engineer - Software Development (PoC)

This is the corner of the internet where I share my learnings, thoughts and experiences.

Here are some interesting things that caught my attention recently.

Downloading a single file from 2 independent apps

- 4 mins read
Understanding the problem Let’s say you have a very large log file. And you want to create an app that can analyze this file and generate insights. Also, let’s say you want to create an another app that can simulate the work by reading the logs one-by-one. Both these apps are dependent on the same log file. Now, there are 2 scenarios. App1 starts, downloads the file and then App2 starts.

Reflection API in Java

- 3 mins read
Where is this used? This is used to analyze/modify the behaviour of a class at runtime. Using this, you can view or change the private/public fields at wish (without exposing any getter/setter). Personally, I have used this in one of our projects at GreyOrange to write unit test cases. Using this in main code is a big no-no as it exposed you critical fields to the world. Main Class Let’s create a main class for which we will write some test cases.