jeremydw
Joined 14 years ago
Joined 14 years ago
- poetry
- "Just pin the dependencies and use Docker"
- pip freeze
- Vendoring in dependency code
- pipreqs
- virtualenv
This is simply a mess and it's handled much better in other languages. I manage a small agency team and there are some weeks where I feel like we need a full-time devops person to just help resolve environment issues with Python projects around the team.
A friend sent me this poem to help cope with this news, entitled “Encounter”…
—
We were riding through frozen fields in a wagon at dawn. A red wing rose in the darkness.
And suddenly a hare ran across the road. One of us pointed to it with his hand.
That was long ago. Today neither of them is alive, Not the hare, nor the man who made the gesture.
O my love, where are they, where are they going The flash of a hand, streak of movement, rustle of pebbles. I ask not out of sorrow, but in wonder.
Wilno, 1936Accessibility is an issue though. If i could three finger scroll context horizontally that would be nice.
For example it can convert `<div style="background-color: white">` to `<div class="bg-white">`. Perfect! (Yes, "bg-white" is the Tailwind way to make the background color white.)
I'm not a tailwind user but I think the following:
``` <div class="flex">Foo</div> <div class="flex">Bar</div> <div class="flex">Baz</div> ```
gets generated to:
```html <div class="flex">Foo</div> <div class="flex">Bar</div> <div class="flex">Baz</div> ```
```css .flex { display: flex; } ```
If we replaced this with `style` attribute usage, you'd get:
``` <div style="display: flex">Foo</div> <div style="display: flex">Bar</div> <div style="display: flex">Baz</div> ```
Assuming the content is gzipped when transferred (a good assumption), the non-Tailwind version's payload is smaller because there are no separate CSS definitions.
Your statement is true in the general sense (a page can easily load unused CSS with other CSS/styling approaches) but I don't think it's correct to say that using Tailwind results in smaller payloads vs. using style attributes.
With AMP, the little badge (the verification), serves as a constraint for developers, but mostly for business stakeholders. The conversation of "I can't do that, because it's simply not compatible with AMP" is way easier than "I can't do that, because it will make the page slow".
It's just like nukes. We have a stockpile of them that are maintained... nukes are very hard to produce... etc. etc.
Planet Money did a great episode recently on how the US government is currently paying for a year-round supply of chicken eggs to produce vaccine for a pandemic flu. (https://www.npr.org/transcripts/812943907).
I understand this situation is different from eggs, as an egg not used for a vaccine can be converted to feed, but in the end it's all about money. It's like an insurance policy. I pay for auto insurance but don't use it until I really need it.
On the flip side, why can't we enlist money and resources from the private sector to quickly fix some of these supply issues? For example:
- Convert car factories to produce masks and ventilators.
- Convert construction companies to build makeshift hospitals. (Or use hotels.)
- Use tech companies to improve national information access with regards to CV19 testing and track and help patients using their software on their phones to help with contact tracing.
I realize that it's not as simple as pressing a button and instantly converting a factory that makes Teslas into one that makes masks. I also realize there are potential privacy concerns with nationalized information tracking.
But, we're about to enter an unprecedented public health crisis. We have resources that can lessen the impact if we just align and get behind this direction.
I can't help but think we could do more and not just wait for the shortage to happen, and for the curve to spike.
We stockpile enough nukes to basically destroy the whole Earth (exaggeration but you get the idea), but we can't stockpile some ventilators and face masks in case of a pandemic? You can't fight a pandemic with diplomacy. At least you can fight a foreign enemy with that.