News for hackers. Stuff that matters.

konaraddio

React separates concerns but it doesn't separate state and UI. It separates concerns through components but encourages tightly coupling relevant state and UI into components because a UI typically reflects changes in state (this is what JSX is for).

The "Why JSX?" on React's docs covers this with more detail: https://reactjs.org/docs/introducing-jsx.html#why-jsx

Re:Ask HN: Why does front-end development change so often? on Tuesday January 22, 2019 @10:20PM (#18975357)
The web is young so there's lots of room for growth (and thus lots of work to be done)
Re:Coolest Things I Learned in 2018 on Tuesday January 08, 2019 @01:17PM (#18857889)
I think everyone does this to some extent. The problem is there's a tradeoff* so we optimize to this with varying degrees of success.

*Memorizing takes less time but you sacrifice depth of understanding and duration of retention. Understanding the "why" provides a great depth of understanding and a lengthy duration of retention but, depending on the material, it can take a long time and potentially lead you down a rabbit hole if you continue to seek understanding of the underlying abstractions.

Re:What a Student Loan 'Bubble' Bursting Might Look Like on Wednesday January 02, 2019 @07:00PM (#18811571)
> Meanwhile, some people are more than happy to spend $100,000 on a graphic design degree that may get them a job paying roughly $40,000 a year

> A lot of that has to do with what Goldfarb likes to call the narrative—one that convinced kids that the only route to middle-class respectability was to get a college degree and that suggested failing to do so meant having failed at the American dream of upward mobility. To keep using the economist's terms, I would also say that 18-year-old high school seniors definitely qualify as "novice investors." Their philosophy can be summarized by Colin Hanks in the 2002 movie Orange County. When asked why he's so obsessed with getting into Stanford University and college more generally, he snaps back, "Because that's what you do after high school!"

Too often I see articles about student debt make a comment about how students have been tricked or misled into pursuing a degree. Why does no one talk about the alternative?

Let's talk about the alternative: You don't get a degree and now you're resume gets automatically thrown out of most applications. Only a small fraction of those without degrees manage to get well-paying jobs; they're the outliers. Albeit unrelated to employment rate, look at the salary differences: https://www.bls.gov/careeroutlook/2018/data-on-display/educa...

Some might say it's worth making $X/yr and debt-free than making $Y/yr with $Z debt but this only holds true when Y > (P*Z + X) where P is the percentage of the total initial debt being paid off per year (e.g. P = 0.2 if you're paying $10k/yr to get rid of a $50k debt). And these values are hard to predict.

Learn to memorize the order of a shuffled deck of cards
Re:The Future of Front End Dev on Monday November 05, 2018 @12:39PM (#18384199)
Hi, author here. I saw https://news.ycombinator.com/item?id=18380293 so thought I'd share an older blog post on a similar topic.
Re:Walt: JavaScript-like syntax for WebAssembly on Wednesday October 10, 2018 @10:27PM (#18190616)
> The whole point of WebAssembly was to find some way to get away from JavaScript

The goal is to "Define a portable, size- and load-time-efficient binary format to serve as a compilation target which can be compiled to execute at native speed by taking advantage of common hardware capabilities...."[0].

[0] https://webassembly.org/docs/high-level-goals/

> In my own experience struggling with addiction I've found that it is a symptom rather than a cause. Once you craft a life that is actually stimulating the tech loses its hold over you pretty quickly, if not instantly

I see it as elimination through substitution

Re:Apple's best product is now privacy on Friday September 14, 2018 @12:10PM (#17988376)
It's true for smartphones. If you choose privacy AND open source then you're either making sacrifices or doing something "hacky". Most people want to have their mainstream apps available and don't want to learn how to install a new OS on an Android phone.
I built a web app that turns your smartphone into a 3D controller (think Wii remote). No need to install a mobile or desktop app.

Just visit https://web-riimote.herokuapp.com on a smartphone (it'll be your controller) and a laptop/desktop (it'll be your display). Works best in Chrome.

Here's a video showing it in action: https://www.youtube.com/watch?v=O2r1-lR6Xq8 .

This project was inspired by the 2016 Android Experiments Winner (https://experiments.withgoogle.com/3d-controller). The 2016 Android Experiments winner turns your smartphone into a 3D controller using Chromecast and an Android app. But `web-riimote` demonstrates that it's possible to do the same with only a web app.

Built with Vue.js and Node.js

The idea is interesting and there's definitely people who want to improve their social skills, but asking for a paid subscription from a user who doesn't know what to expect is a tough sell. Maybe you could make the first few calls free and then ask for a subscription?

Also, what happens if there's an odd number of users? Can't set up pairs at the exact same time with an odd number.

Thanks! I agree, there's lots of potential applications. Almost anything that can be done by a Wii remote can be done by a web app.
Hey everyone! I built a web app that turns your smartphone into a 3D controller. No need to install a mobile or desktop app!