Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
gcmeplz
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
31.
▲
by
gcmeplz
4y ago
I like using `jq` to create line-delimited JSON and then using a language I know well (Node) to process it after that point. I find `jq '.[] | select(.location=="Stockholm")'` less readable than something like `nq --filt
32.
▲
Red and Blue Function Mistakes in JavaScript
(engineering.classdojo.com)
1 points
by
gcmeplz
5y ago
|
0 comments
33.
▲
by
gcmeplz
5y ago
ClassDojo | Senior Engineer (Backend or Fullstack), Director of Engineering | Fully REMOTE (Americas timezones) | competitive compensation & equity | https://www.classdojo.com/jobs/ ClassDojo is a widely loved K-8
34.
▲
The Chaos by Gerard Nolst Trenité
(ncf.idallen.com)
1 points
by
gcmeplz
5y ago
|
0 comments
35.
▲
MongoDB Performance is Disk-graceful
(will-keleher.com)
2 points
by
gcmeplz
5y ago
|
0 comments
36.
▲
by
gcmeplz
5y ago
ClassDojo | Senior Engineer (Backend or Fullstack), Director of Engineering | Fully REMOTE (Americas timezones) | competitive compensation & equity | https://www.classdojo.com/jobs/ ClassDojo is a widely loved K-8
37.
▲
by
gcmeplz
5y ago
ClassDojo | Senior Engineer (Backend or Fullstack), Director of Engineering | Fully REMOTE (Americas timezones) | competitive compensation & equity | https://www.classdojo.com/jobs/ ClassDojo is a widely loved K-8
38.
▲
by
gcmeplz
5y ago
Thanks for the explanations! Tracking if anything fails is normally important for what I'm doing, so I quite like that array-based solution. I really like that `"$pid" || status=$?`; it's much nicer than `if ! wait $pid;
39.
▲
by
gcmeplz
5y ago
> Definitely DONT'T wait for PIDs like that and if you do want to write code like that, maybe actually use the arrays bash provides? What pattern would you recommend for waiting for PIDs / parallelizing commands & preservin
40.
▲
by
gcmeplz
5y ago
Oh, that's way better for sure! Thanks for the explanation
41.
▲
by
gcmeplz
5y ago
"${stuff[@]}" would be turning it back into "foo bar baz" though, right? I think if you were using arrays for this, it'd be something like: stuff=("foo" "bar" "baz"); array_le
42.
▲
by
gcmeplz
5y ago
Thanks for the note about the semicolon! Added it
43.
▲
by
gcmeplz
5y ago
`SECONDS` is like `PWD`: the shell keeps track of updating it somewhere, and it'll tell you how long your shell has been running. https://www.oreilly.com/library/view/shell-scripting-expert/...
44.
▲
Bash patterns I use weekly
(will-keleher.com)
278 points
by
gcmeplz
5y ago
|
112 comments
45.
▲
MongoDB Performance is Disk-graceful
(will-keleher.com)
2 points
by
gcmeplz
5y ago
|
0 comments
46.
▲
Entity Component Systems: Performance isn't the only benefit
(classdojo.com)
2 points
by
gcmeplz
5y ago
|
0 comments
47.
▲
Node's AsyncLocalStorage Makes the Commons Legible
(will-keleher.com)
2 points
by
gcmeplz
5y ago
|
0 comments
48.
▲
by
gcmeplz
5y ago
I'm not OP, but depending on where in the world you are, classrooms with 50+ students aren't that rare even today: https://www.economist.com/china/2018/09/13/anger-grows-in-ch... I'm most
49.
▲
by
gcmeplz
5y ago
That's cool that that works! It does trigger a serious looking warning in Chrome though: > Fake site ahead > Attackers sometimes mimic sites by making small, hard-to-see changes to the URL.
50.
▲
by
gcmeplz
5y ago
Even in situations like that one, I think it's possible to avoid the comment: - setting up a type (with a comment linking to that API's documentation) - setting up a shape validator & a test that asserts that that that field i
51.
▲
Creating an Actionable Logging Taxonomy
(engineering.classdojo.com)
2 points
by
gcmeplz
5y ago
|
0 comments
52.
▲
by
gcmeplz
6y ago
I think even that "poor social skills nerd" engineer trope might be partially an example of Berkson's Paradox [1]. You have to have serious technical chops to compensate for a lack of social skills, and it's hard to see
53.
▲
by
gcmeplz
6y ago
I loathed typescript at first because of the heavy compilation step, but setting it up to compile only when it was necessary (building for production), and to transpile the rest of the time (running tests, starting a server locally) made a
54.
▲
by
gcmeplz
6y ago
> It would be much easier for many users to be able to say "starts with x", "ends with y", "has abc in the middle" as 3 separate statements than to have to derive the regex that does it. This seems like a le
55.
▲
by
gcmeplz
6y ago
You can set up a per-directory bash history: https://unix.stackexchange.com/questions/305524/create-histo... And a Makefile sounds like it'd be pretty helpful too!
56.
▲
by
gcmeplz
7y ago
For someone who's awful at pool like me, I suspect that optimal play is to avoid ever hitting any ball in to increase the likelihood that your opponent will scratch on the 8-ball.
57.
▲
by
gcmeplz
7y ago
You can also use `set -xv` to get nice debugging logs https://www.gnu.org/software/bash/manual/html_node/The-Set-B...
58.
▲
by
gcmeplz
7y ago
It works on linux too -- I just downloaded it to test it out.
59.
▲
by
gcmeplz
7y ago
Use sponge! https://linux.die.net/man/1/sponge awk '!n[$0]++' fileName | sponge fileName
60.
▲
by
gcmeplz
7y ago
Walmart, alibaba, jet.com, Target, and ebay all spring to mind
More ›