u/Hrothen
In this archive from Mar 2012 to May 2024
- 4
- posts
- 99
- comments
- 0
- media
- 1.7k
- score
Top posts
For error handling, do you prefer to use return values or just throw?
I'm currently trying to improve my c++ skills by writing an Entity-Component framework and I'm not sure what the best way to handle errors would be. I'm used to writing code that interfaces with C libraries and therefore uses return values for error handling, this method is easy but can result in re...
Thinking of messing around with writing a Terraria style engine, I've got a couple questions.
So I'm bored and looking for something to do, and I thought it might be a fun exercise to try to write an engine in the same vein as Terraria's but in C++. I have a decent amount of experience programming in C++ but I have little game engine experience. So, I have a couple questions for you guys. Sh...
Ubuntu 14.10 detecting touchpad as generic usb mouse?
Lenovo Thinkpad E450. The touchpad works for regular mousing and clicking, but I can't enable any touchpad-specific features like two-finger scrolling or disable it while typing. xinput gives me: ⎡ Virtual core pointer id=2 [master pointer (3)] ⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]...
https://wiki.winehq.org/FAQ#How_can_I_prevent_Wine_from_changing_the_filetype_associations_on_my_system_or_adding_unwanted_menu_entries.2Fdesktop_links.3F
I have never seen a reasonable explanation for why the devs think it should own all these file associations.
https://www.brendangregg.com/blog/2024-03-17/the-return-of-the-frame-pointers.html
IIRC the statically linked binaries are small enough that it works out to less space unless you're installing nearly every haskell program in the repos.
Because most people don't interact with their bootloader, they're not things you normally need to touch. No one remembers what commands they used to set it up years ago and they don't know how it's configured. That's also why so many people haven't moved to "superior" bootloaders, it literally does not matter to them which bootloader they are using day to day so changing would be an investment of time and energy with no payoff.
Under "How do you handle polymorphism?" you should mention template polymorphism(and maybe CRTP) and concepts since you're using c++ as your example language.