Architecture Weekly #176 - 22nd April 2024
Welcome to the new week! Let’s try to go faster than usual through the links, not because they’re less interesting, but because I’m on Santorini island trying to get some short sightseeing time. That’s not precisely resting, as it means waking up really early and walking around. Those Greek villages are beautiful, but not extremely accessible for doing that with a 4-year-old daughter. Nevertheless, to the point! Last week, we discussed an overused but applicable pattern: in-memory bus. This time, we’ll continue with the leitmotif and talk about mocking. No, I won’t mock you; I will mock TypeScript code. Node.js in version 18th added its own native Test Runner. Why did they do it? Jest looks like abandonware even after transferring to OpenJs Foundation, issues are not getting closed, and it’s slow. Vitest is a decent new alternative, but... Native Test Runner is also young but nicely integrated directly into Node.js and maintained by the core team. It’s lightweight, thanks to Thiago Valentim Martins’ suggestion and contribution. I started using it in Emmett. So far, so good; it’s really fast (each test file spawns as a Node.js subprocess); sometimes configuring it with TypeScript adds a bit of a headache, but which tool doesn’t? In my latest article, I explained how to write a simple wrapper to make mocking and verification easier. As always, I also used it to show some TypeScript tips and tricks And nay, I don't like mocks; I think that they are overused and too often harmful. Still, it’s undeniably useful to sometimes mock the implementation of the real object or verify whether we actually called it. One way or another. Thanks to that, we can test our code or application without calling external services, doing a lot of IO operations, etc. Or ensure that dependency was called. Btw. I’m in Santorini, because I was in Athens, at Devoxx Greece, where I gave a workshop and talked at the DDD Greece meetup. I extended my stay a bit, but I promised you to get to the point. So, being on Devoxx Greece, I attended the workshop run by Giannis Papadakis about the introduction to load testing with K6. I enjoyed it, as it showed how to start and do even a few advanced stuff on load testing our backends and frontend and how to apply that to our end-to-end development process. You can also do it on your own: I think load testing is an underappreciated aspect of our process. We’re too often asking the passive-aggressive question, “…but will it scale?” without backing it up with real metrics. We should gather and verify the real needs of the business and the real load. Tools like K6 can help technically do that. If you’d like to also look at alternatives, check the article by Tim Deschryver: Check also those tools that can help you meet the defined SLO and use the cloud in a more predictable and cost-effective way: And read the article by Piotr Stapp, who checked how Azure Container Apps compare their usability against the Kubernetes services: I recently found that Adidas also has a decent engineering blog. You can check their 3 article series explaining how they deal with their container platform. The first part is here: Jumping from the DevOps world to new things in Databases. You probably already know that I’m a PostgreSQL fanboy. It’s a rock-solid database capable of many things and a true shapeshifter. Check more in Dylan Paulus article on how you can use it as a graph database: Speaking about graph databases. ISO published a standard for Graph Query Language. It’s a big deal, as for now, we have multiple languages provided by different vendors, and it was hard to transition between them. Now, there’s a chance that we’ll get some unification. Neo4J wrote a story based on their perspective. Read more: Snowflake announced the public preview of Snowflake Copilot. They called it a breakthrough; I call it a nice feature enhancing the accessibility of the tool. Still, it’s worth watching advancement in this space: What’s even more interesting to watch is the slowly changing view of responsibility in our industry. For many years, most of us have been just doing a line of business applications, but as our industry is touching more and more aspects of human life, we’ll have more and more dilemmas. Recently, nine employees were arrested for occupying Google’s offices in protest of Project Nimbus, an Israeli military contract. What’s more, 28 were fired after that. Not that it’s extremely new, as computers, almost since the beginning, have been widely used in the military, but we should be more careful and embrace that what we do may not only be for good but also may actually hurt people. It doesn’t need to be even military; the British Post Office scandal or Boeing crashes are other examples. Choose wisely. Ok, I promised to be quick, but it appeared to be a bit longer! Yet, I see some signs of sunlight and less wind, so it sounds like I better be done! Check also other links! Cheers Oskar p.s. I invite you to join the paid version of Architecture Weekly. It already contains the exclusive Discord channel for subscribers (and my GitHub sponsors), monthly webinars, etc. It is a vibrant space for knowledge sharing. Don’t wait to be a part of it! p.s.2. Ukraine is still under brutal Russian invasion. A lot of Ukrainian people are hurt, without shelter and need help. You can help in various ways, for instance, directly helping refugees, spreading awareness, and putting pressure on your local government or companies. You can also support Ukraine by donating, e.g. to the Ukraine humanitarian organisation, Ambulances for Ukraine or Red Cross. Architecture
DevOps
Databases
AIAzureAWSJava.NET
Node.jsIndustry
SecurityTriviaYou're currently a free subscriber to Architecture Weekly. For the full experience, upgrade your subscription. |
Older messages
Architecture Weekly #175 - 15th April 2024
Monday, April 15, 2024
This time we took a history lesson. We discussed the Adele Goldberg story on how Smalltalk language impacted the way we code today. We also went through the forgotten story of Harp McGovern and her
Architecture Weekly #174 - 8th April 2024
Monday, April 8, 2024
We covered this time an XZ breach story. We provided perspectives from many angles: technical details, social engineering, and human to human. We also discussed brilliant jerks and jerks telling to
Architecture Weekly #173 - 1st April 2024
Monday, April 1, 2024
We started with big-bang info from me and then jumped quickly to debugging our thinking and applying a systemic approach. Then, we discussed what the Valkey thing is and whether it is really such a
Webinar #18 - Laïla Bougriâ: Debug your thinking
Friday, March 29, 2024
Watch now (87 mins) | Did you feel that you need to debug your mind? Did your (or your colleague's) biases impact your decision-making? How to improve it? How do you reason about the reasoning?
Architecture Weekly #172 - 25th March 2024
Monday, March 25, 2024
This time, we did an all-around journey from understanding where money comes from, so budgeting. Then we followed the money and discussed OSS sustainability issues on the example of Redis and their
You Might Also Like
This Week in Rust #588
Saturday, March 1, 2025
Email isn't displaying correctly? Read this e-mail on the Web This Week in Rust issue 588 — 26 FEB 2025 Hello and welcome to another issue of This Week in Rust! Rust is a programming language
WebAIM February 2025 Newsletter
Friday, February 28, 2025
WebAIM February 2025 Newsletter Read this newsletter online at https://webaim.org/newsletter/2025/february Feature Global Digital Accessibility Salary Survey Results The results of the WebAIM and GAAD
JSK Daily for Feb 28, 2025
Friday, February 28, 2025
JSK Daily for Feb 28, 2025 View this email in your browser A community curated daily e-mail of JavaScript news Introducing the New Angular TextArea Component It is a robust and flexible user interface
Daily Coding Problem: Problem #1704 [Medium]
Friday, February 28, 2025
Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Amazon. At a popular bar, each customer has a set of favorite drinks, and will happily
iOS Dev Weekly – Issue 701
Friday, February 28, 2025
What does Dave write about when he has a fever? 🤒 Let's find out!
Feature | The Best Visualizations from February on Voronoi 🏆
Friday, February 28, 2025
See the most popular, most discussed, and most liked visualizations on our new data storytelling app Voronoi from February. View Online | Subscribe About a year ago, we launched Voronoi, our free new
Issue #582: Phaser Launcher, DOOM in TypeScript types, and A Prison for Dreams
Friday, February 28, 2025
View this email in your browser Issue #582 - February 28th 2025 Weekly newsletter about Web Game Development. If you have anything you want to share with our community please let me know by replying to
Stop Android photo surveillance 🔍
Friday, February 28, 2025
Cheaper streaming 📺; 1Password nightmare 💀 -- ZDNET ZDNET Week in Review - US February 28, 2025 machine eye A new Android feature is scanning your photos for 'sensitive content' - how to stop
Why Natural Language Coding Isn’t for Everyone—Yet
Friday, February 28, 2025
Top Tech Content sent at Noon! Boost Your Article on HackerNoon for $159.99! Read this email in your browser How are you, @newsletterest1? 🪐 What's happening in tech today, February 28, 2025? The
iOS Cocoa Treats
Friday, February 28, 2025
View in browser Hello, you're reading Infinum iOS Cocoa Treats, bringing you the latest iOS related news straight to your inbox every week. Animatable Protocol: Taming Unruly SwiftUI Animations In