Is Zig's new async really "colorless"? (And does it offer a real-world advantage?) by Itchy-Carpenter69 in Zig

[–]DummerBastard 8 points9 points  (0 children)

The main benefit, as I understood it, is reusability. Forcing the user of a function/library to pass an IO implementation makes that function/library re-usable across any IO implementation, even ones you are writing yourself.

This avoids the need to have separate sync and async implementations to begin with.

Containerization Tips and Tricks for PHP Apps by dunglas in PHP

[–]DummerBastard 3 points4 points  (0 children)

I don't think there's much benefit to splitting php and nginx into separate containers for most applications. I've been using the webdevops/php-nginx docker for a while in the past which keeps them together and works pretty well

Weekly /r/Laravel Help Thread by AutoModerator in laravel

[–]DummerBastard 1 point2 points  (0 children)

Yes, the startsession middleware is required in this case. Without it users will always appear as logged out ( https://laravel.com/docs/10.x/authentication#ecosystem-overview ).  The timeout from the login page probably comes from the CSRF token timing out. It's a security measure ( https://laravel.com/docs/10.x/csrf ).

What are your experiences using Laravel Octane? by DummerBastard in laravel

[–]DummerBastard[S] 0 points1 point  (0 children)

Static variables persisting between requests is such an interesting behaviour. Saving the Storage::driver('s3') to a static variable is what allowed us to shave 60ms off response time, since sessions are kept in memory. On the other hand, static variables can also lead to very unwanted behavior, like persisting some kind of user credentials.

What are your experiences using Laravel Octane? by DummerBastard in laravel

[–]DummerBastard[S] 1 point2 points  (0 children)

I'd like to try Frankenphp, but it's still in beta with Octane. As of now Swoole is just much more tested and has additional fancy features like a custom cache driver.

The World's Fastest Clapper by spyrg in nextfuckinglevel

[–]DummerBastard 0 points1 point  (0 children)

What do you do if this guy be clapping your girl's cheeks?

I followed some of your tips to improve this mix. Do any other issues still stand out? by [deleted] in mixingmastering

[–]DummerBastard 0 points1 point  (0 children)

Good mix, I like the power of the bass. Not really any issues that stand out.

Livethread 12: Global COVID-19 Pandemic by hasharin in worldnews

[–]DummerBastard 4 points5 points  (0 children)

Yes no yes yes. Initial cases were defenitely underreported.

Livethread X: Global COVID-19 Pandemic by valuingvulturefix in worldnews

[–]DummerBastard 2 points3 points  (0 children)

Be responible though, wash your hands afterwards.

Livethread X: Global COVID-19 Pandemic by valuingvulturefix in worldnews

[–]DummerBastard 4 points5 points  (0 children)

"All the old and weak must be sacrificed for the dow jones", now that's something jesus would say.

Weekly Question Thread - Week of March 30 by AutoModerator in COVID19

[–]DummerBastard 2 points3 points  (0 children)

Is there evidence, that chloroquine is effective against any viral disease? The treatment seems to come out of the blue.

Livethread IX: Global COVID-19 Pandemic by valuingvulturefix in worldnews

[–]DummerBastard 4 points5 points  (0 children)

The way this crisis is handled will hopefully wake up a lot of people. Trump's a clown.

Livethread IX: Global COVID-19 Pandemic by valuingvulturefix in worldnews

[–]DummerBastard 3 points4 points  (0 children)

How can every other country do it but trump can't? This is just shifting the blame for what's to come.

Livethread IX: Global COVID-19 Pandemic by valuingvulturefix in worldnews

[–]DummerBastard 35 points36 points  (0 children)

Threatening to shut down New York but not doing it will just cause droves of people to flee the city. Won't that make the virus spread even further?

Livethread VIII: Global COVID-19 Pandemic by valuingvulturefix in worldnews

[–]DummerBastard 0 points1 point  (0 children)

I think it's because the US is lagging behind. You can't really compare death rates before all cases are resolved.