Indians are more obsessed with the colour gold then Rappers.Also what is the deal with all Indians driving champaign or silver colored Corollas or Camry. They also all have a box of tissues in their back window.
Yes I did and yeah it had pretty much no tasteKaju katli? Did you try it? Very bland.
So to be clear without the global macro the code would be "YourClass..()"? If that's the case, then the DOT makes it a lot more clear that you're calling a function. I don't do a lot of coding in Java, so I have no idea why you would have a call that looks like that in the first place.Randomly, in the middle of tracking down a bug, I see references to a global constant named DOT. What is it? Take a guess.
It's: "."
Yes it's a period. Or a dot. The actual call to it is "<classname>.DOT". It would have taken less time to actually write out "." when necessary.
I think I found my first coding pet peeve.
I mean, seriously... what the fuck?
Someone please tell me this is best practice so I can at least understand why it was done.
I cannot mentally fathom the existence of this constant. With Android programming if you need something to have Application level context, you basically create a class that extends Application and throw it in there (more to it than that, but that's the gist). Whoever put together this app decide that "." needed to be a global constant. So they can call Application.DOT when they need a fucking dot. Instead of, you know, just putting a dot. And it's actually used. It's not like this is a random troll constant or a method like "isagoat()".So to be clear without the global macro the code would be "YourClass..()"? If that's the case, then the DOT makes it a lot more clear that you're calling a function. I don't do a lot of coding in Java, so I have no idea why you would have a call that looks like that in the first place.
Yes. That's the value. It's useless beyond imagination, and yet it exists.Is the value a '.' or in other words, ascii value 46?
I don't know why you wouldn't just write '.' You may as well make:
at that point.
The coder is probably trying to avoid magic strings.Yes. That's the value. It's useless beyond imagination, and yet it exists.
Yep, and it's dumb because Keyboard.DOT is more prone to error than '.'.The coder is probably trying to avoid magic strings.