Technology Leader, Team Builder, Full-stack Dev. I build apps with @reactjs, @reactnative and @nodejs backend APIs. Follow history, aviation, and public policy.
This is a great post by @kyleshevlin. It is a good reminder that a little extra thought in your component code can make your tests SOOOO much easier to write.
Don't be that teammate who blindly refactors code and only makes things worse.
Let's look at some good vs bad refactoring patterns with real examples 🧵
It took me a while to fully realize the value of something my company achieved years ago, and continues to savor today. It’s one of our greatest quiet advantages, full stop.
It’s not something you hear much about in business circles. In fact, I can’t remember the last time I heard anyone spend much time on the topic, or even bring it up in conversation, on a conference stage, or behind a podcast mic.
There is, however, lots of discussion about achievement in business. A company can achieve product market fit, operational efficiency, influence, revenue goals, or, ultimately — and hopefully — profitability.
But I’m not taking about those things. Those are the obvious things, the common talking points. And to those you can add the vanity metrics of achievement — social media followers, traffic, views, impressions, open rates, press mentions, gross this or gross that.
All those are what they are, but they aren’t where it’s at.
What I’m talking about is optionality. Achieving optionality is where it’s at.
Optionality is a hearty mix of profit margin, small size, independence, attitude, and freedom. You’ve got to have all of it to have optionality.
If a board is calling the shots, you don’t have much optionality. If your margins are thin, or non-existent, you don’t have much optionality. If the public owns a piece, you don’t have much optionality. If you’re too big to change direction quickly, you don’t have much optionality. And if you’re afraid to speak your mind and stake your point of view, you don’t have much optionality.
Optionality lets you do things no one would give you permission to do. It lets you write excellent software and give it away for free if you choose. It lets you do things that don’t make sense in the current climate, but will long-term. It lets you be early while eventually catches up.
Optionality is ecstasy. It’s making it up as you go, without making excuses. It’s openly changing your mind without having to save face. Optionality is equanimity, the corporate equivalent of enlightenment.
So, entrepreneurs, ditch the bullshit. Abandon growth-at-all-costs. Reject conventional metrics. Scorn hollow acceptance. Instead, hunt for optionality. It's freedom. It's power. It's everything you crave, wrapped in a single, potent package. Chase it relentlessly. And when you get it, don’t let go.
@tannerlinsley@tan_stack Super big congrats 🎉 It is great to see hard work and dedication to quality succeeding in OSS. As some who has benefited from your work … Thank You! 🙏
@housecor Option 2 would be my recommendation. It is descriptive enough to know what to test and tests one thing. Option 3 should be three separate tests.
I tried to send this via the /contact_us feedback form but it is also broken ... Type error ... (0 , e.wretch) is not a function
at t.submitFeedbackRequest
Hey @WayfairCanada I don't know if anybody is monitoring this, but I am out of options.
Hi I just completed an order and encountered several issues that you should be aware of / fix asap ...
3. The form field focus is broken on Safari. Can't navigate by keyboard. Must click twice with mouse before editing content. Note: works fine in Chrome, but not Safari.
1. I need to correct the shipping address and it fails when adding the new address ... Uncaught (in promise) Error: A listener indicated an asynchronous response by returning true, but the message channel closed before a response was received
Introducing AWS SAM Pipelines: Generate CI/CD pipelines for #serverless applications with AWS’ best practices built-in. Choose from starter templates for @CloudBees@JenkinsCI@GitLab@GitHub & #AWSCodePipeline. With more coming soon. https://t.co/zGfUyOhBSN
In the on-going story of Apple’s not quite compliant PWA support, some things have changed with iOS 14.5. This affects Safari 14.1 AND WKWebView. Have a read …
https://t.co/wN872q9qlP
📱 TIL about the Visual Viewport API
⌨️ When opening a soft keyboard `window.innerHeight` will stay the same but `visualViewport.height` won't!
📡 Even better, you can listen for `resize` and `scroll` events on the `visualViewport` object.
🎉 https://t.co/vAHAT3ZkgW