• 0 Posts
  • 23 Comments
Joined 6 months ago
cake
Cake day: January 15th, 2024

help-circle
  • Denying entry for people in need can’t be the answer. Honestly, it’s unfair that we were lucky enough to be born into a stable country. It’s unfair that other people have to live under dictators looking only for their personal interest. It’s unfair that people have to live under the consequences of global power struggles and it’s also unfair that Western countries exploit other nations and then don’t lend assistance when everything turns to shit.

    How can you justify sending away these people that are fleeing from warzones or due to global warming. They are losing family and their homes and yet, they spent their life worrying while we can go to restaurants, cafes, play in parks, go hiking, swimming or biking without ever having to worry.

    Leaning into the immigration policy of the right cannot be the answer, there has to be another solution.










  • I can only speak for the situation in Germany and the silence was not the left but the conservative party CDU under Merkel. She was great for foreign relations, but her party sucked (still does too). During the 12 years they were in power they slept on all the issues, they never bothered to address climate change, we have a problem with our pension system which was always a topic, never addressed. There was a huge immigrant wave close to the end of Merkel’s third term which her party completely slept on (she did take the initiative though at some point).

    Now we have the social democrats, the greens and the liberals in the government, which are stuck with the dumpster fire of problems that accumulated over the last 12 years. They are working their ass off and have to make unpopular choices, which is a great attack vector for boulevard press and the opposition. CDU is super salty about not being in power anymore so they are against every change that is happening, which creates really bad vibes. Meanwhile the AfD uses the emotion and frustration to their advantage even though it is completely illogical to follow them.

    So no, in Germany, the left is not the problem.


  • AngryPancake@sh.itjust.workstoProgrammer Humor@programming.devC++
    link
    fedilink
    arrow-up
    27
    arrow-down
    1
    ·
    1 month ago

    Given that you probably are using pointers, and occasionally you are allocating memory, smart pointers handle deallocation for you. And yes, you can do it yourself but it is prone to errors and maybe sometimes you forget a case and memory doesn’t get deallocated and suddenly there is a leak in the program.

    When you’re there, shared_ptr is used when you want to store the pointer in multiple locations, unique_ptr when you only want to have one instance of the pointer (you can move it around though).

    Smart pointers are really really nice, I do recommend getting used to them (and all other features from c++11 forward).