HackerTrans
トップ新着トレンドコメント過去質問紹介求人

ramsicandra

no profile record

投稿

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

1 ポイント·投稿者 ramsicandra·7 か月前·0 コメント

Ask HN: Java why put string in a constant?

1 ポイント·投稿者 ramsicandra·昨年·2 コメント

[untitled]

1 ポイント·投稿者 ramsicandra·昨年·0 コメント

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

docs.google.com
1 ポイント·投稿者 ramsicandra·2 年前·0 コメント

コメント

ramsicandra
·昨年·議論
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.