home.social

#namingconventions — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #namingconventions, aggregated by home.social.

  1. How Do You Choose Python Function Names? – Real Python

    Rules and conventions for naming Python functions emphasizing:
    ➡️the importance of using descriptive, snake-case names.
    ➡️the use of underscores for internal methods
    ➡️differences in naming conventions for variables and classes.

    The article is based on Python Enhancement Proposals PEP8

    realpython.com/python-function

  2. "Why did you call your file 'text.pdf.pdf'."

    "What do you mean?"

    "Why do you have the extension twice?"

    "Oh, that? Safety."

    "What?"

    "It's like when you tie your shoes. You put a safety knot to prevent it from untying, right?"

    "Yes."

    "It's the same with the double extension. I want to make sure that the computer really knows it is a PDF."

    "Your explanation is stupid-stupid."

    "Why do you say stupid twice?"

    "Safety. I really want you to know that it is stupid."

    #FileExtensions #NamingConventions #PDF #safety #stupid #nonsense