bleistift2

joined 1 year ago
[–] [email protected] 1 points 9 months ago

Thanks, I corrected it.

[–] [email protected] 5 points 9 months ago (1 children)

There are even more optimization possibilities, but I wanted to stay as close to the original as possible.

[–] [email protected] 22 points 9 months ago (2 children)

I feel honored that you copied my meme. I guess we now get one for each day, with different colors?

[–] [email protected] 104 points 9 months ago (18 children)

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…

[–] [email protected] 66 points 9 months ago* (last edited 9 months ago) (6 children)
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.

[–] [email protected] 10 points 9 months ago

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

That’s more than you need.

[–] [email protected] 8 points 9 months ago (2 children)

This is actually funny. Imagine some automobile vendor misbehaving in some way and all other self-driving cars make a beeline for them just to ruin their crash statistics.

[–] [email protected] 65 points 9 months ago (34 children)

Whenever the compiler refuses to compile because of an unused var:

Hey Jeff, we know the variable is unused. WE CAN SEE THE SQUIGGLE

[–] [email protected] 29 points 9 months ago* (last edited 9 months ago) (2 children)

To anyone who is interested in a better design: Buttons should be labeled with verb+object combinations, for instance “Cancel subscription”. Also it’s better to use less generic words that apply to the task at hand, for instance “Terminate subscription”. Here, ‘cancel’ is the right word, so this hint doesn’t apply as well here.

[–] [email protected] 1 points 9 months ago

That input sucks, ui design

I have no clue what you’re trying to tell me with that.

view more: ‹ prev next ›