TerrorBite :veripawed3:

I’m a lion from Australia! (he/him)

#nobot (please do not index this profile in search engines)

  • 2 Posts
  • 42 Comments
Joined 6 years ago
cake
Cake day: August 30th, 2018

help-circle







  • @Andy @BeanCounter Given how many of these start with “Lemmy” you could simplify this to:

    https://(lemmy\\.(?:run|(?:fmhy\\.)?ml|dbzer0\\.com|world|kde\\.social|ca)|lemmygrad\\.ml|lemdro\\.id|beehaw\\.org|sh\\.itjust\\.works|(?:sopuli|mander)\\.xyz|zerobytes\\.monster)/c/(.\*)

    Or just assume that anything matching https://(lemmy\\.[^/]+)/c/(.\*) is a Lemmy server, which will probably be correct.

    Edit: some kind of interaction between Mastodon and Lemmy has doubled all my backslashes. That is not intentional.









  • If your code files don’t contain more lines of comments than lines of actual code, then you’re doing it wrong. (For Python, docstrings count as comments)

    And your comments shouldn’t say what each line of code is doing. If you can code, then you can already tell what each line is doing by just reading the code. The comments should explain WHY it’s being done this way, or HOW it’s being done, or highlight some pitfalls that might snare a future developer, and generally just give some higher level context to a line or block of code.

    @257m @programming