r/ProgrammerHumor • • Apr 12 '19

It do be like that sometimes

Post image
16.7k Upvotes

365 comments sorted by

View all comments

290

u/Huwbacca Apr 12 '19

"how do I do this manipulation to an array?"

"How fucking dare you. Do you know how inefficient that is? Dont you know the best way to do xyz? You're an idiot"

"Ok. But... I have to do it this way. Anyone know how?"

297

u/FSCicotti Apr 12 '19

Me: How do I do A?

SO: You do B.

Me: But I want to do A.

SO: No one does A.

Every damn time

70

u/gimpy_sunbro Apr 12 '19

That's what you get when you expect a site to be run by robots but all you have is human beings. According to the philosophy of the site when you ask for A, even if A is the worst idea in the world, answers should be for A. Whether someone is going to suffer from the consequences of doing A is absolutely irrelevant.

But humans will rebel against A, B is the way to go. And that's how everyone just keeps abusing the site from all angles, they just don't get with the program.

77

u/Huwbacca Apr 12 '19

ME: I can't do B because of certain limits.

SO: Remove them.

ME: Those limits are the data. I need the data. This entire exercise is pointless without the data.

SO: Your data is wrong. Redo the last 12 months and do B.

13

u/Valiade Apr 12 '19

"Thats about as easy as you redoing the last 20 years of your life and not being a sperg lord."

5

u/I_spoil_girls Apr 12 '19

Me: How do I do <insert programming problem here>?

SO: You don't. You practice medicine.

Me: But I need to solve <insert programming problem> because the deadline is tomorrow.

SO: You practice medicine.

Me: My boss's gonna fire me. I have a family to feed.

SO: Practice medicine, dammit! That's how you get the money.

5

u/[deleted] Apr 12 '19

And so many people there can't think outside the box and realize for very specific scenarios that A is actually needed, despite its perceived inefficiency or the fact that other options are better in the ideal scenario that they made in their heads.

6

u/user93849384 Apr 12 '19

despite its perceived inefficiency

There is also a huge problem with understanding efficiency. A poorly constructed query that runs an hour while rewriting it can bring it down to seconds is obviously something that should be changed.

Drastically changing data structures and code to reduce processing a transaction from 1 second to 0.99 seconds is probably not worth it.

1

u/Idixal Apr 12 '19

The correct way to structure an answer where you think someone is doing the wrong thing would be:

Here’s how you do A: <answer>
There are some problems to that approach (explained). Here’s an alternative: <B explained>

More verbose is always better than not answering the question. But as you said, we’re just a bunch of talking monkeys.

1

u/Casceus Apr 12 '19

I mean you can tell that there is a better way, but also answer the question.

9

u/bhagatkabhagat Apr 12 '19

But once in a while, you get questions where some legit discussions happen. Like, I love stumbling upon such questions. But they are far and few.

11

u/VonTum Apr 12 '19

This discussion was moved to chat, please remember, the comment section is for providing insight and not for discussion

2

u/grishkaa Apr 12 '19

Oh yeah. Had this one myself. Back in 2011, I asked how to keep the virtual menu button for my Android app on Honeycomb tablets while targeting Honeycomb. They told me that "you don't do that, you use the action bar". Yeah, thanks, just let me do a complete UI redesign of my app real quick.

14

u/ou_ryperd Apr 12 '19

Closed as not constructive

23

u/askeeve Apr 12 '19

It's not limited to Stack Overflow either. At work I deal with a pretty large code base. If you ever ask for advice about how to fix some bug or the best way to implement some algorithm or something there are inevitable suggestions that you should rewrite thousands of lines of code. Like... Bruh... Yeah I probably should, but we've got deadlines and shit you know?

1

u/[deleted] Apr 12 '19

SHOW ME WHAT YOU'VE DONE FIRST ! I'M NOT YOUR SERVANT

2

u/Huwbacca Apr 12 '19

Lol. Reminds me of an instance:

"Hey all, been reading into how xyz handles classes, and it's a bit strange to me but there's no documentation on why it's different so I was wondering if anyone knew about the history and reasons why?"

"Look if you knew anything about coding you wouldn't be trying to anything that isn't OOP. You're clearly a moron at this"

"Uh... ... ... ... What?"

1

u/uranus_be_cold Apr 12 '19

On the other hand, you also see a fair amount of questions like:

"I need to develop a full website that uses an XML 'database' and look up stock prices using tcp sockets. The server code needs to be written in assembly language. Can someone do that for me?"

-2

u/sizur Apr 12 '19

Understanding why A is a bad approach and why XYZ is better is often much more important than doing A. No shame in not knowing -- everybody was there. But shame in not wanting to learn why in addition to how.

3

u/Huwbacca Apr 12 '19

I mean, I wouldn't go to stack overflow for that though. I go there to solve problems I can't solve myself. Learning can wait til I haven't got an immediate issue.

1

u/sizur Apr 12 '19 edited Apr 12 '19

Alright, let's learn and teach how to do A then. Let's even implement it as a library to help others do A, even though this was considered already and is likely the reason why you don't have A api in the first place.

I'm always grateful when somebody points me to why A is a bad idea before I do A, no matter where.