Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
jiaweihli
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
18 ms
·
91.
▲
by
jiaweihli
10y ago
Are you thinking of computed properties? If so, there are many libraries that have solved this, e.g.: https://vuejs.org/guide/computed.html https://guides.emberjs.com/v2.3.0/object-model/comp
92.
▲
by
jiaweihli
10y ago
Can someone explain the benefits of React's DOM diffing model? Rather than try to diff two DOM trees and optimize reconciliation, why not use one-way data binding and update exactly what has changed, with 0 reconciliation cost? Eithe
93.
▲
by
jiaweihli
10y ago
You aren't required to use import, use require if you don't care for typings: `var aLibrary: any = require('aLibrary');`
94.
▲
by
jiaweihli
10y ago
Another way to look at this is that interviews are like tests where you already know what the topics are. So a company with a 'standard interview process' is testing your ability to study for and do well on a test. That's a
95.
▲
by
jiaweihli
10y ago
If you're in the JVM ecosystem, you may want to check out http://akka.io , which is self hosted lambda with more features and better documentation.
96.
▲
by
jiaweihli
10y ago
Scala is more forgiving than Haskell and the parent poster asked for something with Erlang-style actors, which are always going to be complex. I really think this is the best option out there.
97.
▲
by
jiaweihli
10y ago
Akka[1] is exactly the library you're looking for. It's available for Scala[2], which lets you use both OOP and FP as needed. (It also runs in Java if you have experience with that.) [1] http://akka.io/ [2] htt
98.
▲
by
jiaweihli
10y ago
Hence, 'fallen giant '.
99.
▲
by
jiaweihli
11y ago
I don't think this is a millenial problem, this is true of the young adult population in every generation. One trend I've noticed is that those who grow up in suburbs tend to prefer cities in their 20s, and those who grew up in c
100.
▲
by
jiaweihli
11y ago
Agree, an apartment I used to rent in LA has appreciated by 50% in 4 years. The housing crisis isn't as full-blown as in SF, but it's quickly getting there.
101.
▲
by
jiaweihli
11y ago
Have you looked into ocropy[0]? Here's a nice intro[1] that later talks about how it achieves higher accuracy using an LSTM model[2]. [0] https://github.com/tmbdev/ocropy [1] http://www.danvk.org/2
102.
▲
by
jiaweihli
11y ago
For dynamically typed languages, using a popular type annotation syntax (e.g. rdoc for ruby, closure compiler for javascript) and an IDE (like Intellij) can give you 80% of the benefits of type safety by doing code inspection on-the-fly and
103.
▲
by
jiaweihli
11y ago
While I love scala, I have 2 concerns that have stopped me from using scala.js: 1) can I use typescript definitions to avoid writing everything myself? 2) how much bloat does this add to my app? (from overhead of standard libs and core)
104.
▲
by
jiaweihli
11y ago
Rivets[1] is an even lighter light-weight champion. [1] http://rivetsjs.com/
105.
▲
by
jiaweihli
11y ago
TypeScript supports disjoint unions: http://blogs.msdn.com/b/typescript/archive/2015/09/16/announ... The two real pain points (among those you mentioned) of TypeScript are bivariant function pa
106.
▲
by
jiaweihli
11y ago
Personally I'm not a huge fan of mixing language with UI architecture - it seems like it would slow down development on both fronts. Replacement costs are also much higher. That aside, we'll talk about how we built our architectu
107.
▲
by
jiaweihli
11y ago
There is also this gem of a quote by him[1]: > I can honestly say if someone had shown me the Programming in Scala book by by Martin Odersky, Lex Spoon & Bill Venners back in 2003 I'd probably have never created Groovy. [1] htt
108.
▲
by
jiaweihli
11y ago
This is slightly different from the original code. The reason for all the flatmapping is to avoid continuation if any of the subparsers fail, and notify the caller that something has failed because of {some exception}. You can avoid exces
109.
▲
by
jiaweihli
11y ago
let, const, decorators, string interpolation, other ES6/7 goodies. Also a few other compelling things like abstract classes and community type definitions.
110.
▲
by
jiaweihli
11y ago
Ah! I think I saw this awhile back. I didn't refer to it too much when working on Monapt since it seems to serve a more abstract purpose, and since Monapt's original purpose was to emulate Scala syntax.
111.
▲
by
jiaweihli
11y ago
You're absolutely right! I was hoping someone would point this out, since this is a much cleaner way of writing this code. This is pretty close to how it's done in Scala. For the purposes of this article, we tried to avoid too m
112.
▲
by
jiaweihli
11y ago
We considered Flow initially as well - but aside from its built-in maybe types (we use Monapt for this!), it's a subset of TypeScript feature-wise that doesn't iterate as quickly.
113.
▲
by
jiaweihli
11y ago
Are there any good IDEs for Clojure? If so, most of the stumbling could have been avoided. Coding without one tends to fall into the "ball-of-mud" problem where wrong code is built on top of other wrong code. Or alternatively,
114.
▲
by
jiaweihli
12y ago
If you care about filesize, you'll probably optimize as much as possible. You can do this with Lodash using modular imports. There's little upside in hosting a light version, and fragmenting the docs. Min/max'ing on fi
115.
▲
by
jiaweihli
12y ago
You'll have quite a bit of competition!: https://www.moveloot.com/
116.
▲
by
jiaweihli
12y ago
I don't see $60 of value over a few customized git aliases. The 'easy visualizations' in a GUI can be just as easily teased out with .gitconfig snippets: > lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)
117.
▲
by
jiaweihli
12y ago
I think this is a tooling issue. People initially tend to favor inheritance because it looks cleaner than composition. Mixing a lot of unrelated code in the same class makes things hard to find. (which method applies to which composed ob
118.
▲
by
jiaweihli
12y ago
Can you explain what you mean by `checks for safety first (variable declaration)`? This issue only seems to affect arrays. Strings, numbers, and dictionaries are fine.
119.
▲
by
jiaweihli
12y ago
I'm not sure if it's XCode / playground acting up, but array equality is broken for me: `[1, 2, 3] == [1, 2, 3]` returns false. This seems to contradict the core declarations though: /// Returns true if these
120.
▲
Re-designing the boarding pass
(passfail.squarespace.com)
1 points
by
jiaweihli
12y ago
|
0 comments
More ›