Java is mounting a huge comeback

Fireship · Beginner ·💻 AI-Assisted Coding ·3y ago

Key Takeaways

Discusses new features in Java 21, including unnamed classes and string templates

Full Transcript

it is June 5th 2023 and you're watching the code report Java is hands down my all-time favorite programming language to make fun of python developers roast it for having so much boilerplate see developers laugh at absurd class names like abstract Factory manager Singleton service manager Factory C plus plus developers hate that you can't blow your legs off with memory management as easily and JavaScript developers are still trying to fix things like dates they copied from java over 20 years ago unfortunately I have some bad news public static void main string arcs will no longer be a requirement to write hello world in Java 21 rendering an entire industry of java boilerplate memes static null and void and that's not good for people like me who make a living making fun of java because I need that boilerplate to put food on my family it's great news however for anyone who wants to learn Java or more accurately anyone who's forced to learn Java this new feature is called unnamed classes and instant main methods and allows you to create a main method without a class and public static void mainstream arcs this is a great change but I think we could actually make things a little bit better by also removing void and actually why do we even need a main function in the first place we could get rid of that altogether system out seems a little unnecessary there should just be a global print line function and if we rename it to print we then get a perfect language c-sharp introduced top level statements in 2020 and maybe in another 10 years Java will get there too before you get too excited though this feature is primarily designed to make learning Java more accessible to beginners the real boilerplate is not going anywhere in addition Java is primarily used in Enterprise which is very slow to adopt new features there are tons of mission critical applications out there still running Java 8 and it could be years or even decades before these new features get adopted but Java 21 also has some other cool updates like structured concurrency that allows you to run multiple concurrent jobs on multiple threads while treating them as a single unit of work but another thing you might find kind of crazy about Java is that it doesn't natively support string interpolation which means you need to concatenate a bunch of strings together like you're in kindergarten or use string.format which is also kind of annoying but in Java 21 we have a new string templates feature which is a new kind of expression that allows you to insert values directly into Strings we've come full circle to where Java is now looking more like JavaScript and JavaScript is looking more like Java and I even noticed that Java recently updated their website so now it only looks 10 years out of date instead of 20. this is a big strategic move that has caused Oracle stock to almost double over the last year the big question though is with all these awesome new features should you learn Java in 2023 when it comes to working as a programmer you should choose a field that's well paid interesting and legal but the reality is that you can only choose two of these Java is well paid and legal but not very interesting when looking at the syntax alone Java is pretty ugly if I want to write code for the jvm for fun I'd much rather use a language like kotlin or Scala that being said Java is still a Powerhouse language when it comes to Enterprise software it's used extensively at companies like Twitter and Google because it's a very well balanced language it's performant enough for most things it's relatively easy to use and most importantly has a huge ecosystem of stable libraries and Frameworks a few days ago I ran a poll for the best programming language of all time and Java came in dead last but now that we no longer need public static void main string args I think it'll reclaim the top spot and when with that being said I'd like to officially announce my retirement from making fun of java but let's enjoy these Java memes together one last time like this one that explains how object-oriented design patterns are often unnecessary and counterproductive when you could just be using simple variables and functions this next meme is a good one but you wouldn't get it so I'm not even going to try to explain it if you like Windows you might like Java because it loves to force you into annoying updates all the time and as you gain more experience as a programmer you'll eventually find out that everything doesn't need to be an object because these objects will pile up and devour your RAM and finally it's important to realize that not every meme is a joke many of them are a legitimate cry for help this has been the code report thanks for watching and I will see you in the next one

Original Description

Java 21 will bring major improvements to the world's most popular enterprise programming language. Learn about unnamed classes, string templates, and other new features expected in the future. #programming #tech #thecodereport 💬 Chat with Me on Discord https://discord.gg/fireship 🔗 Resources Java 21 Unnamed Classes https://openjdk.org/jeps/445 Java in 100 Seconds https://youtu.be/l9AzO1FMgM8 Java for the Haters https://youtu.be/m4-HM_sCvtQ 🔥 Get More Content - Upgrade to PRO Upgrade at https://fireship.io/pro Use code YT25 for 25% off PRO access 🎨 My Editor Settings - Atom One Dark - vscode-icons - Fira Code Font 🔖 Topics Covered - New Java features in version 21 - Java Programming basics - Unnamed classes and Instance Main Methods - Java Memes - Should I learn Java? - Why do people hate Java?
Watch on YouTube ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

Playlist

Uploads from Fireship · Fireship · 0 of 60

← Previous Next →
1 Angular 4 Development and Production Environments with Firebase
Angular 4 Development and Production Environments with Firebase
Fireship
2 OAuth with Angular and Firebase Tutorial
OAuth with Angular and Firebase Tutorial
Fireship
3 Anonymous Authentication with Angular and Firebase - Lazy Registration
Anonymous Authentication with Angular and Firebase - Lazy Registration
Fireship
4 Angular Router Guards for Firebase Users
Angular Router Guards for Firebase Users
Fireship
5 Angular Firebase CRUD App with NoSQL Database Tutorial
Angular Firebase CRUD App with NoSQL Database Tutorial
Fireship
6 Upload Files from Angular to Firebase Storage
Upload Files from Angular to Firebase Storage
Fireship
7 How to Deploy an Angular App to Firebase Hosting
How to Deploy an Angular App to Firebase Hosting
Fireship
8 Sharing Data between Components in Angular
Sharing Data between Components in Angular
Fireship
9 Loading Spinners for Asynchronous Firebase Data
Loading Spinners for Asynchronous Firebase Data
Fireship
10 Angular 4 Transactional Email with Google Firebase Cloud Functions
Angular 4 Transactional Email with Google Firebase Cloud Functions
Fireship
11 Firebase Database Rules Tutorial
Firebase Database Rules Tutorial
Fireship
12 Autocomplete Search with Angular4 and Firebase
Autocomplete Search with Angular4 and Firebase
Fireship
13 Reddit Inspired Upvoting System with Angular and Firebase NoSQL
Reddit Inspired Upvoting System with Angular and Firebase NoSQL
Fireship
14 Angular Drag-and-Drop File Uploads to Firebase Storage
Angular Drag-and-Drop File Uploads to Firebase Storage
Fireship
15 Text Translation with Firebase Cloud Functions onWrite and Angular 4
Text Translation with Firebase Cloud Functions onWrite and Angular 4
Fireship
16 Custom Usernames with Firebase Authentication
Custom Usernames with Firebase Authentication
Fireship
17 Twitter-Inspired Follow Unfollow Feature with Firebase and Angular 4
Twitter-Inspired Follow Unfollow Feature with Firebase and Angular 4
Fireship
18 Simple Pagination with Firebase and Angular 4
Simple Pagination with Firebase and Angular 4
Fireship
19 How to Connect Firebase Users to their Data - 3 Methods
How to Connect Firebase Users to their Data - 3 Methods
Fireship
20 Add Toast Message Notifications to your Angular App
Add Toast Message Notifications to your Angular App
Fireship
21 Facebook-Inspired Reactions System with Angular and Firebase
Facebook-Inspired Reactions System with Angular and Firebase
Fireship
22 Learn NgModule in Angular with Examples
Learn NgModule in Angular with Examples
Fireship
23 Lazy Loading Components in Angular 4
Lazy Loading Components in Angular 4
Fireship
24 Stripe Checkout Payments with Angular and Firebase - Part 1
Stripe Checkout Payments with Angular and Firebase - Part 1
Fireship
25 Process Stripe Payments with Firebase Cloud Functions - Part 2
Process Stripe Payments with Firebase Cloud Functions - Part 2
Fireship
26 Selling Digital Content in Angular with Stripe Payments - Part 3
Selling Digital Content in Angular with Stripe Payments - Part 3
Fireship
27 Angular 4 Full Text Search with Algolia - Part 1
Angular 4 Full Text Search with Algolia - Part 1
Fireship
28 Algolia with Firebase Cloud Functions - Part 2
Algolia with Firebase Cloud Functions - Part 2
Fireship
29 Firebase Phone Authentication in Angular 4
Firebase Phone Authentication in Angular 4
Fireship
30 Top 7 RxJS Concepts for Angular Developers
Top 7 RxJS Concepts for Angular Developers
Fireship
31 Learn Angular Animations with 5 Examples
Learn Angular Animations with 5 Examples
Fireship
32 Advanced Firebase Data Filtering (Multi-Property)
Advanced Firebase Data Filtering (Multi-Property)
Fireship
33 Realtime Maps with Mapbox + Firebase + Angular
Realtime Maps with Mapbox + Firebase + Angular
Fireship
34 Angular Reactive Forms with Firebase Database Backend
Angular Reactive Forms with Firebase Database Backend
Fireship
35 Send Push Notifications in Angular with Firebase Cloud Messaging
Send Push Notifications in Angular with Firebase Cloud Messaging
Fireship
36 Top 7 Ways to Debug Angular 4 Apps
Top 7 Ways to Debug Angular 4 Apps
Fireship
37 Infinite Scroll with Angular and Firebase
Infinite Scroll with Angular and Firebase
Fireship
38 Use TypeScript with Firebase Cloud Functions
Use TypeScript with Firebase Cloud Functions
Fireship
39 Realtime Graphs and Charts with Plotly and Firebase
Realtime Graphs and Charts with Plotly and Firebase
Fireship
40 Role-Based User Permissions in Firebase
Role-Based User Permissions in Firebase
Fireship
41 User Presence System in Realtime - Online, Offline, Away
User Presence System in Realtime - Online, Offline, Away
Fireship
42 Location-based Queries with GeoFire and Angular Google Maps
Location-based Queries with GeoFire and Angular Google Maps
Fireship
43 Angular ngrx Redux Quick Start Tutorial
Angular ngrx Redux Quick Start Tutorial
Fireship
44 Angular Ngrx Effects with Firebase Database
Angular Ngrx Effects with Firebase Database
Fireship
45 Progressive Web Apps with Angular
Progressive Web Apps with Angular
Fireship
46 Angular Ngrx with Firebase Google OAuth User Authentication
Angular Ngrx with Firebase Google OAuth User Authentication
Fireship
47 RxJS Quick Start with Practical Examples
RxJS Quick Start with Practical Examples
Fireship
48 Send SMS Text Messages with Twilio and Firebase
Send SMS Text Messages with Twilio and Firebase
Fireship
49 Firebase Database Performance Profiling
Firebase Database Performance Profiling
Fireship
50 Native Desktop Apps with Angular and Electron
Native Desktop Apps with Angular and Electron
Fireship
51 Subscription Payments with Stripe, Angular, and Firebase
Subscription Payments with Stripe, Angular, and Firebase
Fireship
52 Firestore with AngularFire5 Quick Start Tutorial
Firestore with AngularFire5 Quick Start Tutorial
Fireship
53 Angular HTTP Client Quick Start Tutorial
Angular HTTP Client Quick Start Tutorial
Fireship
54 Google Sign-In with Firestore Custom User Data
Google Sign-In with Firestore Custom User Data
Fireship
55 Star Review System from Scratch with Firestore + Angular
Star Review System from Scratch with Firestore + Angular
Fireship
56 Angular Chatbot with Dialogflow (API.ai)
Angular Chatbot with Dialogflow (API.ai)
Fireship
57 Learn @ngrx/entity and Feature Modules
Learn @ngrx/entity and Feature Modules
Fireship
58 Infinite Scroll Pagination with Firestore
Infinite Scroll Pagination with Firestore
Fireship
59 Faster Firestore via Data Aggregation
Faster Firestore via Data Aggregation
Fireship
60 Contentful - CMS for Angular Progressive Web Apps
Contentful - CMS for Angular Progressive Web Apps
Fireship

Related Reads

📰
Cursor Pricing 2026: Free vs Pro vs Ultra — Which Plan?
Learn how to choose the right Cursor plan for your coding needs and budget, and discover how this Agentic AI coding tool can boost your productivity
Dev.to AI
📰
enable Consistent AI Coding with Persistent Context Layers
Learn how persistent context layers can improve AI coding consistency and reliability
Dev.to AI
📰
LeetCode Isn’t Dead. Your Interview Prep Strategy Is.
Update your interview prep strategy to focus on practical skills and real-world problem-solving, as LeetCode-style interviews are evolving
Medium · Programming
📰
Build a UGC video moderation pipeline with FFmpeg + NudeNet
Learn to build a UGC video moderation pipeline using FFmpeg and NudeNet to ensure safe and respectful user-generated content
Dev.to · Mason K
Up next
Copilot Cowork: Setup, Skills, Plugins & Pricing
Matt Tutorials
Watch →