Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
weeksie
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
32 ms
·
241.
▲
by
weeksie
7y ago
Wild. I remember every single one of those milestones. Back in 04 I wrote some forum software with XmlHttpRequest back before gmail was released. The everybody thought I was a fucking wizard. Then gmail came out and it was like oh you did t
242.
▲
by
weeksie
7y ago
I don't understand. Are people traveling with their dogs? How are short term rentals responsible for people not cleaning up dogshit? Are they staying in spare rooms and walking the owner's dog?
243.
▲
by
weeksie
7y ago
I wouldn't use separate reducers for the ajax results and the user's data. Just pass the necessary data from your ajax call along in your action payload and perform your data accounting in the user reducer.
244.
▲
by
weeksie
7y ago
Fair as an escape hatch, and I don’t know your situation, but in a lot of cases I think that’s a smell indicating that you need fewer reducers. I totally understand that there are legitimate reasons for things to end up that way, but it’s c
245.
▲
by
weeksie
7y ago
I feel like that logic is better handled at the reducer level. Trying to think of an instance where it would be absolutely necessary to track state like that in the action. I'm probably missing something, what would be an example?
246.
▲
by
weeksie
7y ago
Exactly why I'm frustrated with you. You're doing more harm than good and you're able to do it because you are an open source maintainer. Redux is (state, action) => state Sure, wiring it up is clunky without a few
247.
▲
by
weeksie
7y ago
Except you've added a library. And the function is no less testable than the thunk. I fail to see why adding access to the entire application state is an advantage. This is just cargo culting. In fact that you held up that counter exam
248.
▲
by
weeksie
7y ago
You misread. I wasn't railing against action creators, I was saying your method of generating them was bad. So yes. We disagree strongly but it's because you are outright wrong in your claims. Putting function calls in mapDispatch
249.
▲
by
weeksie
7y ago
Handle async stuff in mapDispatchToProps. dispatch => ({ async onRequestFnord(arg) { dispatch(actions.fnordRequested()); const result = await service.fnord(arg); dispatch(actions.fnordReceived(result); }
250.
▲
by
weeksie
7y ago
Async middleware is an anti-pattern. Take care of async stuff in mapDispatchToProps. Actions are ALWAYS action(payload) => { type: action, payload } There's no reason to call a function everywhere you need a new action. Just define
251.
▲
by
weeksie
7y ago
This is disappointing. Partially for bikeshed reasons, but also for practical ones. Redux thunk is an anti pattern as far as I'm concerned but you're including it by default? Why? Just because it's the first (bad) decision pe
252.
▲
by
weeksie
7y ago
Being quick on the keyboard is about reducing friction. The faster I can physically manipulate an idea in space and the more automatic it is, the less cognitive overhead I have to waste on the process. If you work with a keyboard you will b
253.
▲
by
weeksie
7y ago
Yes and no. I'm very glad that I followed the Pragmatic Programmer approach early on in my career. It's partly why I learned Ruby back in 2003, and was exposed to Lua and Haskell and others around the same time (and built pretty n
254.
▲
by
weeksie
7y ago
We're left with the legacy of pop-SJW as a result of the blossoming of "rude media" in the 00s and early teens. Jezebel's entire schtick was to say the most inflammatory stuff they could think of and dress it up in pop-c
255.
▲
by
weeksie
7y ago
The thing that always bugs me about this kind of thinkpiece is the short-view assumption that there's some telos to whatever effect they're describing. Tobacco use has waxed and waned in popularity many times over the centuries si
256.
▲
by
weeksie
7y ago
Anybody who willingly rides their bike in -48C is (by definition) an outlier. I’m sure you’re quite tough, but yours is not a universal experience.
257.
▲
by
weeksie
7y ago
I grew up in Alaska and no. Absolutely not. -40C is so cold that your face hurts when you walk. Your pants get insanely cold in the places where they are away from your skin and then chill you when they touch again. It's miserable. It
258.
▲
by
weeksie
7y ago
There was a fantastic indie movie in the 90s called Permanent Midnight. It starred Ben Stiller as Jerry Stahl who wrote for Alf and had a pretty heavy drug habit. Funny how Stahl only gets a passing mention in the article.
259.
▲
by
weeksie
7y ago
Free markets don't work with the information asymmetries involved in healthcare.
260.
▲
by
weeksie
7y ago
Insurance companies need to be expropriated. The entire thing needs a restructure from the ground up, there are too many critical path issues that will keep things expensive if we try to have two systems at once (medicare for all + private)
261.
▲
by
weeksie
7y ago
My dad, a commercial fisherman in Alaska, was on the radio to the marine dispatcher trying to get a rescue because his boat was sinking and there was water lapping his ankles. The dispatcher scolded him for cursing and from what he related
262.
▲
Show HN: I wrote a script to parse (and post) my script
(scottyweeks.com)
1 points
by
weeksie
7y ago
|
0 comments
263.
▲
by
weeksie
7y ago
Precisely why you go for the largest polluters, like agriculture and ground transport. Air travel is the opposite of low hanging fruit because it's difficult to make jets more fuel efficient—the air travel industry is already incentivi
264.
▲
by
weeksie
7y ago
Yeah, this reads very much as the same kind of moral panic we recently endured over plastic straws. Air travel does emit a ton of carbon per person, but on the whole we're better off putting effort into making renewables cheaper and gr
265.
▲
Writing fiction for Twitter, using a script to parse my script
(scottyweeks.com)
6 points
by
weeksie
7y ago
|
0 comments
266.
▲
by
weeksie
7y ago
I'm 100% with you on that, and I have no idea how you'd go about assembling that kind of forensic data.
267.
▲
by
weeksie
7y ago
Nice to see the PR campaign for Secret of Our Success getting some traction. It's a fantastic book and Joe Henrich's stuff is super interesting, his thesis is that humans are pretty dumb on our own and culture is like an enormous
268.
▲
by
weeksie
7y ago
I feel like I'm reading half of an argument here. Is this a response to something? Who in the world works for free when they're doing contract work?
269.
▲
by
weeksie
7y ago
My bad, I was quoting from memory, you are correct about the numbers. That said, they're pretty close. As for the weather I stand by my statement. While year around nice weather does make an encampment more hospitable, the reason why i
270.
▲
by
weeksie
7y ago
It's terrible everywhere but seems especially bad in California. We're hardly immune. Our boro president was celebrating a lawsuit blocking a new 5000(!) unit development as if it was a victory for housing justice. That said, the
More ›