Insert <it’s not much but it’s honest work> meme. It only supports ints and bools, some logic and simple arithmetics and it compiles to Java but damn was it hard to get that far.

Can you guess what everything does?

  • bleistift2@feddit.de
    link
    fedilink
    English
    arrow-up
    0
    ·
    edit-2
    8 months ago
    class Scratch {
      // Start of file
    
      public static void main(args: string[]) {
        int number1 = 2;
        number 1 = 10;
        int number2 = 13;
        boolean fo_sure = true;
      
        if (fo_sure) {
          number1 = number1 + 5 - 10 * 2 / 3;
        }
      
        System.out.println(number1);
      
        boolean canYouSeeMee = false;
        System.out.println(canYouSeeMe);
        if (false) {
          canYouSeeMe = false;
        } else {
          canYouSeeMe = true;
        }
        System.out.println(canYouSeeMe);
      } 
    }
    

    What’d I win?

    I find it interesting and unnerving that I understood the code, but not the youthspeak.

  • bleistift2@feddit.de
    link
    fedilink
    English
    arrow-up
    0
    ·
    8 months ago

    It only supports ints and bools, some logic and simple arithmetics

    That’s more than you need.

  • bleistift2@feddit.de
    link
    fedilink
    English
    arrow-up
    0
    ·
    8 months ago

    It only supports ints and bools, some logic and simple arithmetics and it compiles to Java but damn was it hard to get that far.

    I have a bachelor’s in computer science and I don’t think I would be able to do that…

        • WanakaTree@lemm.ee
          link
          fedilink
          arrow-up
          0
          ·
          8 months ago

          I definitely read this as you were a third year French major being forced to taking a compiler course for a moment and went wtf. Then my brain slapped itself and realized you mean you’re a student in France.

          • bleistift2@feddit.de
            link
            fedilink
            English
            arrow-up
            0
            ·
            8 months ago

            Nah, I think they’ve won the French version of The Bachelor 2 years in a row and are about to win the third.