10 karma · joined Apr 23, 2020 (6y ago) · 10 submissions
comment 2y ago · link · parent
Have seen all to many times I've broken a unit test in a code base that I did not intend to break, just to have an aha moment that I would have introduced a bug had that test not been present.
Unit tests are a trade off between development speed and stability (putting aside other factors, such as integration tests, etc). In large corporate settings, that stability could mean millions of dollars saved per bug.
That example you provided is a poor one and not really consistent with your point that unit tests are useless - the point is being made that that specific test of UserResource is useless, which I also agree with. Testing at the Resource level via integration test and Service level via unit test is probably sufficient.
comment 3y ago · link · parent
Didn't realize myself until I was diagnosed with a sarcoma (1% of adult cancer diagnoses), MPNST (a single digit percentage of sarcomas).
Doctors scrambled to figure out what to do - first we should just cut it out, then, well maybe we should do chemo + radiation. A day before getting a port put in receive a phone call that "oops, chemo doesn't work, just cut it out and radiation afterwards."
Luckily I was in a good position to get multiple opinions and read the data myself.
Almost 2 years cancer free now and am so grateful, but looking at the data, it's all seems like a toss up unless you can just cut it out with clean margins.
I really can't help but think modern medicine is really missing the mark with the reactionary approach to disease in general, but of course I have no clue what to do about it.
comment 3y ago · link · parent
Instead of commenting, I try to split out functions or variables that specify the intent. Since it's code - it must be up to date.
An example from this article would be:
assert(ep.send == null); // TODO: support multiple senders
Turning into
assert(notMultipleSenders(ep.send));
comment 3y ago · link · parent
Great writing requires you to position your idea in a way that will resonate with the reader.
This is the meat and potatoes of this post to me.
I’ve been praised a bit for the usefulness and clarity in my documentation over the last few years. When people ask for my advice on improving their writing I really only give three tips.
1. Use proper grammar - proofread your doc at least 2-3 times
2. Write as if you’re writing to someone that knows absolutely nothing about the subject matter
3. Go back and compress the crap out of your document. Simplify everything, remove all fluff and simplify complex sentences. People have short attention spans, documents need to be as easy to process as possible.
comment 3y ago · link · parent
I really miss the in person communication and relationship building of office work. I would love to be back in office 3 or 4 days a week, but have a medical condition (DVT) that basically requires me to be up and moving constantly or keep my leg elevated.
Have a custom set up at home that allows me to recline at my desk for most of the day with a standing desk, keyboard tray and down tilted monitor on an arm.
Could only imagine trying to get this sort of setup in an office (although - if I asked, I'm sure they'd oblige, but would just be an awkward set up since the office is now optional in a "hot desk" sort of fashion).
comment 3y ago · link · parent
For non-technical secrets, most organizations have a password manager (1password has been the go to at my previous two orgs)
comment 3y ago · link · parent
Anecdotal, and probably just a result of software being more widespread in general, but it feels like incidents like these are becoming more frequent.