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
-
I just use GUIDs for everything.
for (int c3ca6af0854f4a8d85a69888f338adb7 = 0; c3ca6af0854f4a8d85a69888f338adb7 < 10; c3ca6af0854f4a8d85a69888f338adb7++) {} -
@C0D4 Same goes for dynamic languages. If you declare a variable you should know what types of data you're gonna store there
-
@12bitfloat
- something
- stuff
- object
- instance
- container
- box
- data
- variable
- integer
- string -
Grumm18122yjust using single letters (like you see in those jquery scripts when inspecting code) They must be doing it right with so many users.
-
Grumm18122y@unreal-jase how descriptive do you make them ?
If you need to call it 'thisVariableIsUsedForCounting', then something is also wrong. If you cannot see the logic and understand the meaning of the variable at that moment, the logic is bad.
If 'iCount' is not enough, that where is the problem ? -
85% of my job is naming things. 16% is fixing logic errors introduced because I named something poorly.
-
@Demolishun okay what's the relationship between naming variables and having kids? This is like an error to me Undefined index
-
Probabil2112y@platypus it's not a good practice to have magic values, would you mind declaring 2 constants for the interval start/end?
Who doesn't have an issue with choosing the names of variables?
I do
what about you
joke/meme