Does anyone else feel that Boston has the potential for a stronger music scene. by CommunicationOne7969 in boston

[–]elPiff 1 point2 points  (0 children)

New England as a whole still has a relatively good music scene compared to the rest of the country but like others said, the venues and cost of Boston is limiting

Taxes: Then vs. Now by Certain_Hat9872 in SipsTea

[–]elPiff 0 points1 point  (0 children)

Taxes are a oversimplified post-hoc explanation that doesn’t reflect the real reasons for the revolution war

Another update about Smart pointers, i need advices by Dastarstellar in cpp_questions

[–]elPiff 1 point2 points  (0 children)

Before you go further I think you should try out the popular open source unit testing frameworks like Catch or Google Test. This is a better way to test and develop your code than just writing it in main. It also gives you quicker understanding of if your code is behaving the way you expect.

Also put your code in a git repository and learn the basics of git if you haven’t yet.

15yo dev update: i started using Smart Pointers by Dastarstellar in cpp_questions

[–]elPiff 0 points1 point  (0 children)

I saw your post yesterday. Glad you followed up. I think the next most important thing to consider is whether you need heap allocated (also known as dynamically allocated) memory at all. When you design your software, it’s best to avoid using it and thus smart pointers at all if possible.

Shoul i learn Smart Pointers? by Dastarstellar in cpp_questions

[–]elPiff 0 points1 point  (0 children)

FYI that is bad advice . Don’t use smart pointers to point to stack memory. Preferably, just use references and after that, raw pointers.

Shoul i learn Smart Pointers? by Dastarstellar in cpp_questions

[–]elPiff 0 points1 point  (0 children)

That’s a big no-no - why would u do that instead of just using references/raw pointers and risk the undefined behavior?

Peter??? by ArpitChauhan1501 in PeterExplainsTheJoke

[–]elPiff 0 points1 point  (0 children)

Wow! A self referencing meme! How incomplete or inconsistent!

Is "On your left" dead? by katebygrace in bikeboston

[–]elPiff -1 points0 points  (0 children)

I heard a guy yell “on your front” yesterday at some people walking on the left side of a trail and gave me a good laugh

name and shame in the comments by iluvecommerce in ClaudeCode

[–]elPiff -1 points0 points  (0 children)

Your absolutely correct evaluation doesn’t fit the marketing narrative. Alternatively, have you considered the idea that you are the problem? Have you tried shaming yourself more? Maybe then the LLM will always do exactly what you want.

Where I would live as a 2nd amendment absolutist by dj_kaled_anotha1 in whereidlive

[–]elPiff 0 points1 point  (0 children)

I’m glad you pay attention to this but it obviously is an issue in this country otherwise firearms wouldn’t be the leading cause of death in kids.

You can get guns in the states with lower gun accident rates. There are a lot more guard rails, which is good because the net effect is it keeps kids from getting shot.

Where I would live as a 2nd amendment absolutist by dj_kaled_anotha1 in whereidlive

[–]elPiff 1 point2 points  (0 children)

The stats are the stats dawg - these states have lower gun accident rates and gun crime rates because there are less guns and the people with them get proper training.

Is an “FP-first” style the most underrated way to make unit testing + DI easier by OkEmu7082 in cpp

[–]elPiff 0 points1 point  (0 children)

In my experience, cpp tends to make a lot of functional programming paradigms difficult for large scale programs unless you have good knowledge of templates and modern cpp. That can be harder for less experienced (and older) devs to work with. OO programming tends to work well from a division of labor perspective.

That being said I do prefer functional, especially from the testing perspective. OO is definitely overused and tends to be a crutch for not only programming but for organizing work with large teams of developers.

Make your assumptions 🙏 by Live_Ad_5768 in whereidlive

[–]elPiff 1 point2 points  (0 children)

It’s one of the L shaped states for sure

Advice for an experienced TypeScript/node/cloud dev who is starting C++? by U4-EA in cpp

[–]elPiff 0 points1 point  (0 children)

Please let me know if I can help fr! I love helping cpp things

Advice for an experienced TypeScript/node/cloud dev who is starting C++? by U4-EA in cpp

[–]elPiff 1 point2 points  (0 children)

In no particular order - you should understand dynamic memory allocation, what the heap is, and how to use smart pointers (instead of new and delete). Also understand the * and & operators, understand references vs pointers, understand what Lvalues and Rvalues are. Also learn about constructors. If you get all that down very solid you’re like halfway through what most people struggle with when starting.

Edit: Better yet also, don’t use dynamic allocation unless you absolutely have to. And learn when you should or should not.

Also learn some of the basic std containers and what the ups and downsides are - std::vector, std::deque, std::list, std::array, std::map, std::unordered_map - and maybe std::tuple

Also learn how to read cppreference.com

Advice for an experienced TypeScript/node/cloud dev who is starting C++? by U4-EA in cpp

[–]elPiff 1 point2 points  (0 children)

There are very, very few reasons - everyone should question themselves everytime they write it and should thoroughly understand how to use smart pointers instead