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

linuxmemes

21393 readers
1257 users here now

Hint: :q!


Sister communities:


Community rules (click to expand)

1. Follow the site-wide rules

2. Be civil
  • Understand the difference between a joke and an insult.
  • Do not harrass or attack members of the community for any reason.
  • Leave remarks of "peasantry" to the PCMR community. If you dislike an OS/service/application, attack the thing you dislike, not the individuals who use it. Some people may not have a choice.
  • Bigotry will not be tolerated.
  • These rules are somewhat loosened when the subject is a public figure. Still, do not attack their person or incite harrassment.
  • 3. Post Linux-related content
  • Including Unix and BSD.
  • Non-Linux content is acceptable as long as it makes a reference to Linux. For example, the poorly made mockery of sudo in Windows.
  • No porn. Even if you watch it on a Linux machine.
  • 4. No recent reposts
  • Everybody uses Arch btw, can't quit Vim, and wants to interject for a moment. You can stop now.
  •  

    Please report posts and comments that break these rules!


    Important: never execute code or follow advice that you don't understand or can't verify, especially here. The word of the day is credibility. This is a meme community -- even the most helpful comments might just be shitposts that can damage your system. Be aware, be smart, don't fork-bomb your computer.

    founded 1 year ago
    MODERATORS
     
    you are viewing a single comment's thread
    view the rest of the comments
    [–] Rooty@lemmy.world 42 points 1 year ago (3 children)

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

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

    "tHe PrOgRaM iS sElF dOcUmEnTiNg"

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

    That claim doesn't even work for the 0 line shell script that used to be /bin/true (which is why it is no longer a 0 line shell script), much less any more complicated program.

    [–] sheogorath@lemmy.world 0 points 1 year ago (1 children)

    Fuck those people, people who says that usually doesn't even understand half the time. When I ask people like that when they write a functionality a certain way during code review usually they'll just quote someone on Twitter or some blogspam article saying A is shit, B is the best way to do things.

    [–] AnIntenseMoist@lemmy.world 0 points 1 year ago

    you forget StackOverflow. I saw my coworker once copy-and-paste code... from the question.... and not understand why it wasn't working.... I'm all for using StackOverflow to get help with weird problems but, most of the time, simply reading the docs and applying that knowledge to the problem you are trying to solve is enough. a forgotten art for sure.....

    [–] Kolanaki@yiffit.net 6 points 1 year ago (1 children)

    I'd pretend to be Joey from Hackers and just throw commands at it to see what happens. Maybe I'll make an ATM in bumfuck, Egypt spit out hundreds of dollars or find a worm in a garbage file 🤷🏻‍♂️

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

    Hack the planet!

    [–] topinambour_rex@lemmy.world -3 points 1 year ago (3 children)

    If it is open source, you can read the source...

    [–] Darkhoof@lemmy.world 12 points 1 year ago

    Or he can waste less time and download a properly documented open source tool.

    [–] Draconic_NEO@lemmy.world 4 points 1 year ago* (last edited 1 year ago)

    Only if the source is structured and has readable names. Spaghetti code with made up variable names that only the programmer knows the meaning of (or may not even remember what they mean at all) isn't that much better than combing through the disassembled machine code.

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

    Which is fine for a.small and simple tool. But I have seen massive graphic/UI libraries with a documentation of about two pages and a non-working example.

    Worst offenders I have to deal with is mediawiki. Some random hacker replaces some code with his own, and immeditely obsoletes the previous code that worked absolutely fine. The new code might work, too, but the concept, the philosophy is 100% different that the old interface. So e.g. the old interface made a call with 10 or 20 parameters, the new one makes a ton of calls of the type "add one or two parameters to an object".

    And of course the only documentation is just the excrement of a Doxygen call. Where nobody ever cared for the function description headers in the source.

    My "favourite" one is a function with a parameter named "options" and a description as "option flags". Nothing more. And the source of the function? Well, I have seen staighter spaghetti dinners.