Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
kbd
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
31 ms
·
271.
▲
by
kbd
7y ago
Somehow the input on this doesn't register as an actual textbox. Many of my keystrokes are read by Vimium instead, making this unusable.
272.
▲
by
kbd
7y ago
Weird, URL is https://www.amazon.com/dp/1695978552 which loads for me.
273.
▲
by
kbd
7y ago
How is "our developers really like Python even on a million-line codebase, despite its global mutable state requiring discipline" "quite damning"?
274.
▲
by
kbd
7y ago
This has nothing to do with types. It's more about static guarantees the language gives about module import behavior.
275.
▲
by
kbd
7y ago
f-strings were introduced in Python 3.6, fyi: https://docs.python.org/3/whatsnew/3.6.html#whatsnew36-pep49...
276.
▲
by
kbd
7y ago
I think I remember seeing something about the "as" syntax. Wish I could find what I read, IIRC some arguments convinced me that the walrus operator was an improvement.
277.
▲
by
kbd
7y ago
I'm stoked about the walrus operator. Ever since I heard it was being added I've grumbled when writing code that would have been clearer with it. Of course I have to ask, what was your preferred syntax?
278.
▲
by
kbd
7y ago
Naming matters. Nim changing from "Nimrod" matters. Cockroachdb's name is offputting. Perl 6's name has caused endless confusion and by itself sabotaged both Perl 5 and Perl 6. Perl 6 has interesting ideas but I don'
279.
▲
by
kbd
7y ago
> So no more `cd /htdocs` on my laptop. If you use zsh I recommend using hashed directories. So this in your .zshrc: hash -d htdocs=~/path/to/htdocs Lets you `cd ~htdocs`. Alternatively, use 'fasd'
280.
▲
by
kbd
7y ago
Here's the equivalent setting for zsh: https://github.com/kbd/setup/blob/2e61b4d22adfadd05dbb4a7b95...
281.
▲
by
kbd
7y ago
Note that this is true for any (edit: stable, nlogn) merge sort.
282.
▲
by
kbd
7y ago
Already heavily discussed within the past 24 hours: https://news.ycombinator.com/item?id=20979624
283.
▲
by
kbd
7y ago
It doesn't have a sim. The Pebble's purpose-in-life was to be a good watch first. It complements your phone with smart features like notifications, automatically setting the time on your watch based on your phone, and syncing your
284.
▲
by
kbd
7y ago
I don't have insider knowledge of their financials, but my impression is if they stayed lean and focused on their core product they'd have been a sustainable small company. Instead, they grew too big in typical VC-backed fashion a
285.
▲
by
kbd
7y ago
5th generation of the Apple Watch and it still doesn't come close to replacing my Pebble, unfortunately. At least it's closer to an actual watch now, with an always-on screen, but it still can't last 24 hours on a charge.
286.
▲
by
kbd
7y ago
Ts-node is honestly pretty terrible. By-default you need to disable some errors that make sense in code but not in a repl. "You just imported this thing but didn't use it yet, ERROR", which means that nobody uses the thing. G
287.
▲
by
kbd
7y ago
Frustrating, though, that there's no good repl for TypeScript.
288.
▲
by
kbd
7y ago
The biggest thing keeping me from ever seriously learning Clojure is the JVM. Slow startup time means I'd never use Clojure for "scripts", and I certainly don't want to have to manage the JVM in production scenarios, so
289.
▲
by
kbd
7y ago
If you have any interest in this topic, I’d strongly recommend watching this presentation at SciPy 2015 where Viridis and Inferno were first presented, when the developers of Matplotlib were coming up with a new default colormap to replace
290.
▲
by
kbd
7y ago
The two languages I'd be most interested in seeing added to that comparison are Nim and Zig. Those definitely have most of my mindshare on "new low-level/efficient languages simpler than Rust".
291.
▲
by
kbd
7y ago
Nice, good idea. I've tried similar things (saved layouts for a project) using Tmuxinator[1], but since I don't normally use Tmux it didn't stick. [1] https://github.com/tmuxinator/tmuxinator
292.
▲
by
kbd
7y ago
Happy to see a scripting API but struggling to think what I'd use it for. What are some things y'all are thinking of doing with it?
293.
▲
by
kbd
7y ago
It's great actually. I've used it for years as my text editor / terminal font. Compare it to your font of choice in this handy app: https://app.programmingfonts.org/#fantasque-sans
294.
▲
by
kbd
7y ago
> when I do, it's a regrettable experience--can't use up arrow to get previous command, can't use arrow keys to move cursor Dunno what's wrong with your readline but what you describe is default Python behavior. Try i
295.
▲
by
kbd
7y ago
For one meaning of "test", sort of, but repls are useful for far more than "do outputs match what I expect". Test writing is not very good for exploratory programming.
296.
▲
by
kbd
7y ago
Matt Blaze spent yesterday discussing this on Twitter: https://twitter.com/mattblaze/status/1153708198718840832 His Twitter feed is well worth a follow if you care about these issues.
297.
▲
by
kbd
7y ago
Programming in a language lacking a repl is always uncomfortable. I always wind up making a 'scratch.{ext}' file and running it to test things (scratch.* is in my global gitignore). Happy an interpreter+repl now exists for Go.
298.
▲
by
kbd
7y ago
> But it definitely makes code less legible, which makes me cautious. Disagree. In cases where it's useful it can make the code much clearer. Just yesterday I wrote code of the form: foos = [] foo = func(a,b,c,d) while
299.
▲
by
kbd
7y ago
All discussion I've ever seen was about the need for the feature, not its spelling. I didn't even know "as" was proposed, but in fact it is an "alternate spelling" they considered[1] in the PEP. [1] https:
300.
▲
by
kbd
7y ago
For sure. Walrus operator is "unnecessary" but is a clear improvement in the code that will use it.
More ›