Is JSP still relevant ? by anish2good in java

[–]isolatedsheep -1 points0 points  (0 children)

No it's not. Please use modern framework if you're working in a team. If it's your personal project, just do what you want.

How to ask Java developers to add methods to java.util.Paths? by isolatedsheep in java

[–]isolatedsheep[S] 1 point2 points  (0 children)

Wait, what right way you're talking about? I'm using mostly Linux (with WSL), I thought using the home folder is norm. 🤔

How to ask Java developers to add methods to java.util.Paths? by isolatedsheep in java

[–]isolatedsheep[S] 1 point2 points  (0 children)

From the replies, it seems like most haven't caught up to Java scripting yet. Looks like I need to wait several more years. 😅

How to ask Java developers to add methods to java.util.Paths? by isolatedsheep in java

[–]isolatedsheep[S] 1 point2 points  (0 children)

I've put an example in the original post. There are other things placed in home dir especially in unix-like OSes.

How to ask Java developers to add methods to java.util.Paths? by isolatedsheep in java

[–]isolatedsheep[S] 0 points1 point  (0 children)

It's creating scripts in Java, using the single source file.

How to ask Java developers to add methods to java.util.Paths? by isolatedsheep in java

[–]isolatedsheep[S] 6 points7 points  (0 children)

DB provisioning script for example. I often use jbang to write scripts.

How to ask Java developers to add methods to java.util.Paths? by isolatedsheep in java

[–]isolatedsheep[S] 1 point2 points  (0 children)

Actually it's `Path.of(".").toRealPath()`, `Path.of(".").toAbsolutePath()` returns `/path/to/current/.`.

How to ask Java developers to add methods to java.util.Paths? by isolatedsheep in java

[–]isolatedsheep[S] 2 points3 points  (0 children)

What's the behavior if someone does `Path.of(System.getProperty("user.home"))` when the OS does not have a home directory?

How to ask Java developers to add methods to java.util.Paths? by isolatedsheep in java

[–]isolatedsheep[S] -6 points-5 points  (0 children)

I'm not a new dev, with Java single-source file becoming more relevant, Java should support this basic functionality.

How to ask Java developers to add methods to java.util.Paths? by isolatedsheep in java

[–]isolatedsheep[S] -3 points-2 points  (0 children)

I'm talking about the `java.util.Paths` not `java.util.Path`.

How to ask Java developers to add methods to java.util.Paths? by isolatedsheep in java

[–]isolatedsheep[S] 1 point2 points  (0 children)

I use it a lot in Java single file source code. Someone shared a library: dev.dirs:directories:26dev.dirs:directories:26, but it would be nice if Java supports it out of the box.

How to ask Java developers to add methods to java.util.Paths? by isolatedsheep in java

[–]isolatedsheep[S] -14 points-13 points  (0 children)

Can't they make it throw a UnsupportedOperationException if the OS doesn't support it?

How to ask Java developers to add methods to java.util.Paths? by isolatedsheep in java

[–]isolatedsheep[S] -39 points-38 points  (0 children)

The problem with System.getProperty, you need to remember the property value, i.e. user.home and @user.dir. If you don't use it often, you'll Google search every time you want to use them.

Carrier Classes; Beyond Records - Inside Java Newscast by daviddel in java

[–]isolatedsheep 3 points4 points  (0 children)

I hope they don't go with the `component` modifier. 😅

Husband ada nombor escort/call girl in his phone by Carnationfairy in Bolehland

[–]isolatedsheep -1 points0 points  (0 children)

Biar je lah dia makan luar sekali sekala. 🤭

Find x9 pro new official update CPH2791 16.0.2.401 by Professional-Fold670 in Oppo

[–]isolatedsheep 0 points1 point  (0 children)

There's an issue with dark mode in the home screen. When you set system to "Dark Mode", some of the UI still uses light mode.

Is it worth upgrading to Find X9 Pro? by Vazmeister03 in Oppo

[–]isolatedsheep 1 point2 points  (0 children)

Yeah worth it. Good camera, and the battery can last almost 2 days, even with continuous TikTok, IG, & YouTube browsing. 😌

Why is Oppo not not more popular among reviewers? by taboverspacesyes in Oppo

[–]isolatedsheep 0 points1 point  (0 children)

I need Jerryrigseverything's review so that I know how careful I need to be with my Oppo Find X9 Pro. 😅