Pricefield | Lemmy
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
@[email protected] to [email protected] • 7 months ago

Anon tries programming in Java

lemmy.world

message-square
242
fedilink
890

Anon tries programming in Java

lemmy.world

@[email protected] to [email protected] • 7 months ago
message-square
242
fedilink
  • @[email protected]
    link
    fedilink
    19•
    edit-2
    7 months ago

    Python:

    print("Hello world!")
    
    • dch82
      link
      fedilink
      12•
      edit-2
      7 months ago

      C:

      #include <stdio.h>
      
      int main() {
          printf("Hello World!");
          return(0);
      }
      

      EDIT: POSIX-compatible shell:

      echo "Hello World!"
      
      • @[email protected]
        link
        fedilink
        3•
        edit-2
        7 months ago

        Python2 is only one character longer:

        print “Hello world!”

        And you get proper data types too.

        • dch82
          link
          fedilink
          2•7 months ago

          Shell is only meant for duct tape scripts, you know to tie two regular compiled programs together

      • @[email protected]
        link
        fedilink
        5•7 months ago

        PHP:

        Hello World!
        
        • @[email protected]
          link
          fedilink
          4•7 months ago

          Rust:

          Still fighting the burrito check fil er
          

[email protected]

[email protected]
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: [email protected]

This is a place to share greentexts and witness the confounding life of Anon. If you’re new to the Greentext community, think of it as a sort of zoo with Anon as the main attraction.

Be warned:

  • Anon is often crazy.
  • Anon is often depressed.
  • Anon frequently shares thoughts that are immature, offensive, or incomprehensible.

If you find yourself getting angry (or god forbid, agreeing) with something Anon has said, you might be doing it wrong.

  • 60 users / day
  • 392 users / week
  • 1.71K users / month
  • 4.58K users / 6 months
  • 1 subscriber
  • 1.53K Posts
  • 68.7K Comments
  • Modlog
  • mods:
  • 🍹Early to RISA 🧉
  • UI: 0.18.4
  • BE: 0.18.2
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org