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
-
Depends on the purpose. I list variables vertically for XML and JSON objects so I know they are all there in the file because I can do folding in Notepad++.
Most of the shops I work at also have code review rules of one variable/declaration per line. -
@bkwilliams I've been a developer for almost 20 years, I have NEVER found it useful to have meaningless variable names, regardless of if they are mapping to XML. XML naming best practices are not that dissimilar from any other naming practices. And no, this code isn't part of a mathematical formula, where you MAY make the argument for a one letter name.
-
asgs112796y@bkwilliams I think your argument applies to Protobuf which was designed for efficient communication and such. but I have never seen a cryptic or dumb XML before
-
I get angry when I see this...
Especially in SQL as an alias I really want to murder people who use non descriptive naming.
It's really frustrating, alias, variable or anything else, when you have to torture your memory to understand what the fuck is going on.
Related Rants
Unless you had a horrible accident where you lost most of your fingers, I don't understand why anyone would do this. I had to double check I wasn't looking at obfuscated code.
```
String a;
String flag;
String tp;
String n;
String chn;
String lt;
String lg;
String bid;
String d;
```
rant
code
shit
variables