whou@lemmy.mltoRust@programming.dev•Porting a cross-platform GUI application to Rust - Mozilla Hacks - the Web developer blog
9·
8 months agowow! I love the technical part of GUI programming, and that, for me, was a great article! props to alex.
Otaku, gamer, self-taught programming student and professional procrastinator from Brazil. In fact, I am procrastinating at this very moment. I love boomer shooters too.
wow! I love the technical part of GUI programming, and that, for me, was a great article! props to alex.
OSM is such a badass project
weird. for me, the “hard engine and framework stuff” is the fun part, while the content creation is not boring, but just very hard for me :P
I strongly disagree. When everybody has a space and opportunity to draw is when it’s the most fun :)
Otherwise, it just turns into a toxic and unpleasant experience
This is awesome. My favorite Reddit client was Infinity. Pretty happy to see it being usable for Lemmy!
okay, okay, I’ll declare it
Friend[] myFriends() {
return {};
}
well, if I have an object on the heap and I want a lot of things to use it at the same time, a shared_ptr is the first thing I reach for. If I have an object on the heap and I want to enforce that no one else but the current scope can use it, I always reach for a unique_ptr. Of course, I know you know all of this, you have used it almost daily for 7 years.
In my vision, I could use a raw pointer, but I would have to worry about the lifetime of every object that uses it and make sure that it is safe. I would rather be safe that those bugs probably won’t happen, and focus my thinking time on fixing other bugs. Not to mention that when using raw pointers the code might get more confusing, when I rather explicitly specify what I want the object lifetime to be just by using a smart pointer.
Of course, I don’t really care how you code your stuff, if you are comfortable in it. Though I am interested in your point of view in this. I don’t think I’ve come across many people that actually prefer using raw pointer on modern C++.