DISQUS

Polimath: c++ i'm not coming back

  • Greg M · 1 year ago
    You can't be unaware that Python has these kind of quirks in abundance? And without necessarily having the well-considered reasons behind them C++ does? Sure, it's a little better, but if that's the reason for your journey, Python is a bizarre choice of destination.
  • James · 1 year ago
    I've been using Python regularly for several years and I nothing in the same category comes to mind. \n\nI don't doubt that C++ has it's reasons either.. the people who design it are much more talented than myself I'm sure, I think that Python's emphasis on readability and 'There should be one-- and preferably only one --obvious way to do it' leads to the cleanliness I appreciate here.\n\nA python quirk that I can think of would be self, but I think that the reasons for this are a lot more established than the reasons for std::vector<std::string>> (which I know is fixed in the draft spec)\n\nThe ability to remove bugs like this I think can be attributed to having a BDFL and using community PEPs vs. a committee. I realize having an ISO standard/etc is useful, but when every compiler implementer has it's own quirks some of the usefulness is lost.
  • Ben · 1 year ago
    C++ is a complicated language that has funny rules because of the C language compatibility. For many domains it just doesn't make a lot of sense any more. I really like it for large scale hard real-time systems though. The OO support of the language allows a large team to cooperate, while still writing deterministic code. The C language support allows control code for low level components like motors or sensors to link transparently into the application and service layers - it scales beautifully. That said, if you're using C++ to write a Linux desktop application, you may be doing the wrong thing. In other words, your 'primary' language should be determined by your primary task domain, not your bias to a syntax. IMO
  • James · 1 year ago
    I'd agree Ben, for the type of things you're talking about C++ or C are almost required, and I'd certainly prefer C++ over raw C for most tasks for the reasons you provide.\n\nI think that most domains where you're writing anything for an end-user (web, desktop, games even to an extent) give a lot more flexibility in language than embedded/real-time systems.
  • Dejan Lekic · 1 year ago
    James, I am professional C++ developer since 1992, and I switched to programming language called D" few years ago. I think You should try it. Considering what You wrote above You will definitely like D. :)\n\nKind regards"