Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
kbd
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
20 ms
·
151.
▲
by
kbd
5y ago
I'll put it this way: Nu shell seems perfectly supportive of my philosophy that a shell is basically a REPL for a computer, and they're taking the ergonomics of an interactive REPL along with the programming language that powers
152.
▲
by
kbd
5y ago
That's a cool argument for Fish for beginners. When you spend thousands of hours in a shell that doesn't matter as much. I don't see any benefit for someone who has Zsh set up well, but yes you do have to google once how to c
153.
▲
by
kbd
5y ago
> what do you like about Nu shell specifically? A whole bunch of things: 1. abandonment of POSIX shell syntax. We can do better. I'm happy with Zsh being POSIX-compatible, and that will always be there. 2. a focus on structured data
154.
▲
by
kbd
5y ago
Nice. Yeah it works great. I have an extensive set of git aliases. Yesterday I was merging a branch with `gmn` (`git merge --no-ff`, which is actually an alias to `g mn`, where `g` is an alias to git of course) and it gave me a fuzzy find o
155.
▲
by
kbd
5y ago
As another commenter pointed out, while Fish has some nice out-of-the-box features, they’re all achievable in Zsh with a few lines of plugins. And did you know Zsh has a short for loop? Along with fantastic plugins like fzf-tab, I don’t see
156.
▲
by
kbd
5y ago
> An error being returned doesn't always mean there's a bug. The bug is not the error, the bug is the unhandled error.
157.
▲
by
kbd
5y ago
> No 'oops I forgot to put in a try/catch and now my code died with no explanation'. This is so backwards. First, I want my program to immediately crash if I have a bug. Go is like shell in that it keeps going even if th
158.
▲
by
kbd
5y ago
> these days it's crazy rare to "dig in" in a dazzlingly customized environment Speak for yourself. The time I spend working locally is vastly more than I spend ssh-ing into somewhere vanilla so it's worth making my e
159.
▲
by
kbd
5y ago
I always respect when people take the time to put a small but useful thing like this up in a repo by itself. It has always been a frustration that the current working directory metadata isn't saved along with history entries, so you ca
160.
▲
by
kbd
5y ago
> True of nearly all ORMs really. I disagree in a respect. I think with an ORM it's clear when you're hitting the database, though it makes it easy to write loops over (related) rows ("n+1 problem"). I think with LI
161.
▲
by
kbd
5y ago
Very cool, thanks for answering. Yeah I understand they'd have to bundle the runtime so that makes sense. Glad to know they're working on improving that use case as well.
162.
▲
by
kbd
5y ago
> and LINQ Shudders at memories of coworkers writing giant, ridiculously inefficient LINQ queries without understanding how it's actually using the database and what it's doing server-side > Toplevel programs should make i
163.
▲
by
kbd
5y ago
> Microsoft has done an amazing amount of work writing and rewriting code to make cross platform open source .NET a real thing. All open licensed and developed in the open. It's fitting you mention all the work Microsoft has done
164.
▲
by
kbd
5y ago
Is there any reason I should care about .NET today if I'm not already in the ecosystem? I've done C# professionally in the past, and C# is a good language. I wish Microsoft focused on open source and wider industry adoption for C#
165.
▲
by
kbd
5y ago
Has anyone taken a look at Cue who can share any experiences? https://cuelang.org/ It's mentioned on the site as an alternative to Yaml. Recently watched (~half of) this intro to it: https://youtu.be/fR
166.
▲
by
kbd
5y ago
Wanted to add: I realized that my function above doesn't fully show how I use it. I recommend setting your $LESS to include -F so that by default it doesn't leave pages of output in your scrollback. That way you can get a quick tr
167.
▲
by
kbd
5y ago
The main thing I use Exa for is as a better "tree": et() { exa -alT --git -I'.git|node_modules|.mypy_cache|.pytest_cache|.venv' --color=always "$@" | less -R; } alias et1='et -L1' alias
168.
▲
by
kbd
5y ago
Wow, been using Zsh for a while, didn't know about short loop form.
169.
▲
by
kbd
5y ago
Totally. And there’s nothing better than fzf-tab https://github.com/Aloxaf/fzf-tab
170.
▲
by
kbd
5y ago
As someone who doesn’t know any lisp well, it’s odd to hear you highlighting significant differences in syntax between them. I thought the character of a lisp is that it doesn’t have much syntax. I’d be interested in an example.
171.
▲
by
kbd
5y ago
> I feel like Crystal isn't as popular as it should be. Seconded. I really wanted to use Crystal for a recent project at work but I wound up writing it in Python because of specific libraries. The experience was like "hmm how d
172.
▲
by
kbd
5y ago
> So it's not like the "Prosperity Gospel" messages aren't there -- they are, in the Old Testament. But they miss all the subsequent reform. I think that’s fair. It’s where Jesus’s hearers got that mindset he’s trying
173.
▲
by
kbd
5y ago
By debating "tough" vs "soft" on crime you're already buying into their framing of the issue. "Tough on crime" in America is code for "feed people into the prison industrial complex for life for low-l
174.
▲
by
kbd
5y ago
> Even setting aside whether [double predestination] is a mainstream Calvinist belief or not... FWIW Calvin taught double predestination (as the Wikipedia article says). It's the logically- and biblically- consistent view. But again
175.
▲
by
kbd
5y ago
FWIW as a former Calvinist I think your your assessment of Calvinism is wrong on multiple points. Because it was the presupposition of his hearers, dispelling the notion that “The rich must have been good in this life and the poor must be g
176.
▲
by
kbd
5y ago
https://twitter.com/pwnallthethings/status/14237526750494924...
177.
▲
by
kbd
5y ago
Just sharing my take on that interactive jq (or anything else) repl: https://github.com/kbd/setup/blob/master/HOME/bin/fzr It's just an fzf wrapper that sets up temporary files and so on.
178.
▲
by
kbd
5y ago
“I have a PhD and I am unimpressive”
179.
▲
by
kbd
5y ago
> The current zeitgeist appears to be denial that consciousness exists at all. That’s odd, arguably it’s the one thing we know exists. > because it’s the substrate of everything Recommend checking out Bernardo Kastrup (two PhDs, many
180.
▲
by
kbd
5y ago
Watching Matz's ("the grandfather of Crystal") talk now: https://youtu.be/KbFHbkY27no?list=PLe1-A91ZPTpAIO9YRZbAlPT3l... Bruce Perens gave a talk as well, largely about open source licensing issues but with s
More ›