Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
slmgc
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
1.
▲
by
slmgc
8y ago
Updated the readme, added a few comments, changed some names
2.
▲
by
slmgc
8y ago
Added a FAQ section: https://github.com/slmgc/Nothing#faq
3.
▲
by
slmgc
9y ago
Wrapping you code into a try/catch block decreases performance even more, you don't want to do that. You might want to check it out: https://github.com/GoogleChrome/proxy-polyfill
4.
▲
by
slmgc
9y ago
Yep, it's way easier to implement in some other languages. Btw, is it callable as well? Can you do Whatever.new().foo.bar().baz with it?
5.
▲
by
slmgc
9y ago
I agree, examples can be (and will be) improved with additional comments.
6.
▲
by
slmgc
9y ago
I've seen this one: https://github.com/GoogleChrome/proxy-polyfill
7.
▲
by
slmgc
9y ago
idx requires a transpilation step. > you try to access a property on a value that's null (which you think isn't null), and instead of getting an error, nothing happens You can check for Nothing if you know you shouldn't ge
8.
▲
by
slmgc
9y ago
Nope, hint won't help here as it gets `default` instead of `number`.
9.
▲
Show HN: Nothing.js – A chainable mock object which always returns itself
(github.com)
89 points
by
slmgc
9y ago
|
40 comments
10.
▲
Show HN: React-Hint v3 – 140LoC Tooltip Component for React, Preact and Inferno
(react-hint.js.org)
2 points
by
slmgc
9y ago
|
0 comments
11.
▲
by
slmgc
9y ago
Yep, it works just fine without Preact's compatibility layer: import {h, Component} from 'preact' import {ReactHintFactory} from 'react-hint' import 'react-hint/css/index.css' const Re
12.
▲
by
slmgc
9y ago
I made this library a while ago, long before all this hype about React's license (which was with the questionable clause from the beginning). I added support for Preact as I liked the minimalistic style of Preact, used it in my own pro
13.
▲
by
slmgc
9y ago
Nope, it's a pure coincidence as I've made the button style just to record the GIF. As for the tooltip itself, it uses a generic style, but thanks for the link to your project, looks nice :)
14.
▲
by
slmgc
9y ago
That's a good question, thanks! I didn't think about that, but, surely, this functionality should be added. I will try to research what would be the best solution for accessibility.
15.
▲
Show HN: React-hint – 150LoC Tooltip Component for React, Preact and Inferno
(github.com)
37 points
by
slmgc
9y ago
|
15 comments