Posts by jitterted@sfba.social
(DIR) Post #AU6ubG8vYsdawrvzkW by jitterted@sfba.social
2023-03-28T20:37:23Z
1 likes, 1 repeats
I stopped trying to define Unit Tests (I would define it as Feathers defined it) and now exclusively use the terms:I/O-Based tests: has I/O in the test (accesses clock, database, etc.)I/O-Free tests: no I/O access in the test (no current date/time, no random numbers, no file access, no network access, etc.)I'll slip up and use "Unit" when I really mean I/O-Free (and "Integration" when I mean "I/O-Based"), but for the most part I've switched.There's so much baggage and debate around "what's a unit?", when that isn't always the most important question. I've found it much easier to explain that when doing #TDD, we want to use I/O-Free tests as they'll be sufficiently fast to get feedback in less than a couple of seconds.
(DIR) Post #AWjPTMf2bpbss3g3aS by jitterted@sfba.social
2023-06-15T23:15:08Z
0 likes, 0 repeats
@simon I used to use Namecheap, but they started not being cheap, so moved everything to Dynadot.com 5 years ago. Been super happy with them, have good prices, and seem to fit everything you mentioned: have over a dozen payment options, support all the TLDs I've looked at, manage over 4.5MM domains and explicitly say "no plans to go public or become acquired by a faceless corporation."
(DIR) Post #AXpXp2h7bD6CEu6sAi by jitterted@sfba.social
2023-07-18T20:41:48Z
1 likes, 0 repeats
@b0rk It (hopefully) happens less often with coworker questions, but in my community, I have to remind people (especially new folks) how to ask questions, because I see a lot of questions that simply can't be answered because there's:1. Not enough background/context2. Nothing about what was expected (what is actually wrong? Is there a stack trace?)3. Not enough code (please, no screenshots of code, and if you can, just point us to the source code repository)4. No information about what was attempted. (Optional, but helpful, so we don't suggest things you already tried)I try hard to be empathetic, but have sometimes had to say "without [more info], I'm afraid there's not much I can suggest". And rarely, "please stop asking questions without this info."
(DIR) Post #AXpXp41ie7AYN4kpuq by jitterted@sfba.social
2023-07-18T20:45:31Z
0 likes, 0 repeats
@b0rk And so this is why I use https://jvns.ca/blog/good-questions/ as one of the links to help people understand how/why to ask good questions.But yeah, can see if someone takes it as: "don't even try asking a question until you've read these three things, and if you get it even slightly wrong, out you go" as being a jerk.
(DIR) Post #AaJOR1qYPOR6M6BA6S by jitterted@sfba.social
2023-10-01T02:11:36Z
0 likes, 0 repeats
Folks, _idempotent_ is not the same thing as _safe_. Safe is a much stronger guarantee (does not change state on the server) than Idempotent (changes state once regardless of how many times it gets called).HTTP GET (and HEAD, OPTIONS) *must* be _safe_ (which implies also being _idempotent_).HTTP DELETE is _idempotent_, but not _safe_.