Better HN
topnewbestaskshowjobs
Log inSign up

nabbe23

10 karma · joined Apr 23, 2020 (6y ago) · 10 submissions

Submissions

comment 2y ago · link · parent

Yes sir :)

And pragmatically - this always happens at some point. Something something about deadlines and need to get this out yesterday.

comment 2y ago · link · parent

Well-written breaking tests represent something changing in a code base. You can be intentional about breaking a test, but then at least you can be very explicit about what you are changing.

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

This really hits the nail on the head, so many people miss this.

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

There are certainly times when comments are important and appropriate (C code is probably a great example) - but I find myself more often than not struggling to understand if an existing comment is truly up to date (commit history sometimes helps here, but not always.)

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

> When done poorly, compression removes insights. When done well, compression keeps the insights and removes the rest. Compression requires both thinking and understanding, which is one reason writing is so important.

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

A lot of people here voicing displeasure for in office work - so I'll add a counter point:

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

Check out Amazon KMS if you're on AWS - https://aws.amazon.com/kms/, theres really no way to get around using a secrets manager.

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

I do wonder if in all of the cost cutting some of these massive companies have focused on in previous years, we are going to see more and more dangerous bugs like this come out of the webwork as a result of refusal to pay their best engineers above market rate.

Anecdotal, and probably just a result of software being more widespread in general, but it feels like incidents like these are becoming more frequent.