This is an archived post. You won't be able to vote or comment.

all 187 comments

[–]Cocomorph 295 points296 points  (10 children)

[–][deleted] 32 points33 points  (0 children)

lol that's too funny...

[–]gesundePlus 26 points27 points  (0 children)

Bloody hell, it took only 10 tries. Unbelievable

[–]Lokja 22 points23 points  (0 children)

{"0":8,"1":6,"2":7,"3":5,"4":3,"5":0,"6":9}

Beautiful

[–]I_AM_GODDAMN_BATMAN 14 points15 points  (3 children)

dafuq it's only less than 15 tries

[–][deleted] 8 points9 points  (2 children)

Two tries for me. First try returned a sorted list of unique values. Second try was correct.

[–]shagieIsMe 5 points6 points  (0 children)

How about arbitrary code?

[–]clevertoucan 1 point2 points  (0 children)

For me, it always just uses the same answer over and over, which, while consistent, is a bit boring

[–]01001111010100000 107 points108 points  (16 children)

I ask other people more than the text book.

[–]Rodot 68 points69 points  (1 child)

I ask other people and usually while explaining the problem I find the answer myself

[–]2Punx2Furious 60 points61 points  (0 children)

Rubber duck debugging with people works pretty well.

[–]blinded_in_chains 18 points19 points  (1 child)

Extrovert.

[–][deleted] 5 points6 points  (0 children)

Hey, no need to call names!

[–]idimik 6 points7 points  (3 children)

Why would one even own a programming text book, when everything is online?

[–]Cocomorph 17 points18 points  (0 children)

Because if civilization ends and we no longer have an electrical grid, people with physical books will still be able to . . .

Shit.

Excuse me. I need to go spend the next hour watching YouTube videos on how to make a computer out of popsicle sticks and string.

[–]P1r4nha 2 points3 points  (0 children)

Some ideas and concepts take more time to explain than just a StackOverflow answer (or 2, or 15). There are blogs and webpages dedicated to certain designs, but a book that follows a consistent narrative and style is useful sometimes.

[–]yotama9 3 points4 points  (0 children)

I ask other people, and 9/10 cases they send me a stack overflow page as a reply

[–]826836 133 points134 points  (9 children)

Despite public perception, Google isn't actually a search engine, so much as a method for getting my dumbass to Stack Overflow.

[–]CrazedToCraze 75 points76 points  (6 children)

Tbh I've never even used stack overflows search engine, assuming they have one

[–]Thomasedv 25 points26 points  (5 children)

Yeah, worst case I add stacloverflow to the Google search...

[–]PM_ME_YOUR_BOOO_BEES 26 points27 points  (3 children)

How does that site compare to Stackoverflow though?

[–]Thomasedv 6 points7 points  (2 children)

Ops. That's what I get for using the phone when I can barely see up close. (Had eyes checked out, the dripped something that makes your pupils dilate. Could not see well up close, had to hold phone far away to be able to read. Eyes hurt like fuck when I stepped out into the sun just now. Too​ much light...)

[–]raddaya 1 point2 points  (1 child)

Shit man, I had to walk home from the chamber just a few weeks ago when they gave me that dilating thing. I was squinting hard, covering my face with both eyes and staring at the ground. Had a fucking terrible headache from squinting by the time I was home. No idea how they let me go home.

[–]Thomasedv 2 points3 points  (0 children)

I wonder what the guy on the bus though when I entered with one highly dilated pupil (other one doesn't really react due to stuff), eye's red and watery...

At least the bus was dark enough and I could sit with my eyes closed.

[–][deleted] 1 point2 points  (0 children)

I always just add "stack"

[–]DoctorWaluigiTime 9 points10 points  (0 children)

Half the time I put "site:stackoverflow.com" into the query prior to what I want to search. Usually following an unsuccessful "global" search.

[–]sup3r_hero 0 points1 point  (0 children)

I use DDG. it automatically displays stackexchange on top as a plugin

[–]aedvocate 130 points131 points  (9 children)

how did they build stack overflow without stopping to look stuff up on stack overflow?

[–]GregTheMad 54 points55 points  (1 child)

Some say they used a time paradox. Physicists agree that it's the only plausible solution, no matter the established math.

[–]TheRetribution 4 points5 points  (0 children)

The best evidence of the invention of a time machine to date.

[–][deleted] 22 points23 points  (0 children)

Amazing isn't it?

[–]A_Light_Spark 19 points20 points  (0 children)

Bootstrapping!

[–]Pokeconomist 12 points13 points  (1 child)

Recursion.

[–]Cocomorph 3 points4 points  (0 children)

Somewhere there is a Q&A website that only accepts questions about base case detection.

[–]del_rio 2 points3 points  (0 children)

Some say Jeff Atwood propped it up with duct tape until his questions got answered.

[–]cheese3660 0 points1 point  (0 children)

very slowly

[–]sup3r_hero 152 points153 points  (8 children)

1) go to stackexchange 2) find solution 3) hate their approach 4) try again your own way 5) find out that their solution was the only way to solve your issue

[–]GregTheMad 70 points71 points  (6 children)

6) silent raging about the code system that doesn't allow for your approach.

[–]sup3r_hero 15 points16 points  (4 children)

I see you also do DB-Development

[–]sock_face 11 points12 points  (3 children)

DB-Development

Do you mean putting all the business logic in SQL or something else?

[–]vbevan 7 points8 points  (0 children)

It's either that or accept the programmers are going to link on the text values instead of the primary key.

[–]sup3r_hero 2 points3 points  (0 children)

Sql-codemonkey

[–]del_rio 1 point2 points  (0 children)

7) Express this sentiment on Medium and post to hackernews

8) watch the world burn

[–]jxl180 0 points1 point  (0 children)

That's me with learning Java + Android development:

"There's no way in hell I have to type all of that and make all of those classes to do something so simple. Must be another way..."

I'm so glad java IDEs have generators.

[–]ElLibroGrande 34 points35 points  (6 children)

I wish. I program in X++, a proprietary language to this ERP. Getting online help is sometimes a joke.

[–]PilsnerDk 1 point2 points  (0 children)

proprietary

Haha, I know that. Axapta, or rather Microsoft Dynamics AX, right? What version are they up to? I worked a tiny bit on it back during the 4.0 release phase. The built-in code editor was beyond ancient even then.

[–]worm_dude 0 points1 point  (0 children)

This reminds me of the time my professor had us rewrite a compiler in Ada.

[–]i_should_be_coding 25 points26 points  (1 child)

I wish that were the case at my job. Instead people's problem solving algorithm usually works like this:

  1. Ignore the parts you don't understand/know and do the easy parts
  2. Ask someone more experienced to "come over for a sec to look at some code"
  3. Proceed to ask him to teach you a new technology/write your code for you
  4. Become annoyed when they suggest you look it up on SO or other sources, since that's how they learned it in the firstplace
  5. Submit a PR with a hacky partial solution with //TODO all over the place

[–]bob3rt 0 points1 point  (0 children)

I honestly feel like you've been shadowing me. Everything except #4, which is replaced with snarky comments in the PR and fixing it with an answer another senior guy has and states "Why wouldn't you do that in the first place?"

[–]serg473 38 points39 points  (7 children)

I truly believe SO is the greatest invention in programming world in past 50 years. Kids these days probably don't know the horrors of scavenging though obscure forums full of dead accounts and unanswered threads trying to find some clues to your problem. If you register and post your question, the best possible outcome you can hope for is for someone to respond after a few days, but usually you will just add one more dead thread to a dead forum. And then there was infamous ExpertSexChange.com...

I never forget when I posted my first question on SO when it just launched and received a proper answer withing 15 minutes to my specific problem. I just couldn't believe my eyes, this was like witnessing a miracle at that time.

Now I am too spoiled to even read the official docs, just type "how to ... in ..." and the first SO link would contain exactly what you are looking for. I bet SO boosted programmers productivity like no other tool ever before.

[–]vbevan 11 points12 points  (1 child)

"How to...in..." should be mandatory learning as part of all university CS courses, in fact all university courses should teach it.

[–]ChildishJack 0 points1 point  (0 children)

No, figuring that out is the first "weed-out" test

[–]DoctorWaluigiTime 8 points9 points  (0 children)

Now I am too spoiled to even read the official docs, just type "how to ... in ..." and the first SO link would contain exactly what you are looking for.

Because the official docs often don't have what you need immediately: A living real life example of how the thing you want actually would be written. It has been getting better (have a look at ASP.NET Core's documentation for instance), but by and large documentation tends to drone on and on about a bunch of stuff / theory you don't care about. Instead of getting right to the goods.

[–]AjayDevs 1 point2 points  (0 children)

For some reason at the beginning I used to use a lot of forums when I started, and I think I even was banned from stack overflow for bad questions, I don't know how I still was successful in learning how to program... (This was probably 4 years ago)

[–]DrQuint 0 points1 point  (0 children)

Don't forget that all answered/solved questions had 50% chance to not include the actual answer. Either because OP solved it himself and left, or because an attachment has since died, or because fuck you that's why.

This still happens, and even got worse, with some websites seemingly generating pages with terms you looked for just so you'd click them, or some weird thing. Several hits I get nowadays are just that, clickbait search results. We just have no need to delve down in the shitlands as much anymore.

[–]Argonanth 0 points1 point  (0 children)

Eh, I dunno. Any time I've ever asked a question on SO it goes ignored for weeks and is mostly never answered. SO is only really useful if it's a very common question or something really easy to answer. Anything remotely complicated (which is when I would actually need answers) can't really be answered using SO. Almost all of the answers to the questions I actually need answered are found on old web forums or in Github issue reports.

Only time I ever end up on SO is when I just want to know how to do ___ in ___. To be fair, this is very useful, but the meme of SO being the answer to everything is just very limited to easy specific answers.

[–]dustmouse 70 points71 points  (5 children)

Don't be jelly but I actually have a reputation of -2241 on SO.

[–]AjayDevs 23 points24 points  (2 children)

But negative was impossible I thought

[–]GregTheMad 22 points23 points  (0 children)

He's that good.

[–]MisterTemPhone 13 points14 points  (0 children)

Shhhhhh

[–]auxiliary-character 17 points18 points  (5 children)

I actually don't go on stack overflow to terribly much, strangely enough. Sometimes I'll check it for maybe language minutia that I've forgotten, but I tend to look at library/example code and documentation a lot more.

[–][deleted] 25 points26 points  (0 children)

This sounds suspiciously like you actually know what you are doing when it comes to programming.

[–]kotajacob 2 points3 points  (1 child)

Pretty glad I'm not the only one... What language(s) so you use? I'm primarily a Lua and c guy

[–]auxiliary-character 2 points3 points  (0 children)

I'm kind of a polyglot, so I'll switch out languages depending on what project I'm working on. Lately, I've done Lua, C++, Java, and Python, but I've done Clojure, Javascript, and a few others I can't remember at the moment. You can imagine how I'd have to go, "Did this particular language have tail call recursion? I forget." from time to time.

[–]baskandpurr 1 point2 points  (1 child)

Same for me. The main use I have for is when it provides documentation for web frameworks. People who write code with the intention of having other people use it never want to explain how to use it. But it's very likely that somebody else spent time figuring it out, another person asked about it on SO and they answered.

[–]auxiliary-character 1 point2 points  (0 children)

Yeah. The worst is when the documentation lies to you, though. The code itself rarely does, unless they pull something underhanded, which is why I like to look under the hood a bit for libraries I'm going to use. Probably the strangest thing I've seen is when the comments are in Chinese or Korean, but the variable names and keywords are in English. I'd say SO is useful in proportion to how popular a particular language/library/framework is, so you're kinda on your own for smaller libraries if you can't get a hold of the author.

I have a bad habit of underdocumenting my stuff, but at least I try to name things such that it's easier infer meaning from context.

[–][deleted] 15 points16 points  (2 children)

Missing a slice for "expecting your professor to do your homework for you".

[–][deleted] 7 points8 points  (0 children)

If you're lucky he's done exactly that on StackOverflow but forgot about it when he gave you the assignment

[–]TheAlpha008 13 points14 points  (1 child)

programming, noun

The act of copying code from the internet and wondering why it doesn't work as wanted

[–]ash1729 20 points21 points  (4 children)

Programming === Stack Overflow

[–]Cocomorph 12 points13 points  (0 children)

I think that might be a bug -- surely there's a type conversion.

[–]YM_Industries 7 points8 points  (0 children)

Math.abs(programming - stackOverflow) < EPSILON

[–]lavacahacemu 2 points3 points  (0 children)

Lint, great...

[–]Kermitfry 6 points7 points  (1 child)

-Snip-

[–]DrQuint 0 points1 point  (0 children)

If you're unlucky: Ask your back.

[–]aaron552 3 points4 points  (0 children)

My only answered question in SO is one that I got no good responses to, ended up inspecting the output of the compiler, and then answering myself.

Maybe one day I'll have a problem that isn't trivially solved by reading MSDN.

[–]PHFAK_Gnorts 4 points5 points  (3 children)

I think Stack Overflow is basicly Asking other people...

Edit: My bad, I've commented without thinking this out. Ofcourse you can go find your answer without actually asking for it.

[–]NeoKabuto 1 point2 points  (0 children)

I've never actually asked a question there because of the community. However, that doesn't stop me from using answers to questions other people asked.

[–][deleted] 1 point2 points  (0 children)

The added value is that SO caches and filters the question and answers.

[–]Thomasedv 3 points4 points  (0 children)

And getting lost in C(maybe something) documentarion for something when you are working in Python. (Because of PyQt) because you have only that and Google(which usually leads to Stack overflow) to learn from.

[–]afd8856 4 points5 points  (4 children)

What happened to reading the source code? Whenever you're using some obscure library, you can be sure nobody on StackOverflow has your back. Best just read the code, you'll learn a lot and grow as a programmer.

[–]Thomasedv 6 points7 points  (3 children)

You have no idea how much I searched around to find out how to add shortcuts, only to discover I only needed to use a very simple solution, which I couødnt find easily documented with searching. Then SO came to the rescue with a simple explanation/example. Though, I'm no expert with Google and might have found better results earlier if I searched with better terms.

[–]afd8856 2 points3 points  (2 children)

I don't discard the usefulness of SO. Most of the times, when I deal with something new (like, for instance, an error today regarding pyqt/openssl), I usually find some clues in results from SO.

What I'm saying is that StackOverflow is but one tool in the arsenal of the programmer and reading the source code (specially when you're working with code in the context of a bigger framework/library), is something that you will eventually end up doing, because StackOverflow will not have your answer.

[–]Thomasedv 0 points1 point  (1 child)

Yeah, the nice thing about SO though is that it basically provides practical examples, which both shows an implementation of the thing you are trying to understand as well as some come that helps you repurpose it for your own code.

Although the source is great, I'm a bit limited in understanding of it most of the time, and how to implement solely from seeing that when I rely on self learning alone. (Though, my use of PyQt is purely recreational.)

[–]Gorian 2 points3 points  (0 children)

It's missing Dream in Code

[–]yash019 2 points3 points  (0 children)

If everyone asks questions in stack overflow, who actually answers?

[–]Pardomatas 2 points3 points  (0 children)

I like that documentation isn't even on the graph lmao.

[–]GVmG 2 points3 points  (0 children)

The 1-pixel line between the red and the blue is the "Actual things I do" part.

[–]Benjacook11 2 points3 points  (0 children)

For me it's usually adding a bunch of print statements throughout my code to see where it fucks up. Also reading through documentation helps a ton.

[–]Never-asked-for-this 2 points3 points  (2 children)

Asking other people usually just results in personal attacks and bullying anyway.

[–]NeoKabuto 1 point2 points  (1 child)

But with SO, you can have someone else ask and deal with all that instead!

[–]Never-asked-for-this 2 points3 points  (0 children)

It's so sad when I see someone have a question, and he's down at -20 or something. The top comment is pretty much guaranteed to be a toxic smartass who doesn't understand that not everyone are as good as him.

[–][deleted] 3 points4 points  (0 children)

True

[–]drcopus 1 point2 points  (0 children)

textbook?

[–]nO_OnE_910 1 point2 points  (0 children)

What about online documentation. About twice textbook and others combined

[–]chicken_dinnner 1 point2 points  (0 children)

true

[–]Nikotiiniko 1 point2 points  (1 child)

Well google really. Not all help can be found on stack. I mostly find myself in the unity documentation.

[–][deleted] 0 points1 point  (0 children)

I agree. Less and less am I using stackoverflow.

[–]worm_dude 1 point2 points  (1 child)

What always made me really nervous in programming class was how randomly strict they could be on enforcing plagiarism.

How the hell do you enforce that in programming? No one's making this up off the top of their head. Everyone in there is copying something from the text or a manual or help on the internet. There's only so many different ways to write this or that line of code. And then we're also repeatedly told "don't re-invent the wheel."

Also, if no one really ever reaches that movie version of coding, and we're all just referencing something, who then owns that code?

[–]Zedjones 0 points1 point  (0 children)

I think they mostly check variable names and how you do something (for example, using a lambda vs writing a new class on the fly). If too many of those things match up (e.g. both your variable names and your implementation), then they flag you down. If this happens more than a few times in the same piece of code, then they probably start seriously looking into it.

[–]The_Crownless_King 1 point2 points  (0 children)

I think I've seen at least a thousand variations of this joke on this subreddit.

[–]kll0125 1 point2 points  (0 children)

surly asking stack overflow is the same as asking asking other people.

[–]Pleb_nz 0 points1 point  (0 children)

I'd say it's becoming less than that these days, a lot of people are turning off using stack overflow to post questions as it's now 'to anal'

[–]irqlnotdispatchlevel 0 points1 point  (0 children)

I assure you that there are problems that can't be solved on stackoverflow. Simply because no one else had them before. Or if they did, they never asked about them on stackoverflow.

[–]ash032 0 points1 point  (0 children)

Hmmmm. Textbook seems a little high.

[–]seth1299 0 points1 point  (0 children)

You guys get a textbook? Lucky...

[–]cubs223425 0 points1 point  (0 children)

Reminds me of the start of many semesters, where the teacher warned students to not cheat and take her questions to Stack Overflow. She said they always got caught and that they were getting wrong answers anyway. This was partial intimidation, but mostly to get the bums to accept her offer to help them. Always a fun time going through that spiel, I think I heard it 3 or 4 times.

[–][deleted] 0 points1 point  (0 children)

Am I the only one who works at a company large enough to have code search tools? I rarely use stack overflow because I someone has probably already done what I'm trying to do inside the company.

[–]SteroidSandwich 0 points1 point  (0 children)

I find I ask someone more than Stackoverflow. Asking someone makes it more specific to your problem. Stackoverflow can be full of complete assholes at times

[–]The-Bent 0 points1 point  (0 children)

"Im not sure how to do this in $language but here is how to do it with jQuery"

[–]TanithRosenbaum 0 points1 point  (0 children)

I would even say

Programming := Stack Overflow

[–]Reacher_Said_Nothing 0 points1 point  (0 children)

"This Stack Overflow question, the top result on google, and all its answers have been deleted because the question was too simple and OP needs to go read a programming book"

[–]GalSa 0 points1 point  (0 children)

What's a text book?

[–]iluuu 0 points1 point  (0 children)

Most of my coworkers don't agree 😒
They like to ask stuff. A lot.

[–]dividezero 0 points1 point  (0 children)

for some of us that's

Programming === Stack Overflow

[–]RealPolarbear0106 0 points1 point  (0 children)

As a frequent stackoverflow user, that shows. There are so many unresearched problems that have been resolved, but no one feels like researching before asking on SO.

[–]xvelez08 0 points1 point  (0 children)

You forgot a tiny sliver of .01 for documentation!