this post was submitted on 10 Jul 2023
852 points (97.7% liked)

Programmer Humor

32443 readers
687 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
top 34 comments
sorted by: hot top controversial new old
[–] HangingFruit@czech-lemmy.eu 74 points 1 year ago

Few hours of surfing on stackoverflow can save you from 5 minutes of reading a documentation

[–] anotherlemmyuser@lemmy.ml 33 points 1 year ago (3 children)

StackOverflow is good for:

  • general questions (when you don't know where to look for) eg. how do I go about ...?

  • specific questions (when you know what you want, in simple english) eg. suggest ways I can ...?

  • quick fixes with more than one suggestion eg. I get this error, how to fix and please explain.

  • understanding concepts as different people explain concepts differently eg. what is ...?

Documentation is good for:

  • details (when you need to know more and when you really know what you need)

  • features (find a list when you want to know what else you can do with it)

[–] PeterPoopshit@lemmy.ml 8 points 1 year ago* (last edited 1 year ago) (1 children)

Another thing stackoverflow is good for is if you're like 14, don't really know programming that well and can't quite comprehend what you're doing but know how to copy and paste code then fidget around with it until your ide stops complaining and it compiles and all works together.

[–] Ducks@ducks.dev 7 points 1 year ago

I'm offended you think I'm 14

[–] marcos@lemmy.world 3 points 1 year ago

Stack Overflow refuses to provide answers for:

  • general questions (when you don’t know where to look for) eg. how do I go about …?
  • understanding concepts as different people explain concepts differently eg. what is …?

Specific questions and quick fixes are the faster changing kind of knowledge you can have. And Stack Overflow consistently refuses to update old knowledge.

So, in practice, it's good for:

...

But anyway, some ecosystems documentation are worse, so SO wins.

[–] bigkahuna1986@lemmy.ml 0 points 1 year ago

Also SO might mention the documentation is wrong and this is what API XYZ really does.

[–] danc4498@lemmy.world 30 points 1 year ago (1 children)

I feel like memes like these are written by documentation writers. I usually fine what I need way faster in stack overflow than the documentation.

[–] jeff@programming.dev 7 points 1 year ago (2 children)

There's really good documentation out there and there's bad/nonexistent documentation. So stackoverflow is going to be a more consistent experience.

Also I think it is a bit of a skill to be able to read documentation well, especially for Jr. Devs that might not have fully grasped OOP.

[–] spauldo@lemmy.ml 3 points 1 year ago

Totally agree on the skill part. The ability to read documentation and understand it is extremely important. Especially if you need to coordinate with nonprogrammers like engineers, or if you work in fields that SO doesn't cover well like I do.

[–] danc4498@lemmy.world 2 points 1 year ago

With chatgpt, I can just have the AI read it for me.

[–] rf_@lemmy.world 25 points 1 year ago (1 children)

Documentation is more often than not quite bad. Very abstract, hard to understand, few examples if any. Good writing is a skill.

[–] MischievousTomato@lemdro.id 12 points 1 year ago

Sometimes you need a quick/clear fix and the documentation doesn't help with that. SO, though, is.

[–] Nioxic@lemmy.world 24 points 1 year ago* (last edited 1 year ago) (1 children)

I've read some documention

and it's often so terribly written, like its written BY and TO someone who already knows everything about it, so its super vague and so basically useless.

a good example on documentation, IMO, is mozillas javascript documentation. that's great.

i really dont like microsofts C# documentation though. and there's probably worse ones out there.

(I will add, english isn't my primary language and the documentation is almost exclusively available in english)

[–] JPAKx4@lemmy.sdf.org 11 points 1 year ago* (last edited 1 year ago)

Docs - method returns string.

Stack overflow - 10 years of history of the old and new solutions to the exact problem you have based entirely off the stack trace

[–] lka1988@sh.itjust.works 20 points 1 year ago* (last edited 1 year ago) (1 children)

Looking at you, Docker compose files.

Docs: "make a docker-compose.yaml, it's so easy!"

Me: "How?? Where?? What's the syntax?? ANYTHING AT ALL?"

Some corner of a dusty website only three people have visited in the last two years: "here's the syntax you need to use for these specific use cases, and you can put it anywhere as long as it's consistent"

Jesus Fucking Christ is it really that difficult to be a little more specific with this kind of thing? This is why I didn't start using Docker until very recently. Their docs absolutely suck balls for someone who isn't already familiar with it.

[–] mvirts@lemmy.world 3 points 1 year ago

Docker, compose!!

[–] r00ty@kbin.life 19 points 1 year ago (1 children)

To be fair, documentation is very often a much longer route to understanding your specific use case. At the same time, SO is responsible for far too much cargo cult programming and I fear ChatGPT will be the same for this.

[–] Kryomaani@sopuli.xyz 10 points 1 year ago* (last edited 1 year ago)

And there are way too many projects where the documentation is nonexistent or bare to the point of being counterproductive to wade through. I've seen way too many open source projects that purport to have documentation but when you open it, it's just doxygen run over the raw source files with barely any documenting comments in them. If I wanted to see only the names of the classes and functions I'd just pop the source in an IDE, the point of documentation is to point out everything that isn't immediately obvious just looking at names and to give examples.

"Self-documenting code" is the biggest lie we tell ourselves to get out of writing actual, necessary documentation.

[–] RogueTyre@lemmy.fmhy.ml 11 points 1 year ago (1 children)

When it comes to things that I am not familiar at, going through documentation is quite tedious and feels like walking blind just feeling things. Having a small easy to understand explanation helps a lot even if I have to then further look it up on documentation.

[–] xpinchx@lemmy.world 5 points 1 year ago

I do things probably the stupidest way imaginable and find someone's git project using a library I need to use and see how they used it.

People that release libraries with demos and use cases are angels, in my eyes at least.

[–] nxfsi@lemmy.world 11 points 1 year ago
$ sudo Pacman -S <package>
$ man <package>

Turns out the executable is a different name entirely

[–] bankimu@lemm.ee 10 points 1 year ago

Are you sure the distances are not swapped?

I certainly wouldn't think possibly badly written and indexed docs without crowd sourced helpfulness indicator where you may or may not find your answer is 1/4 miles, while a concise highly upvoted answer in stack overflow is 21 miles.

[–] crucifix_peen@lemmy.ml 9 points 1 year ago (1 children)

working on a project in python now

first ~30 lines are just comment lines with hyperlinks to all the places I've ~~stolen~~ uhhh I mean, sourced, code from. And a solid 40% of them are stackoverflow

[–] justcallmelarry@lemmy.world 7 points 1 year ago

Sure looks like the left way

[–] neblem@lemmy.world 4 points 1 year ago (1 children)

Where does ChatGPT fall into this meme?

[–] lackthought@lemmy.sdf.org 2 points 1 year ago

I use chatgpt to get me pointed in the right direction and have it provide some basic boilerplate code for smaller tasks

I needed to go through a bunch of .json files and modify various elements

I was able to implement what I needed without google/documentation/stackoverflow

[–] darcy@sh.itjust.works 3 points 1 year ago

good one. funny

I've been using chatgpt lately, super helpful. Basically Google on steroids

[–] ghariksforge@lemmy.world 1 points 1 year ago

This is the way

[–] ProfessorGumby@midwest.social 1 points 1 year ago

This is why things break. Read the docs!

[–] alcasa@lemmy.sdf.org -2 points 1 year ago (1 children)

No, instead just read the source. Documentation lies and you might learn some useful tricks by just learning how the figurative cake is made.

[–] mojo@lemm.ee 6 points 1 year ago (1 children)

Damn you must have a lot of free time to be able to do that

[–] alcasa@lemmy.sdf.org 1 points 1 year ago

Just having to work with obscure libraries with shitty, outdated documentation.

load more comments
view more: next ›