Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
spion
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
77 ms
·
811.
▲
by
spion
8y ago
Trivial doesn't mean it wasn't well thought out. On the contrary the more trivial the abstraction the more likely its more general, since it has less constraints.
812.
▲
by
spion
8y ago
Seems like an instance of "The wrong abstraction" ? https://www.sandimetz.com/blog/2016/1/20/the-wrong-abstracti...
813.
▲
by
spion
8y ago
Raising awareness on social media might also work.
814.
▲
by
spion
9y ago
Depends on what you mean by "good abstraction". If I wish to use sum types to represent discriminated unions and parametric polymorphic types then yes its better to make sure the type "sets" don't intersect. I would
815.
▲
by
spion
9y ago
This doesn't sound right Sum types are not more capable of an abstraction than union types. If we consider them in isolation, they are strictly less capable. For example, its possible to model sum types using union types in TypeScrip
816.
▲
by
spion
9y ago
Try TypeScript or ReasonML or ScalaJS. They all compile to JS and have dead-easy FFI so you can still use the ecosystem stuff you're used to, but you learn something new. In the case of ReasonML and Scala you get to use them later with
817.
▲
by
spion
9y ago
Should've clarified that "first class support" wasn't really about the VM but mostly about the library ecosystem.
818.
▲
by
spion
9y ago
re: Clojure, the stack traces I think explain the issue (they're pretty terrible, you can see the Java guts). With Scala its probably better, but still the impedance mismatch shows here and there (the Java ecosystem doesn't use ca
819.
▲
by
spion
9y ago
Its so funny, watching Java fans talking about silly things like `var` whilst their language gets more obsolete every day. I'm so sorry, but basic type inference won. Can you please go away so we can get a good ecosystem and a good l
820.
▲
by
spion
9y ago
You need escaping only when you're sending strings to a compiler (which is what you do when you do server-side rendering), and its a never ending source of bugs. You basically need to re-implement the entire logic of a full blown parse
821.
▲
by
spion
9y ago
You're getting downvoted because you're equating Angular 1, React and Vue. React has one huge difference: its "template language" is (almost) never compiled at run time. Its not HTML at all. This makes it difficult to co
822.
▲
by
spion
9y ago
The surface problem of LISP are the parenthesis. The deeper problem is that its a very potent NIH enabler: most of us are not really that talented or have the time to properly invent things; those that are tend to not quite like other peopl
823.
▲
by
spion
9y ago
What about tarball extraction and native module build artefacts being produced? They'll still have the wrong permissions. This was not originally about "mkdirp". It was about managing the cache when running with sudo on ubunt
824.
▲
by
spion
9y ago
You want to know how this happened? It all started with ubuntu pointing home to the user's dir when running sudo. This was done out of convenience to have gedit and other Xorg apps work when run with sudo... Then there is also the terr
825.
▲
by
spion
9y ago
Out of curiosity and if you recall, what were the approximate macros?
826.
▲
by
spion
9y ago
> Because you can't apply reduce any other way. In mobx, an unused computed will not run or recompute until its requested by a side effect (an autorun reaction, an observer component etc). Example: https://jsfiddle.net&#x
827.
▲
by
spion
9y ago
No structural comparison: MobX will stop dependant recomputation if the new value of an intermediate recomputation is equal to the previous value. You also have the option of using structural equality instead of reference equality (and also
828.
▲
by
spion
9y ago
The number of tricky corner cases in MobX are very few. Also, once the implementation switches to proxies the vast majority will disappear. I'm willing to accept a few corner cases as long as there is a large common subset of functiona
829.
▲
by
spion
9y ago
I don't want to use surplus because e.g. I want to use well developed UI components or toolkits like blueprintjs, which is implemented on top of React. Slightly confusing is a real objection. MobX strives to implement transparent react
830.
▲
by
spion
9y ago
Slightly confusing api, no structural comparison, no adapters for popular frameworks (e.g. S.js-react or S.js-preact), no laziness (computations are recomputed even if they're not requested by reactions).
831.
▲
by
spion
9y ago
By actually using the thing being criticised instead of giving it the middlebrow dismissal. The "market" of application state management libraries.
832.
▲
by
spion
9y ago
I elaborated that case in the most detail, but there are many other problems that generators solve mentioned in the blog post. Another very common one is getting the current user that initiated the request (or maybe their session), which yo
833.
▲
by
spion
9y ago
MobX is the most powerful front end development library on the market right now. It single-handedly solves the cache invalidation problem in a performant way, and its pluggable into any framework. And yes, promises limit it.
834.
▲
by
spion
9y ago
This has nothing to do with it. I love promises but they are truly limiting. Here is an example of how promises limit the power of mobx https://twitter.com/spion/status/958906847385341952 Another example relevant
835.
▲
by
spion
9y ago
People hate having a build step and will go to great lengths to get rid of it. To add on top of that, the situation with writing modular code in JavaScript/HTML/CSS is such a total disaster - even with a build step. Of course, the
836.
▲
Machine learning ethics
(spion.github.io)
2 points
by
spion
9y ago
|
0 comments
837.
▲
by
spion
9y ago
Thats a little presumptuous. We're doing the best we can to build complex applications, on top of a platform that still has no proper module system, no UI toolkit except a wonky document model on top of which bloatedness was built, san
838.
▲
by
spion
9y ago
That article describes all the steps he took to get there, and he simply didin't make it clear what of that was included in the end result (its just a generic action creator and type guard)
839.
▲
by
spion
9y ago
Hi ericschmidt, your comment is dead for some reason, so I'll reply here I like Jason Fung's theory best too, but there still are some problems. Its true that I've mischaracterised it somewhat, but he seems to hold several th
840.
▲
by
spion
9y ago
Thats a great meta-analysis referenced there ( https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4951141/ ), but the table of studies only contains baseline measures ( https://www.ncbi.nlm.nih.gov/pmc
More ›