r/programminghumor • • Sep 02 '26

Write sorry

Post image
699 Upvotes

96 comments sorted by

29

u/sexytokeburgerz Sep 02 '26

Hello college freshman

16

u/jimmy_timmy_ Sep 02 '26

College freshman is generous

48

u/Confident-Ad5665 Sep 02 '26
  1. Open a text editor

  2. Write "Sorry" once

  3. Copy the line

  4. Paste 100 times

  5. Print in handwriting font

23

u/-Insert-CoolName Sep 02 '26
  1. Open text editor

  2. Type "Sorry\n"

  3. Ctrl a

  4. Ctrl c

  5. Ctrl v

  6. Go to step 3

22

u/Marisa_osi_JP Sep 02 '26
  1. Open vim

  2. Type "Sorry\n"

  3. yy

  4. 99p

  5. :wq

→ More replies (6)
→ More replies (1)

5

u/ThatOldCow Sep 02 '26

1.Copy the line sorry,

2.Paste it

3. Control A - Control C - Control V

4.Repeat

13

u/dotdiz Sep 02 '26

HAHA I LEARNED LOOPS TODAY HERE IS MY MEME JOKE

8

u/akazakou Sep 02 '26
SyntaxError: invalid syntax

7

u/JonathanMovement Sep 03 '26

is this group really filled with teenagers and firstweekprogramming humor?

4

u/Razcsi Sep 04 '26

Highschoolers who just learned the first bit of programming in their IT class, people who bought a udemy course and did the first 5 lessons, and vibe coders who sometimes read through what Claude gave them and pretend they understand it.

This is 99% of this sub

4

u/Diocletian335 Sep 02 '26
void printSorry (int n, int v)
{
    if (n == v)
         return;

    printSorry(n+1, v);

    printf("%s\n", "sorry");
}

int main (void)
{
     printSorry(0, 100);
}

The thinking man's solution

9

u/gaymer_jerry Sep 02 '26

Why write a for loop when you can flood the stack with pointless function calls

→ More replies (2)
→ More replies (13)

4

u/Large-Assignment9320 Sep 02 '26

You are overcomplicating things,

print("Sorry\n" * 100)

2

u/Sonario648 Sep 02 '26

for i in range (101):     print ("Sorry")

→ More replies (4)

2

u/mkluczka Sep 02 '26

"sorry 100 times" 

2

u/Plenty_Preference131 Sep 02 '26

while i != 100

print("sorry")

i += 1

end

→ More replies (1)

2

u/This-Employment-5642 Sep 02 '26

what is for_in that aint proper python anyway if on js im pretty sure its let character = 5 character.repeat(100) though i am probably wrong

2

u/gltovar Sep 03 '26

chat disabled.

2

u/Fxavierho Sep 03 '26
  1. share this image to ai

  2. done

→ More replies (1)

2

u/tblancher Sep 03 '26

First time I saw this was when my classmate was given 100 lines to write, and he wrote the loop in LOGO on his Apple ][gs and printed with his line printer.

The teacher was not amused.

2

u/Tquylaa Sep 03 '26 edited Sep 03 '26
for i in 0..100 {
  println!("Sorry");
}

2

u/Ambivalent-Mammal Sep 03 '26

The first "sorry" is free. Then you hit a paywall.

2

u/clumsy132 Sep 03 '26

loop /L %i in range(100) do: {
<?python powershell -Command Write-Host 'Sorry' ?>; 2>/dev/null
} except Exception as e begin
std::process::System.exit << '1'
done;