32 karma · joined Feb 11, 2019 (7y ago) · 27 submissions
comment 5y ago · link · parent
Just to add another perspective, Scott Santens had an interesting reply[0] to a tweet AOC had about legalizing sex work
> Sex work is work, but as long as poverty exists it's impossible to tell who is doing it voluntarily and who is doing it because they feel they have no other choice in order to make a living. It's another reason unconditional basic income is so important.
[0]:https://twitter.com/scottsantens/status/1339053954144014338?...
comment 6y ago · link · parent
A VAT has the advantage of being simple to administer, and it's capturing the gains made via automation at every step of the chain.
Sounds good if true, and I believe most other countries have figured this out and implemented one. We don't talk about it here though.
comment 6y ago · link · parent
When you boot shadow up it'll create an nrepl server for you, you can just connect to it and invoke `(shadow/nrepl-select :app)` and it'll latch on to the running application `localhost:3000`. And it works really well, very awesome.
comment 6y ago · link · parent
But just messing around in my editor connected to a repl lets me really breakdown a task while I'm figuring it out.
comment 6y ago · link · parent
comment 6y ago · link · parent
And I got this cool lens-cap for it https://www.amazon.com/gp/product/B00I1CP2MU/ref=ppx_yo_dt_b... that has an automatic opening when you turn the camera on, great for traveling.
Before that I had the E-P2 https://www.amazon.com/Olympus-Interchangeable-Digital-Elect...
I'm still using the telephoto lens that I got from the E-P2, it wasn't very expensive, I think it's this one https://www.amazon.com/Olympus-40-150mm-F4-0-5-6-Panasonic-C...
comment 6y ago · link · parent
Edit - replaced 'DSLR' with digital
comment 6y ago · link · parent
It applies to React/Redux folks as well.
> There are benefits to having data in the one place:
> Here's the big one: because there is a single source of truth, we write no code to synchronise state between many different stateful components. I cannot stress enough how significant this is. You end up writing less code and an entire class of bugs is eliminated. (This mindset is very different to OO which involves distributing state across objects, and then ensuring that state is synchronised, all the while trying to hide it, which is, when you think about it, quite crazy ... and I did it for years).
> Because all app state is coalesced into one atom, it can be updated with a single reset!, which acts like a transactional commit. There is an instant in which the app goes from one state to the next, never a series of incremental steps which can leave the app in a temporarily inconsistent, intermediate state. Again, this simplicity causes a certain class of bugs or design problems to evaporate.
comment 6y ago · link · parent
I find myself annoyed by how trendy it is to crap on all of the progress that has been made on the client-side stack... basically it seems like a lot of the lessons we have learned over the years are being forgotten. "Embrace the C in CSS!" Like, no! That C is what lead to the most painful CSS refactor and cost 6 months of my life. "Seperation of concerns!" It sounds good to say HTML and CSS should be separate, but we found how powerful it is to co-locate a component's styling with the component. People underestimate how much styling is just inline styles. "Wait, what do I name this class that is just applying margin-top?" If you have a global bin of css utilities and theme variables, everything else is just inline on the component.
comment 6y ago · link · parent
> Instead of using cascading parameters and other ridiculously complex ways of passing state around
So much this! There are too many folks stuck in the 'container' component pattern when really you should never pass a prop that can be queried from state. Working like this results in a sustainable application that's flexible, like you _state_ xD
I'm going to give this a really close look, thank you.
comment 6y ago · link · parent
I'm a lot more hesitant about SSR now. Users don't mind spinning wheels as long as they can see something happening.
comment 6y ago · link · parent
The magic sauce for me is a global state data structure where all my app state goes into. And it should just be data. I don't need to wrap it in 'semantic' constructs.
And then I need an easy way to query that, something more expressive than `get-ins` like `state.path1.path2.value`.
However the state is accessed the component should just update. I don't want to provide or connect.
comment 7y ago · link · parent