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 أشهر·0 comments

Ask HN: Java why put string in a constant?

1 points·by ramsicandra·السنة الماضية·2 comments

[untitled]

1 points·by ramsicandra·السنة الماضية·0 comments

The cost of string composite key 1c, 1v, 1u, 1tc

docs.google.com
1 points·by ramsicandra·قبل سنتين·0 comments

comments

ramsicandra
·السنة الماضية·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.