Removing the boilerplate of the main class might make it easier for beginners, but I feel like it's taking away an important learning step. Writing out the full class and main method really helped me understand the basics of Java-like classes, objects. It's one of those fundamentals that builds a solid foundation!
You're absolutely right that these are fundamentals and newbies will still have to learn them as they go from a simple "Hello, World" to a more sueful program. This change doesn't hide those concepts, it just removes them from the critical path to a first success and allows students to learn them as they need them instead of all up front (or ignoring them for a while).
Thanks, Sharat Chandar, for making the Java community an important part of the Java 23 launch stream! Thank you to everyone who helped with this detailed video! As Sharat often quotes: "Java First, Java Always"!!!
Love these videos. Please keep them coming; I need to get all the information I need, and this is a great way to show us what's new. Thank you all, and thanks to Sharat Chander for the community outreach.
Hi, i was currently exploring java WatchService. The problem i faced, suppose i am watching c://test// folder. I create a folder called test it would say ENTRY_CREATE: test but if i create a file under that new test folder called text.txt it says ENTRY_MODIFY: test and not ENTRY_CREATE:test/text.txt. Is it a bug or it just works like that?
Somewhat annoyingly, it works that way. Java's watch service mirrors OS file system watches and is not recursive. That means if you register a watch service for a folder, it is really *just that folder*, and (new) subfolders are not watched. If you want recursive watches, you need to install them in every folder (I recommend `Files.walkFileTree` for that) and then install new watch services every time a new directory is created. If you do all that, you will realize that the file system events only ever mention the directory/file that is new/changed/deleted and not the full path. I solved that by having a mao from watch keys to paths, so I can use a watch event's key to look up the full path. If you struggle solving this, let me know and I can put my solution in a gist.
This is great. Looking forward to explore this
i like java. ❤
Removing the boilerplate of the main class might make it easier for beginners, but I feel like it's taking away an important learning step. Writing out the full class and main method really helped me understand the basics of Java-like classes, objects. It's one of those fundamentals that builds a solid foundation!
You're absolutely right that these are fundamentals and newbies will still have to learn them as they go from a simple "Hello, World" to a more sueful program. This change doesn't hide those concepts, it just removes them from the critical path to a first success and allows students to learn them as they need them instead of all up front (or ignoring them for a while).
Thanks, Sharat Chandar, for making the Java community an important part of the Java 23 launch stream! Thank you to everyone who helped with this detailed video!
As Sharat often quotes: "Java First, Java Always"!!!
Love these videos. Please keep them coming; I need to get all the information I need, and this is a great way to show us what's new. Thank you all, and thanks to Sharat Chander for the community outreach.
Great! Heather Stephens have a remarkable energy.
Increasing versions like there is no tomorrow
consider breaking up this video into smaller chunks
more people will eventually watch it all.
Bring the low memory usage, I hope lilliput+leyden+valhalla can reduce java memory usage by ~50%
Hi from Sudamérica, Java always great, books with new features??
There hasn't been a new feature to books in ages. Ever since they invented pages, the project seems abandoned. :(
Hi, i was currently exploring java WatchService. The problem i faced, suppose i am watching c://test// folder. I create a folder called test it would say ENTRY_CREATE: test but if i create a file under that new test folder called text.txt it says ENTRY_MODIFY: test and not ENTRY_CREATE:test/text.txt. Is it a bug or it just works like that?
Somewhat annoyingly, it works that way. Java's watch service mirrors OS file system watches and is not recursive. That means if you register a watch service for a folder, it is really *just that folder*, and (new) subfolders are not watched. If you want recursive watches, you need to install them in every folder (I recommend `Files.walkFileTree` for that) and then install new watch services every time a new directory is created.
If you do all that, you will realize that the file system events only ever mention the directory/file that is new/changed/deleted and not the full path. I solved that by having a mao from watch keys to paths, so I can use a watch event's key to look up the full path.
If you struggle solving this, let me know and I can put my solution in a gist.
@@nipafx ok, thanks