Brian Fitch

2.7K posts

Brian Fitch

Brian Fitch

@brianmfitch

I make music and program computers. Never at the same time.

Cambridge, MA Katılım Nisan 2010
177 Takip Edilen206 Takipçiler
Brian Fitch
Brian Fitch@brianmfitch·
@jonpmayse I certainly think you can (and likely do!) commission great artists. My main concern: if you're selecting on any basis but quality, who decides and adjudicates the criteria? Not verified, but his example of "gay doesn't count" is illustrative.
English
0
0
0
58
Jon Paul Mayse
Jon Paul Mayse@jonpmayse·
@brianmfitch I think you're making an error in that you are implying that by establishing constraints, we can't commission artists who can write works of a certain 'quality'. There are always constraints, often whether we have heard of the artist (see marketing above). Others are practical.
English
2
0
1
64
Jon Paul Mayse
Jon Paul Mayse@jonpmayse·
Dumb, grifting bullshit. These conversations don't happen and only weird, right-wing influencers say "DEI" like this. No one should take Samuel Andreyev seriously, he's riding a right-wing grift cash cow.
Samuel Andreyev@SamuelAndreyev

In case you’re wondering how the arts are faring in Trudeau’s glorious Canada, here is some of what I’ve heard from colleagues. A composer friend attended a programming meeting in Vancouver during which the possibility of one of his works being played was raised. ‘Sorry,’ they said, ‘we’re only doing DEI pieces’. ‘OK, but you do realise I’m gay, right’? Said my friend. ‘That doesn’t count,’ came the reply. Another friend, a distinguished conductor living in Toronto, attended a similar meeting. He noticed a huge pile of scores going straight into the bin. ‘Why aren’t we looking at those?’ Asked my friend. ‘Those are the non-DEI submissions’ I’m hearing a lot of people saying ‘yeah it sucks but if you don’t go along with it you won’t get your funding renewed’, and ‘we don’t really think this piece is so good but we’re doing it because DEI’. What I’m not hearing much of is ‘we’re doing this piece because it’s one of the strongest new works we’ve seen’, or, ‘here’s an important talent that we want to showcase’. It would perhaps be one thing if people were doing this because they genuinely thought it was the right thing to do. But they don’t. They are bullied into it and resent having to participate. Everyone privately acknowledges that this is happening. Who is it helping?

English
1
0
4
2.6K
Brian Fitch
Brian Fitch@brianmfitch·
@jonpmayse Hey Jon. Thanks for the clarification. I would still say, then, that selection of artists should be on the basis of their previous work rather than certain group characteristics. Appreciate the reply.
English
1
0
1
17
Jon Paul Mayse
Jon Paul Mayse@jonpmayse·
@brianmfitch We have no reason to commission 'works'. We don't own them, we're not collecting them like art investors. We care about artists and want to pay artists whose work we like to create new work.
English
2
0
0
60
Brian Fitch
Brian Fitch@brianmfitch·
@jonpmayse Not to belabor the point. But imagine the inverse: what if what you’re selecting for (DEI) is the basis for what a future committee rejects? Or perhaps a matrix other than DEI is adopted that you disagree with.
English
1
0
0
51
Brian Fitch
Brian Fitch@brianmfitch·
@jonpmayse Selection based on anything but the quality of the work itself undermines the very thing you claim to love and will be used against you when power shifts.
English
1
0
1
54
Brian Fitch
Brian Fitch@brianmfitch·
@BHolmesDev @einbuhrmi @inertiajs Could rails handle the initial request, then pass props from the controller to Astro to render? Calling Astro second would align more with how templates usually work in rails.
English
0
0
0
38
Ben Holmes
Ben Holmes@BHolmesDev·
@einbuhrmi @inertiajs That’s how it works right now yeah. But it doesn’t have to! Was just the path of least resistance with the experience I have
English
1
0
0
51
Ben Holmes
Ben Holmes@BHolmesDev·
Crazy thought: What if Astro took over views/ for any framework? Got an early Ruby on Rails prototype running. Query in a controller, return props, use them in your component. Like the network isn’t even there 🪄
English
49
31
404
105.1K
Chris Krycho
Chris Krycho@chriskrycho·
Are there basically no other viola concertos besides Walton’s?!? (Apple Music does not seem to know about them if so.)
English
1
0
0
313
matt swanson 😈
matt swanson 😈@_swanson·
"This core concept in Rails? You should not use it at all!" 🤦 Some people have really lost their way when it comes to code design
matt swanson 😈 tweet media
English
60
20
284
80.9K
Brian Fitch
Brian Fitch@brianmfitch·
@samcraigjohnson @_swanson @gyozaeater Yeah, you gotta put behavior somewhere: controllers, some class, or callbacks. A service object makes the behavior explicit, which is helpful in bigger apps with lots of models w/ lots of associations. I just don’t think this is the dunk OP thought it was.
English
0
0
0
23
sam
sam@samcraigjohnson·
@brianmfitch @_swanson @gyozaeater But then you have to open the service object to find out. Also rails provides ways of bypassing callbacks. Having crazy unexpected side effects is possible in any method call. Callbacks are nice organization technique and are ergonomic to use
English
1
0
0
48
Brian Fitch
Brian Fitch@brianmfitch·
@soulchildpls @_swanson @gyozaeater Are you going to think to do that when Car isn’t the unit under test? What if you’re testing SomeClass that calls Something that calls Car.create. Do you want to think about stubbing notify_qa when your trying to verify unrelated behavior?
English
1
0
0
76
Brian Fitch
Brian Fitch@brianmfitch·
@_swanson @gyozaeater Folks use service objects to separate out behavior for cases like this. Testing is another context where isolating effects is helpful.
English
0
0
0
157
Brian Fitch
Brian Fitch@brianmfitch·
@_swanson @gyozaeater The original blog post, your response and mine are all contrived, so examples here probably won’t be too convincing. But I’ll try another: in a background job or buried deep in another class Car.create. Do you still want to notify_qa ?
English
2
0
1
498
Brian Fitch
Brian Fitch@brianmfitch·
@_swanson @gyozaeater I wouldn’t get hung up on queues or rails setup. The point is side effects far removed from the thing you’re trying to do and the file you’re in. As your app grows behavior gets harder to reason about.
English
1
0
2
562
matt swanson 😈
matt swanson 😈@_swanson·
@brianmfitch @gyozaeater Well Rails has a test queue; if other tests are failing because of a counter that is a bad test (fix tests don't induce design damage); use test mode / mocks for external dependencies I just don't buy the argument that testing is much worse
English
1
0
3
591
Brian Fitch
Brian Fitch@brianmfitch·
@_swanson @gyozaeater Maybe you get lucky and enqueue has no side effects and the test just passes. But imagine a callback like launch_rockets()…any unexpected side effect in the unit under test. Service objects make it so you don’t open Car to figure out what’s going on
English
1
0
2
138
Brian Fitch
Brian Fitch@brianmfitch·
@_swanson @gyozaeater Perhaps you didn’t stub the method call to Library.enqueue- hard fail. Or another test asserts that enqueue was called n times and it fails cause enqueue is getting called behind the scenes. These things happen
English
2
0
1
725
Brian Fitch
Brian Fitch@brianmfitch·
@_swanson @gyozaeater The problem isn’t testing the callback directly. It’s the side effect introduced whenever a Car gets created. Imagine writing a Shop test that creates a Car then, oops, another test starts failing because the qa job is enqueued. Multiply that times 100 models and tests.
English
1
0
2
833
matt swanson 😈
matt swanson 😈@_swanson·
@gyozaeater test "it resets mileage" do car = Car.create! assert_equal 0, car.mileage end test "it alerts QA" do assert_enqueued_jobs 1, only: ReportJob do Car.create! end end how is that hard to test?
English
5
0
32
4.2K
Brian Fitch
Brian Fitch@brianmfitch·
@kurtrosenwinkel @RepMTG It’s not guns that kill people. It’s people who kill others by deciding to do it. Less regulation on guns you wimps. I’m gonna wear my NRA pin tomorrow.
English
2
0
0
196
Kurt Rosenwinkel
Kurt Rosenwinkel@kurtrosenwinkel·
@RepMTG It’s not fentanyl that kills people. It’s people who kill themselves by deciding to do it. Less regulation on fentanyl you wimps. I’m gonna wear my fentanyl pin tomorrow.
English
7
6
66
5.1K