TIL: Pulling Values Out of JSON Response in Java

This is a continuation from the work I was doing yesterday with experimenting with making requests in spring applications. I wanted to see how I could parse the response message and pull out the data from it.

2 min read

TIL: Making Rest Calls with Spring

I got curious today about how you’d go about making rest calls from within a java Spring application. Did some research and found that restTemplate was a thing and generally how you handle your external rest requests from within the application.

2 min read

TIL: Adventures With Spring Boot Unit Testing, pt1

The great thing about tutorials is that the usually only show you just enough to get your feet wet, and then set you on your own to fall on your face. This seems to be especially true when it comes to writing unit tests for your code. Tonight I spent about an hour just trying to get two simple unit test cases working for the stupid mongoDB sample app I posted about yesterday.

2 min read

TIL: Spring Boot With MongoDb

I was curious just how much different it would be trying to connect a Spring Boot project to a MongoDB database instead of using an SQL database like we did in one of the previous tutorials I wrote about. So I went back to the internet looking for an example of how it’s done with MongoDB, with the goal of connecting to an external DB (something that wasn’t covered in the other lesson).

2 min read

TIL: Java Multithreading Intro

I went ahead and started to look into multithreading in java tonight, because I know it’s going to be something I’ll need to understand fairly soon. I’m not sure if different libraries implement it without any real work on the users part, but I figured it would be good to start with the basics.

1 min read

TIL: Java is Pass-by-Value

Taking it easy tonight so I wanted to spend time on more core Java fundamentals rather than get into anything too crazy. I came across a highly rated post on Stack Overflow related to the question of whether or not Java is pass by reference or pass by value. I remember that discussion coming up back when I was working through golang training, so I was curious to see what Java was.

2 min read

TIL: Letting Intellij Make Your Unit Tests

Intellij is such an overwhelming tool. It’s almost like opening up photoshop for the first time, with 500 different buttons and dropdowns everywhere and what am I supposed to do with this or that? That’s how I felt the first time I opened up Intellij.

2 min read

TIL: Java Encapsulation

One of the things that has puzzled me the most since I started looking into Java is why everything has these getter and setter methods. Coming from python and javascript it made 0 sense to me why we weren’t just accessing data by its name and instead going through what seemed like an unnecessary step. Today I learned that there’s actually a word for it: encapsulation.

2 min read

TIL: Java Polymorphism

This has been a subject that’s been on my bucket list to learn for a while now. Spent some time this evening going back over some more basic level java tutorial videos and the subject of polymorphism came up. I always thought that it sounded pretty daunting (aside from the thought be being turned into a cute little sheep), but it turns out that it’s pretty simple conceptually.

2 min read

TIL: Spring Boot, pt5

Last day of this tutorial series. It definitely lost steam towards the end, with the last few lessons feeling pretty rushed and clustered. Made it through to the end, but I feel like I got much more out of the last 4 days than today.

1 min read