@checkervest What a chonker.
@isagalaev Yes! My beautiful chain of yield statements eventually hits a sort function.
I like 'yield' statement, I believe it's more explicit that saving elements into a container then returning a container.
But mostly, I saved some code of packing everything into a dict, returning it to a function which then would iterate over the dict by immediately converting it into a tuple.
#python programming anti-pattern that I keep repeating today:
Gather everything into a dictionary only to convert everything back to tuple of tuples with .items() function.
Much better and faster solution -- return each 'keyword' item as a tuple using yield statement i.e.
res[key] = val
for k, v in somefun().items():
write like this
yield (key, val)
for k, v in somefun():
rms, software licensing
I think RMS's focus on licensing was/is also quite harmful.
It's the power structures around software that matter, not license minutia. Sure, you need an open license for accountable software but it's not nearly sufficient by itself.
Just look at all those software companies having tight control over a bunch of projects despite an open source license. Tech companies figured this out in the mid 2000s, heck even Microsoft realized this in the last few years.
The fight for diversity, equality and inclusion is the fight for software freedom. Our movement will only be successful if it includes everyone. RMS does not speak for these values.
@tindall You can get a replacement keyboard on ebay for about $40. It's held on by a few screws and then it slides off.
MEANWHILE, IN CANADA: a woman with a size 7 left foot and size 9 right foot has finally found a woman with a size 9 left foot and size 7 right foot so they can buy shoes together https://www.cbc.ca/news/canada/sudbury/shoe-twins-meet-1.5282310 🐘
@trashHeap makes an amazing point. Until RMS accepts "they" and apologizes for his latest nonsense I'm calling it "Linux" against his wishes.
Please pay attention to the propaganda! Do not applaud people surviving in this dystopia! Instead burn down the dystopia!
Python programmer, runner, likes 3D printers and making short videos.
Generalistic and moderated instance. All opinions are welcome, but hate speeches are prohibited. Users who don't respect rules will be silenced or suspended, depending on the violation severity.