Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
p100sch15005y@orhun probably a pattern thing. They always turn out classes and methods that nobody knows how to name then.
-
`stringify(x)` = 12 characters.
`'"' +x+'"' ` = 9 characters.
Hell, assuming it's Javascript:
`"${x}"` = 8 characters.
❓🤷♂️❓ -
@kwilliams It's a quick hack missing a todo, the proper impl also doubles every \ and etc
-
Hazarth94865yWhy not
return f'"{x}"'
? Its even shorter and on average faster and easier to read than +'s imho -
@stonestorm It was mostly because I couldnt be assed to put triple quotes around random strings all the time.
@kwilliams PyCharm (and VI as well for that matter) has autocomplete, so it's basically just 'qu<TAB>'
Related Rants
I'm always one of these two
joke/meme
documentation
clusterfuck