Get NordVPN exclusive deal here: nordvpn.com/amigoscode Try it risk-free thanks to their money-back guarantee! Join the community here: amigoscode.com/p/join-community
@@caffeinejavacode1475 I think what he said is about never use "new MyClass()" on services, always use with dependency injection from spring. Am I correct teacher Nelson ? I hope so xD
Love this series, it is very hard to find "good java/spring programming practices" online. When I started learning spring boot, it was very hard to find any good resource for coding in the right way, i struggled a lot i saw some people using repository inside a controller and i didn't know if it is good practice. Recently i got my first job as a Java dev, and I wish you made this series earlier it would be so helpfull. Thanks for your amazing work!
Agreed, I've been saying this to my friends who are still searching for jobs. UA-cam is great and all for learning the basics for frame works, but principles you must likely won't find that. This guy has a killer series!
20:56 would it be better to create config objects for currency and cryptocurrency? And then a centralised service to accept the config. It seems that we can remove the clientWrapper going with this method as well
Got my first job as a Java Spring Boot Developer at 21 thanks to your java coding series!! I want to finish my final SpringBoot project and see the review haha
instead of sending error message to get method in 19:07, sending exception class would be better. And another point instead of using generics using interfaces would be better. what is yours opinions?
32:50 we could have made it even more beautiful with a filter and findAny on the stream instead of anyMatch and work with the optional to provide the default zone in case there is none
@Amigoscode u r such a Inspiration and have great charisma. You inspire me to be a better developer and to study islam. You are my rolemodel in terms of this 2 aspects
As a practice when we approach refactoring first we should understand behaviour of that code and based on understanding we should write unit test just to verify whatever our understanding is correct or not for that piece of code. Once we cover all scenario for that code after that we should start refactoring. There is few resource on how to approach refactoring in legacy codebase. 1. martinfowler.com/books/refactoring.html 2. ua-cam.com/video/iOYsxBvMkLk/v-deo.html 3. ua-cam.com/video/wY_CUkU1zfw/v-deo.html3 (Refactoring exercise start at 1:19:34)
Great videos you are doing on refactoring. You keep mentioning naming is hard; so could you please elaborate on how to name in better ways. Also please discuss how to simplify code - thinking behind it. Very interesting video series. I love them.
@Amigoscode a quick question : why you always remove Autowired and use constructor? what the advantage of building a constructor instead of using Autowired???
Field injection is discouraged. Constructor injection is the preferred method of dependancy injection, especially for dependencies that are required for the object that you're constructing. Autowired on the constructer isn't necessary anymore since some version of Spring that I can't recall right now.
Assalamualaikum, Ramadan Mubarrak, you should make spring core video in details. this will helps everyone cause learning spring boot without knowing spring core concepts is very trouble-sum. Please make a detailed video..... thanks.
I'm curious could you please help me understand why you declare private final and create constructure (eg. Clientwrapper, Httpconfig) instead of using @autowire ?
That's what you get when you decide to quit your job, not so premium cranberry juice. 😂 ❤️ , have a nice Ramadan, and thanks for all the great content.
Firstly, your object will be initially constructed not on purpose and don’t forget about DI where we basically transfer the control of managing the object to another object where IOC container will take care about RestTemplate inside a constructor using a proper DI mechanism. Moreover in this section RestTemplate isn’t even a bean so it’s under control of Spring IOC mechanism and it just no makes sense to create an object by “yourself”. I hope you understand what I’m talking about.
Assalamu alaikum brother, Great video, Very much helpful. I am really intrested on knowing why try/catch are expensive? why we should avoid? Please make a video...
Did you ever have to listen with headphones to someone deliberately making these smacking and swallowing drinking sounds into his microfone? It is extremely arkward and unpleasant. I really wonder why you think you have to do this? So unless there is a vey good reason that is unknown to me I would really prefer you´d stop doing this. It would free me from being prepared to mute my audio in time to escape this and instead allow me to focus to the very good content.
Get NordVPN exclusive deal here: nordvpn.com/amigoscode Try it risk-free thanks to their money-back guarantee!
Join the community here: amigoscode.com/p/join-community
Link not working due to .Try at the end.
Keep a space between link and ".Try"
You need to fix your Nord VPN link the .try at the end gives a 404 error
Why you don't like RestTemplate?
@@caffeinejavacode1475 I think what he said is about never use "new MyClass()" on services, always use with dependency injection from spring. Am I correct teacher Nelson ? I hope so xD
Of course SOLID principles is the thing I am waiting for!!!
Yes, please
Yes. Please do a video on SOLID principles & cost of using try-catch block.
Love this series, it is very hard to find "good java/spring programming practices" online.
When I started learning spring boot, it was very hard to find any good resource for coding in the right way, i struggled a lot i saw some
people using repository inside a controller and i didn't know if it is good practice.
Recently i got my first job as a Java dev, and I wish you made this series earlier it would be so helpfull.
Thanks for your amazing work!
Agreed, I've been saying this to my friends who are still searching for jobs. UA-cam is great and all for learning the basics for frame works, but principles you must likely won't find that. This guy has a killer series!
Videos on SOLID principles and why try/catch is expensive would be great! Keep up with this series.
Setting up a try/catch isn't expensive. Unwinding the stack once an exception happens is.
I'm a junior software developer and i have learnt a lot from you. Greetings from Spain
I was waiting impatiently for this episode to be released thanks for continuing in these series 🙏🌸
no you weren't. stop lying mohammed
Looking forward to a video about try/catch costs. Would be great to know when and how using these constructions. Thank you for ur videos though!
20:56 would it be better to create config objects for currency and cryptocurrency? And then a centralised service to accept the config. It seems that we can remove the clientWrapper going with this method as well
Got my first job as a Java Spring Boot Developer at 21 thanks to your java coding series!! I want to finish my final SpringBoot project and see the review haha
instead of sending error message to get method in 19:07, sending exception class would be better. And another point instead of using generics using interfaces would be better. what is yours opinions?
32:50 we could have made it even more beautiful with a filter and findAny on the stream instead of anyMatch and work with the optional to provide the default zone in case there is none
Oh yes 👍🏿
This is so satisfying to watch.
Ramadan Mubarak by the way.
Love from Turkey.
@Amigoscode u r such a Inspiration and have great charisma. You inspire me to be a better developer and to study islam. You are my rolemodel in terms of this 2 aspects
@Amigoscode Thankssss, i love this format video, please never stop. Pratice and learn with videos like that, we learn much more than just pratice.
As a practice when we approach refactoring first we should understand behaviour of that code and based on understanding we should write unit test just to verify whatever our understanding is correct or not for that piece of code.
Once we cover all scenario for that code after that we should start refactoring.
There is few resource on how to approach refactoring in legacy codebase.
1. martinfowler.com/books/refactoring.html
2. ua-cam.com/video/iOYsxBvMkLk/v-deo.html
3. ua-cam.com/video/wY_CUkU1zfw/v-deo.html3 (Refactoring exercise start at 1:19:34)
Akhi any plans to do JavaScript code reviews? Your approach is the best for Junior/Mid Devs to watch on UA-cam Allahum Baarik!
Great video!! Would love to know about the "expensive" computation of using a "try/catch" and also when it's good to use them!!🙏🙏🙏
every time i see such a clean code. it soothe me. Thanks for this example usage of generic.
Another excellent video. I love code reviews and the way you improve code. Congrats! Make more of these videos please
Great video Nelson! Thank you!!! Would love a video on why not to use try/catch and what to use instead/how to do it.
Great videos you are doing on refactoring.
You keep mentioning naming is hard; so could you please elaborate on how to name in better ways. Also please discuss how to simplify code - thinking behind it.
Very interesting video series. I love them.
Man your voice is so crisp and clear 💯
Great series!! Keep on, please!!
Please explain why try-catch is not cheap in spring
Is there a way to write a Java API using Record, Sealed Class, pattern matching Monad and Applicative ?
After a year practicing spring boot i am pleased to see i would do the mostly the same to this code
yay! Generics! I haven't use this, hope this video can help
10:15 saving this as my reference
A quick reminder: You forgot a space between the link in the description and the next sentence. Not that anyone doesnt get to the page
Ramadan Mubarak akhi
Could you make a video on "How to write a Telegram bot"? I searched and searched for a good Java Spring video but didn't find anything useful at all.
Yes, please do a video on why try and catch is heavy. 😊
yes please!
@Amigoscode a quick question : why you always remove Autowired and use constructor? what the advantage of building a constructor instead of using Autowired???
Field injection is discouraged. Constructor injection is the preferred method of dependancy injection, especially for dependencies that are required for the object that you're constructing. Autowired on the constructer isn't necessary anymore since some version of Spring that I can't recall right now.
Constructor injection is easy to test. You could easily mock any dependencies, but with autowired it's much more complicated
Assalamualaikum, Ramadan Mubarrak, you should make spring core video in details. this will helps everyone cause learning spring boot without knowing spring core concepts is very trouble-sum. Please make a detailed video..... thanks.
I think try catch is not expensive only throwing an exception is costly.
I love this kind of topics relating to reviews
Im waiting as well for this. reaaaaallly sweet! 😀
Do you have plan to teach most used design patterns ?
always love these! keep it up!
I am the first 😀 to view
assalamualaikum borther, i like your video
btw how your ramadan activities?
i'm curious about ramadan activities at your place
would have been much simpler with a factory that creates currency or crypto service based based on passed url.
Code review and refactoring best series ever
A video about SOLID would be very nice to have!
I'm curious could you please help me understand why you declare private final and create constructure (eg. Clientwrapper, Httpconfig) instead of using @autowire ?
please make tutorial on that caption generator you showed in vlog
Please continue with this series. Thanks
Pretty please make a video about how Try/Catch is expensive (also SOLID principles)
Video on Solid Principles would be great !
Salam Nelson, just to wish you a ramadan kareem brother !
Ramadan kareem to all Muslims
Can you make a video about oauth2 and openid, thank you
I love Cranberry juice, but only when it has no added sugar.
Solid Principles, try catch looking forward
informative video. So much to learn from
That's what you get when you decide to quit your job, not so premium cranberry juice. 😂 ❤️ , have a nice Ramadan, and thanks for all the great content.
Hahaha
lmao XD
code you please put your courses on Udemy ?
You need to fix your Nord VPN link the .try at the end gives a 404 error
Yes do a video on Solid principles
why try catch is not cheap
whats that ide?
Where is Code Review #1 and Review #2 ?
Not sure this can be called a refactor. You said it youself that you aren't sure if it was behavior-preserving.
Thanks for drinking in the intro when it‘s ramadan 😒😂
Lol this video was recorded 2 weeks ago
Solid principles? Yes please 🙏 🥺
0:03 AmigosASMR
Waiting here for the owner of the repo to tell us it works
private final RestTemaplate restTemplate = new RestTemplate()
Why is this not recommended?
Firstly, your object will be initially constructed not on purpose and don’t forget about DI where we basically transfer the control of managing the object to another object where IOC container will take care about RestTemplate inside a constructor using a proper DI mechanism. Moreover in this section RestTemplate isn’t even a bean so it’s under control of Spring IOC mechanism and it just no makes sense to create an object by “yourself”. I hope you understand what I’m talking about.
@@Jeka-ji2yu thanks for the effort you put in your explanation
Waalaykumsalaam. Please do a video about Dependency injection, Sir 😁
I remember there is already a video about it on the channel. Check it out
Assalamu alaikum brother,
Great video, Very much helpful.
I am really intrested on knowing why try/catch are expensive? why we should avoid? Please make a video...
NordVPN is not exactly private. NordVPN still knows all your activity.
Who cares
Too much ads in your videos..just a small interval ,2 videos..control it OK
Discord link not working
Because there's a space missing
ramadan kareem ❤🌙
SOLID video!!!!
Yes, please SOLID, and dependency injection
He already has a video on dependency injection. You can search up videos in his channel
Nelson, you could be tested the maqui juice... Aristotelia chilensis. thx
great! thanks :)
Class "clazz"? Lmao. If it can be anything just call it a single letter.
Event the language hints that "class" is a poor name :D
Allah bless you brother 🙏
Cranberry juice. LOL
I just like your heart
Amigo esta seríe está goood
Assalamualaikum bro please make tutorial on c++ full course please
Yes this very code
Solid)
💯💯💯💯💯💯💯💯
Cool
I am not even muslim but every time he say bismillah I am hyped lol maybe I am just a stupid guy but it's so funny
you are cool
✌️❤️
Did you ever have to listen with headphones to someone deliberately making these smacking and swallowing drinking sounds into his microfone?
It is extremely arkward and unpleasant.
I really wonder why you think you have to do this?
So unless there is a vey good reason that is unknown to me I would really prefer you´d stop doing this.
It would free me from being prepared to mute my audio in time to escape this and instead allow me to focus to the very good content.