🌉 bridged from @jokro@feddit.org by Tidepool
jokro
@jokro.feddit.org.ap.tdpl.io
linux GnuPG's GPGME Affected By Critical Security Bug In Turn Affecting Mail Clients, Flatpak
3 0I also see the image https://www.phoronix.net/image.php?id=854&image=phx_beer_g2
programming A database is a store for global variables
1 1Yes always is probably wrong, but not having global state allows you to argue just by function signature and allows easier unit testing and multithreading and probably more.
programming Avoid Public Functions Calling Other Public Functions
1 0I agree if it's checking if a method gives the right output for a specific input. But i'm more concernd with checking if it issued the right side effects, i.e. called right services and so on and then checking if it made right calls to the mocks.
programming Avoid Public Functions Calling Other Public Functions
16 3There is also this gem in the post:
You shouldn’t be mocking your methods, you should mock your IO. And, similarly, you shouldn’t test methods, but rather software functionality
I totally agree! With containers you might not even have to mock your IO but can check if the application behaves correctly.
programming PHP: you get your burger
6 0To add what the others said, yesterday morning there was news that every php version is vulnerable but the fixes were published very late in the day (or whenever depending on timezone) thus there was a 8+hours of unceartiny and fear for administrators. A lot of websites shut down due to that.
linux Patches Updated To Begin Removing The Linux x32 ABI
1 0Sounds good
linux Windows 11 is failing as an operating system
8 0Dunno, my Linux boots that fast.
programming What is your preferred import style
0 0Value types are in work, you can test on dev branches.
programming Props Are Not a Design System
3 1Did we just go full circle? CSS classes already exist.
linux Cleanup without fresh install
0 0There might be some installation logs that show what you manually installed.
linux Cleanup without fresh install
9 1Move the content of your home folder to a new subfolder, pick the bits you need and delete the subfolder?
linux Linus Torvalds Spent Years Dismissing AI, Only to Vouch for It
78 1The titel is clickbaitish. It's good that Linus is open to new things and updates his views. As pointed out by the article he is no ai evangelist, but rather pragmatic.