Live data from Hacker News

Lemmy: Federated Alternative to Reddit in Rust

github.com

91–100 of 108 posts

Re: Lemmy: Federated Alternative to Reddit in Rust

#91

Earlier quoted context omitted.

Keep in mind you can download the fonts and host locally. You don't have to let Google host.

Would one run into licensing issues with this? I'm honestly not sure if their usage is predicated on being served from Google, nor knowledgeable enough about the law to even guess.

Interesting question. I never thought of this and I don't have the answer.

Re: Lemmy: Federated Alternative to Reddit in Rust

#92
post #48
post #31

Earlier quoted context omitted.

As someone running a federated server (mastodon); you get more problems with local spam than with foreign spam. Most instances will quickly shut down any spam, so it doesn't really fill the federated timeline that much. Local accounts are something you as an administrator need to act on, so they are the annoying ones. In my experience, instances that allow spam are rare and the get quickly blacklisted by everyone fro…

It doesn't look like that might scale at all. In other words, it works because Mastodon is a very small, niche community. Good thing is that the Mastodon instance owners use shared block lists for servers that are currently used to ban free speech instances; that infrastructure could also be used to create a collectively managed list of instances that are full of spam.

Atm shared block lists are still manual, but I'm hoping they'll become automated in the future...

Re: Lemmy: Federated Alternative to Reddit in Rust

#93

The code quality is amazing. Good job.

On the contrary, I thought the code was terrible quality. If someone wrote this code at my company they would be fired, or more likely not hired in the first place.

That's a terrible, sad and rude comment that does not belong in HN. Instead of just criticize you could offer a constructive review. I hope English is not your native language and it has a less aggressive tone in the translation.

Re: Lemmy: Federated Alternative to Reddit in Rust

#94
post #86

The code quality is amazing. Good job.

Given the response to this, i would be interested to hear why you thought the code quality was amazing. We seem to have two people with different ideas about code quality, and perhaps we would all learn something by investigating that difference.

I was mainly commenting on the frontend as I'm not well-versed in Rust, my dissenter seems to have a problem with the backend and the organization of the project, which seems unfair since it's in it's infancy, you can always restructure a project and reorganize code. I was commenting on the code, not the files.

As for the frontend, it's all typed, and very minimal. Very rarely do we see frontend code that does just what it needs to do and nothing else. The fact that they achieved a "React-like" (Inferno) environment and managed to keep the frontend under 80KB is a feat.

That's not to say it's perfect, but it's not finished. I was just very surprised to be able to jump right into the code and see what was going on without wading through boilerplate.

Re: Lemmy: Federated Alternative to Reddit in Rust

#95

Earlier quoted context omitted.

Keep in mind you can download the fonts and host locally. You don't have to let Google host.

Would one run into licensing issues with this? I'm honestly not sure if their usage is predicated on being served from Google, nor knowledgeable enough about the law to even guess.

Not at all.

https://duckduckgo.com/?q=google+fonts+license

https://en.wikipedia.org/wiki/SIL_Open_Font_License

Re: Lemmy: Federated Alternative to Reddit in Rust

#96
post #87

Earlier quoted context omitted.

I do have to say, 2k lines for a single file is scary sounding to me. It would probably make me consider splitting it up. BUT, sometimes things to just logically belong together and having one file to find them is just easier. It's a rediculous metric to use.

Depends a lot on tooling as well. If you have tools that give you effective jump-to-definition, find-usages, etc, then the file structure sort of fades away, because you jump from fragment to fragment without really worrying about what files they are in.

Ever had the pleasure of opening a 20k+ line file in IntelliJ? (Not 2k, but 20k!). That happened one time, it wasn't a fun experience.

I consider IJ and most jetbrains products to be top-notch but that was a crippling experience. And I can't really say I blame them :)

EDIT: I agree with you by the way* just saying that even good tools can fail when the sizes get crazy!

Re: Lemmy: Federated Alternative to Reddit in Rust

#97
post #86

Earlier quoted context omitted.

Given the response to this, i would be interested to hear why you thought the code quality was amazing. We seem to have two people with different ideas about code quality, and perhaps we would all learn something by investigating that difference.

I was mainly commenting on the frontend as I'm not well-versed in Rust, my dissenter seems to have a problem with the backend and the organization of the project, which seems unfair since it's in it's infancy, you can always restructure a project and reorganize code. I was commenting on the code, not the files. As for the frontend, it's all typed, and very minimal. Very rarely do we see frontend code that does just w…

I'm not sure why my compliments are being downvoted. Do ya'll hate the code that much?

Re: Lemmy: Federated Alternative to Reddit in Rust

#99
post #46

Earlier quoted context omitted.

Well, for a start... having a single file called "server.rs" which is 2256 lines long is already disqualifying. This file, code structure would be incredibly poor for developer efficiency. It just grows and grows and does all the things while having a vague sounding name like "server.rs" Why is server.rs doing "EditSite." What does the name EditSite mean anyway? Poor code reuse, same bits of code copy and pasted all…

What is the max lines in a single file for a developer "to get fired" at your company?

Small note here: it's obviously not it's an "absolute" rule that X lines of codes = fired. But for me, it's just a major code smell when people are writing very large single files with generalized names like "server.rs" or "processor.java."

It tends to mean that someone isn't following the single responsibility principle and the code is harder to understand and less maintainable. Obviously these aren't hard and fast rules but are combined with many other code smells and metrics.

For example, I really really dislike long methods with generic names. Usually this means there are too many things happening in a single method. The method name, it's input and output parameters should give the reader a fairly exact idea of what's happening in the method.

So if I wrote a method with this signature: public List ProcessData(List input)

If you tried to predict what this might contain in the body, you would have zero idea.

Now this method:

public List ValidateVipCodes(List input)

Just seeing this signature, you could easily imagine what the body would look like without much thought at all.

Great code should be structured in such a way that someone can view the project, ONLY LOOKING at file names and method names and have a good idea about what is going on and how it might work.

Re: Lemmy: Federated Alternative to Reddit in Rust

#100

Earlier quoted context omitted.

Honestly, I think this is the wrong way of looking at things. The Fediverse isn't really like a single social network that's shattered amongst many instances ... it's more like a bunch of individual, separate hangouts, in the vein of classic forums and IRC chatrooms and fandom websites, which have the ability to talk to each other and share stuff if they want. It's not so much about "blocking" mastodon.social as not…

I think it's sad that we cannot figure out a way to have LARGE federated communities that remain functional.

I think this is inherently a sociological problem than a technological one. When there are enough people in an organically grown group, the community will become unsustainable and then 1) it disintegrates into multiple groups until it becomes stable again or 2) it transforms into a hierarchial, authoritative society where a small group of people makes most of the decisions.

Also, I think Mastodon’s design deliberately steers instances away from becoming large ones; it rather tries to be a nurturer for various small communities and subcultures. It doesn’t view size as a good thing, and that’s totally okay. Nowadays, I think we need less monoculture and more diversity/creativity in our society.

Post reply on HN