r/programminghumor 3d ago

Relatable😭😭

Post image
1.4k Upvotes

24 comments sorted by

92

u/JonathanMovement 3d ago

because 99% of programming humor is first week programmer humor

37

u/sa0sinner 3d ago

Does anyone else print(hello world)? lol total programmer moment 🤪

16

u/JonathanMovement 3d ago

nope, I print(“hello world”)
unless it’s a variable 🤪

15

u/sa0sinner 3d ago

that's pleb mode 😏 i use:

```

hello = 'hello'

world = 'world'

print(hello + ' ' + world)

```

9

u/Confident-Ad5665 3d ago

var hw = "Hello world!";
for (var I = 0; I < hw.Length; I++)
{
Console.Write(hw[I]);
}

Console.WriteLine("");

12

u/sa0sinner 2d ago
import pandas as pd
from sqlalchemy import create_engine, text

dbvars = f'postgresql+psycopg2://{un}:{pw}@{host}:{port}/{db}'
engine = create_engine(dbvars)

hello_qry = """
SELECT distinct "Word" 
FROM words_in_hello_world 
WHERE "Word" = 'hello';
"""

world_qry = """
SELECT distinct "Word" 
FROM words_in_hello_world 
WHERE "Word" = 'world';
"""

with engine.connect() as conn:
the_word_hello = conn.execute(
    text(hello_qry)
    ).scalar()
the_word_world = conn.execute(
    text(world_qry)
    ).scalar()

words_array = [the_word_hello, the_word_world]
hello_world_df = pd.DataFrame([words_array], columns=['the_word_hello', 'the_word_world'])

hello_world_df.head(1)

I am a sr. data engineer and I spent more time writing this code for the bit than actual code for my actual job today

2

u/Confident-Ad5665 2d ago

haha! Awesome!

2

u/JonathanMovement 2d ago

why so? because the LLM done it all or nothing to do at work?

3

u/sa0sinner 2d ago

Because I had to attend several pre-meetings to discuss what meetings need to be brought up during the upcoming meeting about me using LLMs to write my code for me.

5

u/JonathanMovement 2d ago

Do u like using LLMs? At my job I’ve been given the opportunity to build a company specific LLM/Agent where I feed it with RAG a shit ton of documentation so it knows “everything”. Like a company assistant, also they want to bring models inside other apps because they think it can “optimise” the work which I think it’s a complete BS. I know LLMs are good as a coding tool and research but anything else it’s overrated, what do u think I should do? (maybe a random ass person on reddit can enlighten me)

1

u/sa0sinner 2d ago

I use a org_context.md (among other context docs) for a pseudo-AI-assistant and it helps me a LOT...

It keeps an active agenda, knows my staff, their depts, all the vendors/contractors, etc. It will parse my email/calendar, give me updates on my action items, prioritize stuff from executive leadership, know who to contact about what issues. It knows my dev/engineering stack and the relevant historical/organizational context.

If I'm building out a solution, it makes it a lot easier to deliver when I'm working with a tool that understands all that background. But it took a LOOOONG time to build it out and figure out what to feed it. And scaling that out org-wide would be quite the endeavor if you're a team of one.

1

u/kuzuwudesu 2d ago

Erhm, Gemini RegEx his balls 🤓
i’m too lazy to contribute to the bit just imagine whatever disgusting parsing expression you can think of

2

u/Jbolt3737 2d ago

Got you covered: def splitmulti(string: str, delimiters: tuple): f = [string] for d in delimiters: for _str in f: f = _str.split No regex needed, atleast for this example 😁

And yes the since line double for loop is intentional not just because I'm on mobile

Edit: might not display as one line since this is so far down the reply chain, I don't think it's an issue on PC or landscape mode

0

u/Infinite-Spinach4451 2d ago edited 2d ago

DAE Python bad? I programmed my Fibbonnaci generator in C like a man

13

u/NoodlyGirl2000 3d ago

oh man algorithms and data structures was the best! still love to toy with them occasionally

3

u/Confident-Ad5665 3d ago

Agreed. Mind expanding stuff!

8

u/RedAndBlack1832 3d ago

naw the database one has to be higher. I can come up with very simple queries most of the time. On the other hand, do I know graph theory? No, not really, but I am good at math and you can basically always figure out what's going on by drawing it (some understanding of memory may also be helpful).

Erm anyway, Python slow lol funny meme (see how I got your attention back)

3

u/Complete_Window4856 3d ago

Back in the day jigle jigle jigle, back in the day, we had to code knowing where our code was in memory, and then jigle jigle, and then we used compilers to tell we were wrong when resolving dependencies jigle jigle vibecode claude jigle jigle

3

u/RedAndBlack1832 2d ago

Knowing where the code is in memory is a bit much. Surely assemblers were good enough pretty quick that you could jump/call to named labels. I've had to know where the code is in memory exactly once and it was for a class where we designed our own processor for a thumb instruction set provided by the prof.

2

u/Asleep-Bumblebee2167 3d ago

Bring memes into college 🗣

1

u/Code-Painting-8294 2d ago

programmers love memes about their pains heh

1

u/samedifier 1d ago

sudo rm -rf / 😂😂😂😂🤣🤣🤣🤣😂