

Lem-bin pie?


Lem-bin pie?


The difficult part is not the software or even the hosting. It’s more about the network effects and the ability to let users monetize uploads, which in turn creates vast potential for abuse and fraud, which in turn has to be addressed by burning stupendous resources. At a certain point people stop wanting exposure or “making a difference” for their own sake, and instead want to get paid in genuine coin of the realm.


The main value of youtube for many of us is the enormous video collection, which is impractical for anyone else to duplicate. Need to fix an old washing machine (I did, recently)? Type in the make and model and there’s an instructional vid. It’s unfortunate that Google has exclusive control over such a resource, but here we are.
There’s no need to make more classes. You can move some of the code so it’s not in any class.
It’s mostly ok, my immediate reaction is that it’s unnecessary to put the whole program into a class. Python isn’t Java. It’s fine to write procedures at the top level.
Also as someone said, consider using enums, and also the new case statement as of Python 3.10. Type annotations also can make things clearer. I’ve been using mypy to check mine but there are some alternatives now that might be better.
There is not much error checking but that can be ok if you are the only user.
If the config file might be crafted maliciously, it can use escape codes for a terminal playback attack: https://www.cyberark.com/resources/threat-research-blog/dont-trust-this-title-abusing-terminal-emulators-with-ansi-escape-characters
Be careful of that.
The forums I’ve enjoyed the most didn’t have voting and I’d rather that Lemmy just shut it off. VBB has a “thank” button you can click on posts, but they still show up in chronological order. That’s less gameable and less subject to outrage amplification and similar social media hazards. This isn’t Facebook and we don’t need to reproduce Facebook’s evil.
Yes they are sometimes used, as is doctest, but Python’s built in help system isn’t as good as it could be, so the docstrings aren’t that useful. Most annoyingly, for built in library classes, help(whatever) spews machine generated prototypes at you before you get any actual documentation.
I generally like to write some kind of explanatory text along with any nontrivial function that I write, but I’m not very consistent about doing this as a doctring vs as a code comment. I do use type annotations heavily nowadays.
I used gitit for a while. It’s git backed and you can propagate it around that way.


There is no need for this.


My only experience with the fediverse so far is Lemmy and I can understand why some forum users might not want to change to it. Too much censorship, too many bots, less continuity of the user base, etc.


I’m not sure what this post is trying to convey. The fediverse is another thing designed to kill old school forums, I thought?
Crosspost bots have been discussed many times and they are generally not wanted. Let reddit do its own thing. The extension sounds preferable to a bot if it’s only for use by post authors.


You want the keyword “or” rather than the bitwise operator. Alternatively, use “if coin in {25, 10, 5}”. The curly braces denote a set, which is implemented as a hash table, so the lookup will be fast even when the number of choices is large.


I don’t think the software matters much tbh. It’s about payment aggregation, search hit aggregation, and for some “prestige” substack writers, actually getting paid by the platform.


The attraction of substack for at least some writers is that substack actually pays their more popular or prestigious writers. I don’t know how many or whether there is a published list of them, but at least a few of them are getting paid rather well (6 figures/year or maybe more). If Substack is recruiting and paying Nazis, then that is of interest and concern. Most writers there aren’t getting paid by substack, though they may have readers who buy subscriptions. That is open to pretty much everyone and the fanfiction saying “don’t like, don’t read” works for me here. Saying Ghost is a more attractive platform because it has more censorship is kind of a head scratcher. And calling Taibbi and Greenwald Nazis is ridiculous. Disliking the Democrats doesn’t make someone into a Nazi.
That said, I don’t personally like substack very much and am always glad to hear about alternatives.


https://old.lemmy.world/ looks just like reddit. It’s not the UI. It’s network effect and there’s not a lot to be done.


Better to use a paste bin and ask specific questions rather than just please choose l critique this code.


I don’t like the current landscape of python type checkers.
I figure that Python itself is at the bottom of this. It simply wasn’t designed for static types. Mypy is still of some use but if you want a statically typed language, trying to graft a type system onto a unityped language hasn’t worked out well as far as I know. See also: the Erlang dialyzer, Typed Racket, and whatever that Clojure extension is called. Even Scala has its problems because the JVM has its own type system that isn’t that great a fit for Scala.
Also, why Rust as the implementation language? Just for speed? It seems a shame to not use Python/PyPy.


IDK, I’m here on Lemmy basically as a refugee from Reddit, but the federation angle doesn’t seem to help much from what I can tell. Look at how fast Bluesky overtook Mastodon. Anyway, anyone putting up new fanfic servers without understanding the politics and drama behind the existing ones is probably in for some pain. There used to be a saying “you’re looking for a Star Trek solution to a Babylon 5 problem”.
Meh. I’m holding out for wretched hive of scum and villainy.