yarr

joined 1 year ago
[–] yarr@lemmy.fmhy.ml 1 points 1 year ago

YES

get off my lawn

[–] yarr@lemmy.fmhy.ml 1 points 1 year ago

Your experience mirrors mine, where you must refer to the Rust and/or JS code to have a chance in hell.

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

Yep... and if you and I got discouraged, how many other developers did as well? This is why good docs are essential for a healthy ecosystem.

[–] yarr@lemmy.fmhy.ml 1 points 1 year ago (2 children)

No, I was just chewing on various ideas to integrate with Lemmy and was disappointed with the docs I saw. They seemed OK-ish if you wanted to use the JS client, but not great if you want to do something else.

On similar projects, I'm used to seeing OpenAPI/Swagger/etc. where you have docs on the incoming bodies/fields, what values they can contain, etc.

Right now it's really bare bones. I see things like 'auth' OPTIONAL but not really sure what would go in there.

I can RTFS like another poster said, but of course that's not as convenient as "general purpose" API docs with examples / tutorial.

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

I was curious to see if the reply was going to be:

  • We are happy with the state of docs (WONTFIX)

OR

  • The current situation is temporary and we will provide better docs at some point in the future
[–] yarr@lemmy.fmhy.ml 2 points 1 year ago (1 children)

proper nouns like sed, awk and grep?

 

Lemmy's API documentation currently appears to be the JS client implementation found here: https://join-lemmy.org/api/

This is very misleading, as these docs document the behavior of the JS client and do not provide a language neutral way to figure out what's going on.

Compare Lemmy's docs with something like the ActivityPub docs https://www.w3.org/TR/activitypub/

Going off ActivityPub, I could actually start to see how it all works and looks together. With Lemmy, I can reason about how the JS client works and do my best, but working with Lemmy you sometimes have to consume the Rust source as well.

So, this raises the barrier of entry for someone wanting to do Lemmy integrations to someone that needs to consume the above docs, plus be comfortable reading JS and Rust.

I saw some older posts from the lemmy devs saying: "Well, writing docs is hard, so it's easier if we generate the docs from our JS client."

They aren't wrong, writing documentation IS hard. If Lemmy is serious about attracting a larger ecosystem, I consider better API documentation to be on the hot path. I'm concerned that the devs are happy with the autogenerated docs above and won't put any effort into improving them. Even worse, the people generating these docs are already familiar with Lemmy, so they probably think the current docs are adequate.

I don't know a quick solution -- raise money to pay someone to write docs? No clue. But, if you want to attract developers to this ecosystem, the current API documentation is insufficient.

[–] yarr@lemmy.fmhy.ml 0 points 1 year ago (1 children)

Sorry, we had to deny your application because you're Asian. Try another school.

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

Reddit comment threads are currently just full of groupmind wankery. I like being on a platform where I don't 100% agree with everyone and I don't have to hold "sanctioned" opinions that are approved by a mod team of 3.

[–] yarr@lemmy.fmhy.ml 1 points 1 year ago

But if I block everyone I disagree with, I won't have to censor anyone!

[–] yarr@lemmy.fmhy.ml 1 points 1 year ago

Bahaha... "Anything I can't argue my way out of" = hate speech

[–] yarr@lemmy.fmhy.ml 0 points 1 year ago (3 children)

What about Leviticus 20:13? Is that hate speech?

[–] yarr@lemmy.fmhy.ml 1 points 1 year ago

and eventually it most likely would be by someone

Err, this has already happened quite a few times.

 

An ironic observation - I've been understanding Reddit better here on Lemmy than while actually on Reddit. It's fascinating how this platform, while being an alternative, can offer such deep insights about another.

Has anyone else experienced this paradox? Would love to hear your thoughts.

view more: next ›