brenticus

joined 1 year ago
[–] brenticus@lemmy.world 7 points 4 months ago

It's been almost a decade since I used C++ and had to verify, but after some quick searching around it looks like it hasn't changed a ton since I last looked at it.

You can use smart pointers, and certainly you should, but it's a whole extra thing tacked on to the language and the compiler doesn't consider it an issue if you don't use them. Using new in C++ isn't like using unsafe in rust; in rust your code is almost certainly safe unless marked otherwise, whereas in C++ it may or may not be managed properly unless you explicitly mark a pointer as smart.

For your own code in new codebases this is probably fine. You can just always make your pointers smart. When you're relying on code from other people, some of which has been around for many years and has been written by people you've never heard of, it becomes harder to be sure everything is being done properly at every point, and that's where many of these issues come into play.

[–] brenticus@lemmy.world 37 points 4 months ago (4 children)

C and C++ require more manual management of memory, and their compilers are unable to let you know about a lot of cases where you're managing memory improperly. This often causes bugs, memory leaks, and security issues.

Safer languages manage the memory for you, or at least are able to track memory usage to ensure you don't run into problems. Rust is the poster boy for this lately; if you're writing code that has potential issues with memory management, the compiler will consider that an error unless you specifically mark that section of code as unsafe.

[–] brenticus@lemmy.world 27 points 5 months ago (2 children)

Honestly? Bash. I tried a bunch a few years back and eventually settled back on bash.

Fish was really nice in a lot of ways, but the incompatibilities with normal POSIX workflows threw me off regularly. The tradeoff ended up with me moving off of it.

I liked the extensibility of zsh, except that I found it would get slow with only a few bits from ohmyzsh installed. My terminal did cool things but too slowly for me to find it acceptable.

Dash was the opposite, too feature light for me to be able to use efficiently. It didn't even have tab completion. I suffered that week.

Bash sits in a middle ground of usability, performance, and extensibility that just works for me. It has enough features to work well out of the box, I can add enough in my bashrc to ease some workflows for myself, and it's basically instantaneous when I open a terminal or run simple commands.

[–] brenticus@lemmy.world 21 points 5 months ago (2 children)

On principal I don't use cloud-based password management solutions like this, but Proton Pass does make it somewhat tempting, especially since I have a Proton Unlimited subscription anyways. KeepassXC + syncthing do well enough, but PAM integration would be kind of nice some days when I'm opening and closing my vault a ton.

[–] brenticus@lemmy.world 4 points 5 months ago (1 children)

Unciv works perfectly fine on a phone if you feel like risking significant amounts of your time (:

[–] brenticus@lemmy.world 3 points 6 months ago

This is how I do it. I may never stop actually having that gmail account in use due to the number of accounts tied to it, but I at least can use other services going forward without losing tons of stuff.

[–] brenticus@lemmy.world 1 points 6 months ago

Honestly, it's halfway correct, if I need to go into the office I'd rather be able to interact with people IRL. Most of my work unit tries to be there on Mondays for that reason.

The caveats are that I'd still rather not be there at all and that our office sucks so most people are at least as effective at home anyways.

[–] brenticus@lemmy.world 4 points 6 months ago

My most direct use of fzf is to search large result sets for something I can't 100% remember the name or location of, so this actually sounds nice. I've managed to get fzf to slow down a few times and... well, I'm sure as hell not organizing that folder structure.

[–] brenticus@lemmy.world 9 points 6 months ago

There's been some controversy around the governance structure and culture with NixOS that has a number of people unhappy. I'm honestly not sure of the details but it's ptesumably less about the software than the people.

[–] brenticus@lemmy.world 9 points 7 months ago

I'm curious to see where they go next. A lot of modern consumer electronics have repairability and upgradeability problems, but I also wouldn't expect they'd be able to crack into the phone market as easily as the laptop market, so presumably there's some more niche target they have.

[–] brenticus@lemmy.world 15 points 7 months ago (7 children)

Framework is a private company so they need to agree to be bought. I don't know enough about the leadership to be able to say the likelihood of accepting an offer, but it's not just a thing that automatically happens because Dell has a lot of money.

[–] brenticus@lemmy.world 1 points 8 months ago

Logseq is a great alternative. It's very much not a clone, though. It has a different paradigm on how it views notes and the functionality isn't exactly 1:1.

view more: next ›