Hacker Newsnew | past | comments | ask | show | jobs | submit | samlinnfer's commentslogin


JEP 445: Unnamed Classes and Instance Main Methods

Released in Java 21

https://openjdk.org/jeps/445


It's a shame that they only introduced this as a feature only for single-file programs.

It would make Java a much better language in my eyes if it allowed package-level methods, or even multiple records/classes per file. But apparently "impact on how Java code is written in general" is not wanted.


People change their minds once they get used to something. There's reason to have patience.


:-) So not even remotely dead.


On Linux it is often already used for window manager specific shortcuts.


Kangxi emperor being disguised as a commoner in some kind of undercover boss scenario is a common trope.


Bad actors are grooming Google by publishing their own blogs!


Yea, not entirely sure what's any different than all of the rest of history?????

Bad actors have been trying to poison facts for-fucking-ever.

But for whatever reason, since it's an LLM, it now means something more than it did before.


I just have a cronjob that does:

    #!/usr/bin/env bash

    cert_check() {
        server=$1
        host=$2
        port=$3

        str=`ssh "$server" "echo | openssl s_client -servername $host -connect localhost:$port | openssl x509 -noout -checkend 604800"` || true
        if ! echo "$str" | grep -q 'Certificate will not expire' ; then
            echo "$str" | ./send-email.py "Certificate \"$host\" on $server will expire in 7 days" \
        fi
    }

    cert_check name myserver.com 443


If you’re automating the check why not automate the renewal directly?


I've missed expired certificates because of a configuration issue that broke the certbot automation. Granted, I could've read the certbot journalctl output, but 99.9% of the time that's a waste of time. Not like there was anything mission-critical on there.


who says they don't have the renewal automated?


Don’t worry, I upload Zuck’s photos to facebook for him.


It's not about recycling, their regular garbage goes into the ocean too (after they dump it into their rivers).


Let's take this to the extreme, you just won the lottery, which one of your friends will you tell?


It doesn't say bamboo is inherently unsafe, it says due to a shortage of bamboo meeting the required standards (4 years old, 7.5cm for vertical and 9cm for horizontal supports) and construction sites using substandard bamboo as substitute have resulted in collapses in heavy weather conditions.

It's easier just to require steel than to play bamboo police.


Might be nitpicking, but the Chinese text is actually saying it's for both (a) shortage of good bamboo, AND (b) safety in hurricanes, etc. It did not imply that bamboo which met the required standards is safe enough for these conditions. But I agree with your conclusion: safety is kinda important when it comes to scaffolding, on which people would walk around...


Is no one playing steel police?


Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: