Hacker News new | ask | show | jobs
by mehhh 2447 days ago
Qt development using Python is similarly painful, I end up drafting things up in Qt Creator, taking that code and amending it to work in Python.

The tooling for Qt needs help, I feel like this is a huge reason why shovelware Electron apps are so common now.

Edit: Capitalization

2 comments

I've been developing C++ for 10+ years.

I think the pain is unfairly attributed to Qt. A lot of the pain actually comes from the poor tooling in the C++ world.

Conan is supposed to come to the rescue, but after attempting to use it, it feels like it's still not as easy to use as any other package manager (npm, pypi, gems, etc). I love C++ and Qt, but It's extremely difficult to convince people to start any new projects in C++.

Common C/C++ questions and answers in stack overflow: how do I do x in C++ (e.g. trim whitespace), the usual responses: 1. It's trivial to implement, do it yourself. 2. Why would you want to do that.

Compare that to pulling up a library to do that, or it's already baked into the standard library (e.g. Java).

I would not want to develop a new application in C++, both Google and Mozilla decided it was bad enough they had to write better languages (Go & Rust), and the speed at which I can write things in Python, Lua or another lanugage is much faster than C++.

That being said, my SO would love you! He is always trying to get me to write things in C :D

QString::trimmed() ;)

std::string is laughably underpowered in comparison - it's basically a vector of bytes, missing a huge amount of convenience methods and all Unicode support.

It's Qt not QT
Edited both comments, should be fixed now