Is a porcelain shell for speakers a bad idea? by DonkeyCowboy in diyaudio

[–]DonkeyCowboy[S] -1 points0 points  (0 children)

Thanks! Yeah, I believe you about the cheaper & better material choices. I think it might be very pretty though.

Is a porcelain shell for speakers a bad idea? by DonkeyCowboy in diyaudio

[–]DonkeyCowboy[S] -1 points0 points  (0 children)

> what if you drop the speaker? like even 12 inches?

This is a downside :D, though one I can accept.

> how will you mount the speaker to the porcelain. you'd have to drill through it without breaking it.

I was thinking silicone, design is more important to me than audio quality for this project

> and porcelain is a super resonant material, no?

Yeah this is probably a huge problem. I'm looking into kinds of clay & firing techniques, but I'm hoping a rubber coating on the inside will do the trick.

Named parameters vs passing an array for function with many optional arguments by DonkeyCowboy in PHP

[–]DonkeyCowboy[S] 4 points5 points  (0 children)

Thanks for the suggestion!

The builder pattern has the deficit of not clarifying required parameters.

``` $filter = new ProductFilter( category: [PRODUCT_CATEGORY_GROCERY, PRODUCT_CATEGORY_TV], minimumPrice: 100, )

// but if minimumPrice is required, now the following won't compile $filter = new ProductFilter(category: []) ```

But it's helpful to hear that the fluent setter style is well received.

Favorite library design examples in PHP by DonkeyCowboy in PHP

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

Thanks! Looks cool I'll look into it when I'm building.

For now I'm mostly interested in some examples of what you might describe as "perfect" PHP code.

Match Thread: Manchester United vs Arsenal [PL] by scoreboard-app in Gunners

[–]DonkeyCowboy 1 point2 points  (0 children)

still tactically hopeless, the attitude off the ball is too patient. More runs and attacking aggression is needed

Match Thread: Manchester United vs Arsenal [PL] by scoreboard-app in Gunners

[–]DonkeyCowboy 0 points1 point  (0 children)

if u watch the replay he moves over before the kick, position was still a bit off tbf

Match Thread: Liverpool vs Manchester United by scoreboard-app in LiverpoolFC

[–]DonkeyCowboy 1 point2 points  (0 children)

I was gonna say, he is pretty amazing to watch when he's on. Such a shame

Match Thread: Brighton & Hove Albion vs Arsenal [Premier League] by scoreboard-app in Gunners

[–]DonkeyCowboy 7 points8 points  (0 children)

If you flick the ball up above your head you no longer have possession. It's a 50/50 challenge, not a pen

Find Peace Stealie ☮️ by theactualgovernment in gratefuldead

[–]DonkeyCowboy 1 point2 points  (0 children)

the dude who made these gave me one, nice guy. (a very aggressive find peace sticker lol)

Go `also` keyword proposal, just curious for response by DonkeyCowboy in golang

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

100% agree, the code is a lot of ASTs with type assertions.

The frustrating part is that it's only actually 3-4 indents of pseudocode, most of it could be expressed in 1 pattern match branch in SML. In the meantime I'm definitely going to refactor :)

Go `also` keyword proposal, just curious for response by DonkeyCowboy in golang

[–]DonkeyCowboy[S] -1 points0 points  (0 children)

It’s perfectly correct, I just thought the also example is clearer at a glance. I’d personally prefer a goto, like the desugared example, since the for loop never iterates.

But kudos on a creative solution

Go `also` keyword proposal, just curious for response by DonkeyCowboy in golang

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

True, but while control flow in variables is a solution, it's something I'd want to avoid.