Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
rgoulter
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
41 ms
·
571.
▲
by
rgoulter
4y ago
On its own, it's nice for development for setting stuff like DB URIs, activating Python virtual environments, etc. But I find direnv indispensable for how it combines with nix (probably asdf would be good enough too) for "project
572.
▲
by
rgoulter
4y ago
I've found the script runner "just" to be worth using. https://github.com/casey/just just (at a glance) is like a Makefile, but with some nice UX improvements that make it worth using. e.g. with `just --
573.
▲
by
rgoulter
4y ago
Is there any meaningful/significant security benefit from doing this? Whatever executable such a script installs could itself later download + run arbitrary commands.
574.
▲
by
rgoulter
4y ago
Nix's raison d'etre is building packages in as much isolation as possible. When building packages, HOME is set to /homeless. However, for setting up stuff in $HOME, there's a popular tool which uses the Nix expression la
575.
▲
by
rgoulter
4y ago
I won't argue that NixOS is a good choice for a practical-oriented "just do it" attitude. I'd say, though, that Nix has benefits above just package reproducibility. e.g.: > install Rust/node.js/Go/Java&
576.
▲
by
rgoulter
4y ago
> For me I’d rather write things in [lisp] than in whatever language Nix uses. My bet is that the things that are difficult about Nix are difficult about Guix as well; whereas choice of language is cosmetic here. My understanding is that
577.
▲
by
rgoulter
4y ago
You've got to make sure you don't miss anything important, as well as being able to distinguish between details which are incidental, vs details which are deliberate. Which could vary from "very easy" to "does anyon
578.
▲
by
rgoulter
4y ago
With a programmable keyboard & a desire to avoid using the pinky finger with Ctrl, I'd suggest taking a look at home-row modifiers
579.
▲
by
rgoulter
4y ago
> Caps lock is such a dumb key It's convenient to have a mode for typing in caps for stuff like "MAX_NUM_WORKERS". -- Especially if you're using Shift on the opposite hand from the letters you're typing, rather t
580.
▲
by
rgoulter
4y ago
DevEnv looks like the most exciting thing to happen with Nix recently. Previously, I think Nix was more of a benefit for the operations (who benefit from "make deployments where the programs run with the same behaviour). Though, I thin
581.
▲
by
rgoulter
4y ago
The most comfortable for typing is "home row modifiers". With tap-hold functionality, the key behaves the same when tapped, but as the modifier key when held. So, you can put Shift/Ctrl/Gui/Alt as tap-hold underneat
582.
▲
by
rgoulter
4y ago
> Perhaps the Enter key could be in the middle, ... Yes, such keyboards exist. As well as enter/backspace/delete, it's also useful to have esc/tab near spacebar. https://github.com/manna-harbour/m
583.
▲
by
rgoulter
4y ago
In general, devops tooling makes management of cloud resources and services programmatic. You put in effort now, in order to save effort later. One effort saved is the ability to scale up/down. Another effort saved is source of truth &
584.
▲
by
rgoulter
4y ago
> by default, impurities like environment variables can still be used In a `nix develop` shell? Ah, sure. -- I don't think the new nix commands have the same functionality that `nix-shell --pure` had. But, in nix expressions used, i
585.
▲
by
rgoulter
4y ago
> Nope, your time isn't valuable because there are too many of you and just one nix. This ... seems entirely reasonable, though? As you point out, having to do extra work on behalf of others isn't desirable. -- If a pull reques
586.
▲
by
rgoulter
4y ago
Regarding the second point, ("it's not enough to have the same /etc/nixos/configuration.nix file, because of environment variables, other files, and commit revisions of repos used"), this is one thing which Nix
587.
▲
by
rgoulter
4y ago
> it's also incredibly hard - I work with Linux day in and day out for work, and finding my way around Nix, configuring new packages / basic features, etc. just took too long for me. Right. In many ways, Nix is almost like a la
588.
▲
by
rgoulter
4y ago
> I doubt it's possible to substantially simplify Nix In general, I think there's always going to be a long tail of things which will be relatively difficult to achieve with Nix. But, I think it would be possible to make many c
589.
▲
by
rgoulter
4y ago
What an impressive project. One thing this design demonstrates about the standard keyboard design: - In order to disallow using the number row, a giant 10U keycap is placed over the number keys. This deliberately restricts usage. It's
590.
▲
by
rgoulter
4y ago
Nix deals with software packages really well. Which makes it well suited for "put in effort now, to save effort later". My favourite use case for Nix is using it to declare what tools/libraries a project needs. Nix can make a
591.
▲
by
rgoulter
4y ago
> Because Nix is a functional package manager... I'd explain "functional package manager" as "package manager where packages are declared as a function of their inputs". e.g. a package's inputs would be the
592.
▲
by
rgoulter
4y ago
> Tools like Bazel or Nix or ... I find it interesting that Bazel and Nix don't seem to complement each other as much as I'd think given that they're both 'high effort, high reward tools which deal with hermetic build
593.
▲
by
rgoulter
4y ago
I think a custom mechanical keyboard is going to be much nicer than a foot pedal. Though, I'd encourage a custom keyboard where the thumb can reach 2-3 keys each (instead of only really being able to hit the spacebar). That way, you ca
594.
▲
by
rgoulter
4y ago
I think this can be a downside/cost that should be considered. I wouldn't say "because type inference can be harder to read in some places, it should always be avoided".
595.
▲
by
rgoulter
4y ago
> A small, column stagger keyboard... A bit benefit to the esoteric keyboards like this is the ability to use your thumb for more keys, and being able to not have to use the pinky fingers as much.
596.
▲
by
rgoulter
4y ago
Which prompts the question the other way; developers notoriously don't like paying for development tools. Certainly at the hobbyist level. For running a dinky little VM, I can run that for $5/mo on Digital Ocean or some other host
597.
▲
by
rgoulter
4y ago
Some strengths: 1. vi is ubiquitous. So if you're even in a situation where you SSH into another machine, knowing how to use the basics of vi is valuable. 2. vim's modal editing is very expressively powerful. That's why vi-em
598.
▲
by
rgoulter
4y ago
> Not everyone is going to communicate in exactly the way you like. Sure, but do you put these differences down to individuality, or to culture? If someone messages "hello", is this just social, is it that the person is blocked
599.
▲
by
rgoulter
4y ago
> this is some rando posting something on github Sure, but it's a post which strongly resonates with many people.
600.
▲
by
rgoulter
4y ago
I think if you're the kind of person who often asks for help, I'd strongly advise you to listen to advice like "no hello" (because "no hello" is broadcasted by people who are often asked for help). Rather, you
More ›