Readit News logoReadit News
michalc commented on It's not a hack to satisfy known requirements   charemza.name/blog/posts/... · Posted by u/michalc
mattv8 · 3 months ago
This is a great article, and I largely agree but I feel like we're giving ourselves an excuse to be lazy. Because I've absolutely seen this principle swing in the opposite direction, where someone writes slop code, without ever having had a real conversation with the end user(s) and consequently the software goes out the door without having considered top 5 most common edge cases that would have been so obvious if a little more effort had been put in.
michalc · 3 months ago
Have to admit the lazy thing threw me, but I can see how the “doing less” I’m arguing for could be taken that way. The “less” is not about avoiding handling edge cases that are possible now, but about avoiding putting in layers of code to handle cases possible only in some future versions of the code (with some limited exceptions that I mention at the bottom of the post)

In fact, it’s crossing my mind that people might not want to be accused of being lazy, and that is a motivation to over-engineer solutions.

michalc commented on It's not a hack to satisfy known requirements   charemza.name/blog/posts/... · Posted by u/michalc
mouse_ · 3 months ago
I think I needed this right now, thank you.
michalc · 3 months ago
You’re very welcome!

Have to admit I am curious: what’s the context / how has it helped you more specifically?

michalc commented on Page Object (2013)   martinfowler.com/bliki/Pa... · Posted by u/adityaathalye
emmanueloga_ · 4 months ago
Page Object Models trade off clarity for encapsulation. Concrete example [1]. They can make tests look "cleaner" but often obscure what's actually happening. For example:

    await page.getStarted(); // what does this actually do?
vs

    await page.locator('a', { hasText: 'Get started' }).first().click();
    await expect(page.locator('h1', { hasText: 'Installation' })).toBeVisible();
The second version is explicit and self-documenting. Tests don't always benefit from aggressive DRY, but I've seen teams adopt POMs to coordinate between SDETs and SWEs.

--

1: https://playwright.dev/docs/pom

michalc · 4 months ago
Very much agree.

It was a few years ago, and very AngularJS focused, but I posted something along these lines: https://charemza.name/blog/posts/angularjs/e2e/consider-not-...

In summary: having thing look cleaner at a glance is not helping if you’re (almost) always going to need to do more than glancing

michalc commented on Do the simplest thing that could possibly work   seangoedecke.com/the-simp... · Posted by u/dondraper36
michalc · 4 months ago
> real mastery often involves learning when to do less, not more

Really love and agree with this, and (shameless plug?) I think really aligns with a way of working I (and some colleagues) have been working on: https://delivervaluedaily.dev/

u/michalc

KarmaCake day786April 7, 2016
About
https://charemza.name/
View Original