Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
rgoulter
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
20 ms
·
211.
▲
by
rgoulter
3y ago
I use https://tracespace.io/ for gerber viewing.
212.
▲
by
rgoulter
3y ago
The term "Newtype" more specifically describes a wrapper around a single type. It's like an alias. It's incorrect to describe an enum with two variants as a 'newtype'. I think the example was misunderstood from
213.
▲
by
rgoulter
3y ago
> ADTs C++ is already a very complex beast as it is. ADTs (and pattern matching) make it concise to express many different programming things. But I'd imagine that adding it to C++ would be horrendous.
214.
▲
by
rgoulter
3y ago
What? ... Oh, right. https://dilbert-viewer.herokuapp.com/1993-11-09
215.
▲
by
rgoulter
3y ago
Well. Somehow (or for some reason), GIMP managed to get away with it. Though, the next crudest software name which comes to mind is "Git".
216.
▲
by
rgoulter
3y ago
More generally, I'd think many/most mechanical keyboards are USB C. But I'd think that the budget, off-the-shelf keyboards would be USB A.
217.
▲
by
rgoulter
3y ago
> I think functions keys and arrows are used way too frequently to spend your time using shortcuts 65% keyboards tend to put those shortcuts where you have to use a pinky finger to access those keys. Whereas, keyboards much smaller than
218.
▲
by
rgoulter
3y ago
Elsewhere in the comments, someone said "I want dedicated keys for arrows / function keys, I use these frequently enough that I don't want to hold a modifier". Some programming languages type constants in UPPER_SNAKE_CAS
219.
▲
by
rgoulter
3y ago
> It gets rude when people start subtly shaming you for not working on things. Seems like OP perceived shame by being asked this, though. -- Why would anyone ask "what's the status of this project?" (or however politely
220.
▲
by
rgoulter
3y ago
Take a look at https://nix.dev/ (official), or https://zero-to-nix.com/
221.
▲
by
rgoulter
3y ago
> NixOS differs from something like Ansible in that it’s inherently declarative, through and through... The following explanation in the blogpost suggests that it's not the 'declarative' nature, so much as the application.
222.
▲
by
rgoulter
3y ago
e.g. I think it's common for users to share their config or sets of packages with something like a "nix user repository" https://github.com/nix-community/nur-packages-template
223.
▲
by
rgoulter
3y ago
> Channels are, AFAIU, a reference to some point-in-time/commit/version of nixpkgs It's not specifically nixpkgs, but any Nix code generally. Per the Nix manual[0]: > Channels are a mechanism for referencing remote Nix
224.
▲
by
rgoulter
3y ago
I liked the books emphasis on "interface" vs "implementation", and how this affects complexity. But one tidbit I did like from the book was along the lines of "if every use case involves the same action, it would be
225.
▲
by
rgoulter
3y ago
I use an external keyboard, & haven't tried kmonad. I don't run into HRM even at over 100 wpm, on Dvorak. (I'd expect Dvorak to use home row more than qwerty), whereas one user in that thread said he needed to resort to a
226.
▲
by
rgoulter
3y ago
There are tools like kmonad (and I think some others), although they do require a kernel extension (or driver extension). https://github.com/kmonad/kmonad/blob/master/doc/installatio...
227.
▲
by
rgoulter
3y ago
I like putting the modifier keys (shift, ctrl, win, alt) underneath the home row keys using tap-hold functionality. (e.g. tapping 'f' outputs 'f', but holding 'f' acts as 'shift'). And Caps Lock'
228.
▲
by
rgoulter
3y ago
Stuff like autocomplete or GitHub's copilot suggestions are helpful for reducing the time it takes put the code you want on the screen, sure.
229.
▲
by
rgoulter
3y ago
It might. With commits like "typo", you might as well squash these into the commit which introduced the typo in the changeset. If there are changes across many files, and the changes were made automatically with some search-and-re
230.
▲
by
rgoulter
3y ago
As I understand the it: OP picked upon a sophisticated example that's multithreaded; the example shows off some fancy Rust techniques which deals with this complex case. It's 'fair' to say that OP's code snippet loo
231.
▲
by
rgoulter
3y ago
I feel like Rust makes you pay a big cost upfront, and the benefits are often not worth that cost. It's easier to program if I don't have to worry about ownership/lifetimes. -- Garbage Collection allows not needing to worry a
232.
▲
by
rgoulter
3y ago
As a hobbyist, I find Rust on embedded is wonderful. e.g. I prefer Rust's traits over C's CPP defines for configuring peripherals. > MY_GPIO.borrow(cs).borrow().as_ref().unwrap() This code looks like it's some kind of glob
233.
▲
by
rgoulter
3y ago
I mainly use Evil mode on Emacs, but have switched to use Helix for when I need a terminal editor. It feels like the majority of Helix keybindings are the same as vim. Similar to how with vi-emulators, you'll bump into things you use t
234.
▲
by
rgoulter
3y ago
> I think it will lend itself to callers preferring to the use the same names in the calling function as in the parameters to take advantage of this feature, instead of using a name that is more appropriate for the context. The more conc
235.
▲
by
rgoulter
3y ago
It's got to do with (broadly) accessibility / enthusiasm. Enthusiasts are familiar with a lot more, know the domain, and so are able to navigate the intricacies. -- There's an xkcd comic which points out that you're prob
236.
▲
by
rgoulter
3y ago
This idea sounds nice. How big is your monitor? I just tried turning my monitor vertical. My initial impression is this left me with very little space with which to read text; and felt like it'd hurt my neck if I were to look up to the
237.
▲
by
rgoulter
3y ago
Right. On Gnome, when I switch left/right between virtual workspaces, the animation provides some indication of the switch. When I tried xfce, there was no animation, it didn't feel like an improvement. Perhaps this is down to pre
238.
▲
by
rgoulter
3y ago
Rust's enums are "sum types" or "tagged unions". Perhaps the most practical example of this is the Option type, where you can say an Optional value is either `Some(value)` or `Nothing`. With this, you don't hav
239.
▲
by
rgoulter
3y ago
> Putting very commonly used characters on a modifier and probably two modifiers (layer+shift is common to get to a third layer) for keyboards with ~40 or under keys is connotative overhead for quite a while no matter how you cut it. Sur
240.
▲
by
rgoulter
3y ago
> move keys around This isn't a common feature, but I've seen that Dumang keyboards can do this. https://www.velocifiretech.com/products/dumang-dk6-ergo-v2?v... > customiseable keyboard i want is one ma
More ›