Better HN
topnewbestaskshowjobs
Log inSign up

ramsicandra

19 karma · joined Sep 26, 2022 (4y ago) · 11 submissions

Submissions

1.

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

1 points · by ramsicandra · 11mo ago · discuss

comment 1y ago · link · parent

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.

3.

Ask HN: Java why put string in a constant?

1 points · by ramsicandra · 1y ago · 2 comments

4.

The cost of string composite key 1c, 1v, 1u, 1tc(docs.google.com ↗)

1 points · by ramsicandra · 2y ago · discuss

comment 2y ago · link · parent

I think this is a fair criticism. The Merkle Tree here isn't used. I was just inspired by the diagram and come up with binary partitioning solution.

In terms of performance, it's fair to say that this binary partitioning algo is slightly worse than a cursor / search after pagination since there is an overhead of checking count while the cursor pagination does not need to.

Hmm, It never cross my mind to change/correct the design of using ES as a primary data source. My guess now is it would take as much effort or higher to migrate between ES -> SQL compared to ES -> ES.

I think the snapshot approach is interesting. If I had to start over, I'll most likely explore that.

6.

An alternative to cursor pagination(medium.com ↗)

50 points · by ramsicandra · 2y ago · 13 comments

comment 3y ago · link · parent

It's now relatively easy to have 1 million websockets.

8.

1M WebSockets with Node.js(github.com ↗)

1 points · by ramsicandra · 3y ago · 1 comment

comment 4y ago · link · parent

Curious question: Is the idea of throwing more umbrella at the problem a solution only software engineer would think of?