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
-
hjk10157315yI do that all the time with table aliases. Else the queries get tediously long-winded.
SELECT TaskListItems.description FROM TaskListItems WHERE TaskListItems.id = 5
VS
SELECT ti.description FROM TaskListItems ti WHERE ti.id = 5
You or course only do this when multiple tables are involved but this should already outline the space and readability improvement -
@hjk101 In nodejs when using the mysql package you write queries as strings and paas them to a function for queries, so p was the query, q was the additional arguments :(
-
hjk10157315y@abhishekr700 ah that was not SQL than. Looks minified JS to me, typical premature optimization.
'query' and 'params' is short enough for me. Consistency is more important though. The go community is big on single letter variables. Doesn't bother me much. -
@hjk101 It hurts my brain when I have to understand someone else's code that is running in production.
Wasn't minified json, I not noob -
@alexbrooklyn Nah that were written by a real person (check with commits and verified with him/her :p)
-
olback109815y@abhishekr700 This formula is one of the most used in "basic" math. We learned this in my first Collage math course.
-
hjk10157315y@abhishekr700 no dude not calling you anything near stupid. I meant with variable names like that it looks like someone manually tried to minify the JS.
JSON can't be minified like that by the way
Related Rants
Why the fuck do these little shits use variable names like p,q,pq?
Wtf are you? Babbler Baboon !
rant
code
naming conventions
variables