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.

  • 3 Posts
  • 12 Comments
Joined 3 years ago
cake
Cake day: September 6th, 2021

help-circle
  • whou@lemmy.mltoProgrammer Humor@programming.devC++
    link
    fedilink
    arrow-up
    7
    ·
    5 months ago

    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++.








  • Torch Browser is not open source, and it still is based on chromium. It’s the worst browser combination possible.

    Falkon is pretty cool! I prefer using qutebrowser if it’s gonna use QtWebEngine anyway. It is slower and less featureful than the main browsers, though. If you don’t mind it, I’d say go for it!

    I didn’t know about Dot Browser, but it looks… unfinished? It’s based on Firefox, so that’s cool. But it seems someone would be better off just using something like LibreWolf (or Tor if you actually want some privacy).


  • well, I just came across the article on Mastodon and wanted to share it. I mean jeez, imagine sharing and wanting to discuss interesting topics just for fun?

    and I posted the article on [email protected] and then cross-posted it here, because I thought it was also an interesting community to discuss it. I saw a bunch of people cross-posting it elsewhere, so if you’re seeing it a bunch of times then it’s probably because those communities probably also have something in common with the article. I personally think every community have different people and different discussions to have, so I don’t see it as particularly bad.