Recommended read: Fix the unit test and open a giant hole everywhere http://rachelbythebay.com/w/2021/12/24/mkdir/
Recommended read: "You Don’t Drink Scotch": An Appreciation of ‘Scrubs’ and the Inimitable Dr. Cox https://www.theringer.com/tv/2019/9/6/20852286/scrubs-tv-show-appreciation-hulu-dr-cox-john-c-mcginley-jd-zach-braff
Publishing a NPM Package to npmjs.com from GitLab CI (1 mins read).
How to publish an NPM package to the public NPM registry, using GitLab CI.
Think of my new NPM package that provides a test harness for #Spectral API linting as a holiday gift to y'all https://www.jvt.me/posts/2021/12/23/spectral-test-harness/
Announcing a new package:
@jamietanna/spectral-test-harness (1 mins read).
Announcing a new NPM package for easier testing of Spectral API linting.
Anyone thinking of / already using #Spectral for their API linting? I've written up how I've created a test harness to #TDD new API rules into our standards at https://www.jvt.me/posts/2021/12/22/spectral-jest/
Test Driven Development for Your Spectral Rules, using Jest (6 mins read).
How to write unit tests for Spectral API linting, in a test-driven development fashion.
Recommended read: I was stuck on a side project for 5 years. Here’s how I finished it. https://cassandraxia.com/writing/shed.html
How to automagically set up your Spring controllers when using MockMVC with Spring Cloud Contract.
I will be attending
What are folks' thoughts about using a password manager i.e. KeepassXC to store TOTP data (not the recovery codes) for MFA? My initial thought is that this sounds like a Bad Idea, but not sure if I'm being a bit too paranoid?
Decompiling Java Class Files On the Command-Line (2 mins read).
How to use the Fernflower decompiler on the command-line to decompile compiled Java classes.
How to perform JSON Schema validation for a Spring (Boot) service's response when testing using MockMVC.
This is definitely the way forward 👏🏽
My company just announced that next year we’ll be going to a 4-day work week Happy engineers make happy products 😁
Martha Sharpe (@SharpeMartha)Sat, 18 Dec 2021 14:41 GMT
Week Notes 21#50 (3 mins read).
What happened in the week of 2021-12-13?
Recommended read: API Handyman | Handle API gateway and backend differences in API documentation with OpenAPI Specification https://apihandyman.io/handle-api-gateway-and-backend-differences-in-api-documentation-with-openapi-specification/
A good read about how getting management buy-in is important to unblock being able to ship code - long delays to get work shipped (to customers) leads to so much inefficiency!
Recommended read: 3 Lines of Code Shouldn’t Take All Day https://devtails.xyz/3-lines-of-code-shouldnt-take-all-day
Retrieving All Dependencies Required by a JAR at Runtime (3 mins read).
How to handily retrieve the full runtime classpath required for a JAR file, using Gradle.
I've written about this before in https://www.jvt.me/posts/2019/01/12/self-code-review/ and hugely recommend it - especially when there's a way to mark it as a Draft so it's clear it's not yet ready for review. After you've added comments, it may need you to address things before it can then go out to others in the team
Always always review your own PR before sending it to your team to review. I always think I'm done. Then I pretend to be someone else and review it, and I end up fixing 20 issues.
Mae Capozzi (@MCapoz)Wed, 15 Dec 2021 21:34 GMT
Why you should be using a well-defined (JSON) Schema for the data classes that your API consumers will need to utilise.