no more Public Static Void Main
Вставка
- Опубліковано 16 лип 2023
- Java 21 new features are here. One of them is Unnamed Classes and Instance Main Methods which aims to simplify the main method and public static void main to help beginners learn Java without scaring them.
Do you like this? Comment
🧑💻 New Linux Course - bit.ly/44ExFUK
Don't Forget to
===========================================
💯 Subscribe to Amigoscode - bit.ly/2HpF5V8
💯 Free Courses - amigoscode.com/courses
💯 Join Private Facebook Group and Discord - amigoscode.com/p/join-community
🙊 Here are the goods for all my videos video 🙊
► Recommended Books
===========================================
- Clean Code - amzn.to/2UGDPlX
- HTTP: The Definitive Guide - amzn.to/2JDVi8s
- Clean Architecture - amzn.to/2xOBNXW
► Computer and Monitor
===========================================
- New Apple MacBook Pro - amzn.to/3464Mmn
- Dell 27 INCH Ultrasharp U2719D Monitor - amzn.to/2xM3nW1
- Double Arm Stand Desk Mount - amzn.to/3aYKKfs
- USB C Hub Multiport Adapter - amzn.to/2Jz7NlL
► Camera Gear
=============================================
- Sony ILCE7M3B Full Frame Mirrorless Camera - amzn.to/346QIJn
- Sigma 16 mm F1.4 DC DN - amzn.to/2wbic3Q
- Sigma 33B965 30 mm F1.4 DC DC - amzn.to/39G37Fd
P.S
===========================================
💯 Don't forget to subscribe | bit.ly/2HpF5V8
💯 Join Private Facebook Group and Discord - amigoscode.com/p/join-community
💯 Follow me on Instagram | bit.ly/2TSkA9w
❤️ Thanks for watching - Наука та технологія
main issue is if companies will actually adopt these newer Java version's since many are still stuck using Java 8🙃
100 years from now and Java 8 will still be studied but engineers
@@marceloccnv true🤦♂️
Mmm I can't consider it as a issue, instead it's a good opportunity to spread the usage of Java and for that reason companies are trying to motivate the usage of the newest java version and require it for new projects.
😅😅😅
I know some are adapting to Java 17, waiting for LTS next release
@@gersimuca That's good news but not every company can go as fast
C/C++ were my first programming languages. Then I learned python and Javascript. This year few months back I started learning java and the syntax never bothered me. I prefer it the way it is and I get what they want to do with this new version but I barely care about it. Not learning Java sooner will be my biggest regret as a coder. This programming language just made so many concepts clear. public static void main(String[ ] args) all the way!!
Hey, you're guru, that is java, it's simple for people like you that come from the very hard languages C/C++ . but beginners find java hard and hate it and go to Python
Trust me I am not a guru even when I started using Java it felt too long although spending time in it makes you comfortable with the syntax. I agree with you that this prevents a lot of new entry level developers from using java.@@LauwaliIsaDk
Part of the update should have been to include System.out in the default libraries. That would have had a bigger impact just having to type println("") instead of the whole thing.
Java's greatest strength is that it so ubiquitous and can run on anything from desktop to mobile. Java's greatest weakness is that it is so ubiquitous and can run on anything causing so much general unnecessary syntax for what you want to do.
You always can use just out.println("");, by declaring PrintStream out = System.out;
I do that all the time for basic Java use or single Class "projects"..
6:50 Answer: I really like Java in the way it is now. I think people who have a good understanding of OOP in Java won't have a problem in learning other programming languages. And Java is still one of the best programming language but for me it is no.1(perspective)
You motivated me to learn and understand JVM flow, thank you very much🖐
I think this is good for the Java world, it means java keeps evolving with the new trends but (and a very important BUT) it keeps the compatibility, so it doesn't break your code base even if is old. You know the saying, slow but steady wins the race!
It is really happy for me. Because, while learning java as a complete beginner, i have also thought about these features. I advise about take a look at files as well :)
Actually i encountered same in previous version too, I was working in VS code and it directly worked. Even my teacher was shocked to see that.
100% agreed with you, I am a fan of Java and I love the way it is. Java is Java, it's robust because of its legacy, please don't change Java to become other stupid languages.
yes. that feature is really important for someone new to programming and Java. One of the main reason for most of beginner demotivated to continue to learn Java as a tool to learn programming is because of that boilerplate. OOP is not something easy to grasp if you are a beginner.
Hi Nelson thanks for this tutorial, I have one question. is there the option subtitle for your courses of pay? I would like buy any course of testing with junit but my english is basic.
I think Java is ok where it is at now and still useful to create full stack apps. They can improve the speed and amount of cpu it uses up when setting an application up.
Great channel! Please let us know, which mic are you using?
This is not boilerplate for me, because I just create class and than type "psvm" and press enter
Yeah people are just too lazy to learn how to use their IDE efficiently. They prefer to lose time complaining about boilerplate code while they could just spent time learning their IDE 🙃
We have to adapt it because the only constant is change. This is similar to C#, which changed the syntax to remove boilerplate.
Hi, Nelson 👋
I have a question about your Testing Software course. As I know it was released 3 years ago. Is it steal actual?
Im not sure how this is going to work but you still need to learn about modifiers, classes, static vs instance, parameters. My point is why not get rich flavour at the beginning than getting just a little flavour and add a bit more along the way.
I do think it will make the students understand java easier by removing lines of code. There are a tone of courses and videos that teaches java but most are so bad created that if you complete some of them you retain very little. I had access to Oracle's java se11 and I think it was very poorely designed comparing to other courses.
Amigoscode has some very interesting videos on youtube. I am watching this channel for ah while, I didnt purchase any of hes courses but I strongly believe they are teaching the right way, specially the java language.
At the end of the day it's not who is teaching but how is taught 😉.
In the vid description, I see Intel mbp but in your recent videos, I see that you mention using m1. Is the link correct? Thanks
To me the old version just looks cooler. I don't see it as any game changer thing, so for me it's just a decoration. I don't want java to become kotlin. The cool thing about kotlin that it's kotlin. I want java to be java and not something else. The syntax looks really pretty and i would like it to stay that way. On the other hand progress is good too, so if java will actually evolve like a pcokmon i don't really mind.
The most anticipated feature for me is virtual threads
True that would be awesome to play around with. It makes it easier than before.
This sort of disrupts some of the concepts of OOP and access level for the static class when executing your application. Those new to the java language may not know this intuitively.
Damn haha never thought this day will come.. we'll see what the future holds
but you are talking about a change, there are going to be several changes in java 21 like virtual threads etc.
Honestly this new change wouldn’t matter , Java is still awesome
The thing that I loved in Kotlin was the way it uses getter and setter. Maybe java could do something similar to use less code without the need of lombok
Use records.
It's nice to be able to define a function (method without class) yeah java developers for decades know only methods and not functions. And I don't really read about the new version but let's hope that we don't have only this function.
Don't complain I'm OOP guy, but sometimes I need to have a simple function .
Can you create a video about Maven ?
I think it's a good change, despite being small.
Assalamu Alaykum, I want to learn spring boot, i saw your videos on it i wanted to know if what i need to learn first or which of your videos i need to start with, a syllable on what to learn first. Thanks.
I learnt java, not fully though. Ma assalam
Do you have a masterclass about cunccurency?
I love the old way
I think it is a great feature for newcomers..... It should have been around years ago.....
One thing I don't like is the naming conventions of the past that seem to have gone by the waste side.....
Java before 21: "Everything is in a class."
Java 21: "Everything is in a class, except main()..."
If they want simplicity for students, this isn't it. It seems like a tradeoff.
I think there's other stuff the language can evolve that will make real difference (type inference for example).
Can we write our custom methods not creating class?But I think it's only allowed for the main() method because we will lose the static keyword idea
You can create instance methods other than main.
Now that's one favourite question less for recruiters to ask 😅
Ohh.. we have a new update in java (start roasting java midway)
Hi everyone, i'm currently have a project about create a framework in java to works with Kubernetes. However i don't know where to start. Can anybody suggest some blog or article about this problem. Thank a lot
why don't you create a simple weather report restAPI , that would be helpful for the beginners to kick start.
I program to learn to program :) I love java
make course about concurrency please
I recall my old C program.
Today today at the edge of our hope, at the end of our time. We chose not only to believe in ourselves but in each other. Today there's Not a not a line of code in here that's will stand alone, not today. Today we face the monsters that are at our doors and bring the fight to them. Today we are cancelling the apocalypse. 🎉🎉🎉
does it mean I can declare any top-level function, not only main()?
I think no
If Java 21 becomes the new norm, that will save a lot of time typing a main method. The method signature reminds me of C/C++.
In spring boot application, u have one main method (obviously)
Real life projects are not coding assignemnts where u do each task in their own main method. You have one application with one starting point (main) and thats it.
So what time is being saved?
Sir can u help me to improve my logics
can you please provide the documentation link for spring boot ***************
❤
Even though Java has now a shorter release pace (every 6 months) it does still slow to release new or meaningful features ... lots of features still in preview for a long time, so in the end, you still have to wait 2, 3, 4 years for the feature to be PROD ready.
Other issue is how new features are prioritize for implementation ... like this one on the video ... as Nelson said, they are trying to turn Java into something in the middle of Kotlin and Scala ...
With the advent of containers, the JVM per se is also becoming needless ...
Let's see what the future holds for Java ...
Mostly only cloud software will run in containers, there's a lot of java in mobile devices, in fridges and other home appliances, IoT and multi-platform desktop apps. The JVM will be a necessity for a long time
Nigga got the point! I agree
Dude got the 'N' word pass 💀💀
alhamdullilah , thanks to Allah who has given me the opportunity to continue learning until today.
Maybe in the future Java merge with Kotlin for modernization purposes!
Junior dev: if java have more than 8th version
Senior dev: Java 21 version is available for preview, ok but still using Java 8.
Just for Fun 😄
welcome python
I really like the way java is structured now.
A don't care about this changes btw😂😂😂
IMO for a language to grow it need to be simple that's why the beginners have been moved to Python and Javascript which also should mean more profesionals using those languages.
Leave java as java, leave python as python, leave kotlin as kotlin. Don't mix them with each other. Java is perfect language I think, don't touch it. It has everything already, don't modify it. Don't think about beginners, they will learn java don't worry about that. Don't, don't, don't.
no
@@butterwaffling4492 no what?
Basically they just snapped all the meams build around psvm for java beginners 😂
I hope this is not the only feature update for 21 else, there was no update atall. Craziest failure since java9
I really like the language structured right now
These changes are not good 😢
is this your beard i thought it is a mask in your thumbnail 🤣
Java is fat but doesn't break his leg halfway through.
Java is competing with JavaScript -->> Competition
I'll just stick with the old version.
Java mimicking C/C++ 😂🎉🎉🎉
Why do I get Dart vibes
The main impact of this is invalidating 90% of the Java memes 😄
It will take 10+ years for businesses to use Java 21 anyways. Most are still using java 8
To me this looks like a compromise towards the haters who can't stop taking their cracks at the Python (or whatever) vs Java print-your-line-to-console project, falling over each other in pointing to that Java verbosity, while probably not even realising Java needs this only once per project.
Never compromise towards haters. They just feel vindicated and continue.
No, this feature feels useless to me.
So you want to learn how to drive? Ok cool. two choices you have
1.) Learn Automatic and don't bother to understand what is in your car bonnet, how to change a tyre etc.
2.) Learn Manual, so you have a deeper understanding on how the gear works. Also learn how to change a tyre and be able to communicate what is wrong with your car to others as you know the basic level of car engines.
Which person will excel at a profession about car mechanics if they so choose??
I feel Java should remain as verbose, as descriptive and the least implicit of all languages. Its rough and tumble, I know. But you conquar Java, you have won 80% in other programming languages out there.
Aoa
I think java is little bit jealous of kotlin 😅😂
I don't care if Java released new version.
Companies still using Java 8 anyway
if public static void main is too verbose to someone I would suggest for such person switch to Python :)
Whoever is adding these sound effects on the edit please stop overdoing it
This update is pure lazy bullshit... Id prefer some quality of life updates that C# alreadg added. I dont get why tf they wanted to "make it easier" for students by removing those keywords, when those exact keywords can get u deeper in understanding java under the hood, WHICH IS THE MAIN POINT right??
I could go on and on with this ranting, but overall, really lazy update
I don't like the subtitles.
They're annoying
Not really enthusiastic about this.
awful... i couldn't be more annoyed by this tbh... public static void main(String[ ] args) is a thing of beauty... these new architects just trying to stay relevant with the more "interpretive", less wordy and trendy languages. boiler plate or not, it belongs there.
I think Java Should focus on write less do more...
Focus on learning your IDE features and shortcuts and focus on using the right frameworks (like Quarkus) that save you typing lots of code
@@lilivier Ok I'll try it out
im not impressed .. java is an overly unnecessary verbose language ..just use better jvm language like kotlin, scala, groovy or slew of others
There até manu things It would help like simplify System.out.println, like File IO, WebRequests...
Like Groovy or Kotlin simplify things, It would be great!
That addition was for noobs who chose language based in hello world example.