Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
jiaweihli
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
11 ms
·
61.
▲
by
jiaweihli
10y ago
It's because it's too easy to lose some of these nuances during refactoring/development blindness. I'd go so far as to say it's inevitable. If you come into a 3 year old codebase and during the first 2 weeks you ne
62.
▲
by
jiaweihli
10y ago
Yes, the frustrating thing was that people previously praised the language _despite_ its obvious footguns. A language where 'dropping parentheses where you can' is idiomatic is a disaster waiting to happen. I don't know abou
63.
▲
by
jiaweihli
10y ago
In all honesty, I prefer having rules that have no special-case 'unless' issues. It's too much effort/trouble to remember all the cases where things don't work. I'm a good engineer but a terrible compiler. I
64.
▲
by
jiaweihli
10y ago
Yes, first thing that crossed my mind. Scala is a very deep language, it was by far the language that took me the longest to learn.
65.
▲
by
jiaweihli
10y ago
If you ever find yourself working in JS and want Options, I've got you covered: https://github.com/jiaweihli/monapt
66.
▲
by
jiaweihli
10y ago
Unfortunately sole code ownership increases the bus factor.
67.
▲
by
jiaweihli
10y ago
Unfortunately, ternary operators eventually end up like this due to refactoring blindness: usefulMetric = wantComplexCalc ? (complexity > 40 ? superComplexCalc(foo) : regu
68.
▲
by
jiaweihli
10y ago
Yeah, I get that. There's not a good way to interview for many companies within only PTO. Something that's worked well for me in the past is to secure at least 1 good offer - compensation you feel comfortable with, recognizable b
69.
▲
by
jiaweihli
10y ago
I strongly disagree with this. I've been on the other side of the fence, trying to hire people for an early-mid startup (5-40 people) as an early employee. There are more people than you'd expect who can talk the talk but can
70.
▲
by
jiaweihli
10y ago
Then many of the doctors/lawyers burdened with extreme student debt and unable to find work will put pressure on the insurance companies and ultimately charge lower prices. That's likely decades out though.
71.
▲
by
jiaweihli
10y ago
I would bet that a lot of companies consider certifications to be a negative signal when evaluating candidates. Likely because the certifications aren't meaningfully standardized, so there's not much point in seeking external vali
72.
▲
by
jiaweihli
10y ago
IANAL, but I've heard in California at least, companies can't claim ownership over work you do on your own time on your own resources, that don't directly compete with the company. Of course, things get muddier since Google d
73.
▲
by
jiaweihli
10y ago
It's some correlation, and it's more useful than the full spectrum.
74.
▲
by
jiaweihli
10y ago
spankalee@ Likely needs an A or a CNAME record.
75.
▲
by
jiaweihli
10y ago
In an ideal world, this is probably the case. Unfortunately, there are a lot of non-ideal codebases in the world. Even the worst developer can eventually develop fluency in a poorly-designed codebase and seem much more competent than they
76.
▲
by
jiaweihli
10y ago
I can believe that there's _some_ correlation. From what I've seen, a high frequency of commits means either: - Has very little understanding and churns out code one day and removes it the next. - Thinks a lot about their co
77.
▲
by
jiaweihli
10y ago
You might find this an interesting read: http://www.recode.net/2016/12/5/13842608/former-google-ventu...
78.
▲
by
jiaweihli
10y ago
As long as you're not doing type casting or any funny reflection, you can write that code and it'll be caught at compile-time. I wrote a library [1] that does this in a readable pattern-matching way, hope you find it useful! [1]
79.
▲
by
jiaweihli
10y ago
You're right, this has been added recently and there's also now a community effort around 3rd party modules. [1] Though it looks like it didn't become active until after at least 03/2016 [2]. I mention this only because
80.
▲
by
jiaweihli
10y ago
Very early on, Typescript cleverly built up an ecosystem around community-supported type definitions for popular js libraries. This makes type-checking and integration for those libraries dead simple. 2 years later, Flow is _still_ lagging
81.
▲
by
jiaweihli
10y ago
Try webpack, it's fast and the configuration is nearly declarative. You can also create a separate build task to run a smoke test by directly calling the ts compiler to compile your code (skipping pre- and post- build steps). This was
82.
▲
by
jiaweihli
10y ago
I haven't worked too much with Haskell, but I've spent some time with Scala - they have pretty advanced type systems. Typescript can't match them 100%, but it's getting there. e.g. It doesn't have type variance, bu
83.
▲
by
jiaweihli
10y ago
I grew up 3 years ahead of my classmates in math. I found everything up until calculus to be easy but elegant - algebra, geometry, probability, trigonometry. Much like programming, there were often multiple ways of the solving the same pr
84.
▲
by
jiaweihli
10y ago
You're describing a fixed vs. growth mindset. This applies both to your current perception of people (notably children), and also your perception of yourself when you're a child. I believe in the growth mindset - to explain your e
85.
▲
by
jiaweihli
10y ago
Considering Daydream is effectively the next iteration of Cardboard, I'm also happy to take that bet.
86.
▲
by
jiaweihli
10y ago
Other manufacturers are likely all scrambling to catch the VR train so they aren't left behind. I expect all top-end phones to support VR within the next 2 years, if not 1 year. So within that time the cost will fall down to $80.
87.
▲
by
jiaweihli
10y ago
There's no need to jump straight into the deep end of tooling. An iterative approach works really well here - do a brief survey of what tools there are and what problems they solve. Then, when that problem starts soaking up a lot of t
88.
▲
by
jiaweihli
10y ago
For explicit Maybe/Option try Monapt[1]. Disclaimer: I might know the author =) [1] https://github.com/jiaweihli/monapt
89.
▲
by
jiaweihli
10y ago
I think I understand what you're getting at - correct me if I'm wrong. React's templating allows you to execute arbitrary JS logic when rendering, which is more versatile than simple one-way data binding. My thoughts there ar
90.
▲
by
jiaweihli
10y ago
Can you give an example of a more general problem that you see React solving better? The example you gave earlier doesn't fully answer this.
More ›