#namingConventions

2024-08-02

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

#Python #NamingConventions #CodeReadability #StyleGuide #Programming #Tutorial

realpython.com/python-function

2024-07-17

"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

2024-06-04

Nice naming conventions found in the wild:

#programming #namingconventions #hardestthinginprogramming #python

Stories go ever onstoriesgoeveron
2023-11-14

Naming is crucial in world-building, shaping the immersion and authenticity of your fictional universe. Craft names thoughtfully.

storiesgoeveron.com/world-buil

Mark Wyner Won’t Comply :vm:markwyner@mas.to
2023-10-20

What kind of dip goes with people? Should we ask the cannibals?

This is why you need a good IA/UX person on your team.

#IA #InformationArchitecture #UX #Google #Branding #NamingConventions #PeopleChips

Screenshot of a Google spreadsheet tip that reads: introduction people chips. Type @ into a cell to mention people.
afreytes 🇵🇷 ☭afreytes@mastodon.gamedev.place
2023-07-13

So, umm, I want to name this project: Tiny Island Dark Dungeon Intergalactic Explorer Saga

a.k.a.: T.I.D.D.I.E.S

The goal is to keep it family friendly.

But the acronym is... alluring.

#GameDev #NamingConventions #AMIRITE #GodotEngine

(Yes, I'm using both Kenney's and Quaternius models LOL)

Screenshot from a game. Background: Water. Foreground: Green island. Palm trees. Left: A robot, neutral expression. Right: A creature with 4 eyes, arms, no legs, open mouth, maybe screaming.
Center: A separate window, the island from a different perspective, robot seen from the back and smaller, 4-eyed creature and palm trees in a distance. A boat. Maybe the robot just got off the boat.

Alt text by @GreenSkyOverMe@ohai.social
2023-03-10

I'm wrestling with naming a new GitLab project, and was reminded of this - "The two hardest problems in computer science: naming things, cache validation, and off-by-one errors." #namingconventions #compsci

2023-02-23

🧵 1/3: What’s the difference between a carousel, a swiper and a slider?

The terms are used interchangeably, but I would argue, there’s a semantic difference.

#Carousels are circular. They start over once you reach the last item.

#Swipers are linear. You can swipe back and forth, but once you reach the last item, you can’t swipe any further.

#Sliders are input elements (e.g. volume controls), and thus entirely diffenret #UI #components

#ux #uidesign #namingconventions

aegilops :github::microsoft:aegilops@fosstodon.org
2022-12-08

@Inspiredharvey it's a helpful naming convention, and they tend to be used infrequently enough that they don't visually dominate, in my experience. It helps differentiate between an Enum and a normal attribute at a glance.

Same goes for the convention of globals having `CAPS` and "private" vars starting with `__` (though name mangling there actively does something, I learnt recently).

#Python #NamingConventions

Stefan Ihringercompfu@mograph.social
2022-11-23

So... #NamingConventions in #vfx...

By default, none of the DCCs seem to force anything on you and instead let you save & render stuff everywhere you like.

#Nuke at least has easy version-up for your script - but doesn't adapt your output file names.

#Houdini has $JOB and $HIPNAME as useful shortcuts to your work directory but hardly any versioning.

How are you dealing with versions, render output locations and the spectre of overwriting stuff in your #pipeline?

OG tweet: "I wrote it, I know it's right, but I still hate it."

In this case, though the "worked," it was certainly not "right." Naming things properly means "comprehensible in many different circumstances," not just "this is a correct name for that." #learnToCode #coding #programming #namingConventions #likeUsingCamelCaseInHashtags

A snippet of code. The relevant line of code is states[state].state = state.
RoyGreenhiltRoyGreenhilt
2021-12-05

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst