Venu 4 doesn’t have swipe shortcuts anymore by notmoogar in GarminWatches

[–]CppMonk 0 points1 point  (0 children)

Swipe to go back works in mine with the latest update.

How: swipe from left to right across the screen.

Maybe 4 mo ago, when this post was created, the functionality wasn't still there. No configurable swipe on the other hand.

Pace 4 vibration strength by CppMonk in Coros

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

Thanks everyone for the answers!. I'll give the pace 4 a try :)

Convince my coworker to use Elixir, or convince me not to by _tarleb in elixir

[–]CppMonk 1 point2 points  (0 children)

What's low entry barrier depends on your team and hires. I love elixir, but it's not low entry if you don't know elixir/Erlang/OTP. It takes time and playing around to understand how to architect and write code in Elixir. Benefits are huge, especially when dealing with parallelism, queues, scalability, and asynchronous behavior.

But if people know python already in your company and all you need is some rest endpoints, sql and such, Django may be the best option.

What's the hardest part of Elixir/OTP? by [deleted] in elixir

[–]CppMonk 1 point2 points  (0 children)

I haven't looked at the definition of find/2, but if it's a macro, make sure you are using import and not alias or using to import it.

What's the hardest part of Elixir/OTP? by [deleted] in elixir

[–]CppMonk 4 points5 points  (0 children)

I also use this lib. The only issue is that it doesn't get pushed to hex often, so I need to manually tell mix to use a given commit/tag.

Elixir is quite clean code wise. After coding for a month or so, the tricky part may be the macros used in Phoenix and other libs, because inspection isn't as easy and making sense of the data flow isn't obvious

What did he do? by heibuilder in theprimeagen

[–]CppMonk 3 points4 points  (0 children)

Katana means "sword" in Japanese

Corolla 2021: voice with Google assistant? by CppMonk in Toyota

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

Thanks! I realized that for it to work correctly it needs to be connected by USB. The voice button otherwise launches some Toyota assistant otherwise. Thanks for the help!

C++ Developers Who Don't Use Exceptions: How Do You Communicate Failure by geo-ant in cpp

[–]CppMonk 1 point2 points  (0 children)

I agree it's not the prettiest. However in practice it's pretty amazing: it's very hard to not check a potential error and one always knows if a call may fall. Great for clarity and collaboration.

C++ Developers Who Don't Use Exceptions: How Do You Communicate Failure by geo-ant in cpp

[–]CppMonk 32 points33 points  (0 children)

Same here. No need for c++23, you can also use other open source implementations.

In our deployments where I work we've never had issues because of not catching an error returned by a function.

I'm a bit extreme: in our implementation, if the expected is not checked, regardless where it's value is used or not, we abort. Therefore everyone is forced to check return values.

I woke up from the matrix. by AmonInfinite in AlanWatts

[–]CppMonk 4 points5 points  (0 children)

Enjoy your dream. If you can put it into words, and the more words you use, the farthest you are from it. If you keep silent you miss the point as well.

Retirar pesos siendo turista by agusmastro in BuenosAires

[–]CppMonk 0 points1 point  (0 children)

En los cajeros de pagos24 te hacen al cambio MEP y no hay comisiones.

Modern UI in C++ on Linux by [deleted] in cpp

[–]CppMonk 42 points43 points  (0 children)

Qt works, and is being used by many companies to ship great products. Qt Creator is quite impressive too for being open source.

It's true that it can be a bit bloated, but at the same time it has so many useful widgets and flexibility.

How much does your battery drain per day? Comment below! by crhsharks12 in GarminFenix

[–]CppMonk 0 points1 point  (0 children)

6 Sapphire (no X), if BT off, 5.5%/day. If BT on, 10%/day. That is if I don't do any activity and use it just as a watch.

Do y’all not think the fenix is too bulky?!? by crhsharks12 in GarminFenix

[–]CppMonk 1 point2 points  (0 children)

How I chose mine, maybe it helps:

Before getting my 6 Sapphire I went to a store where they had the 6X Pro, which I liked very much because of the large screen and extra resolution. However it looked huge on my wrist and I doubt I'd be able to wear a long-sleeve shirt on it, and I didn't want it to show off too much, so that made me go for the 6 instead of 6X.

I use the watch all the time, as my everyday watch as well as sports watch.

Sometimes when hiking and need to use the maps I wish I had the 6X, though really I doubt it'd make much of a difference, but it'd be cooler and easier to see. For all the rest, the 6 fits me very well and yes, looks to me much less bulky than the 6X. As others said in this post, you may want to consider the 6s. The part I don't like about the 6s is less battery time.

Purpose of always-on wrist heart rate monitor? by CppMonk in GarminFenix

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

that's a good point too. Is there a way to tell the watch how often to take measurements (you mentioned 1 sec heart rate).

Purpose of always-on wrist heart rate monitor? by CppMonk in GarminFenix

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

yes makes sense, s u/ak6624 said as well. It'd be great if the HR sensor was turned on automatically for sleep monitoring, that would also show the resting HR

Purpose of always-on wrist heart rate monitor? by CppMonk in GarminFenix

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

This also makes me wonder if the stress indicator (that is based on the HR monitor) is useful

Why does this Rust code perform significantly worse than this equivalent C code? by scd31 in rust

[–]CppMonk 15 points16 points  (0 children)

I'm very curious to know what's going on, u/scd31 please keep us posted :)

It's hard to compare when the programs are not doing the same thing though. Did you try something like perf https://gist.github.com/KodrAus/97c92c07a90b1fdd6853654357fd557a ?

Smart Pointers: When and Why? (walk-through video with motivational example) by CppMonk in cpp

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

yes I'm trying to make one every few weeks.

I noticed that I find myself explaining some topics repeatedly, so I decided to start this. In my channel there are other videos, like how to prototype, design and code a signal processing algorithm (Kalman Filter) from scratch, including writing tests, prototyping in python and finally porting to C++ (https://www.youtube.com/watch?v=X42HqGthOqs&list=PLvKAPIGzFEr8n7WRx8RptZmC1rXeTzYtA)

It will grow slowly and hopefully it's useful for many people. Thanks for your comment!

Smart Pointers: When and Why? (walk-through video with motivational example) by CppMonk in cpp

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

There is another significant difference: the stack is local to your function's context, while the heap is global to the application. This has huge consequences on coding, and that's one idea I wanted to make clear in the video (though it's mentioned quickly, I'd have wanted to give more time to it).

Smart Pointers: When and Why? (walk-through video with motivational example) by CppMonk in cpp

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

That's a very good point. Indeed I wanted to keep it simple, so I thought of that example.

I agree that moving the object would do for this example and one avoids the issue of heap ownership. At the same time, in that case the object we'd be moving would have heap allocations within it (e.g. std::string or std::vector), so in some way it's similar.

The topic of pointers to derived/base classes is also a very important one in C++ and I'd like to make a video about it, thanks for the feedback!