this post was submitted on 31 May 2024
518 points (99.1% liked)

linuxmemes

19676 readers
135 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 26 comments
sorted by: hot top controversial new old
[–] [email protected] 74 points 1 month ago (4 children)

I'm the total opposite, my documentation is very thorough, my code looks like it was made by a monkey

[–] [email protected] 18 points 1 month ago (1 children)

Like my professor used to say: "Implementation is trivial, a trained ape can do it."

[–] [email protected] 11 points 4 weeks ago

The trained ape is AI and it works really well.

Hold on i gotta glue my pizza and drink my piss every 24hours before i finish this comment.

(Im joking)

[–] [email protected] 2 points 4 weeks ago (1 children)

I prefer concise and accurate documentation than clean code tbh. The reason is that if the documentation stated that it should perform something with side effects a,b,c then I at least know what to expect. When contributing, this also makes it easier to implement something because we have the requirement at hand. Understanding shitty code is easier than understanding human requirements. Shitty code is the language we use to talk with a computer, so at least you'll know exactly what will happen.

[–] [email protected] 2 points 4 weeks ago

I think the same, I often find that people overestimate their ability to write self documenting code and with the added mess of automatic formatters it often becomes hard to read and understand. In my department I am one of the few who actually writes comments and readmes that explains the reason behind some decisions. I am very junior, less than a year of experience, so maybe I will be able to better understand code that other people write in the future. But for the time being I write my documentation and my comments in a way that someone who doesn't know anything about the project can understand, because I hate having to call coworkers because I can't figure out how the project handles x and y (bear in mind that is also caused by Java "best practices" with 45 abstraction layers)

[–] A_Very_Big_Fan 2 points 4 weeks ago

He's doing a good job :3

[–] [email protected] 31 points 1 month ago* (last edited 1 month ago)

My best READMEs are the ones I write well before I've finished the code. The README bears little resemblance to reality, but it's the easiest to read.

[–] Landless2029 20 points 4 weeks ago

Am I the only one who writes the Readme as I add features and do my commits.

Don't leave your homework until the end and cram away just before it's due.

Code every other day.

Code. Then review and document.

I also try to maintain my feature list in my Readme. Essentially my roadmap. Work my way down the list and write Code as features are added/updated.

[–] [email protected] 15 points 4 weeks ago

As long as you provide a list of dependencies, you're cool in my book

[–] [email protected] 14 points 1 month ago* (last edited 1 month ago)

Code is more or less deterministic, communicating with other humans using something like the English language - much harder.

Lots of communication is open ended and up to interpretation especially with things like incorrect grammar usage and/or slang

Take your time, get it as close to right as you can the first go around

[–] [email protected] 11 points 4 weeks ago (1 children)

Them: "Read the docs, this is a mature project!"

The documentation: "Coming soon!"

Me: "It says its coming soon."

Them: "Its open source, how about you contribute instead of demand?"

Me: "What?"

System notification: "Banned, lol"

[–] [email protected] 2 points 3 weeks ago

This is eerie close to home! Completely illogical answers, yet somehow I'm to blame 🤨...

[–] [email protected] 8 points 4 weeks ago (1 children)

I'm the opposite. Wanna join forces?

[–] [email protected] 1 points 4 weeks ago (1 children)
[–] [email protected] 1 points 4 weeks ago (1 children)

As long as your documentation doesn't require anything graphical, then I'm your man.

[–] [email protected] 1 points 4 weeks ago

Nope, nonetheleast. Maybe a screenshot or two.

I'll send you a DM 👍.

[–] [email protected] 7 points 4 weeks ago

I'm the opposite. I will write literally a book of poetry for the tiniest feature to justify my pay raise at the end of the year.

[–] [email protected] 7 points 4 weeks ago

This is like when I was in school and spend half of the time using "word art" to set fancy titles

[–] [email protected] 6 points 4 weeks ago

I think a lot of people are kind of bad at written communication. It's not an easy skill.

Often at work folks will write twice as many words and clauses as needed. The Hemingway editor ( https://hemingwayapp.com/ ) isn't perfect, but I recommend they take a look at it.

[–] [email protected] 5 points 1 month ago

That hit me right in the gut.

[–] [email protected] 4 points 1 month ago* (last edited 1 month ago)

This is why my programs don't come with documentation. If you want to use them, the best I can do is a messy script that "works for me".

[–] [email protected] 4 points 1 month ago* (last edited 1 month ago)

I pride myself on writing pretty good technical docs. But there's always a motivation hurdle at the beginning, that I have to get over.

[–] [email protected] 4 points 1 month ago

Well, I for one am thankful you lot see so bad at explaining yourselves or I'd be out of a job

Love, the technical writer

[–] [email protected] 2 points 1 month ago

I do both well but it never ends. 😟

[–] [email protected] 1 points 3 weeks ago