this post was submitted on 12 Oct 2023
1264 points (98.5% liked)

linuxmemes

19676 readers
126 users here now

I use Arch btw


Sister communities:

Community rules

  1. Follow the site-wide rules and code of conduct
  2. Be civil
  3. Post Linux-related content
  4. No recent reposts

Please report posts and comments that break these rules!

founded 1 year ago
MODERATORS
 
top 50 comments
sorted by: hot top controversial new old
[–] [email protected] 139 points 8 months ago (4 children)

Reminds me of a comment I once came across in a work application's code: "This function took forever to write correctly. It was hard work. I didn't document it. Figure it out."

Of course the variables were not defined properly and were named esoterically.

[–] BleatingZombie 108 points 8 months ago (1 children)

the variables were not defined properly and were named esoterically

I wonder why it was so hard and took so long to write

[–] [email protected] 31 points 8 months ago (2 children)
[–] [email protected] 11 points 8 months ago

As demonstrated by the variable naming and documentation.

load more comments (1 replies)
[–] spacesweedkid27 12 points 8 months ago

At what point is documenting decompiled code easier?

load more comments (1 replies)
[–] Perroboc 135 points 8 months ago (2 children)
$ mysterytool
$

WHAT DID YOU DO?!

[–] hperrin 40 points 8 months ago
$ mysterytool -vv
DEBUG: Complete.
$
[–] RoyaltyInTraining 33 points 8 months ago

Knowing my luck, It probably deleted a rarely used system library and will lead to unpredictable crashes.

[–] clearleaf 100 points 8 months ago* (last edited 8 months ago) (7 children)

I don't understand how devs can be too lazy to write documentation but somehow they'd rather explain the same shit in discord over and over and over and over and over and over

[–] RoyaltyInTraining 50 points 8 months ago (2 children)

The help command is one of the first things I work on in any project. Even if I'm never gonna share it, my future self will appreciate it.

load more comments (2 replies)
[–] Rooty 41 points 8 months ago* (last edited 8 months ago) (2 children)

Why is discord so popular in non-gaming circles? People use it as a shitty, bloated and centralized IRC clone, with the voice fuction being completely ignored.

[–] dym_sh 9 points 8 months ago

bc everyone is a gamer, and using another chatting app is just adding more clutter

load more comments (1 replies)
[–] [email protected] 11 points 8 months ago* (last edited 8 months ago) (1 children)

i write poorly documented code on my solo projects because i am lonely

load more comments (1 replies)
[–] [email protected] 11 points 8 months ago (1 children)

Easy: people who still use Discord have brain rot

load more comments (1 replies)
[–] peopleproblems 9 points 8 months ago

I think it's loneliness, honestly.

That and corporate work environment tends to rewards those that can explain stuff vocally ad nauseum.

load more comments (2 replies)
[–] [email protected] 83 points 8 months ago* (last edited 8 months ago) (12 children)

I was recently trying trying to get help on a clipboard program someone had recommended me, clipq. What I found instead was a GitHub discussion where the dev said "I'm not sure what you mean by 'man' pages" in response to someone asking for them. I think I need to find an alternative

[–] kamen 25 points 8 months ago

Did they at least provide woman pages then?

/s

[–] Giftzwerg02 10 points 8 months ago (1 children)

I've only known about (and always use) xclip.

load more comments (1 replies)
load more comments (10 replies)
[–] Xophmeister 64 points 8 months ago* (last edited 8 months ago) (2 children)

Haha, I made this :) Here’s the blog post I created it for, if you want a bit of context:

https://www.tweag.io/blog/2023-10-05-cli-ux-in-topiary/

load more comments (2 replies)
[–] [email protected] 48 points 8 months ago (2 children)

But also

mysterytool --help
mysterytool: unrecognized option: '-'

ok then...

mysterytool -h
mysterytool: unrecognized option: 'h'

[–] [email protected] 40 points 8 months ago* (last edited 8 months ago) (1 children)
mysterytool --help

   ‘--help’ unrecognized option, -h for help

I will burn this motherfucker to the ground

[–] [email protected] 15 points 8 months ago* (last edited 8 months ago) (3 children)

Or the opposite:

mysterytool -h

     -h unrecognized option, --help for help

Both need to burn.

load more comments (3 replies)
[–] [email protected] 26 points 8 months ago* (last edited 8 months ago) (5 children)

And

mysterytool -h

mysterytool: try our info page that requires a custom viewer because gnu is better than standards. And there is no regular man page because fuck you

load more comments (5 replies)
[–] Rooty 42 points 8 months ago (7 children)

If the program's author hasn't bothered to properly document its function, then it has no business being on my machine.

[–] AnIntenseMoist 30 points 8 months ago (3 children)

"tHe PrOgRaM iS sElF dOcUmEnTiNg"

load more comments (3 replies)
load more comments (6 replies)
[–] SpaceNoodle 32 points 8 months ago (2 children)
[–] lemming741 12 points 8 months ago (1 children)
load more comments (1 replies)
load more comments (1 replies)
[–] AnUnusualRelic 32 points 8 months ago

It's like people don't like surprises anymore.

[–] Aceticon 32 points 8 months ago* (last edited 8 months ago) (10 children)

Programmers generally detest to do documentation, so when the user help "UI" is all down to a programmer to define this is often what you get, especially if it's a small tool.

[–] [email protected] 22 points 8 months ago (1 children)

I never understood that. I'm a programmer and I tend to over-document.

[–] [email protected] 16 points 8 months ago

Yeah this is shitty, and if you're a programmer reading this and you agree with it, be better. There is no excuse for under-documenting a CLI.

Even when I'm developing, I write out my usage text first, like -o [json,csv,pretty] specify output format (default 'pretty') [NOT IMPLEMENTED] or the like.

load more comments (8 replies)
[–] anarchy79 27 points 8 months ago

Exclusively installed through some dodgy PPA you got from a blog.

[–] kshade 25 points 8 months ago* (last edited 8 months ago)

strings `which mysterytool` | less

Give up your darn secrets before I start fumbling around with strace and get even more frustrated!

[–] TheHighRoad 22 points 8 months ago

I just want to say this is a masterful use of the format.

[–] [email protected] 14 points 8 months ago (1 children)
[–] [email protected] 35 points 8 months ago (6 children)

-H for Hard drive to delete, -h is help

load more comments (6 replies)
[–] [email protected] 10 points 8 months ago (3 children)
find / -name mysterytool -exec rm {} \;
[–] [email protected] 21 points 8 months ago (1 children)
load more comments (1 replies)
load more comments (2 replies)
[–] TunaCowboy 10 points 8 months ago
[–] [email protected] 9 points 8 months ago

Quite the mystery!

load more comments
view more: next ›