Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
okbake
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
1.
▲
by
okbake
5y ago
I agree with you about the `nameof` comparison, mainly because it deceptively looks like something you'd be able to write yourself (since it's just an attribute), but under the hood it's compiler magic. I'd rather it be
2.
▲
by
okbake
5y ago
I could see both, but things like integer vs float couldn't be determined from the type, since you just have the single `number` type. That being said, you could just convert to an int on the value you're passing in rather than ha
3.
▲
by
okbake
6y ago
A suggestion: don't hide the entire store component when you change one of the filters. You can see it flash with unstyled text "loading" before popping back into view. It's much less jarring if you keep the existing con
4.
▲
by
okbake
6y ago
I wish there was a little bit more data on this last chart. How are they measuring 'math progress' here? It looks like the data comes from "online usage data from Zearn math", but how is progress being measured? Does a +
5.
▲
by
okbake
6y ago
I am in this same boat. I recently signed up for Firefox Private Network and I'm in the process of switching over to Mozilla VPN. I think both of these services are great (even if they're essentially white-labels of other compani
6.
▲
by
okbake
6y ago
A big benefit of the `users->where(...)` approach is being able to reuse and compose. An example would be conditionally adding a WHERE clause based on some parameters. Using the raw query approach you end up having to do some string conc
7.
▲
by
okbake
6y ago
> According to SCS, the UI would be responsible for fetching that data from the other systems, and would pass all of it as part of the payload to the order fulfillment service. One potential issue is that the order fulfillment service st
8.
▲
by
okbake
6y ago
Unfortunately the PPP money has all been dried up as of today, and many small businesses weren't able to take advantage of it. This site was put together to track how many businesses have received it, though it relies on self-reporting
9.
▲
by
okbake
7y ago
There are a few casts that are allowed that I would consider unsafe, particularly around unions of literals or using empty object literals: // No error here type Animal = 'dog' | 'cat'; const notAnimal
10.
▲
by
okbake
7y ago
Maybe we need a new license that is similar to existing open source licenses with the addition that it can't be used by FAANG.
11.
▲
by
okbake
7y ago
It could be a matter of size, but it's since the charging port isn't on the earbuds itself it might not matter. usb-c connectors are (8.4mm x 2.6mm) whereas micro-a is (6.85mm x 1.8mm) and micro-b is (6.85mm x 1.8mm) It might just
12.
▲
by
okbake
7y ago
I assume "couldn't even tell it had alcohol in it" was referring to taste and not intoxication.
13.
▲
by
okbake
7y ago
It looks like a <main> element is allowed to have div ancestors: https://html.spec.whatwg.org/multipage/grouping-content.html...
14.
▲
by
okbake
8y ago
Sorry, I didn't mean to imply astroturfing. My comment is asking how many people "paid to read the article" (because it's behind a paywall), and not "were paid to comment here". Still not a great comment I admi
15.
▲
by
okbake
8y ago
I'm curious if all of these comments here are people who paid to read it or just extrapolating off a the headline.
16.
▲
by
okbake
8y ago
The visualizations here are great. I really like how it represents the different branches of a tree structure
17.
▲
by
okbake
8y ago
Title should either reflect the original article or be amended to include "at some point in the future". FTA: > Once we consider ESLint feature-complete w.r.t. TSLint, we will deprecate TSLint and help users migrate to ESLint;
18.
▲
by
okbake
8y ago
`with` is an oddball. It's a macro but it's also a special form that has unique syntax that's not used anywhere else. It's basically the only variadic function in the language and it doesn't fit IMO. It could have b
19.
▲
by
okbake
8y ago
NGRX (the redux inspired state management library for angular) has a concept called 'effects', which lets you subscribe to the action stream (actions and the state in ngrx are both rxjs observables) and trigger side effects in res
20.
▲
by
okbake
8y ago
The biggest thing for me when trying to switch from console vim is `alt + <key>` will send ESC and the key, so you can use alt to exit insert mode and send a command at the same time. Doing alt+j or alt+k has become the way I always l
21.
▲
by
okbake
8y ago
I'm a fan of TypeScript's structural typing for this reason. I can define an interface that describes the shape of a "plain old object" (it's fields and their types), and then write functions that accept/return
22.
▲
by
okbake
9y ago
I recently switched jobs and went through several rounds of interviews with several companies and the MOOCs I listed on my resume always came up. They served as a way for the interviewer to segue into the topic rather than a blind trust lik
23.
▲
by
okbake
9y ago
The recursive search is frustrating. I'm so used to doing <first few letters><enter> to navigate from the root directory all the way down to what I'm looking for. It's not only the small hangs while it searches bu
24.
▲
by
okbake
9y ago
I use a tiling window manager (spectrwm) and I am almost always using a single window in fullscreen. Apart from the browser most of my workspace exists inside the terminal where I'm very liberal with using multiple panes/windows&#
25.
▲
by
okbake
9y ago
I pipe a list of installed programs into dmenu and have it run whichever one I select. I have this bound to Mod+p. dmenu has fuzzy search, so if I want to open firefox I can just type `Mod+p fox <cr>`. Not quite as fast as having dedi
26.
▲
by
okbake
10y ago
You can do something similiar in rust. 'if' is an expression, so it can appear on the right hand side of an assignment. let x = if number > 2 { "yes" } else { "no" }; It's not quite the same, and
27.
▲
by
okbake
10y ago
Something else that is really useful in these situations (in bash at least) is alt-* (alt-shift-8). It will expand a directory or glob into all effected top level files/directories. For example, it will expand `ls *` to `ls foo bar baz
28.
▲
by
okbake
10y ago
Yeah, it's not so subtle. But then again: > ThatOnePrivacyGuy should use their open source speed test tool instead Using their instead of our makes it sound like there is no affiliation.
29.
▲
by
okbake
10y ago
I can see the logo just fine on the imgur link, but I can't see the original in firefox or in GIMP. I wonder if it has to do with imgur compressing the image, or maybe approximating/ignoring the colorspace as was mentioned above.
30.
▲
by
okbake
10y ago
This is a great course. I also took it a few years ago and have been waiting for his Crypto 2 course since then. It seems like it's always "Coming Soon Fall 201x" though.
More ›