Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
turboponyy
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
91.
▲
by
turboponyy
3y ago
You should use asserts or throw errors to prevent misuse of a procedure by the caller. Ideally, you could model these constraints at the type level. You can think of pre-conditions as a sort of pseudo-dependent typing. Consider the follow
92.
▲
by
turboponyy
3y ago
Sorry for the late reply! I'm not sure why you think there is any 'config' involved. Perhaps you're conflating Nix the package manager with NixOS? Nix is many things, but it's also just a package manager like any ot
93.
▲
by
turboponyy
3y ago
I think they definitely should, as this is where the greatest value lies in NixOS for personal use.
94.
▲
by
turboponyy
3y ago
You don't need to learn the DSL to use Nix as a package manager.
95.
▲
by
turboponyy
3y ago
It sounds like you'd benefit a lot from Nix/NixOS [1], if not just home-manager[2]. 1. https://nixos.org/ 2. https://github.com/nix-community/home-manager
96.
▲
by
turboponyy
3y ago
The correct nomenclature is spray or recoil pattern, not spread - spread is the inherent inaccuracy applied to each bullet that can not be compensated for.
97.
▲
by
turboponyy
3y ago
I don't understand this sentiment. The majority of Dependabot's commits that I've seen are 1 or 2 line diffs that just bump a version number in a workflow file. Why wouldn't you want to accept those after a quick review?
98.
▲
by
turboponyy
3y ago
No, the automated workflow would be something like this: - Run dependabot workflow (outputs: $pr_number) - Automerge $pr_number
99.
▲
by
turboponyy
3y ago
There's also ranger and yazi.
100.
▲
by
turboponyy
3y ago
Vi-style binds are moderately unintuitive, but they are the lingua franca of keybind languages, and knowing them has value in and of itself. I'm glad I learned vi-style binds just before Kakoune and Helix gained popularity, as I use th
101.
▲
by
turboponyy
3y ago
Depending on the package manager / distribution, 'python' might be symlinked to either Python 2 or Python 3. If you don't have Python 3 installed, it might very well point to Python 2. These days it will almost certainly
102.
▲
by
turboponyy
3y ago
Blackcurrant leaves are widely used in the pickling liquid for pickles where I live.
103.
▲
by
turboponyy
3y ago
Seems like something that could be solved using tree-sitter[1], though it would probably be pretty involved. 1. https://tree-sitter.github.io/tree-sitter/
104.
▲
by
turboponyy
3y ago
I can vouch for general.el[1]. It's easy to use and it integrates with use-package clauses, which-key and evil states. You can look at my config[2] for examples. 1. https://github.com/noctuid/general.el 2. https:
105.
▲
by
turboponyy
3y ago
Personally, I've always found algebra the most difficult - it's just symbol soup with no apparent concepts to latch onto. Perhaps it's just the way it's usually presented, but I don't "get it" at all. It&#
106.
▲
by
turboponyy
3y ago
The function name is misleading you into thinking that it is imperative. In reality, the function just returns a path to a file in the Nix store with the specified contents. The derivation then returns a container in which Nginx is pointed
107.
▲
by
turboponyy
3y ago
You could use the Neovim plugin[1] which allows you to use Neovim as a backend server and access editing plugins[2][3] that way. 1. https://github.com/vscode-neovim/vscode-neovim 2. https://github.com/t
108.
▲
by
turboponyy
3y ago
You know you're not supposed to write the symbols in and around the tags by hand, right? https://github.com/aca/emmet-ls
109.
▲
by
turboponyy
3y ago
Pure functions can't perform side effects, but they can describe them. For a functional shell, your program's entry point would be composed of pure functions describing effectful actions to take. The necessary computations get bub
110.
▲
by
turboponyy
3y ago
> I can't count the number of times I wish I could drop out of insert mode in normal web browser text boxes. You can, if you really want to: https://github.com/glacambre/firenvim
111.
▲
by
turboponyy
3y ago
The programmer's builds are already there, e.g. Librewolf. Firefox's defaults are terrible, but most unhelpful behavior can be disabled in about:config.
112.
▲
by
turboponyy
3y ago
So how exactly does finding a 41p state prove omniperiodicity?
113.
▲
by
turboponyy
3y ago
It's obvious - Dr Pepper tastes like marzipan.
114.
▲
by
turboponyy
3y ago
Exactly - if you have Xs that are foolike, and Xs that are barlike, the perhaps you should have Yz and Zs instead. Further, if you want to validate that your X is barlike, all you have to do now is make sure you have some function f : Y -&g
115.
▲
by
turboponyy
3y ago
This is just using Github's terminology - https://docs.github.com/en/communities/setting-up-your-proje...
116.
▲
by
turboponyy
3y ago
This is a point I completely agree with. Firefox is the perfect example of a context where you would want vi binds, but the implementation ends up being half-baked. The fun part is when web apps like GitLab, GitHub and my email provider pro
117.
▲
by
turboponyy
3y ago
Oops - you're correct, of course.
118.
▲
by
turboponyy
3y ago
In the specific case of text editing with vi bindings, having up and down on the same row is more convenient, since you don't have to move your fingers to perform linewise vertical motions (compared to a standard WASD "grip")
119.
▲
by
turboponyy
3y ago
fd sounds much worse as now you can't jump to d characters.
120.
▲
by
turboponyy
3y ago
NixOS, whilst being a huge time sink, delivers exactly on that promise and then some.
More ›