this post was submitted on 06 Dec 2023
144 points (100.0% liked)
Programming
423 readers
2 users here now
Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!
Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.
Hope you enjoy the instance!
Rules
Rules
- Follow the programming.dev instance rules
- Keep content related to programming in some way
- If you're posting long videos try to add in some form of tldr for those who don't want to watch videos
Wormhole
Follow the wormhole through a path of communities !webdev@programming.dev
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Tbf it wasn't so much the names that tripped me as the weird Python operator. I would've never guessed that's a string reversal if you hadn't told me (I don't know much Python beyond recognizing the syntax). If I had to guess I would've said it's an array pop.
When I originally typed it, I made a function for string reversal and called that. But I didn't include it since I didn't want to define that too.
Honestly... this wiki has a seriously difficult path ahead of it. I mean - it'd be fantastic if it did simplify things like that to let you write simple, elegant, and easy to read functions while linking to other functions.
But it'd also have to lint those and make sure that contributors don't implement recursive dependencies.