​
\nHave a good one,
\nWojciech
\n​
\nPS. I have lovingly crafted this email using only the best artisanal keystrokes. If you find come across any typos, feel free to fix them yourself and enjoy this new, unique, kintsugi version.
\n\n","recentPosts":[{"id":5911297,"title":"There's no fair salary","slug":"there-s-no-fair-salary","status":"published","readingTime":1,"campaignCompletedAt":"2024-06-26T07:30:03.000Z","publishedAt":"2024-06-26T07:30:03.000Z","orderByDate":"2024-06-26T07:30:03.000Z","timeAgo":"10 months","thumbnailUrl":null,"thumbnailAlt":null,"path":"posts/there-s-no-fair-salary","url":"https://wojciech-daily.kit.com/posts/there-s-no-fair-salary","isPaid":null,"introContent":"We'd like to believe that we live in a rational, structured world where we get a fair pay for good work. While on the surface it seems reasonable, in the bigger picture it's not the case at all. There's no such thing as \"fair salary\", because there's no objective \"value\" of our work. Even if we do the same work - write code for an app - our salary will mostly depend on the seemingly irrelevant logistics. Are we hired in-house, or a contractor? In-house in the country where the company has the...","campaignId":15658046,"publicationId":12182841,"metaDescription":null},{"id":5911296,"title":"Startup experience","slug":"startup-experience","status":"published","readingTime":1,"campaignCompletedAt":"2024-06-25T07:30:04.000Z","publishedAt":"2024-06-25T07:30:04.000Z","orderByDate":"2024-06-25T07:30:04.000Z","timeAgo":"10 months","thumbnailUrl":null,"thumbnailAlt":null,"path":"posts/startup-experience","url":"https://wojciech-daily.kit.com/posts/startup-experience","isPaid":null,"introContent":"While there’s a lot of things I don’t like about “startup culture” - long hours, pressure, hustle, brogrammer parties, there’s one thing that’s really valuable if you choose to participate - the experience. There’s no other place where you can learn so fast so many aspects that are crucial to becoming a solid developer: shaping the product making trade-offs and feeling their consequences owning you whole stack planning and prioritising your work the difference between “good” and “good enough”...","campaignId":15658038,"publicationId":12182833,"metaDescription":null},{"id":5911289,"title":"Why stay on a sinking ship?","slug":"why-stay-on-a-sinking-ship","status":"published","readingTime":1,"campaignCompletedAt":"2024-06-24T07:30:05.000Z","publishedAt":"2024-06-24T07:30:05.000Z","orderByDate":"2024-06-24T07:30:05.000Z","timeAgo":"10 months","thumbnailUrl":null,"thumbnailAlt":null,"path":"posts/why-stay-on-a-sinking-ship","url":"https://wojciech-daily.kit.com/posts/why-stay-on-a-sinking-ship","isPaid":null,"introContent":"You might want to ask yourself - who’d want to stay on a sinking ship like Twitter? Well, obviously a whole bunch of people and they had good reasons for it: Mission. They could believe in Elon’s new vision for the platform. Startup experience in a “household name” company. Usually you need to pick whether you get the “thrown into deep water” startup experience, or you collect years of working for a well-known company on your CV. Currently, with all the chaos that’s happening, in Twitter you...","campaignId":15658035,"publicationId":12182830,"metaDescription":null}],"newsletter":{"formId":6068155,"productId":null,"productUrl":null,"featuredPostId":null,"subscribersOnly":false},"isPaidSubscriber":false,"isSubscriber":false,"originUrl":"https://wojciech-daily.kit.com/posts/mocking-in-e2e-is-fine","creatorProfileName":"Hello, I'm Wojciech 👋","creatorProfileId":1456220}Subscribe to read my programming experiences, ideas, mistakes and tips I wish I'd known myself earlier. Learn how to enable high-performing teams, make an impact, grow as a software engineer and level up your career.
The term end-to-end tests is misleading, because the same way the horizon changes when you change you point of view, the “ends” also change when you have a different perspective. I once wrote: Let’s take a look at an imaginary ecommerce app. For a developer from a checkout team E2E test would probably mean: user picks some items, proceeds to checkout, fills in all their details, pays, order is created. But for an actual user, the “end-to-end” means: they were able to find a product that they were looking for (even though they misspelled the name of the brand), they could clearly see the differences between various models, they could order abroad, download an invoice with correct VAT tax amount and finally, they got the item in the mail. It’s not important if your tests are written “the right way”. It’s important if they’re useful and give you confidence. So, mocking things (especially network and other systems) in your E2E is completely fine. Have a good one, Wojciech ​ PS. I have lovingly crafted this email using only the best artisanal keystrokes. If you find come across any typos, feel free to fix them yourself and enjoy this new, unique, kintsugi version. |
Subscribe to read my programming experiences, ideas, mistakes and tips I wish I'd known myself earlier. Learn how to enable high-performing teams, make an impact, grow as a software engineer and level up your career.