Maybe the JS map() with an arrow function looks better in that case, but IMO list-comprehensions are more powerful and easier to read.
You can create a list/set/dict from any iterable (not necessary a list object!). Also, you can filter while iterating:
>>> [i+10 for i in a if i % 2 == 1]
For me it's easier to remember how it works a list-comprehension than filter. I never remember if `filter()` filters the values when the lambda returns true or false...
@email@example.com I'd suggest writing the #python code like this:
>>> a = [1, 2, 3]
>>> list(map(lambda i: i+10, a))
[11, 12, 13]
>>> # or
>>> [i+10 for i in a]
[11, 12, 13]
Free Software job: "Developer to improve Catalan support in LaTeX". ~100h at 10€/h https://lists.riseup.net/www/arc/caliu-info/2020-07/msg00010.html
This is why you should absolutely reduce your reliance of apps and just do most if not all of your activities on a browser.
Dino 0.1 is released! 🎉
Dino is a secure and open-source application for decentralized messaging. It uses the XMPP (“Jabber”) protocol and is interoperable with other XMPP clients and servers. We aim to provide an intuitive, clean and modern user interface.
Release blog post: https://dino.im/blog/2020/01/dino-0.1-release/
Calling all teachers! LibreOffice is a great choice for schools and education – it's free and open source, compatible with Microsoft Office, and you don't have to worry about license fees, subscriptions or software audits. Learn more: https://blog.documentfoundation.org/blog/2020/03/24/libreoffice-a-great-choice-for-schools-and-education/
The first Community Update of 2020 is here!
"framework — A product with the business logic removed, but all of the assumptions left in."
I am in this post and I don't like it haaaalp https://programmingisterrible.com/post/65781074112/devils-dictionary-of-programming
Ring confirms it fired four employees for watching customer videos
This is one reason why you should think twice before putting sensitive information into the hands of third parties. Happens all the time...
WSL is MSFT's attempt to "enclose" Linux entirely within Windows. This is MSFT's only option due to Linux's GPL v2 license. But, to be frank, WSL is the worst of both worlds - Linux, but constrained by the arbitrary limitations of Windows. Yes, MSFT trying to control the platform.
If you want to use Linux... why not just use Linux? There's literally nothing standing in your way. Using WSL is voluntarily making yourself a pawn for MSFT's proprietary interests.
Windows Subsystem for Linux is a horrible, pointless initiative... unless you're Microsoft.
Microsoft has built its $trillion business on *controlling the platform* and exploiting its users. Windows is slowly decaying, and, tellingly, the crucial developers Windows needs to stay relevant... are moving to Linux, and few look back.