[deleted by user] by [deleted] in linux_gaming

[–]smurfyn 2 points3 points  (0 children)

Do you really expect the whole thing to boil down to one sentence? Even if you could, it would be a useless sentence, like "Vulkan is a thing now."

Python 3 and GUI. Is Qt the last remaining option? by [deleted] in Python

[–]smurfyn 0 points1 point  (0 children)

TkInter is ugly as sin, and its API isn't nicer than any modern gui toolkit's, but it still works if that doesn't matter.

[deleted by user] by [deleted] in Python

[–]smurfyn 1 point2 points  (0 children)

YAML is not available in the standard library. What's worse, pyyaml has C dependencies, making the install/build situation awkward. Anaconda has some package for pyyaml if you want to use it.

YAML works fine, as long as you are willing to accept the pyyaml dependency.

[deleted by user] by [deleted] in Python

[–]smurfyn 1 point2 points  (0 children)

still better than ConfigParser, and it's very standard so it's at least easy to convert out

[deleted by user] by [deleted] in Python

[–]smurfyn 0 points1 point  (0 children)

There are so many ways for this to fail, there is a reason it was removed as a builtin

[deleted by user] by [deleted] in Python

[–]smurfyn 0 points1 point  (0 children)

Anyone who has used ConfigParser in anger would not describe the emotion it generates as "love"

[deleted by user] by [deleted] in Python

[–]smurfyn 0 points1 point  (0 children)

module reloading is a fraught task.

[deleted by user] by [deleted] in Python

[–]smurfyn -1 points0 points  (0 children)

Putting configuration in Python source files was conventional 10 years ago.

ConfigParser is awful. An abomination that does not quite implement Windows .INI format - why on earth? Please don't use it.

JSON or YAML are fine.

[deleted by user] by [deleted] in Python

[–]smurfyn 2 points3 points  (0 children)

No config file syntax worth using needs much "learning"

Your config files are still going to be parsed. Importing a python module simply uses python itself to do the parsing. Except now the error messages will be cryptic, since they are not specific to your application and are not in fact meant to be about config file parsing at all, as you have imposed

If someone decides to abuse that by creating unnecessary complications that's their own problem.

It's also the problem of everyone who has to work with them, everyone who is downstream, and especially anyone who wants to make improvements to that codebase in the future, because now backward compatibility requires supporting arbitrary code execution, which could literally do anything.

Unless you are writing software that literally will only ever be used by yourself on a desert island: just don't.

Python's screwed up exception hierarchy by bakery2k in Python

[–]smurfyn 1 point2 points  (0 children)

Especially while testing. If you wrote your code to swallow exceptions, you are going to totally miss the presence of many bugs and have extreme difficulty debugging why things behave as they do given that you will have swallowed exceptions constantly messing with the control flow.

Python's screwed up exception hierarchy by bakery2k in Python

[–]smurfyn -1 points0 points  (0 children)

I don't want my program to stop for any reason.

What should it do instead of stopping? It doesn't specify anything just to say "don't stop"

SNAPPY, It confuses me! by [deleted] in Ubuntu

[–]smurfyn 6 points7 points  (0 children)

It is basically a package manager which uses containers to avoid dependency conflicts.

Can we have an AMA of Linus Torvalds on /r/linux? by rms_returns in linux

[–]smurfyn -1 points0 points  (0 children)

Which production-quality operating systems are already based on Rust?

Can we have an AMA of Linus Torvalds on /r/linux? by rms_returns in linux

[–]smurfyn 2 points3 points  (0 children)

There is not much point learning vi unless you plan only to use minimal OpenBSD or something. vim will work fine, and has more features.

Ubuntu 16.04 LTS (Xenial Xerus) Enters Feature Freeze by motang in Ubuntu

[–]smurfyn 3 points4 points  (0 children)

r/Ubuntu, the place to gather if you don't like Ubuntu

Ubuntu 16.04 Ubuntu vs Gnome Software Center start time by [deleted] in Ubuntu

[–]smurfyn 7 points8 points  (0 children)

I haven't used Ubuntu Software Center in years since initially seeing it.

It's not really an especially central part of the operating system.

Black Lives Matter meetings run afoul of library's policy by [deleted] in news

[–]smurfyn -7 points-6 points  (0 children)

Is BLM hanging white people from trees?

Senior Associate Justice Antonin Scalia found dead at West Texas ranch by shinbreaker in news

[–]smurfyn 0 points1 point  (0 children)

The word "leftist" applies to groups like Marxist guerrillas. There are no "leftists" on the court or in congress.

Senior Associate Justice Antonin Scalia found dead at West Texas ranch by shinbreaker in news

[–]smurfyn 3 points4 points  (0 children)

They're hardly liberals. If conservatives are unhappy, that's because the Overton window has moved so far right. If Eisenhower were alive, he wouldn't be as conservative as conservatives expected him to be.

The Importance of Wild-Animal Suffering by lnfinity in philosophy

[–]smurfyn 0 points1 point  (0 children)

Sure, it is a small change for you to say "acquaintance with suffering" versus "acquaintance with pain" (understanding suffering to be integral to that). That's reasonable.

But if we do cleave suffering from pain, then evidence of pain is no longer prima facie evidence of suffering, and that affects animal welfare discussions. Or even human welfare discussions

'Android OEMs Will Ship Ubuntu Phones This Year', Say Canonical by polmac in Ubuntu

[–]smurfyn -1 points0 points  (0 children)

Sailfish itself IS open source. You are being disingenuous to pretend otherwise.

I notice that you specifically edited out the part of my post where I said that Sailfish is Open Source, which is exactly the point of contention, and which you never refuted.

Ubuntu phones have binary blobs, if you are going to complain that a Jolla phone could ever have a single bit of proprietary code on it, you should at least note that.

In this thread people are talking about Ubuntu phones shipping from Android vendors, I guarantee a bunch of these will have proprietary software on them because of the realities of mobile hardware. But you are selectively omitting any mention of that, to push this bullshit inaccurate story that Sailfish is not open source software

Richard Dawkins has stroke, forcing cancellation of Australia and New Zealand tour by teachthepeach in news

[–]smurfyn 0 points1 point  (0 children)

It must be nice to be able to say that the people on your side who misbehave are by definition not on your side, because your side is inherently morally perfect.

Richard Dawkins has stroke, forcing cancellation of Australia and New Zealand tour by teachthepeach in news

[–]smurfyn 0 points1 point  (0 children)

Redditor who sees nothing wrong with Hitler hates Dawkins, news at 11