Today was a weird day. I spent most of it looking through our code at working and being completely confused as to how it’s actually working. The more I read the more confused I got which started me down the path of googling random things to try to escape from drowning.
I still don’t really get wtf Java Beans are. And to make it more confusing it seems that there’s multiple types of Java Beans.
There’s normal ass Javabeans, Enterprise Java Beans, and then Spring even has its own kind of Spring Beans.
From what I read, it seems like these are all just classes that you can create and then load in as a bean? But I really don’t understand why you would do that instead of just importing the class… I still need to know more about this.
Data Transfer Objects, which are evidently not really used any more but we’re using them anyways? Supposedly they’re used as a kind of container to limit the number of requests that get sent to the database. The idea being that you’d make a single request, collect your response into the DTO, and then pull out whatever else you need from that record rather than making additional calls.
But none of that really makes sense to me. I don’t understand the whole “not having to make additional calls” thing. Why are we not just passing back what you’d get out of the initial call? We don’t ever ask the DTO for other items so… like… what?
I need more time with it.
I need to learn Java 8 Stuff
Streams, lambdas, Optional types. All things that I need to know but currently have no idea on.
I looked over streams a bit today, and it seems like it’s a handy way to iterate through data in an array/list/etc. But other than that I don’t really know much about it. I kinda fell asleep while reading about it this afternoon.
Like I said, bad day today… Hopefully tomorrow is better.