Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
dumindaxsb
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
1.
▲
by
dumindaxsb
5y ago
Hi Azaan, This is brilliantly done. You have a bright future ahead. A few suggestions: 1. You could add anonymous(but verified) tutor ratings. This will enable children to find better tutors while tutors are encouraged to perform better to
2.
▲
by
dumindaxsb
5y ago
This is a cool project somebee. Interested to explore more. On benchmarking: I went through the same concerns and ended up building a little benchmarking tool for a simple reactive UI library I'm working on. It's not super user-fr
3.
▲
by
dumindaxsb
5y ago
Cool! I just made the PR :) Good luck with the project.
4.
▲
by
dumindaxsb
5y ago
This is very useful. Thank you for making this. I was going to suggest a dark theme, then I thought why not making one for you (not perfect, but a good place to start): https://pastebin.com/vzA11EG3 Cheers!
5.
▲
by
dumindaxsb
5y ago
Yes, the indicators are very strong. However, we thought similarly about Nokia, Intel, SpaceX competitors, etc.
6.
▲
by
dumindaxsb
5y ago
This is cool!
7.
▲
by
dumindaxsb
5y ago
Update: Your reply encouraged me to experiment a little bit. Turns out, CalDOM already seamlessly merge with native Web Components. I just didn't see it previously. :( It can be used to create reactive, stateful & native Web Compon
8.
▲
by
dumindaxsb
5y ago
Thank you! :)
9.
▲
by
dumindaxsb
5y ago
It's 100% interoperable with Native DOM API. Basically, CalDOM's reactivity system does not care how the Element is created as long as it's a Native DOM Element/Node. It could be _("+div") or document.createEle
10.
▲
by
dumindaxsb
5y ago
Thank you very much! Actually, I was very nervous about "meh, whatever another JS lib" response. I'm relatively new to HN. This community is awesome!
11.
▲
by
dumindaxsb
5y ago
I understand. I picked it mainly for 3 reasons. In my opinion, 1. _ kind of hide itself & give more prominence to the rest of the code (logic) 2. If we pick a long name like CalDOM, it becomes a PITA when it repeats so many times. 3. No
12.
▲
by
dumindaxsb
5y ago
I understand. Thank you for the feedback. If you don't like the underscore, there's an official way to alias it: https://caldom.org/docs/#_cal_dom_alias I actually forgot to mention this in the documentation,
13.
▲
by
dumindaxsb
5y ago
Thank you. Worked really hard on the benchmark :) No, it's not synced. When you use CalDOM without its reactive features, it's just a wrapper around the native DOM Element (similar to jQuery). _("button").elem === docume
14.
▲
by
dumindaxsb
5y ago
Yeah. Thank you for the valuable feedback. Working on it.
15.
▲
by
dumindaxsb
5y ago
Thank you :)
16.
▲
by
dumindaxsb
5y ago
Yeah, Lit is cool & futuristic. However, it's built for ES2019. It requires some effort to make it compatible with previous browsers: https://lit.dev/docs/tools/requirements/ In my opinion, this is t
17.
▲
by
dumindaxsb
5y ago
Same technique is used for .$ reference holder. Proxies are awesome! :)
18.
▲
by
dumindaxsb
5y ago
Exactly, and state changes are batched behind requestAnimationFrame :) Also, there's .react(new_state), which is synchronous. If one prefer not to use Proxies (old browsers, etc), it can be disabled via .react( state, { ..., watched: f
19.
▲
by
dumindaxsb
5y ago
I honestly don’t know where this will lead. Probably all of this is just for nothing. The world has enough UI libraries already. Duh!. I decided to make my own mini jQuery years ago because I wanted a lightweight library. Also, I wanted to
20.
▲
Show HN: CalDOM: An agnostic, reactive and minimalist JavaScript UI library
(caldom.org)
107 points
by
dumindaxsb
5y ago
|
57 comments
21.
▲
by
dumindaxsb
5y ago
Introducing CalDOM, an agnostic, reactive & minimalist (3kb) JavaScript UI library with direct access to native DOM. Instead of pulling you into a library-specific magical world, CalDOM let you fully access the DOM directly while keepin
22.
▲
by
dumindaxsb
6y ago
Nice finishing touch. I think this is the shortest it could get in this approach with semantic tags. I just learnt about insertAdjacentHTML & last variable return of arrow functions. (not using widely due to compatibility) Also, you
23.
▲
by
dumindaxsb
6y ago
Hello!, I'm the original owner of this tweet & new to HN. I never expected this to go crazy at this scale. A big thank you to @rukshn for sharing it here. My apologies for the narrow requirement definition (had to limit it to 280 c