[-] UlrikHD@programming.dev 3 points 4 months ago

It's not about the profanity itself, it's about what language the trolls/harassers typically use. The comment containing profanity was restored after it was seen to not be harassment. Most new users doesn't trigger the automod in the supervision period.

[-] UlrikHD@programming.dev 3 points 5 months ago* (last edited 5 months ago)

I'm online, I just rarely post nowadays. The bot keeps getting errors when logging in and I haven't had time to look into it.

This is also an admin account so I try to keep it contained to instance specific activities.

[-] UlrikHD@programming.dev 3 points 1 year ago* (last edited 1 year ago)

Which issues are you referring to? Instance shouldn't matter as long as federation works properly, I think the bot has simply crashed and I don't have access to restart the server before next week.

You can use @LiveThreadBot@sopuli.xyz in the meantime though.

[-] UlrikHD@programming.dev 3 points 1 year ago

It’s not helping if some bitch on her menstrual cycle comes and spams her keyboard without any valid points

You've already previously been given warning for breaching our Code of Conduct section 3.5 (Hate Speech: Do not make remarks directed at sex, gender...). This is your third strike within 2 months and your account is now at risk of receiving a permanent ban if further breaches are made within 365 days.

Since this is strike 3, your account will be given a 14 days site-wide temporary ban.

- The programming.dev community team

[-] UlrikHD@programming.dev 3 points 2 years ago* (last edited 2 years ago)

Hi, we have now published official community guidelines as announced in this post.

Please let us now in the linked post if there is still something unanswered.

[-] UlrikHD@programming.dev 2 points 2 years ago

When on programming.dev's communities, please follow our Code of Conduct. Your comment currently violates section 3.2 and 3.5

[-] UlrikHD@programming.dev 3 points 3 years ago

putting thumbnails in the file selection dialog

Could you elaborate what you by this?

[-] UlrikHD@programming.dev 2 points 3 years ago

Language specific communities

[-] UlrikHD@programming.dev 2 points 3 years ago

What plug-in is it and does it work with Firefox? I had a plug-in that worked with chrome, but it didn't work with Firefox and I never got around to fixing it.

[-] UlrikHD@programming.dev 2 points 3 years ago

That worked, thanks

[-] UlrikHD@programming.dev 2 points 3 years ago

With boost on reddit I would just block any subreddits that I felt was just noise. Any American centered subreddits (mostly politics), NSFW subreddits (back when those showed up in r/all), niche meme stuff like that deep fried stuff, etc... You could also block keywords like "elon" and "trump". It actually made r/all a decent experience to browse through.

If it isn't already a feature on lemmy, hopefully it will soon. I much prefer letting the user do the filtering than the nuclear option that is defederating. Boost for lemmy is also on the way so I expect that to be an option once the app launches.

[-] UlrikHD@programming.dev 3 points 3 years ago* (last edited 3 years ago)

Obviously this is opinionated and I won't pretend it's the only correct way, but a few things that stood out to me was.

  • inconsistent use of type hinting. You type hint the "elem" arg for process_content and nothing else. Personally I use type hints religiously, but at the very least I would type hint every arg. The type may be obvious to you now, but it may not in 6 months, or for others who want to contribute.

  • while on the topics of type hints, you use "#" to comment the purpose of each function, but you really should use docstrings instead. Text editors supporting python will then use the docstrings to show users the description of each function without you having to jump to the declaration to read the description. It's particularly useful when you got multiple modules. For some IDEs like pycharm, the same format works on variables too.

  • You should wrap up your bottom infinite loop in if __name__ == '__main__': to avoid getting locked if you down the line want to reuse the class/module and import it into another file.

And the most opinionated point of them all:

  • I would recommend running a linter like pylint to warn about potential code smells. E.g. you're redefining the python built-in "id", no exception types are specified in your try blocks, too many branches and statements in process_content() which would probably benefit from being segmented into smaller functions, lines that are twice as long as the recommended length, wrong import order, etc... (these are purely pylint feedback)

I assume the setup is the same with GitHub's ci, but with GitLab you can automate pylint to check the the code with this:

  image: python:3.10
  script:
    - pip install pylint
    - pylint *folder*```
view more: ‹ prev next ›

UlrikHD

0 post score
0 comment score
joined 3 years ago
MODERATOR OF