So, when writing code it's important to test that it works. And especially on boundaries - e.g. where you interact with other systems.
In both #rust and #golang, the #AWS SDK recommends injecting a mock version of the SDK client so you can control how it acts. But it's impossible to construct the error types in both cases, so it's impossible to test the error paths.
Am I missing something here? This seems like a *huge* oversight!
18.3.2023 07:42So, when writing code it's important to test that it works. And especially on boundaries - e.g. where you interact with other systems.In...I'm disappointed.
Messenger has lots of choices of GIFs for "what do you want", including The Notebook, The Lion King, The Grinch and many others
It doesn't seem to have Mr Morden!
#Babylon5 #b5
I did a bad thing.
Uciana so far seems to be a 4X game for Android that's actually not bad. Very much has Master of Orion vibes to it.
I can see this being a new time sink...
Can someone please confirm that it is still February? I didn't accidentally sleep all through Spring?
19.2.2023 17:42Can someone please confirm that it is still February? I didn't accidentally sleep all through Spring?I'm not saying climate change is real, but I've just seen a butterfly. In mid February. When you normally don't see them until April. So maybe 5-6 weeks early.
Oh, and we're still expecting freezing temperatures later this week.
Ok, maybe I am saying that it's real..! ☹️
19.2.2023 13:43I'm not saying climate change is real, but I've just seen a butterfly. In mid February. When you normally don't see them until...I get that tutorials want to keep things accessible, but when the video is on how to structure things and that's the result it really just makes me despair.
Literally no separation of concerns, no domain boundaries, no structure at all really.
And this is frighteningly common ☹️
Just put on an @golang architecture video, and the end result was one package for all domain models, one for the HTTP server and all handlers, and a third for all database access.
Even worse, all API handlers were on the Server type, and all database calls were on the DB type.
There are so many bad tutorials out there, it's quite depressing.
Things like splitting code down technical lines and not domain lines, using bare primitives everywhere, same model types used at API, domain and database layers, no thought to testing, and I can go on... ☹️
So, after we as an industry spend ages telling everyone how important 2FA is, Twitter has decided that SMS authentication - the easiest form for non-technical people to use - is only for paying customers.
Which means millions of people will just turn it off.
Way to go Twitter ☹️
Certainly, this doesn't seem to be possible with @auth0, @Firebase or #cognito. There may be others out there that can do this - in which case, someone please point them out to me!
17.2.2023 18:06Certainly, this doesn't seem to be possible with @auth0, @Firebase or #cognito. There may be others out there that can do this - in...There are certainly ways to fake it - e.g. storing a separate property which is the "URL Slug" - but not as the local user's username. And trying to use usernames alongside that fails when someone new signs up with a username that collides with someone else's existing URL Slug...
17.2.2023 18:06There are certainly ways to fake it - e.g. storing a separate property which is the "URL Slug" - but not as the local user's...As best I can tell, there are no authentication services that support unique usernames spanning local and social users! Certainly none with a free tier.
If you want to build an app with GitHub-style URLs and support social logins, you need to build the authentication yourself...
RT @amysw_sec
Morning wisdom
On Lucys first visit to Narnia, no time passes in our world, despite her spending hours there.
However, on her second visit, Edmund comes too, but a few minutes later. So that implies that time has passed for him whilst she was there or else he'd have run into her on her way out.
The more I watch #TheApprentice, the more I wish he'd just sack all of them and start over.
Not the 3 at the end. Not the losing team. All of them.
I wonder if the official API keys for the official Twitter apps have reached their quota and need billing details setting up...
8.2.2023 23:09I wonder if the official API keys for the official Twitter apps have reached their quota and need billing details setting up...In today's edition of "bizarre earworm of the day", I give you...
The Wombles theme song!
8.2.2023 19:52In today's edition of "bizarre earworm of the day", I give you...The Wombles theme song!Wake me up in the new year...
5.2.2023 16:26Wake me up in the new year...Is it animal cruelty having my beef stew cooking in the slow cooker overnight in the same room the dog is sleeping in?
4.2.2023 23:55Is it animal cruelty having my beef stew cooking in the slow cooker overnight in the same room the dog is sleeping in?get it to production - meaning development, QA, releases, deployment, etc.
And a lot of those situations likely don't have super efficient processes.
So this has the potential to cost the world billions or even more.
So, I'm curious. Who is liable for that? Twitter? Elon? Nobody?
⬆️
⬇️