Live data from Hacker News

Show HN: Nash, I made a standalone note with single HTML file

keepworking.github.io

141–150 of 153 posts

Re: Show HN: Nash, I made a standalone note with single HTML file

#141
post #130

Earlier quoted context omitted.

This is a truly a great insight from how simple things can create industry giants like google docs. I believe that a lot of problems can be converted into synchronization problems in browsers. Are there any general synchronization libraries / applications that you suggest within browser / outside browser? Thanks in advance.

Not OP, but common solutions in this space represent the state as conflict-free replicated data types (CRDTs). Some popular browser-based libraries for that are Y.js[0] and Automerge[1]. [0]: https://yjs.dev/ [1]: https://automerge.org/

By the way, for those wanting to do this but in Rust, there is https://crates.io/crates/yrs and https://crates.io/crates/automerge

Re: Show HN: Nash, I made a standalone note with single HTML file

#142
post #130

Earlier quoted context omitted.

Not OP, but common solutions in this space represent the state as conflict-free replicated data types (CRDTs). Some popular browser-based libraries for that are Y.js[0] and Automerge[1]. [0]: https://yjs.dev/ [1]: https://automerge.org/

By the way, for those wanting to do this but in Rust, there is https://crates.io/crates/yrs and https://crates.io/crates/automerge

And Loro [1], relatively new player which recently hit 1.0, with solid performance and some features the others don’t have

[1]: https://loro.dev/

Re: Show HN: Nash, I made a standalone note with single HTML file

#143

Earlier quoted context omitted.

By the way, for those wanting to do this but in Rust, there is https://crates.io/crates/yrs and https://crates.io/crates/automerge

And Loro [1], relatively new player which recently hit 1.0, with solid performance and some features the others don’t have [1]: https://loro.dev/

Amazing, thanks for the link

What features does Loro have that others lack?

Re: Show HN: Nash, I made a standalone note with single HTML file

#145

I love this. I made something similar, even more bare-bones, for myself a few years ago. I still use it literally everyday: https://tabnotes.page (just type a note)

Just one note in local storage? What would you use it for?

just if i need to type something quickly, to somewhere with effectively zero startup time, just quickly pop a new tab and get a thought down. it's easy for me to lose a thought when im in the middle of something complex, so "time-to-written-down" is kinda the only thing that matters to me

Re: Show HN: Nash, I made a standalone note with single HTML file

#147

Earlier quoted context omitted.

I thought it was a dynamic text box souped up with all sorts of tricks and semantics to make it appear like a rich text editor

I'm not sure exactly what you mean by "dynamic text box" but it was just a contenteditable div. There have been at least two complete rewrites since I was involved, nowadays I believe it's a canvas with all of the editing, formatting, layout, and rendering done "by hand" in JavaScript.

The kind of text box used in php forums ... called text area I think, and this would be hidden every time the focus went away and an HTML based layout presented in its place. This seemed to be clunky but I thought that was what made writely possible. ContentEditable is such a breath of fresh air had I ever known about it. I wonder if IE6 supported that.

Re: Show HN: Nash, I made a standalone note with single HTML file

#148
post #106

Earlier quoted context omitted.

VIM is an HTML page? Or JetBrains editors render an HTML page? I know that some people code in an HTML page rendered in Electron, that would be Atom and VS Code and family, but that's far enough from the majority of people that declaring "our code editor" is disingenuous.

See my other comment in this thread. It's 3/4 devs according to SO.

Call me a neckbeard, but 3/4 of devs are not representative of 3/4 of devs in the industry in my opinion. And especially not of 3/4 of devs on HN.

According to: https://survey.stackoverflow.co/2024/technology#most-popular...

It seems that the order of most used technologies on SO is JS, SQL, HTML, CSS, and only then Python. We skip back to TypeScript and then Bash before finally getting to Java, C#, and C++.

I daresay that self-selected people who read, and sign up for, and fill out a survey at Stack Overflow does not represent the industry as a whole.

Re: Show HN: Nash, I made a standalone note with single HTML file

#150
post #106

Earlier quoted context omitted.

See my other comment in this thread. It's 3/4 devs according to SO.

Call me a neckbeard, but 3/4 of devs are not representative of 3/4 of devs in the industry in my opinion. And especially not of 3/4 of devs on HN. According to: https://survey.stackoverflow.co/2024/technology#most-popular... It seems that the order of most used technologies on SO is JS, SQL, HTML, CSS, and only then Python. We skip back to TypeScript and then Bash before finally getting to Java, C#, and C++. I daresa…

  > Call me a neckbeard, but 3/4 of devs are not representative of
That should read:

  > Call me a neckbeard, but 3/4 of devs responding to Stack Overflow surveys are not representative of
Post reply on HN