Better HN
topnewbestaskshowjobs
Log inSign up

marknutter

6,558 karma · joined Oct 7, 2009 (17y ago) · 2,641 submissions

Submissions

comment 10y ago · link · parent

I would recommend Parse. It's open source and used in production by thousands of companies. https://github.com/ParsePlatform/parse-server

comment 10y ago · link · parent

> Grocery store quality, with the ability to follow the food pyramid.

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

Well, no, not really. You will only replace/update the elements that you need to which is pretty much what vdom boils down to. It's just tedious, is all.

comment 10y ago · link · parent

But remember, living off the dole also means not contributing anything back to society. These people could be doing something of value, but are incentivized not to.

comment 10y ago · link · parent

I don't see how that's progress. To me it further complicates the issue. You're suggesting that there would be different basic incomes based on where you live? Doesn't that seem the least bit discriminatory?

comment 10y ago · link · parent

Relay and Falcor both remove the need for Flux, I believe, but those solutions involve the backend I believe.

comment 10y ago · link · parent

I have a feeling this would be the excuse a lot of people would make if basic income didn't end up improving conditions for the poor.

comment 10y ago · link · parent

Easy? What quality and variety of food? what size shelter and in what location? What brand of clothing and how many outfits? What level of health care? Who decides these things?

comment 10y ago · link · parent

If you want to see basic income in action, look no further than the various Native American tribes who operate casinos throughout the country. The results are not pretty [1].

[1] http://www.economist.com/news/united-states/21639547-how-cas...

comment 10y ago · link · parent

> However, by only distributing the payments to a subset of the population, there is a social stigma associated with receiving benefits. With a universal payment, there is no stigma.

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

The problem is how "basic needs" are defined.

comment 10y ago · link · parent

What I'm curious about is what's stopping a large portion of the population from simply quitting their jobs to live off basic income, thus decreasing the potential pool from which taxes to pay for basic income can be extracted?

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

Directly from your link:

"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

Instead you have companies like YCombinator and Facebook requiring people to move into an already overpopulated area to do work that could just as easily be done over the wire.

comment 10y ago · link · parent

> it will make many jobs obsolete and they will not be replaced at a fast enough rate.

Why won't they?

comment 10y ago · link · parent

Let's be clear, manually updating the DOM is as optimized as you can possibly be. Virtual-DOM isn't somehow magically more efficient than direct, imperative manipulation of the DOM. Virtual-DOM diffing was created to try to emulate the effect of refreshing the entire page every time state changes like we did with stateless web applications but do it in a relatively performant way.

comment 10y ago · link · parent

> You don't have to - but without them stuff gets messy pretty quick.

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

The major difference being, if something is written as a Polymer web component, it's immediately usable by anybody else writing for the web (with the possible exception being React developers because of their unwillingness to acknowledge or adopt web components as a standard).

comment 10y ago · link · parent

Wouldn't that be a little like a construction worker fashioning his own hammer, cutting his own boards, fabricating his own cinder blocks, etc?

comment 10y ago · link · parent

What does scale have to do with front-end development? Front-end code runs on the user's machine. And regardless, it's folly to make decisions based on wanting your code to scale to Facebook level usage.

comment 10y ago · link · parent

Your comment strikes me as incredibly naive. Angular was written to tackle the task of re-writing the front-end of Double-Click, by far their most profitable application. Google is putting a ton of resources into Polymer, which is powering more and more of their mission critical properties, so Angular hasn't had the benefit of being blessed by the wider organization as the one, true way of doing things. I think that's a good thing, frankly. The group-think coming out of Facebook is unnerving to say the least.

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

> But have you actually been following this stuff very closely?

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

It amazes me how much the software industry is like the fashion industry. Do you honestly base your technology decisions on what brand names are attached to them?

comment 10y ago · link · parent

I'm a huge proponent of the Zero UI movement. I gave a talk last year at a local Google DevFest about a CMS I created for a Priest friend's Church that didn't have any user interface to speak of. It relied on Google Drive to host all the files that the staff and teachers at his Parish needed to edit, and all they needed to do was leverage their existing knowledge of the OS's file system and Microsoft Word to do it. A script runs every half-hour to update the static site based on the changes to and additions of files in their shared Google Drive account.

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

> Then you might need a state management system like Redux. Its quite easy to roll out your own that fits your project and does not have all the pluggability whistles like Redux.

Quite easy for whom, exactly?

comment 10y ago · link · parent

> You describe ES6 as some kind of exotic dependency.

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

So here we see the culmination of the great Frameworks vs. Libraries divide. Frameworks alleviate the need for the type of articles like the one linked here because they eliminate choice paralysis and imposter syndrome. Everyone is worried about whether or not they're doing things The Right Way™ and so they either blaze ahead and hit the same pitfalls everyone else does (and then write blog posts to warn others) or they hold off on adopting the tech until they are shown The Right Way™ by someone else.

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

Does this not seem like a problem to anybody else? Wasn't the whole point of React that it was supposed to be simple? And yet things have gotten so complex you're giving advice that anything older than 3 months isn't even worth reading?

comment 10y ago · link · parent

> For Presentation, the HTML and JS are always coupled, whether you have them in separate files or not.

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.

1
192021
89