Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
kentor
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
14 ms
·
91.
▲
by
kentor
11y ago
Yeah.. I ran into perf problems with that in IE9 in a VM. But that may be the price to pay for a single source of truth.
92.
▲
by
kentor
11y ago
reinventing? https://facebook.github.io/react/docs/two-way-binding-helper...
93.
▲
by
kentor
11y ago
I love JSX because all it is one big javascript expression. I disagree with the statement For some reason, React’s JSX make this unnecessarily complicated by not being able to use if statements inside code blocks. Using if inside an
94.
▲
by
kentor
11y ago
Because PostCSS allows you to write future spec compliant code, unlike sass. It's like writing ES6 then using a transpiler to generate ES5.
95.
▲
by
kentor
11y ago
hopefully some of these gets incorporated into the real specs?
96.
▲
by
kentor
11y ago
JSX is a separate spec. https://facebook.github.io/jsx/ "It's NOT a proposal to incorporate JSX into the ECMAScript spec itself. It's intended to be used by various preprocessors (transpilers) to transfo
97.
▲
by
kentor
11y ago
No. String#freeze exists for a reason.
98.
▲
by
kentor
11y ago
I've stopped doing ruby dev, but boy do I not miss mutable strings. Javascript/Python's got that part right. String interning is a godsend.
99.
▲
by
kentor
11y ago
The second syllable is stressed for commodify.
100.
▲
by
kentor
11y ago
Here's how I would inline it, and I encourage people to do it this way. Intermediate variable is not necessary. Ternary is not necessary since false evaluates to null in jsx. render() { return ( <div className='card
101.
▲
by
kentor
11y ago
For those who want to use React to generate a static site check out the source to my blog: https://github.com/kentor/kentor.github.io . I've ditched Jekyll because I don't want to use its template system and h
102.
▲
by
kentor
11y ago
People who want to use a template system for React are seriously missing the point. When you use strings that converts into javascript, e.g. onChange="()=>this.toggleChecked(todoIndex) then you lose out on all the static anal
103.
▲
by
kentor
11y ago
React dev tools? https://chrome.google.com/webstore/detail/react-developer-to...
104.
▲
by
kentor
11y ago
Because "code over configuration". Personally I'm not a fan of Grunt's API which requires huge json files where keys mean special things. It feels very ad hoc and ugly. Gulp's API is like 5 functions.
105.
▲
by
kentor
11y ago
Tooling and static analysis. ESLint can tell me if `MixinComponent` is undefined during parse time.
106.
▲
by
kentor
11y ago
I've switched from DO to Vultr back when DO did not offer FreeBSD and DO's SFO network was pretty bad. I'm back on DO now because I've got my hands on some credits, but I would switch back to Vultr when I run out. DO
107.
▲
by
kentor
11y ago
same problem here. need to make it aware of my aliases :\
108.
▲
KeyboardEvent.key
(developer.mozilla.org)
2 points
by
kentor
11y ago
|
0 comments
109.
▲
by
kentor
12y ago
Please don't do what's written in this article. It's an anti-pattern to set state from props[1]. Consider what happens when a new set of data is passed to this component from above, this component won't get the new set o
110.
▲
by
kentor
13y ago
n % 1 == 0
111.
▲
by
kentor
13y ago
fat is good for you. more fat please
112.
▲
by
kentor
13y ago
why avoid saturated fats? because they cause heart disease?
113.
▲
by
kentor
13y ago
i can't seek in the video. what the hell? i accidentally clicked outside of the popup box and now i have to watch from the beginning...