Suicide Server Lemmy
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Ragdoll X@sh.itjust.works to Programmer Humor@programming.dev · 20 days ago

Python vs. Java

sh.itjust.works

video
message-square
28
link
fedilink
5
video

Python vs. Java

sh.itjust.works

Ragdoll X@sh.itjust.works to Programmer Humor@programming.dev · 20 days ago
message-square
28
link
fedilink
  • thenextguy@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    20 days ago

    Actually… since around Java 21, it’s just

    void main() {
        println("Hello World");
    }
    

    https://blog.jetbrains.com/idea/2024/02/helloworld-and-main-meet-minimalistic/#class-‘helloworld-before-and-after-java-21

    • Solemarc@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      20 days ago

      I vaguely remember hearing this this was only really available for toy code and that this function created the class ignored the arguments and qualified println when you compiled it, so it wasn’t actually that useful?

      • bigboismith@lemmy.world
        link
        fedilink
        arrow-up
        0
        ·
        20 days ago

        Printing to console is often only used for toy code anyway.

        • silasmariner@programming.dev
          link
          fedilink
          arrow-up
          1
          ·
          20 days ago

          Wait, how do you debug your code?

          • Magnum, P.I.@infosec.pub
            link
            fedilink
            arrow-up
            2
            ·
            10 days ago

            Using a debugger?

            • silasmariner@programming.dev
              link
              fedilink
              arrow-up
              1
              ·
              8 days ago

              Guess you could do that, seems like a pain though

              • Magnum, P.I.@infosec.pub
                link
                fedilink
                arrow-up
                1
                ·
                8 days ago

                ???

          • Ethan@programming.dev
            link
            fedilink
            English
            arrow-up
            1
            ·
            18 days ago

            … with a debugger

            • silasmariner@programming.dev
              link
              fedilink
              arrow-up
              1
              ·
              8 days ago

              Meh

    • JADEx@programming.dev
      link
      fedilink
      arrow-up
      1
      ·
      12 days ago

      In more detail, this feature was included as a preview in Java 21 and officially adopted in Java 25.

Programmer Humor@programming.dev

programmer_humor@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmer_humor@programming.dev

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 296 users / day
  • 3.16K users / week
  • 5.74K users / month
  • 16.8K users / 6 months
  • 1 local subscriber
  • 29.9K subscribers
  • 1.12K Posts
  • 21.2K Comments
  • Modlog
  • mods:
  • adr1an@programming.dev
  • Feyter@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • UI: unknown version
  • BE: 0.19.12
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org