6,558 karma · joined Oct 7, 2009 (17y ago) · 2,641 submissions
comment 10y ago · link · parent
comment 10y ago · link · parent
Organic or not? Brand name or not?
> Somewhere. Probably shouldn't force them to move to a different city.
What if they live in a city with extremely high cost of living? It's likely UBI will not allow them to continue living there, so then do they get extra because they want to live in a trendy place?
> Generic brand, 5-10.
What is "Generic brand"? Don't the poor deserve to have the dignity of owning a few brand name outfits?
> Medicaid.
Expanding Medicaid to every single American is going to cost a lot of money, so now you've got two problems; how to pay for UBI and how to pay for expanded Medicaid.
> The exact number is not the important part, so don't fixate on how it's calculated.
But it is. Because as soon as a number is arrived at, there will be people who say it's discriminatory. They will rail against it because people on UBI will be "barely at the poverty line". There's no one-size fits all dollar amount we could ever possibly come up with.
comment 10y ago · link · parent
[1] http://www.economist.com/news/united-states/21639547-how-cas...
comment 10y ago · link · parent
People aren't so naive that they would ignore the fact that their basic income is being immediately taken out of their pockets to pay for other people's basic incomes.
comment 10y ago · link · parent
If it really worked out like you say it would, where people with middle or high incomes are no better off, I wonder what they would think when suddenly large swathes of the population are able to live off the dole without busting their humps.
comment 10y ago · link · parent
"Note: The programming models of the two component systems (web components vs. react components) differ in that web components often expose an imperative API (for instance, a video web component might expose play() and pause() functions). To the extent that web components are declarative functions of their attributes, they should work, but to access the imperative APIs of a web component, you will need to attach a ref to the component and interact with the DOM node directly. If you are using third-party web components, the recommended solution is to write a React component that behaves as a wrapper for your web component. At this time, events emitted by a web component may not properly propagate through a React render tree. You will need to manually attach event handlers to handle these events within your React components."
It's worse than that, though. Web components that maintain their own state can be randomly squashed by React's virtual-DOM diffing algorithm because of the way elements are held in memory. They are just not compatible, and the React Core team has made no apologies about not agreeing with the overall concept of Web Components.
comment 10y ago · link · parent
comment 10y ago · link · parent
Which is the same as saying "you have to".
Can't we just accept that developing with React is no longer as simple as just stitching some views together? It's as if the collective React community is very insecure about the fact that writing web applications is gonna be hard and complicated no matter how shiny your tools are.
Sure, you don't have to use JSX, but without it stuff gets messy pretty quick.
And you don't have to use flux/redux, but without it stuff gets messy pretty quick.
Also, you don't have to use ReactRouter, but without it stuff gets messy pretty quick.
You don't have to use....
comment 10y ago · link · parent
comment 10y ago · link · parent
You should step outside the Hacker News bubble and do a little research into just how widespread Angular usage is. You will find that it's staggering. Google's name means a lot, even if they haven't gone all in on using Angular for everything. Don't get me wrong, I think React is a fresh new take on web development, but when I see people say "because Facebook™" it makes me cringe, hard.
comment 10y ago · link · parent
I have, but I'm trying to spin my comments from the perspective of the average developer. People who are passively keeping tabs on what this whole "React" thing is about are probably feeling a little uneasy about all the churn. I agree that Redux has emerged as the clear solution for data management, and I'm a huge fan. But I don't use it with React. I'm keeping my distance from that ecosystem while the dust settles and waiting to see what kind of splash Angular 2 makes.
> Relay/Falcor are really part of an entirely different thing than React; they are about replacing the traditional REST API with an entirely new paradigm.
But what app doesn't use a traditional REST API? Why wouldn't people want to use the latest hotness to come out of Facebook™ or Netflix™? It's this kind of uncertainty that keeps people off balance.
comment 10y ago · link · parent
All of the pictures come directly from their Facebook account via the Facebook API and the weekly PDF newsletter is sent using Mailchimp and pulled from their Google Drive as well. They went from almost no engagement from the staff to close to 100% engagement after we implemented the system.
Before that the site was built on Drupal and needlessly complex. Nobody used it. It's so easy to forget how daunting learning another user interface can be for the average person. We may think we're being clever when we create our beautiful snowflake UI's but all we're doing is adding more work to somebody's already full plate (and K-12 teachers' plates are overflowing). There's a lot of cognitive overhead that comes with things like remembering username/password combinations, how to upload files to a website (or understanding what that even means), navigating around a website, editing text in something other than Microsoft Word, and other skills and knowledge we take for granted.
With the Google-Drive-As-A-CMS implementation, none of the teachers had to learn anything new. They simply needed to leverage skills they were already expected to have (filesystems, Word, Excel, Powerpoint).
I'd love for more of us software developers and designers to take a step back and ask ourselves the question "am I making my user's life easier, or am I adding complexity to it?". The honest answer might give us pause.
comment 10y ago · link · parent
To the non Silicon Valley / Hacker News crowd, it certainly is. And using ES6 means you need to make a choice about which transpiler to use, which build tool to use, etc.
> Actually once you get rid of ES6, the only dependencies in your list are immutable.js which is optional, and redux, which has become the well-known default.
Well known to who, exactly? Because the "well known default" as of a few months ago was Reflux, and before that it was Flux. Oh, and there's Relay and GraphQL.
When's the "well known default" going to change again? I give it two months before everyone rushes to the next new gotta-have dependency. It's like reading Dr. Suess's The Sneetches.
comment 10y ago · link · parent
The truth is, libraries and frameworks both end up being equally complex to work with, precisely because the problem of building large applications is inherently difficult.
It all comes down to personal preference:
Are you the type of person who is more likely to believe you can do something better than everyone else, or are you the type who is more likely to defer to those you believe to be better than you?
Are you decisive or do you agonize over the smallest choices?
Do you feel a compelling need to understand how everything works, or are you willing to implicitly trust other people's systems?
I find it amusing that people who gravitate toward smaller libraries like Backbone.js and React.js rail against frameworks like Ember or Angular for being overly complex, heavy, and "magical", and then proceed to cobble together a Rube-Goldberg-esque system of disparate dependencies to achieve the same goals. When React first started getting popular all you read about was how simple the API was and how it was Easy to Reason About™. Fast forward to today and you need to have working knowledge of WebPack, ES6, Redux, immutable.js, Babel, and a bevy of other dependencies to be aligned with the React ecosystem's ever-evolving best practices.
The exact same thing happened with Backbone.js and it will probably happen again with the next shiny new view-model library to ride the hype train.
It's important that I point out, however, that none of this is necessarily a bad thing. Smaller libraries like React.js and Backbone.js encourage a cavalcade of innovation from which awesome things like Redux are born. But let's not pretend that this doesn't result in a heckuva lot of churn for the average developer whose job is to simply get shit done.
comment 10y ago · link · parent
Absolutely not. Back when we were all just using jQuery, you could run $('.some-class').myWidget() to activate a widget on any element matching the query. There was no need to couple the implementation of the widget with the element to which it was applied.
If the widget had some internal element construction to do then yes, I would agree, it makes sense to have it be part of the same file, and this was often done with string concatenation back in jQuery days.
However, there is still value in being able to share the same html template across multiple models. You may have a general tabular structure you want to adhere to app-wide but you may want to implement different dynamic logic to those tables in different places. Now you're faced with having to copy/paste the same template over and over in React to accomplish the same task, or you have multiple mixins that define different behavior which kind of defeats the purpose of having the logic and the markup live together.