6,055 karma · joined Nov 7, 2014 (12y ago) · 1,713 submissions
comment 8y ago · link · parent
comment 8y ago · link · parent
comment 8y ago · link · parent
You can still do this with React. Some of the most-common general-purpose libraries for working with React aren't that big and could be written from scratch pretty easily. If you recognize when something's entire purpose is apparently to replicate OO features while staying "purely" functional by jumping through a series of awkward hoops, you can recall that the language you're writing in does, in fact, support OOP, and avoid the library altogether by using built-in language features (I keep seeing this in the React ecosystem and it drives me nuts).
Probably use Redux because everyone and everything expects that you are. It's easy to understand if you ignore their bad terminology and go in knowing it's just an event/messaging system, more or less. Action = event. "Action creator" = anything that dispatches an event. Reducer = your event handlers. Exactly what you'd expect from an event system with centralized event handling. Utterly mundane and non-magical. Figure out how to leverage "combineReducers" to keep your file structure sane and just go. The closest thing it has to magic going on is that when an event comes through it checks to see whether any of the refs in your "state tree" changed as a result of that event, and triggers re-renders on relevant connected view(s) (React views, in your case). That's it. Note that with a very little creativity one can decouple one's Redux code and most/all of one's business logic into its own library to share it between React and React Native.
If you use React Native, you're in for a treat if you're used to fully native cross-platform dev. It really does a great job of rounding off the many, many rough corners on Android that make it such a pain-in-the-ass to work with. Warning: the ecosystem's kinda nutty and does a bad job of keeping in sync, so avoid dependencies that directly target React Native as much as possible if you want to ever be able to, say, upgrade your React Native version without breaking everything. Pure JS libs that have no truck with React Native, good. Libs that add narrowly-scoped extra native integration for RN, usually good. Mostly JS libs that add on to React Native itself, typically just a disaster waiting to happen, no matter how nice they seem at first.
Oh, and use Typescript. For the love of god use Typescript. Just start the project with it, and never look back.
comment 8y ago · link · parent
comment 8y ago · link · parent
- Richard Yates, Revolutionary Road, 1961
I don't wanna go dig through my copy to find it right now, but there's also a pretty long bit where he describes how most of the "work" that most of the "workers" at his (the character, Frank Wheeler's) firm do is making brief comments on various proposals or memos or whatever then sending them off to other people for their comments, trying to avoid being caught with the hot potato and actually having to do whatever's being proposed. They're all very good at it.
Again, written in 1961.
comment 8y ago · link · parent
Similarly, and especially given our two-party system in the US, following every twist and turn in a political race is pure entertainment, of exactly no more value to you or anyone else than watching soap operas. You can make an as-informed-as-it-needs-to-be decision by spending that time on building up foundational knowledge instead, then catching up on the happenings of the race and the candidates' positions an hour before you go vote.
comment 8y ago · link · parent
Electoral punishment for gaming the system to extreme levels, and even for misconduct that has no benefit for a party or candidates image or efficacy (blatant corruption, Roy Moore-type behavior [edit, 1]) has proven to be non-existent. The more various candidates and officials push, the farther it's clear they can go without punishment. Things are getting worse because they keep trying to push farther, and succeeding.
This is largely because of wedge issues—especially abortion, but also guns to a lesser extent. The problem won't go away unless we modify our election system to permit more than two viable parties at a time, so that, say, an anti-abortion party can go way off the rails and its saner voters can defect to another anti-abortion party, without losing anti-abortion voting power in legislative bodies (as, say, a protest vote would), and so on for every other issue. Proportional representation or something along those lines would help a lot. Most any effective change like this would also eliminate or greatly reduce the power of gerrymandering.
[1] Nearly non-existent—he did lose, after all, but narrowly.
comment 8y ago · link · parent
My wife sometimes watches a video then leaves the "next video" running in the background while she does other stuff. Often it's people talking about movies in clickbait-titled videos. Their primary skill seems to be talking for several minutes without actually saying anything, and avoiding the video title's topic for as long as possible. It's kind of impressive, but does nothing to enrich anyone's life and drowns out better content with worse SEO.
comment 8y ago · link · parent
comment 8y ago · link · parent
comment 8y ago · link · parent
Perhaps significantly, management positions aren't represented by the state workers' union, which is the only thing (barely) insulating the lower level workers from that insanity.
comment 8y ago · link · parent
comment 8y ago · link · parent
Even Netflix gives you progress—progress through a season, or through a series. It's guaranteed to come up in conversation when a new season comes out—oh, how far are you, how far did you get last night, when do you expect to finish it. It's not entirely new, but with once-a-week airings you couldn't binge anything, and even with home video releases of series there was a lot more friction, so you couldn't just start watching any ol' thing. You had to really want it.
comment 8y ago · link · parent
comment 8y ago · link · parent
...what? What kind of error-rate? How long could you sustain that? How'd you manage that speed having to glance between source and keyboard?
I'm pretty sure I was the fastest in my high school typing class (because I already knew how to type very well by then) and at my best I could stay a little over 100wpm for a minute or two without any errors, but it was hard. I could maybe get up around 120-130 transcribing speech and letting minor errors slip though. I doubt I get much over 90wpm at my best these days but it's still fast enough to draw the occasional "whoa!" from people watching me. 160 seems... crazy if you're not touch typing, and way above normal even if you are.
[EDIT] sorry about the tone, I'm not saying you're lying, that's just... wow. Crazy fast. Must have really surprised some people, haha.
comment 8y ago · link · parent
comment 8y ago · link · parent
Also if I went back to Linux I'd have to figure out how to remap my window controls to Spectacle's defaults, which'd probably take forever or end up being impossible in the window manager I settled on or whatever.
It's the little things.
comment 8y ago · link · parent
You want actually stage-like films you have to go back farther. Wide shots galore, with stage-style blocking. Check out the opening scene of the original Ocean's 11.
comment 8y ago · link · parent
In any sane universe that would've made every other action filmmaker go "oh, that's how you write and film engaging modern-feeling action that's meaningful to the film itself and its characters and, therefore, to the audience. If it's possible to keep that up for practically an entire film—and, apparently, it is—I can and must do it in my action scenes".
We don't live in a sane universe, unfortunately. But at least we have MM:FR.
comment 8y ago · link · parent
Our moon base would be covered in advertisements and each feature named after a corporate sponsor. Everyone on the Pan-Am flight (whatever we rename it to) would be some future-Youtube "personality" live casting their flight and future-gramming their in-flight meals. HAL would become vulnerable when some of his network-controlled doors and such lost their wifi connection and fell back on manual controls, turning the whole thing either comic or, if the manual controls also fail to activate and allow him to win after all, saving him even from his fate in the original film, tragicomic. All of this would come off as insufficiently pessimistic and no-worse-than-things-now to pass for an acceptable projection of our future.
Just doing a straight remake of 2001 with more iPhones won't help it, and my guess is it'll make it feel really, really weird, and not in the ways it was trying to be. Possibly laugh-out-loud funny at times. Its story isn't narrow enough, allegorical enough, or far future enough to ring true now without adding some of our cynicism. The retro-future tech of the original saves it from that scrutiny.
comment 8y ago · link · parent
This is how we get the JJ "uh oh, two characters talked for more than 30 seconds, better cap this bit with an action scene even if it does precisely nothing to provide characterization, exposition, or advance plot" Abrams school of film-ruining.