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.
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.
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.
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).
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.
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.
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.
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.
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.