- 5 Posts
- 4 Comments
Joined 3 years ago
Cake day: June 24th, 2023
You are not logged in. If you use a Fediverse account that is able to follow users, you can follow this user.
lawmurray ( lawmurray@programming.dev ) OPto
C++@programming.dev•C++: Disable implicit conversion in specific contexts only
1·3 years agoThat’s a fair criticism around relying on implicit type conversion mechanics, and part of the tradeoff to make. On the other hand, I imagine (and my imagination may be limited) that one downside of
static_assertis to increase verbosity, something like:auto r = f(); static_assert(std::is_same_v<decltype(r),MyReturnType>> || !is_expensive_conversion_v<MyReturnType>); return r;
lawmurray ( lawmurray@programming.dev ) to
Linux@programming.dev•Linux on an OLED laptop?
6·3 years agoI have Ubuntu 22.04 on a Dell XPS Plus 13 with OLED display. Looks great, battery life is good. Not sure how tuned the drivers are etc but definitely no need to avoid.
lawmurray ( lawmurray@programming.dev ) to
C Programming Language@programming.dev•I made my first C program!
1·3 years agoWelcome to C! Tiny suggestion to add to other comments:
valueis already Boolean, so there’s no need to writeif (value == 1), you can just writeif (value). Similarly, following @chamaeleon@kbin.social’s suggestion of using the ternary operator, you can writereturn value ? "Yes" : "No";.





You might want to confirm that it is indeed zypper packages before you rearrange too much: Disk Usage Analysis on the desktop, or
du -sch *on the console will get you some numbers by directory. It could also be cached packages, clean them up withzypper clean --all.I’m not sure about specifying different destination directories with zypper, but you could try installing something like vscode from Flatpak rather than zypper, and specifying
--userso it goes into your home directory (if that’s a different partition).I’d also look at your containers with podman and clean up any old ones, they can take up a lot of space.