you are viewing a single comment's thread
view the rest of the comments
[–] 49 points 2 years ago (1 child)

C++ is unironically my favorite language, especially coding in python feels so ambiguous and you need to take care of so many special cases that just wouldn't even exist in C++.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 58 points 2 years ago (4 children)

    But can you read someone else's C++ code?

  • source
  • parent
  • hideshow 8 child comments
  • [–] 28 points 2 years ago (2 children)

    Typically, I can read an "average" open source programmers code. One of the issues I have with C++ is the standard library source seems to be completely incomprehensible.

    I recently started learning rust, and the idea of being able to look at the standard library source to understand something without having to travel through 10 layers of abstraction was incredible to me.

  • source
  • parent
  • hideshow 4 child comments
  • [–] 6 points 2 years ago (1 child)

    One of the issues I have with C++ is the standard library source seems to be completely incomprehensible.

    AAAAAAhhh I once read a Stroustrup quote essentially going "if you understand vectors you understand C++", thought about that for a second, coming to the conclusion "surely he didn't mean using them, but implementing them", then had a quick google, people said llvm's libc++ was clean, had a look, and noped out of that abomination instantly. For comparison, Rust's vectors. About the same LOC, yes, but the Rust is like 80% docs and comments.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 1 point 2 years ago*

    I think some of those abominational constructs were for compile-time errors. Inline visibility macro is for reducing bynary size, allowing additional optimizations and improving performance and load time.

    In my projects I set default visibility to hidden.

  • source
  • parent
  • [–] 11 points 2 years ago

    You can absolutely read my code. The ability (similar to functional languages) to override operators like crazy can create extremely expressive code - making everything an operator is another noob trap... but using the feature sparingly is extremely powerful.

  • source
  • parent