r/SpringBoot • u/superman041019 • Jun 04 '24
Never tried learning from docs
I have always seen people recommending the docs for java and spring/spring boot until now I have been learning from online tutorials and doing stuff they teach there along with them but yeah I am not getting much success in interviews as of now how bad is my learning strategy. I completed the whole Chad Darby Udemy Spring boot course and in the last interview the interviewer asked me about patch and optional mapping which weren’t once used in that tutorial so I didn’t know anything of them . What changes should I make?
9
u/g00glen00b Jun 04 '24
I don't think learning from the docs would help you. Sure, the docs contain many small details that courses or tutorials might skip over, but I don't think you should memorize those.
I also don't think you need to follow more Spring Boot courses. You probably already know the fundamentals. I think it's more useful now to learn about generic programming concepts.
With "patch mapping" I assume the interviewer meant @PatchMapping. I recommend reading about REST API best practices. For example, this article mentions the concept of PATCH.
With "optional mapping", I assume the interviewer meant Optional.map(). This is completely unrelated to "patch mapping" though, so I'm not sure. The Optional class is part of Java's functional programming kit. In that case, I would recommend reading about functional programming in Java. For example this article mentions the use of Optional.
While neither of the articles are Spring Boot specific, with your fundamental knowledge you should be able to apply them within Spring Boot.
3
u/onecupofspam Jun 04 '24
The op probably made a typo and the interviewer asked about PathVariable and whether its possible to make them optional... With optional=true... which is a reasonable thing to ask during an interview
0
u/superman041019 Jun 05 '24
How would I make such a typo where I would mistake PathVariable for Patch Mapping and he asked the question one after the others not simultaneously
2
4
u/Mental_Mousse_7143 Jun 05 '24
Even if you read docs, there will be things that you don't know, so be relaxed 😎.
Also Spring's doc is NOT good for learning.
2
u/Mental_Mousse_7143 Jun 05 '24
And I hate video courses 😆.
1
u/superman041019 Jun 05 '24
I know but have to get a job so gotta keep learning
1
u/Mental_Mousse_7143 Jun 06 '24
You've learned too much, but you don't know enough. That's the main problem here.
1
9
u/Agile_Rain4486 Jun 04 '24
online tutorials are garbage, popular ones especially.
Try spring starts here book, funny thing the questions you have posted just read about them today in book. There is spring in action book too but it feels lacking in various parts.
Also spring starts here author has youtube channel (laur spilca), which I believe is one of the most detailed channel for java + spring, try it.
You will be surprised how much don't know after reading spring starts here and he has separate course on hibernate in youtube.
6
u/trinReCoder Jun 04 '24
Laur Spilca is great! Some of the most well thought out explanations. Java Brains is good too but he doesn't go into quite the dept as Spilca
3
u/Glass-Fix-4624 Jun 05 '24
I feel like you're right. I've basics of java and spring but can't understand very well splica's videos on spring. However I've gone through most of java brains' videos without much problem
There's another good YouTuber called alibou. He's a senior with 10+ yoe in Germany, and is pretty good too. In terms of content depth, I'd say
splica>alibou>=javabrains
They're all very good, it's just they cover different depth of the same topics
2
u/trinReCoder Jun 05 '24
I've never heard of alibou, I'll have to check him out.
1
u/Glass-Fix-4624 Jun 05 '24
Ahaha, feel free to gimme your feedback. Also I'm not affiliated to him in any way, and the courses are free. But he teaches things in more depth and comprehension than most of the online courses/videos I've found, I'd say. The exception would be splica
4
u/Glass-Fix-4624 Jun 05 '24 edited Jun 05 '24
I've watched 10+ tutorials/courses on things like spring, hibernate, projects and so on, and adding them up might be like 100-150 hours + of content on hibernate and spring. And I feel you're correct, most online tutorials are quite basic. There's some more advanced and comprehensive ones, but they're still not at the level of books.
I've basics of java and spring but can't understand very well splica's videos on spring. I'm still learning a few things from amigoscode's and alibou's videos. However I've gone through most of java brains' videos without much problem
I've done Chad course too, at the time it was hard, but now it feels very basic
But it's ok, without these basic tutorials I might have never been to start doing spring projects and understanding spring. But yeah, it feels like after a while you start hitting the ceiling if you just watch videos
Funny thing is, I read start here 8 months ago when I started learning spring, and set it aside after realizing I couldn't understand most of it. Lol, now that I've the basics of it, and I just opened the book again, and indeed it still contains lots of valuable knowledge for me. The difference is that now I feel like I can start to finally understand the content
Hahaha
3
u/Agile_Rain4486 Jun 05 '24
great, amigos code is good but that 5sec template after every 2 mins makes me want to just skip his videos.
On mobile sponsor block on revanced works perfectly but not the extension one on edge.
1
6
u/kennybooth21 Jun 04 '24
I took the same Chad Darby course. I feel that it was really good, it helped me grasp the basics of Spring Boot.
However, after the course I started doing my own projects and I quickly realized how much was not covered, and just how deep the Spring ecosystem is lol. I’m constantly referencing the docs.
3
u/greglturnquist Jun 05 '24
Follow Dan Vega on YouTube. Lots of solid content there that extends beyond docs and tutorials.
3
u/NomadicBrian- Jun 05 '24
Everyone learns differently. For me I found the best way to approach learning application development is to build applications for things you need or enjoy. Documentation, books, courses, tutorials are for reference or trying out a feature. As an example I like NFL football and built a website for the team I like that currently displays about 16 graphs and bar charts from statistics that I track. I was looking for a way to do more things with Python as I learned it. I scribbled out a design for a web UI and planned to do that in Angular. I also thought...'hey I just finished an React 18 book so I'll also launch, monitor and move images by calling some APIs that way.
As I got into each feature and asked myself what I should use that took me to web sites where I could see what that community suggested and which probably would be showing up in interview questions or later on the job. I'd pick one or two alternatives. Then I'd code that feature using both alternatives just to learn and observe. Now the trips to the documents, podcasts and tutorials were done to transition what I learned into building out a full project. Part of this process is also to learn how to research and build.
If you start from the introductions and work your way down to each subject in the docs it can become somewhat tedious and your desire to do something with it might lead to frustration. Many App Developers start by getting a couple of tasks and at first it will be quite challenging to learn how to manage time and activities with tasks. The first ones will be small so you don't feel overwhelmed. That feeling of where to start first will surface. This idea of getting used to building on your own and assigning yourselves tasks might help.
I any case doing something for fun makes it easier to buy into the effort, watch it grow and feel proud of what you accomplished.
4
u/onecupofspam Jun 04 '24
I encourage my devs to always read documentation first.
Its crazy how many extra steps they will take (google -> click N random links, read kinda relevant but not quite info -> watch 30min outdated videos on youtube / PAY for courses). All to learn something that is documented clearly and concisely in the official documentation, written by literal framework devs and available for free.
Like, people take courses on Spring, with Spring Security modules and still can explain what Spring Security does. If they bothered to look into docs, they would find that the very first 2-paragraph overview direct them to a Spring Spring Architecture page which explains exactly what Spring Security does (and how) in a 7 minute read: https://docs.spring.io/spring-security/reference/servlet/architecture.html
Or devs who work with Kubernetes, watched some videos on Kubernetes - but still fuzzy on the terminology and concepts. The only thing they didn't do? They didn't try reading docs, of course. And once again the official docs explain those things in the first chapters of documentation:
Overview: https://kubernetes.io/docs/concepts/overview/
Kubernetes Objects https://kubernetes.io/docs/concepts/overview/working-with-objects/
Kubernetes Architecture: https://kubernetes.io/docs/concepts/architecture/
I get that not every framework has good documentation, but I would still advice to look into docs first.
RTFM!
1
u/Glass-Fix-4624 Jun 05 '24
Nice post. I've been learning from videos but it looks like they lack details
1
u/LeChronnoisseur Jun 05 '24
Get to the docs/javadocs in the code where you have questions. When you see a new object in a spring/etc library that you are interested in, dig into that class file because that is where the javadoc is made from in those javadoc comments.
11
u/Sir_Dupre_36 Jun 04 '24
I'm a content creator, so take my words with a grain of salt. :)
I'm on the other side of what you're facing; I'm trying to find a balance between presenting enough breadth to actually help and teach, while also some depth where needed.
IMHO I think it's nearly impossible to learn everything in one tutorial / video / course -- but there's plenty of super smart people out there for sure who seem to absorb everything and be good to go.
Back to your question, the docs are getting better and better (I feel), but there will always be some gaps that can only be filled by experience.
I don't know if this helps, but best of success on your journey, and try not to get discouraged from one or two bad interviews.