• 0 Posts
  • 141 Comments
Joined 3 years ago
cake
Cake day: July 2nd, 2023

help-circle
  • Actually, I’m going to say probably.

    In high school there was a big banner, huge letters right when you walked in, and it had the shittiest picture on it and for whatever adolescent pointless rebellion needless defiance I decided to never read the rest of the banner.

    It’s NEARLY impossible to see a few big words and NOT read them. But, through spite, all things are possible.

    I expect one could achieve a similar discipline where you can be aware of something and simply refuse to think about it at all.



  • It IS subjective, and I think you’re bang on about sometimes you really just vibe with some element of a story it just gets you.

    And I’m super guilty of that (I say as if it’s a crime) so I’m sure my view of Les Mis is probably super biased. The central theme that a man isn’t defined by his past, but by his active commitments to his values… A full throated rejection of utilitarianism (which of course runs counter to peak 16 year old conception of philosophy)… God it hits. As hard when I was 16 as it does now.

    The few lines as Valjean weighs intervening to protect a man on trial (for a crime Valjean himself committed decades earlier):

    “How can I ever face my fellow men?”

    slightly quieter

    “How can I ever face myself again?”

    Wilkinson NNAAIILLSS it.

    So yah, some stuff’ll just vibe with you.

    Cats is dogshit though. Just a parade of random cats. I don’t get it.


  • Not to pile on ya regarding your les mis stance, but I feel like your own point about how music can amplify the emotional weight of otherwise spoken words really really applies to les mis, and simultaneously doesn’t violate ops original complaint of it being a space filler.

    Les mis generally clips at the same pace regardless of a musical or otherwise (Liam neeson and uma Thurman did a non musical movie, fantastic, and makes a great baseline comparison for pacing purposes)

    Tons of it is straight dialogue set to music. Some are straight solos, but they’re all characters wrestling with some heavy shit. Who am I? I dreamed a dream. Stars.

    One for sure can’t switch off their “people are saying critical things which advance the plot” ears. So many musicals, the musical numbers are fanfare and as a result a lot of people have been trained to kinda tune out a Lil’ bit. Fatal mistake for les mis.

    Anyways, you don’t HAVE to like it, you’re allowed to not. Just surprised it made the “do not like” given your earlier explanation.

    Edit: also I never saw the one with Hathaway. I saw a snippet and I could see Jackman and crowe just wouldn’t be able to nail the valjean javert and that’s CRITICAL.



  • Yeah, I agree x-men was tackling a different problem, and it was great. The reason I like The Boys is fundamentally the same reason. Society is too fucked up for us to handle awesome shit. It reads as a warning: you wanna dream of the fantastic? There are real hurdles right now that would impede it from ever being able to work! Behind the viel of superhero action it’s reaching through the screen to name something the viewer needs to name and actively resist in the real world.

    When I was younger, I just maybe wished x-men would expand and broaden that. Then I got older and changed my mind: let the art be the art. Let the commentary be the commentary. Shoehorning a new societal call to action on an established franchise is lazy. Don’t make James Bond a woman: give her her own goddamned franchise, she deserves it. Don’t make x-men about the corrupting nature of unbridled capitalism, make it its own goddamned franchise: it deserves it.

    The Boys I feel hit the mark I wanted to see hit. Still waiting on a Hollywood to deliver an honest-to-god woman killer espionage agent who isn’t just a vehicle to land a “but actually she just needs a man”.



  • That’s a lot, so I’ll be forthright that I’ll probably be giving a relatively terse and gappy response, but that’s more because of my own limitations as a mobile user.

    Fundamentally every test unit, integration, ui, manual is still the same thing:

    Given X do Y expect Z.

    Mocks, fakes, whatever you want to call them, they’re fundamentally the same concept too: “given some idealized version of P”

    All you’ve done is pushed where that line sits. If I update my company writer to prospend all my company names with “corp.”, and my company read API test seeds without it and something at your read service layer strips “.”, if I forget to update the “given” in my read test seed data, that bug stays invisible.

    It’s the same class of issue. We just kicked the can down the road.

    You could do writes and reads in the same test, but even then you’re still kicking the can down the road that your front end is calling the API correctly at all. Maybe that the buttons even render to an end user given their authority.

    One might then conclude, then, that everything should be an automated UI test.

    But would it catch a bug where the bottom collapsed to 1PX? Is that part of the test too? Maybe manual testing is the real way to go.

    A further step back why do we even test anything at all? To provide some ultimate guarantee that everything works perfectly at all times? Is that the gate for a PR? A deployment to prod?

    There are various gates, at different levels of certainty, and there is an economic scaling for the different levels of assurances. AND they scale with the overall complexity of the system.

    And that isn’t a bug, that’s a feature.

    It’s ALL behavioral contracts, up and down the pyramid.

    There is a bang, there is a buck. Get the most bang for your buck. The distribution will vary by complexity and structure of your project.

    That being said, I’ve said it before and I’ll say it again: int and UI tests make it very very easy to write fucking garbage code, the VALUABLE architectural pushbacks on poorly patterned code that unit tests avail is AT LEAST as much value to the overall tech debt accumulation of a project as the results themselves.

    Please don’t read this as me shitting on int tests. It’s me trying to impress that unit tests are worth writing, and justifications for forgoing them usually are fundamentally driven by an underlying code smell. Sometimes the smell is “our architecture is already so fucked that writing a meaningful unit test would involve re architecting large swathes of our system”.

    And in that case I’d say “it is what it is”, recalibrate the testing posture towards int tests, and accept that is the reality.

    But I would NOT conclude on the blanket statement that unit tests SHOULDN’T be at the bottom of the testing period generally. Just that I’d inherited or failed to maintain a strong system design, and take the opportunity to reflect on how things came to that state for the purposes of becoming wiser.

    Addendum:

    Even int tests can reveal insane system architecture, just at a different layer and scale. I worked on a system at a fortune 500 company where the architecture was too far gone to even have meaningful integration tests. They were too far gone to even have automated front end tests. All material testing had to be done by hand. They had engineered their system with that staggering level of incompetetence. At the risk of making a slippery slope argument… It’s a slippery slope.


  • Awesome and well articulated response. Love it.

    There are a few threads to pull here:

    Is an integration test the best way to test the full e2e behavior of an api call? Yep.

    Now, depending on the size (and architecture) of your system, the full test suite of into tests could take like, 10 hours.

    And even then, you’re STILL probably mocking something (direct seeding bombs into the db). Full setup of all life cycles of all your entities using their associated entities (bombs, wires, wire clippers, bomb diffusers, their rank, their bosses, their diffusion history, etc…)

    So they’re expensive, and if you really look you’re probably still cheating some steps anyways.

    Another thread to pull on is what are you mocking in your tests to begin with, and if they’re not resulting in valuable test results then that goes back to one of my original points being that you might have suboptimal patterns in your production code.

    Like, what logic governs bomb diffusion and where does it live? Are you mocking the right thing? If you have to mock the wrong thing… WHY? The ritual of writing those tests give you the first whiff of a potential smell.

    I tell my guys not to test implementation: test behaviour. Test contract adherence. If that’s hard, no problem, message me let’s review it. Maybe a behavior they’re trying to test legitimately should be an int test. More often than not, their design is demanding to mock something that should be decomposed further, and then composed with dependency injections that are where the units that should ACTUALLY be mocked are the things that get mocked and injected, so the unit tests are actually testing the BEHAVIORS we want to pin rather than implementations. Composition and single responsibility principal are what enable unit tests to pull their weight.

    Edit: I’m so passionate on the subject that if you scribbled up a scratch example and pinged me a github link I’d genuinely review it.



  • Curious how bad they’d have to be to land you at that position.

    If they’re hard to write, it’s kinda a red flag about the overall code itself. Forcing people to write them tends to force people to use better patterns just so the associated tests aren’t a bitch.

    And they pin behavior more than strict correctness, in my experience, but that’s a valuable signal. Canaries in the mine.

    You can be much more bold when you’ve got strong coverage.

    So I do admit some of the benefits might feel intangible… But boy howdy you’ll miss them if you move to a shop that never bothered. You’ll see the dumbest fucking patterns and be kinda handcuffed to do anything good.








  • My company was absorbed by a US company, and it’s pretty accurate.

    And, I think they think it must mean that this dedication makes them good at working.

    But they fucking aren’t. I constantly have to remind my coworkers that they’re not paid by the hour. Work hard, work smart, we can finish up and call it a day. Nope. I swear to god these people are actively contriving ways to ensure we work so badly that it necessitates working late. Which we do not get paid for.

    Then they flex about thier work culture, thier long hours. You fools did this to yourselves, voluntarily, for literally no benefit.