GoThread
appearance log in
home all local communities

@iusemybrain@sh.itjust.works

@iusemybrain@sh.itjust.works

member since 6 Jun 2026 18:18 · modlog

postscomments
  • on Learning C++ for my perfect Linux programs launcher and themes (because I refused to have the limitations of rofi or wofi), wish me luck in c/linuxmemes@lemmy.world · 9 Nov 2026

    Just as advice, please don’t declare namespaces using the “using namespace <namespace_name>”. Unless you know what functions are implemented inside of it, if two namespaces have the same function name in both of them with different implementations, the compiler will run the function based on the namespace you have declared using the “using namespace <namespace_name>.”

    It is better, for example, instead of instatiating the namespace “using namespace std” you should do std::cout << “your_string” << std::endl this is explicitly saying from the std namespace, get cout, and from std namespace, get endl. It is more clear it is concise and everyone knows where you are getting this function from. Whereas if you did “using namespace std” and then cout << “your_string” << endl no one knows where you are getting those functions.

    Explicitly instantiate your namespaces at the time you declare your functions inside said namespaces even if it means tediously writing out the namespace every instantiation, it makes reading your c++ code that much more easier.

  • on Dunning-Kruger effect in c/linuxmemes@lemmy.world · 9 Nov 2026

    There’s what in my ass now?

  • on Anon died on the "clang format bad" hill in c/programmer_humor@programming.dev · 26 Oct 2026

    The intention of C++ was to be C’s replacement by adding objects into the programming language while also maintaining the fast compilation and runtime that came with C. In the end it resulted in longer compilation and runtime times (from the millisecond scale to seconds scale), which made it generally unappealing for embedded systems.

    On a production code standpoint, if were comparing it to something like python, it is debatable, but there’s just a large learning curve associated with the language that could otherwise be avoided with a different OOP language. By trying to accomplish everything, it fails to implement everything well to compete with other languages.

  • on David Revoy - "Do you have the password ?" in c/programmer_humor@programming.dev · 26 Oct 2026

    factorial(4) = 24

    c/unexpectedfactorial

  • on Anon died on the "clang format bad" hill in c/programmer_humor@programming.dev · 26 Oct 2026

    Rust and C are very similar so I’m not going to argue with that the primary difference is safe memory in rust, and more embedded hardware support in C, which depends entirely if you plan on building embedded systems.

    On a fundamental, computer architecture/assembly/ALU level, I’ve never understood how python works asynchronously; how is it able to run code blocks in a non-sequential paradigm.

  • on No AI has been used in this project in c/programmer_humor@programming.dev · 24 Oct 2026

    README’s are documentation.

  • on Type rule in c/onehundredninetysix@lemmy.blahaj.zone · 24 Oct 2026

    I knew this would be a comment, I just didn’t know it would be at the top 😂

  • on rule in c/onehundredninetysix@lemmy.blahaj.zone · 6 Oct 2026

GoThread · self-hosted threadiverse · instances · modlog · rss · appearance · AGPL-3.0