Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
bcherny
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
51 ms
·
631.
▲
by
bcherny
10y ago
I've also been trying to derive a good TS pattern for redux Actions/Reducers. Do you have any code examples online that you could point me to?
632.
▲
by
bcherny
10y ago
I'd argue that's a strength. Note how scala is modularizing its standard lib in Dotty, and TypeScript is doing that same for stdlib typings. Standard libs are great, but they need to be modular. If they're modular then they a
633.
▲
by
bcherny
10y ago
An idea of open source is that it's very likely that your own implementation is buggier, slower, and more poorly specified than the existing state of the art open source implementation. https://en.wikipedia.org/wiki
634.
▲
by
bcherny
10y ago
Compared to retained mode renderers..
635.
▲
by
bcherny
10y ago
React is the really the ideal rendering engine (though much less optimized than something like Unity). An immediate mode API abstracting over a retained mode renderer lets you think about a program as a state machine, while not sacrificing
636.
▲
by
bcherny
10y ago
In person meeting = talk through a problem with a colleague for 5-10 mins. Not scheduled, not in a meeting room, and unlikely to have >2 participants.
637.
▲
by
bcherny
10y ago
If you're using TypeScript + templateUrl, you won't get static checking of templates. With React + TypeScript, you will.
638.
▲
by
bcherny
10y ago
Small company, 0 hours of meetings. We resolve everything over Github issues, email, Slack, or in person conversations.
639.
▲
by
bcherny
10y ago
This reads like spam :/
640.
▲
by
bcherny
10y ago
I like the argument made in So Good They Can't Ignore You, which is in line with this article. Specifically, the author argues that based on studies, people most satisfied with their jobs are not those with a natural aptitudes for thei
641.
▲
by
bcherny
10y ago
That's fair. Personally, I'm excited to have another way to manage side effects on a platform that has so many of them.
642.
▲
by
bcherny
10y ago
What do you think of using Dotty's effect system for frontend code?
643.
▲
by
bcherny
10y ago
Given everything we hear about the NSA/FBI, this seems like a fair concern.
644.
▲
by
bcherny
10y ago
Wow! Very cool to have the infamous Reggie drop in. Perhaps this is a good chance to say thank you for JS Allonge, which was my introduction to writing proper JavaScript. Before it I wrote code to make a feature work; now, it is equal parts
645.
▲
by
bcherny
10y ago
> I wonder if typescript alleviates some of these pain points. TS :> JS, not <:. What specifically are you hoping TS addresses?
646.
▲
by
bcherny
10y ago
I'm sure you and @danabromov have more thoughts on this, but I would generally constrain the mixin system more: - Don't let mixins call setState() directly; otherwise, it can be hard to track down what mutated the state. Have a we
647.
▲
by
bcherny
10y ago
The thing is, mixins are a pattern, and patterns are interchangeable. So you can use composition, single inheritance, multiple inheritance, and mixins interchangeably in most cases. It's not that you need a particular pattern, it jus
648.
▲
by
bcherny
10y ago
Implementing mixins correctly in JS (which React does not) is already a well explored problem space. I like https://leanpub.com/javascript-spessore for great explorations and derivations of various mixin patterns. It's
649.
▲
by
bcherny
10y ago
This is a poor reason to not use TS. If in the unlikely worst case scenario the TS team drops/renames the ! syntax at some point, given that these are compile time checks, you will just manually go through a list of compile time errors
650.
▲
by
bcherny
10y ago
Nothing ground breaking here - I imagine most readers here already use most of the author's models - but this is a nice comprehensive list, which I have not seen before.
651.
▲
by
bcherny
10y ago
This would be pretty powerful if you combine it with speech recognition. If you put this array in the middle of a crowded room, can you better tease apart different audio sources?
652.
▲
by
bcherny
10y ago
The two aren't exclusive. What's to stop the experts from doing this as a side project?
653.
▲
by
bcherny
10y ago
Actually? This would explain a lot.
654.
▲
by
bcherny
10y ago
In my year or so of using TS, I've noticed that this is the only sort of typing that doesn't get out of date, and is high quality. Even something as popular as lodash typings lag behind the newest lodash releases, are missing typi
655.
▲
by
bcherny
10y ago
Wow, this is a huge release! Does this mean Safari supports ES6 modules now? Also, how did the Nitro team resolve the issues that the V8 team faced when implementing tail call optimization (tooling broke when they implemented it, so I belie
656.
▲
by
bcherny
10y ago
Looks like a Medium clone?
657.
▲
by
bcherny
10y ago
Is there a similar trend in any other language? Seems like the answer is "no" for Ruby, Go, Scala, and TypeScript. https://github.com/ruby/ruby/graphs/contributors https://github.com/
658.
▲
by
bcherny
10y ago
Same here. Personally I prefer ES6 for a few reasons: - Future compatible, more interoperable - ES6 classes can extend each other in a standards compliant way - CS arrow functions feel verbose compared to ES6 - Constants - More tooling supp
659.
▲
by
bcherny
10y ago
Unfortunately the CoffeeScript project seems to be in maintenance mode, and hasn't had a release for ~9 months. Probably something to do with the ad hoc compiler and lack of ES6 support. See https://github.com/jashkenas
660.
▲
by
bcherny
10y ago
This is very cool, and is a very hard problem! It reminds me of Hofstadter's Jumbo experiment from the '80s: https://books.google.com/books?id=somvbmHCaOEC&pg=PA97&lpg=P... (Clojure implementation here: h
More ›