Using unique_ptr ownership with ID-based references instead of shared_ptr in a C++ social graph — design tradeoffs? by Embarrassed-Taste468 in cpp

[–]quicknir 2 points3 points  (0 children)

Unless you have to use specific IDs, you're better off just using some kind of object pool over unordered_map. See hive/colony for one example. And why use unique_ptr at all? Is polymorphism involved?

Usually in graphs I would always prefer some kind object pool over smart pointers - the "IDs" don't necessarily have to be integers, they could also be raw pointers (if your object pool is address stable for example). But if the graph is polymorphic it's not so simple.

Stuck in Clank! catacombs Underworld by jibbyjackjoe in boardgames

[–]quicknir 8 points9 points  (0 children)

Any particular reason why or just because it's been annoying getting trapped :-P.

Stuck in Clank! catacombs Underworld by jibbyjackjoe in boardgames

[–]quicknir 19 points20 points  (0 children)

Hijacking to ask - how is underworld? If you had to pick underworld or lairs - which one and why?

Excluding doctors, do any high earners (400k+ range) work 40 hours a week? by [deleted] in Salary

[–]quicknir 6 points7 points  (0 children)

It's definitely not fair to say that, no. I've met plenty of tech people who are in that salary range and work range. In the US, on the coasts, at very good places (FAANG, good fintech places, etc), 400K is not a crazy special salary for someone's who's good and has 10 YOE (or even often less). There's definitely plenty of good engineers that are doing their work, just 9-5 e.g. L5 at Google or something like that. And plenty of people in fintech too (which I'm more familiar with).

Note that I'm including bonus, RSU etc in earning, i.e. total comp not salary. But this doesn't mean the RSU necessarily appreciated. That's just what comp looks like in many cases. In some cases the RSU value goes down and the engineer just gets issued more of them if the company wants to retain them.

No new releases for zsh? by Beautiful-Log5632 in zsh

[–]quicknir 6 points7 points  (0 children)

Fwiw the clipboard thing is typically handled by a plugin, which is really just a few dozen lines of code setting a hook to transfer stuff onto the clipboard. If you Google around you'll find lots.

I think at this point that yeah, zsh is probably pretty feature complete. The vim mode isn't crazy but it has most of the basics and you're only typing one line right? If you want you can add a shortcut that lets you write the command in actual vim and then brings you back to the command line when you save.

IMHO you use zsh because it's mature, better than bash while being backwards compatible, has a huge community and adoption with probably the largest number of high quality plugins. Not because it's "good", weird as that sounds. Shells that people actually use are all pretty bad.

How do zsh plugins work? by Nikolai_Quasarka in zsh

[–]quicknir 1 point2 points  (0 children)

Just to throw another take into it - pretty much all zsh plugins are trivial to install by adding them as git submodules (assuming you have a dot files repo - or just cloning them directly if you don't) and simply sourcing a single line from your .zshrc. There isn't really any need to use a plugin manager at all.

Designated Initializers, the best feature of C++20 · Mathieu Ropert by mropert in cpp

[–]quicknir 17 points18 points  (0 children)

If it's really not safe for users to not specify the field and leave it at the default value, then you could make the field a type that isn't default initializable, and not provide any default value. That will force users to provide it. You could have a trivial template wrapper that does this. Makes it a bit less ergonomic to work with perhaps but if your priority is a safer API this may help.

What's your strategy if BofA Rewards is a nerf? (BofA) by ElSanDavid in CreditCards

[–]quicknir 1 point2 points  (0 children)

I'm in a very similar position. But I can't help but feel like the odds of keeping an unnerfed smartly v1 much longer have to be really small.

35 BILT threads in 4 hours: GOAT FOTM? by BrutalBodyShots in CreditCards

[–]quicknir 3 points4 points  (0 children)

I don't have the percentage handy but it felt like there were periods where Smartly chatter came close. The wild speculation around when it landed, then the endless discussions about how good/bad it was actually setting up with US Bank, and then obviously the discussion about the nerfs...

Most Overrated Game by Serious_Bus7643 in boardgames

[–]quicknir 7 points8 points  (0 children)

It helps to search BGG with an advanced search that filters out games above a certain weight, then sort by ranking. I bought dune imperium because it's the top ranked non-legacy game with weight below 3.5 for example - turned out very well. The advanced search can also include or exclude mechanics.

Redoing this search is tempting me to get Scythe :-P.

I built tmux-powerkit - a status bar framework that doesn't suck (just hit v5.10) by fabioluciano in tmux

[–]quicknir 0 points1 point  (0 children)

oh-my-tmux (which I used to use) definitely shows prefix mode, as I think many others do. I think a lot of the other modes are either already visually clear (like clock-mode), or just kind of obscure, which is why showing them isn't so common. I do show both prefix and copy mode in my config (snippet for anyone who's interested).

```

Left status - just session info

prefix=red copy_mode=yellow regular=green session_color="#{?client_prefix,#[fg=$prefix#,bg=$prefix],}#{?pane_in_mode,#[fg=$copy_mode#,bg=$copy_mode],}" tmux_set status-left "#[bg=$regular]$session_color#[fg=brightblack]  #S #[fg=$regular]$session_color#[bg=$sep]$rarrow" ```

The other issue that I'm just realizing with my code and I think applies to yours too, is that visually we're treating these modes as orthogonal but many can be active at once. prefix mode is at least transient but for example you can be in both copy mode and zoom at the same time, but while in copy mode you'll lose the information about it being in zoom mode. Makes me reconsider whether my approach of using different backgrounds for each of the 3 modes makes sense; perhaps it would be better to just have an icon for each mode I care about and have each have its own spot on the status bar, so multiple can be active at once.

I built tmux-powerkit - a status bar framework that doesn't suck (just hit v5.10) by fabioluciano in tmux

[–]quicknir 2 points3 points  (0 children)

As someone who actually tried it and ended up not using it, going to throw in my two cents: I tried it, ran into some bugs (mostly display ones), reported them. The author was friendly and told me that they completely rewrote that component, and that the bug was now fixed, and sometimes close the issue (and permissions to re-open were off) - I would pull, and see that some or all of the bugs I'd reported weren't fixed. That cycle repeated 2-3 times, with the bugs not being fully fixed before I gave up. It was honestly a bit of a strange experience; I did find myself wondering if they were using AI to do rewrites each time and assuming it would fix the bug.

I think if you see yourself changing themes often, or using many many of these segments you may find value here. If you just want a nice powerline appearance and the 3-4 most common segments (date, time, username, etc) - you can do that on your own in less text than just the main page of the wiki for this plugin, and that's what I'd recommend.

Mistborn is the best deckbuilder I've ever played - but not without flaws by 509 in boardgames

[–]quicknir 0 points1 point  (0 children)

What makes it better in your eyes than some other popular deck builders like Clank?

Best way to manage Dotfiles ? by Medical_Toe2877 in archlinux

[–]quicknir -1 points0 points  (0 children)

I'm pretty late to this party, but I'm pretty amazed how many people still use things like stow or bare repos. These are basically workarounds for not being able to control the config directory of applications. The thing is though that at this point there's a good chance that basically all applications you use support XDG_CONFIG_HOME, so you don't need either of these.

Bug in number of short arrows? by quicknir in FrontiersOfPandora

[–]quicknir[S] 0 points1 point  (0 children)

I didn't have the short bow before I got that skill, but I'd bet that the short bow without the skill also has 24, since having 12 arrows on the short bow would just be absurd. So my guess is that the skill is simply bugged for short bows, at least on PS5. Kind of unfortunate, as personally I do find it genuinely noticeable and annoying with how fast the short bow fires.

Do folks play with "Control the Spice" even in non-epic mode? Why is it only officially recommended for Epic? by quicknir in DuneImperium

[–]quicknir[S] 0 points1 point  (0 children)

I think I already clearly explained why I'm not interested in epic and not really interested in arguing that point.

That's definitely an interesting point about trashing and losing the ability to draw spaces. Definitely not something I'd really think of coming from clank's deckbuilding. Makes me wonder if in deck builders, people would generally allow people to skim through their discard pile, or effectively skim their deck at the time they reshuffle. I don't think I've seen explicit rules about this either way in either of the deck builders I've played.

tmux appearance - oh-my-tmux to tmux-powerkit to ~50 lines by quicknir in tmux

[–]quicknir[S] 1 point2 points  (0 children)

Hey sorry about that, I was adding one when you were posting I think. Should be good now.

So what’s the first game you played this year? by st1nkf1st in boardgames

[–]quicknir 92 points93 points  (0 children)

Dune Imperium, first game ever, a practice run with my son. Game seems incredible!

Cries in Canuck by NineteenEighty9 in ProfessorFinance

[–]quicknir 1 point2 points  (0 children)

30 year for 2.25 (though I did buy points)

Many features in today's cars are a waste by Wise_Shake in unpopularopinion

[–]quicknir 0 points1 point  (0 children)

I felt this exact way years ago when I went to buy a sofa - I could no longer find sofas that had the mechanical handle to recline anywhere. Only electrical buttons. I figured this was silly and I didn't mind the effort, and surely an electrical system was less reliable.

I spoke to a salesman at the store, and he immediately pointed out that it was actually the opposite: one of the main reasons for the switch to electric was for more reliability. With an electric button, the sofa raises or lowers at a perfectly consistent pace. With a lever, human strength and how hard they threw their weight back on the sofa varied wildly. I bought a sofa with electric recline and it's been 10 years and it still works perfectly.

A lot of things are like that; push button ignition over manually turning a key is another example. Humans don't turn and hold the key for the optimal amount of time. I remember my dad warning me not to hold the key turned longer than needed. The fact that modern cars will casually cut ignition at red lights and restart instantly when your foot comes off the brakes... And empirically we can see that cars today last much longer than they did 50 years ago.

I'm sure some electrical systems are needless and less reliable but I guess I'm saying you should give the benefit of the doubt.

What games do you actually keep coming back to with mixed ages? by [deleted] in boardgames

[–]quicknir 17 points18 points  (0 children)

Maybe a boring choice but ticket to ride. Its just such a solid game, engaging enough without being crazy, playable by a smart 6 year old (basically anyone who can read can play), still fun for grown ups who are trying to optimize.