I was definitely a Commodore kid, and BASIC was my first language. Maybe it’s nostalgia, but I still like BASIC for hobby stuff.

  • 🇰 🌀 🇱 🇦 🇳 🇦 🇰 ℹ️@yiffit.net
    link
    fedilink
    English
    arrow-up
    10
    ·
    edit-2
    7 months ago

    Easiest Hello World program ever was in BASIC.

    10 PRINT "Hello World"
    20 GOTO 10
    

    Don’t even have to call a library or declare a variable! Meanwhile, I can’t even remember the shit you need to put in front of every C/C++ program (HREF/void.h or something; it’s usually there automatically these days in some compilers, like Visual Studio).

    • xyzzy@lemm.ee
      link
      fedilink
      arrow-up
      3
      ·
      edit-2
      7 months ago

      C

      #include <stdio.h>

      int main() {

      printf(“Hello, world”);

      return 0;

      }

      C++

      #include <iostream>

      int main() {

      std::cout << “Hello, world” << std::endl;

      return 0;

      }