EDIT: I do think there is risk that the coercion will become more intensely focused on illegal immigrants and foreign labor to fill in that niche, however, so better safeguards for illegal exploitation probably need to come along with UBI.
690 karma · joined December 27, 2012
EDIT: I do think there is risk that the coercion will become more intensely focused on illegal immigrants and foreign labor to fill in that niche, however, so better safeguards for illegal exploitation probably need to come along with UBI.
I recently got Neovim working with nvim-typescript but I would be lying if I didn’t say I missed the nice UI/UX of VSCode, nor that I’m annoyed at having to spend so much time configuring my editor and memorizing shortcuts instead of actually getting things done.
So to answer your question I think part of it is that my machine is just worse than yours, and part of it is that editing text is often doing more than just editing text - in my case keystrokes trigger static analysis of a large project.
I’m finding it tricky to implement cleanly in my company’s fairly large React codebase, though I do think the fundamental problem is not a simple one and requires tradeoffs.
People developing on other platforms love to complain about the build tools on the web, but those same people only have the luxury of simpler build pipelines because they have greater control over the machines their code will be run on.
I don’t see React as having caused this problem in any way (feel free to include React via a script tag from a CDN and worry about the compatibility of your code yourself), and I also don’t see this as a problem that will go away any time soon for web development.
That all said, I do think it’s getting better - all the major browsers have switched to be auto-updating, so it’s feasible for many projects to drop support for IE altogether and only support ES6; if you manage your CSS in JS, you don’t need to downcompile languages like SCSS; the two of those together mitigates a lot of the need for sophisticated build tools.
So at the core I chalk the situation up to people problems, not technical ones.
If you want the hypermedia-concept of mostly static documents with links to each other, feel free to turn off Javascript or not use React.
If you’re using the web as an application delivery platform that works cross platform without installs and instant updates, then HTML is the base of your UI framework, and as such it helps to have predictability that frameworks like React offer.
Re state, for me the “bad thing” about global state is usually the same “bad thing” about jQuery-based apps - that anything can mess with anything. But all the solutions you mentioned, and especially the Context API, force components to declare their dependencies and update shared state in restricted ways, which makes that “bad thing” much less bad.
If you don’t like shared state at all, feel free to not use any of those, and pass around state throughout the app - but don’t complain to me when synchronizing state throughout your web app becomes a problem, or that boilerplate becomes a drag, because those are the problems these solve.
With Hooks I’m happy in that most of the “business logicky” stuff can be split out into those and my components have returned to being pretty much entirely UI code - I don’t really use any of those weird in-between tags like <Query> anymore.
Transpilation will happen if you want to use new JS features at all. If you use React without JSX and not using any ES6 features, then you can certainly support old browsers without those transpilation steps - just include the compiled CDN-distributed script in a script tag like jQuery, it’s even advertised in the React getting started docs. Just turns out nobody wants to do that.
I agree that SSR is a crazy story though and I hope someone makes something better - but jQuery doesn’t really help with that at all, bootstrapping state from a different machine than the runtime and not incurring state weirdness/security vulnerabilities seems like a generally difficult problem, not a React-specific one. NextJS (and maybe prerender snapshotting) seems like the only decent options right now.
There’s a bunch of parts of learning a language (a few more for Chinese character languages like Japanese) and learning one often doesn’t help you that much with the others, which most people don’t realize:
- recognizing individual kanji characters
- recognizing words formed via combinations of kanji
- reading passages in context
- writing characters
- writing passages
- understanding grammar rules
- forming sounds naturally (people who can speak sound unintelligible because of bad accent, this is not the same skill as speaking - more muscle memory)
- speaking (does not actually require understanding grammar, nor sounding reasonable!)
- listening and understanding verbal language...
- without context
- in a casual context
- in a formal context
- with unspoken, understood context (this and above two require understanding culture)
- domain specific vocabulary (everyday speech is totally different than business, and different from speech with a lot of slang)- knowing socially appropriate things to say or do based on unspoken context
- and more I probably missed
Learning all of the above is a project that people with decades of study can’t necessarily do all well [1] - so first pick what you want to be able to achieve and focus on that, and also acknowledge that learning a language is going to be a daily practice for the next several years of your life. If you don’t want that, then time spent learning a language will probably be a waste IMO (unless you’re just doing it for a general sense of Japanese language and culture - Duolingo is probably good for that), and I’d advise you to spend your time doing something else.
For me I wanted to be able to speak in casual conversations and everything else is secondary. That said reading passages is useful for understanding how specific grammar and vocabulary is used in context, so that was my second priority. Working in Japanese companies is legendarily terrible so I never had an interest in professional or very formal Japanese (just enough to understand formalities spoken to me when I go to stores or talk with reps at companies).
I’m currently at an intermediate level after ~1.5 years of regular study - good enough for most common social contexts, not good enough for business Japanese or niche topics. Someone deeper than me will certainly have different opinions as well.
- The first ~6 months, I liked the Pimsleur series but your mileage may vary. It’s old school mp3s (used to be cassettes) that teach you not by explaining rules but by giving you scenarios and having you use grammar rules and learn by inferring patterns, responding under time pressure (an mp3 can’t wait for you - this is important!). You will not have a formal understanding of the language but it can get you to saying things pretty quickly, and gets you over your fear of sounding dumb in a foreign language quickly since you’re speaking from the beginning. You learn some basic vocabulary and (sometimes overly formal) grammar, which will make more sense when you do formal study concurrently or afterward. It’s all audio so I just listened and spoke responses aloud to it during my commutes (by train, not caring that I look like a crazy person) and otherwise didn’t change my day to day life.
- WaniKani is great for learning to read individual Kanji and build vocabulary via spaced repetition (not the same as reading passages), worth the cost (every year they do a $100 off sale for lifetime fyi), though they play fast and loose with the meaning and composition of radicals so be aware of that - also its a fixed order, so if you take classes at the same time it will be out of sync with that. The open-source Tsurukame iOS app for it is phenomenal and I use it all the time on trains.
- Skritter is good for learning to write Kanji via spaced repetition (that’s a totally different skill than reading!), but to be honest you don’t need to really learn to write - predictive keyboards are enough for most people to survive, you rarely need to write anything down nowadays. I started using it more after enrolling in classes, since Kanji recognition was a core part of that. Their app is tolerable but not great - I bug them constantly to improve their iPad/Apple Pencil support, the closest digital thing to really writing on paper and pen.
- Bunpro teaches grammar points via spaced repetition, it’s pretty decent. The app is not very good.
- Learning from large group classes is good for some listening practice and learning grammar rules in general, but not that great for speaking practice because there’s usually too many other students to get that much opportunity to speak. You will learn what you’re doing wrong, but you’ll need to put concepts in practice much more outside of class.
- Learning by speaking to classmates in said classes... is not very optimal, since they don’t know what’s right or what sounds right either. Do it for your social curiosity or motivation, not for true language practice IMO.
- Learning from a small class or 1:1 will give you higher quality speaking practice - you can find pretty cheap teachers on services like iTalki. For getting grammar and usage right, I’d recommend real teachers vs random people on HelloTalk since the average person can’t explain grammar points well, but for getting to know someone on a non-professional basis/cultural learnings, the random person can be better (but if you have the option to esp once COVID blows over, IRL friends are the best).
- Getting a job in Japan can get you a decent amount of practice, though in a particular domain - probably formal, maybe repetitive
- Getting a significant other will give you a lot of practice in the specific domain of day to day conversation, but you run the risk of adopting the sound of the SO (guy sounding like a girl, in a very gender-segregated society like Japan, makes you sound funny lol)
- Immersion is not really useful until you can at least tread water so don’t think you need to move to Japan to learn - but like I said practice is important so maybe after 6-12 months of study it’s probably worth it if your life is flexible enough to make that happen.
- trying to understand movies/anime is hard to do until your listening skills are pretty decent, especially since they usually use a lot of niche vocabulary and grammar (talking like a samurai) not common in day to day life. You can try but I found that a steep learning curve for beginners. But you can find a bunch of well-transcribed stuff at FluentU and Animelon.
[1] A funny example: https://twitter.com/patio11/status/1247584725503332354
In other words, I’ve never met someone who actually attributed their success in learning a language to Duolingo or any app like it. I do hear a lot of beginners who can’t consistently form grammatically correct sentences lavishing it with praise, however.
Old school services like Pimsleur’s tapes, or for more advanced users services like FluentU can help get your listening skills up, and language specific publications like the Chairmans Bao for Chinese can work on your literacy, but ultimately there’s not much substitute for speaking with a teacher or friends (my experience with HelloTalk for connecting you with conversation partners has been mixed - better than nothing but its not like the prolonged exposure & relationship building of a real friend, nor the targeted learning and crisp explanations from a teacher).
But yeah if you’re just getting started I personally enjoyed learning through Pimsleur - no fancy app, just mp3s, and it gets you speaking with time pressure from day one - if speaking is your main goal, this was the fastest way for me to get started, and you learn from exclusively listening to people pronouncing correctly (unlike taking a class, where you’re exposed to everyone but the teacher butchering the language), so I find I sound much better than any of my classmates in class nowadays.
For example I notice it’s really common for spaced repetition algorithms to really easily allow me to shoot myself in the face by learning too much up front and then drowning in reviews; or to destroy myself by missing a few days. Not sure what is out there, but some extensions I’d like as a user is to be “I don’t want to spend more than x time per day doing this, so pace me please”, things like:
- the ability to specify a max “learning load” taking into account projected reviews + new cards
- the ability to “recover” from missed days not by seeing 1000 pending reviews and panicking, but by saying “do an extra 10 cards a day and in two weeks you’ll be caught up”
I’m sure I’m not the first one to think of these things but I don’t know how to research what people have done - and if these kinds of usability things, good documentation with clear comparisons of strategies, flexibility of use in different environments/languages were encapsulated in a library it would be a game changer for me.
I can’t speak for other countries but US government seems to systematically undervalue making and executing decisions efficiently. To me, the biggest failure of US-style democracy - often touted as a strength in the form of checks and balances (admittedly, thankfully because Trump has been slowed down quite a bit) - is its inefficiency - so many social problems root from that alone.
(I’m of the camp that issues like immigration are less of a “dumb racist conservatives” problem as the American left puts it, and more of a “convenient scapegoats for hopelessly low opportunity” problem, I say as someone who leans liberal but feels repelled by the way the party acts)
I got tired of SF government being so thoroughly useless at improving day to day life for its citizens, that I moved out to Tokyo now. They’re not perfect by any means, but the feeling that systems actually seem to work well, is revolutionary for me in a time of intense political disillusionment.
And separately, being enlightened with novel pithy facts isn't the only reason people write things. There's a lot that can't be transmitted in that form, and while I appreciate that style of writing for startup advice or a how-to guide, it's definitely not universally applicable.
Some subset of that can be achieved with stuff like GraphQL or Swagger and what not though I haven’t given it a serious try since we’ve never run into hiccups yet with this system, reliant on a very simple library.
We also use the same package manager (NPM) on both ends and can therefore invoke scripts all over our codebase with the same syntax; and although react code and node code is quite different in structure, they all have the same idioms and async syntax and stuff, so the amount of retraining necessary to convert someone from backend to full stack isn’t very large due to the same environment, and keeping code style consistent across the project is also easy.
So I feel like there’s definitely stuff to profit off of with sharing a single language.
But separately, as much as I respect the right for someone to their property, I think we as a society in the USA overindex on that personal right vs the public benefit and the health of the community as a whole, hobbling forward progress.
Just like the other commenter talked about Europe, I’m living in Japan currently - a far older country with far more people per sq foot who had to be relocated for the very thorough transit system here to be developed, with far less resources than the USA had when it was being built out.
The result is not that you end up with housing shortages, the effect is instead that transit dramatically increases the amount of viable land to live on within a reasonable commute to the city, creating cheap housing surpluses - provided that incentives are set up properly to encourage that housing production, as opposed to the USA’s hopelessly restrictive permitting/zoning + the incompetence of government to efficiently utilize land at transit stations + the unwillingness of the govt and electorate to allow private enterprise to do it instead (as it extremely profitably is done here in Japan).
That’s why I can get my current 1 bedroom apartment 15 minutes from the center of Tokyo for $600/mo here, a literal impossibility in even 2nd or 3rd tier American cities like the one I grew up in. And no, I’m not living in a shoebox or a soulless high rise, I live in a vibrant walkable neighborhood of low rises - since the combination of transit development, small (re: proper scale) streets and unrestrictive zoning means that a high quality of life is accessible to far more people.
Not to mention that if American cities were willing to deprioritize cars a bit you can probably get a pretty good system going almost entirely built on streets that are way wider than they need to be/evicting cars from those thoroughfares... glad to see baby steps in NYC and SF to do it a little, but at this rate it’ll be centuries before anything significant happens.
You’re not the target audience for these features - not only are you the tiny minority, but no matter what system they give you, you’ll find a way to interact with it safely, so for that interaction you simply don’t matter.
And choosing to do this kind of login pushes blame for authentication issues away from that company, and onto the federated provider, who presumably has legions of security researchers to make sure they’re doing things safely.
Friend: "I'm such a failure and my future is definitely going to be horrible!"
Me: "So, who's judging you as a failure, why does such judgments even matter, and how exactly do you have no options or influence over your future?"
I've had this dialog plenty, and it has little to do with realism.
Regardless, as you mentioned, we need to do both; but based on the research out there and my intuition, my inclination is that lacking income strikes lower on Maslow's hierarchy, and as such probably takes a certain degree of precedence as a prerequisite for benefiting from a stronger education system; and that some classes of money problems can be addressed in more sweeping, efficient way than improving education, which involves a great deal of training and waiting.