When you come back from vacation
@programmerhumor

all 14 comments

sorted by: hot top controversial new old
[–] 39 points 3 years ago

I legitimately lol'd at this. Any time I return from a couple weeks off I'm like "what year is it" + "can you repeat all the stuff about the things".

  • source
  • [–] 21 points 3 years ago (3 children)

    Me temporarily forgetting the structure of an if statement in Shell.

  • source
  • hideshow 6 child comments
  • [–] 11 points 3 years ago

    I'm more

    Hello print("World")
    
  • source
  • [–] 11 points 3 years ago* (1 child)
    void HelloWorld(string) {
      if (string == "print") {
        Serial.print("Hello World"};
      }
    }
    

    Solved it.

  • source
  • hideshow 2 child comments
  • [–] 4 points 3 years ago

    im more of a c person index[array]

  • source
  • [–] 1 point 2 years ago (1 child)

    (format t “Hello ~a” 'World). If I’m on vacation and come back to the land of C based languages I will have reverted to the only syntax I enjoy working in.

  • source
  • hideshow 2 child comments
  • [–] 1 point 2 years ago

    @anders @nthcdr lda #0 ; Load accumulator with character code for NULL
    sta $0400 ; Store it in the screen memory to clear the screen
    ldx #0 ; Initialize X register to 0
    loop lda message,x ; Load the next character from the message
    beq done ; If the character is NULL (end of string), we are done
    sta $0400,x ; Store the character in the screen memory
    inx ; Increment X register
    bne loop ; Branch back to the loop
    done rts ; Return from subroutine
    message .text "Hello World!",0 ; Null-terminated string

  • source
  • parent
  • [–] 1 point 2 years ago
    void HelloWorld(void (* func)(const char*)) {
        func("Hello world!");
    }
    
  • source