HackerTrans
TopNewTrendsCommentsPastAskShowJobs

ramsicandra

no profile record

Submissions

Ask HN: How to create a scrollable picker (like iOS/Android clock) in HTML?

1 points·by ramsicandra·7 mesi fa·0 comments

Ask HN: Java why put string in a constant?

1 points·by ramsicandra·anno scorso·2 comments

[untitled]

1 points·by ramsicandra·anno scorso·0 comments

comments

ramsicandra
·anno scorso·discuss
The -, _, and leading _ are just variations of white space / separator I have encountered. I think it's possible to document all the allowable values in the Javadoc section of the function that takes in string as their argument.

In the specific android example, I would put it here. Under projection params where it takes in all the Images.Media.* string consts.

https://developer.android.com/reference/android/content/Cont...

Though, if it's a practice of Java Engineer to document allowable enum like string as a constant, then I can say that's a valid argument.