The Big Dev Theory

Software engineering explained through tutorials, guides and stories

Memory Leaks in Java: How to Identify and Prevent Them for Optimal Performance

Introduction

As Java developers, we strive to build high-performance and reliable applications. One critical aspect that often challenges us is memory management. Memory leaks can silently wreak havoc on the performance and stability of our Java applications. In this blog post, we’ll explore what memory leaks are, common causes, and, most importantly, how to detect, diagnose, and prevent them. Let’s dive in!

Continue reading

Publish Artifacts to local Maven with Gradle

Publishing artifacts to a local Maven repository can be useful for sharing libraries within an organization or for offline development. In this tutorial, we’ll learn how to publish artifacts to a local Maven repository using Gradle, a popular build tool for Java projects.

TL;DR

To Publish, just use this Gradle command:

gradle publishToMavenLocal  

To read from LocalRepository just add this to your dependencies block in Gradle:

allprojects {
    repositories {
        mavenLocal()
    }
}
Continue reading

Juice Shop: The hacker sandbox

Let me introduce you to the best hacker sandbox: Juice Shop.

I’m not a hacker, but as a software engineer, I try to stay updated on the most common vulnerabilities and how to avoid them.

For that, I wanted to write this introduction to one of the best hacker sandboxes: The Juice Shop. But before, let me explain where it comes from.

Code can sometimes contain bugs like the Mariner 1, which cost NASA $18.5 million in 1962) or any other of the most costly errors in code. But sometimes those errors are harmless unless you exploit them taking advantage of a vulnerability that could cost so much pain and money.

Continue reading