HNHacker News
TopNewBestAskShowJobs

asgeir

208 karma · joined July 5, 2014

submissionscomments
asgeir··on The New York Times Calls for Marijuana Legalization
I for one do not want a nanny state. I would much rather have personal freedom to do what I want with my body rather than sitting down to a nice hot government ration #323. There are some things that make life worth living and not all of them are good for you. If that means that I have to pay higher taxes then so be it, that is already the price to pay for living in a welfare state. In any case any perceived burden can be offset with a vice tax.
asgeir··on The New York Times Calls for Marijuana Legalization
It annoys me when people use healthcare cost as something to be counted against recreational drugs. It seems to me that this reasoning could equally be applied to every avoidable burden on the health system.

As an analogy. As far as I know heart disease is one of the main causes of healthcare costs and death. Obesity leads to an increased risk of heart disease. Does this mean that we should have a government mandated diet to eliminate obesity?

asgeir··on How Does One Create A Gtk+ Application?
I think that the reason for reimplementing stl functionality is that they want complex types such as QString as a part of their external interface and they want different minor versions to be binary compatible which can't be guaranteed for types like std::string unless everything is compiled with the same compiler and runtime. See https://qt-project.org/wiki/Dpointer

As for the raw pointer use you should always use QPointer smart pointers for objects whose lifetime you don't control. However they don't recommend passing QPointers as function parameters since they are easily/cheaply constructed and the reference count is embedded in the QObject instance itself in any case.

← PreviousPage 3 of 3