HNHacker News
TopNewBestAskShowJobs

luwes

44 karma · joined August 24, 2012

https://wesleyluyten.com
submissionscomments
luwes··on Show HN: I took back Video.js after 16 years and we rewrote it to be 88% smaller
VJS contributor here. It still matters for the page load time and start up time of the video which could be important to engage the user quick enough depending on the use case. We hint at this in the home page under the v10 is built different title. By importing the player bundle with the same import path via ESM in your bundle build it should deduplicate automatically. Hope this helps!
luwes··on A Critique of React Hooks
Hooks are nothing new, it's just repackaging of

https://github.com/dominictarr/observable https://github.com/adamhaile/S

Mobx and Vue use the same technique for running computeds.

As does Solid and Sinuous, etc...

luwes··on Show HN: Sinuous – Small, fast, reactive UI library
also fixed https://codesandbox.io/s/sinuous-array-bug-fixed-4s2nr
luwes··on Show HN: Sinuous – Small, fast, reactive UI library
This is fixed in v0.12.3, https://codesandbox.io/s/sinuous-counter-hmp8x

The issue below is still to be fixed. It currently returns an array when it should be a DocumentFragment. It's related to the popular `htm` package that Sinuous uses.

html`${seq.map(i => html`<li>Counter #${i} ${counter}</li>`)}`

luwes··on Show HN: Sinuous – Small, fast, reactive UI library
@aitchnyu it is similar to Svelte, a lot simpler, early stages, less features though.

I think one of the upsides of Sinuous is that stays much closer to plain JS and to the web standards.

luwes··on Show HN: Sinuous – Small, fast, reactive UI library
it's indeed not possible, that's why there is a `map` module for rendering lists.
luwes··on Show HN: Sinuous – Small, fast, reactive UI library
thanks for reporting, seems to be a bug. added to GH issues and will fix asap
luwes··on Show HN: Sinuous – Small, fast, reactive UI library
@localvoid thanks for the investigation, Sinuous can get around this with the template module I believe.

Also Sinuous doesn't use the same library as Solid or S.js for tracking dependencies. I'll do some investigating if it has the same issue that you posted.

luwes··on Show HN: Sinuous – Small, fast, reactive UI library
Thanks for the feedback!

`o` is an alias for `observable`. `observable` can be used as well.

`h` is the pragma, comes from hyperscript. it's used by a lot of libraries as the createElement function name so I didn't think this needed a more descriptive name.

luwes··on Inside the Guardian’s CMS: meet Scribe, an extensible rich text editor
Shamelessly promoting my text selection and range API polyfill, https://github.com/luwes/selection-polyfill

Just to make clear, this would enable Scribe to work in older IE browsers.

luwes··on Depression lies
Vitamin D helped me too, it seemed to increase my energy.

It makes sense to add this to your diet if you're working behind a desk indoors most of the day.