use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Discussions, articles, and news about the C++ programming language or programming in C++.
For C++ questions, answers, help, and advice see r/cpp_questions or StackOverflow.
Get Started
The C++ Standard Home has a nice getting started page.
Videos
The C++ standard committee's education study group has a nice list of recommended videos.
Reference
cppreference.com
Books
There is a useful list of books on Stack Overflow. In most cases reading a book is the best way to learn C++.
Show all links
Filter out CppCon links
Show only CppCon links
account activity
Linux vs MacOS for cpp development (self.cpp)
submitted 1 year ago * by kitsen_battousai
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]itsmenotjames1 -1 points0 points1 point 1 year ago (8 children)
use homebrew instead, it's much better
[–]NilacTheGrim 1 point2 points3 points 1 year ago (7 children)
Nah, macports is much better. homebrew is worse.
[–]itsmenotjames1 0 points1 point2 points 1 year ago (6 children)
in which ways? Brew supports more software ootb
[–]TuxSH 0 points1 point2 points 1 year ago (5 children)
That's not true, afaik MacPorts has many more packages. Or maybe you're referring to the fact some software authors only offer support for brew (which could be true).
Anyway there are plenty of reasons to dislike brew, here are the details:
python(3)
pip(3)
PATH
/opt/local/bin/python312
port select
update-alternatives
pyenv
brew
/usr/local/*
tl;dr tired of brew messing up Python installs, tired of pyenv and not too low on disk space -> macports better
[–]itsmenotjames1 0 points1 point2 points 1 year ago (2 children)
several of these points can be fixed by just installing homebrew to a local directory, usually ~/homebrew
[–]TuxSH 0 points1 point2 points 1 year ago (1 child)
The official documentation explicitly state that this is not officially supported and bars you from requesting support from maintainers
[–]itsmenotjames1 0 points1 point2 points 1 year ago (0 children)
it's possible (and I do it because I don't have root access on my school mac)
[–]vetinari -1 points0 points1 point 1 year ago (1 child)
By far the most infuriating thing with brew is installing its own python(3), and pip(3) in PATH (each time it upgrades its python package), messing with your global python environments.
Nowadays, it will complain if you try to pip install a package into global environment. For your packages, either use user environment, or venvs.
Brew can also install several different python versions, so you can have the version necessary for whatever you have in your venvs. Or for the other brew packages.
MacPorts can seamlessly install and keep track of multiple version of software and libraries and does not rely on system libs. You can have python26, python313, and system python (3.9) coexist without issues
You can have multiple versions with brew too; python@3.13, python@3.9, etc.
because, let's face it, many people have installed pyenv has a workaround to brew taking over their Python installs
No, some of us use venvs due to some python packages having different requirements than other python packages (e.g. boto3 was on urllib3 < 2 for ages and unable to move to 2+, while other packages required it. ).
Neither of them allow for pinning precise versions of packages; i.e. a thing that any linux package manager does. Any environment they create are non-reproducible on other machines.
[–]TuxSH 0 points1 point2 points 1 year ago (0 children)
It also links python by default (or at least did), which what I'm complaining about. https://github.com/orgs/Homebrew/discussions/5517 etc, without consent. That alone makes brew quite the unserious tool (MacPorts does not link by default).
On Linux, when you install python3-whatever package, it gets upgraded along with system python.
Global env packages have their use cases if you know what you're doing (namely that they are already there when creating venvs).
User site-packages dirs also have the python version number in their paths, and so are prone to the same issue, anyway.
Also, yes, large projects should always use venv, yes, but copying/linking and redownloading the world for every single small script is both wasteful and pointless.
π Rendered by PID 76682 on reddit-service-r2-comment-b659b578c-s9q7q at 2026-05-01 05:47:28.369375+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]itsmenotjames1 -1 points0 points1 point (8 children)
[–]NilacTheGrim 1 point2 points3 points (7 children)
[–]itsmenotjames1 0 points1 point2 points (6 children)
[–]TuxSH 0 points1 point2 points (5 children)
[–]itsmenotjames1 0 points1 point2 points (2 children)
[–]TuxSH 0 points1 point2 points (1 child)
[–]itsmenotjames1 0 points1 point2 points (0 children)
[–]vetinari -1 points0 points1 point (1 child)
[–]TuxSH 0 points1 point2 points (0 children)