jerkface

joined 2 years ago
[–] jerkface@lemmy.ca -1 points 1 week ago

Soybeans are cattle in plant form.

[–] jerkface@lemmy.ca 10 points 1 week ago

Congratulations. This is oniony.

[–] jerkface@lemmy.ca 9 points 1 week ago* (last edited 1 week ago)

A river floods every year. If someone builds a house next to it and the river takes it, is the river evil, or is the person suffering the consequences of their own ignorance? The consequences of capitalism are predictable and inevitable. The behaviour of a dollar is almost as predictable as that of an electron. Why do people pretend like we don't know what is going to happen?

[–] jerkface@lemmy.ca 3 points 2 weeks ago

Alternatively, why wait twice as long for your python code to execute as you have to?

[–] jerkface@lemmy.ca 1 points 2 weeks ago* (last edited 2 weeks ago) (2 children)

It's very convenient not to have to remember a bunch of different means/methods for performing the same conceptual operation. You might call len(x) == 0 on a list, but next time it's a dict. Time after that it's a complex number. The next time it's an instance. not works in all cases.

[–] jerkface@lemmy.ca 1 points 2 weeks ago* (last edited 2 weeks ago)

I use Blender for that, too. Anything I don't do in Blender I probably do in emacs...

[–] jerkface@lemmy.ca 4 points 2 weeks ago

I use Blender for video editing, and as long as I never use another video editing package, I am sure to remain perfectly happy with Blender.

[–] jerkface@lemmy.ca 5 points 2 weeks ago* (last edited 2 weeks ago) (4 children)

Truthiness is so fundamental, in most languages, all values have a truthiness, whether they are bool or not. Even in C, int x = value(); if (!x) x_is_not_zero(); is valid and idiomatic.

I appreciate the point that calling a method gives more context cues and potentially aids readability, but in this case I feel like not is the python idiom people expect and reads just fine.

[–] jerkface@lemmy.ca 15 points 2 weeks ago (22 children)

Strongly disagree that not x implies to programmers that x is a bool.

[–] jerkface@lemmy.ca 1 points 2 weeks ago (1 children)

Then the new owners were only doing it for the money.

As opposed to what reason for owning a factory??

[–] jerkface@lemmy.ca 5 points 2 weeks ago* (last edited 2 weeks ago)

The pay WOULD be astronomical if it had kept pace with CEOs, that's the point

view more: ‹ prev next ›