Better HN
topnewbestaskshowjobs
Log inSign up

simplify

2,061 karma · joined May 24, 2009 (17y ago) · 911 submissions

Submissions

comment 10y ago · link · parent

JavaScript isn't a type of logic, it's a language. You wouldn't say JavaScript is the M in MVC, for example. If you have JS in HTML, and that JS code is strictly view logic, then your code still has a clear and useful separation of responsibilities.

722.

Asdf – An extendable version manager for Node.js (and more)(github.com ↗)

1 points · by simplify · 10y ago · discuss

comment 10y ago · link · parent

What's your definition of business logic?

comment 10y ago · link · parent

Does anyone know how Final / other companies are able to create virtual CC numbers? Is there an API or something?

comment 10y ago · link · parent

moment.js is a monolithic beast. I would love to see date-fns instead https://github.com/date-fns/date-fns

comment 10y ago · link · parent

Am I correct in understanding Yarn works similar to Ruby's bundler?

comment 10y ago · link · parent

Are there any CSS frameworks nowadays that use flexbox instead of the float-grid model?

comment 10y ago · link · parent

I've played around with react native, and I will say it feels nothing like normal react (where "normal" is writing for a web app). The only thing that is similar is syntax. Everything else is new/different: elements, styling, interaction listening, etc.

comment 10y ago · link · parent

Based on your DevOps experience, what's your opinion of Nix[1] and/or its OS? I keep hearing it solves a lot of pain for deploying systems, but I don't have any DevOps experience to evaluate it.

[1] https://nixos.org/nix/

comment 10y ago · link · parent

Take this analogy. Some people have rare diseases. However, because the diseases are rare and not common, not enough resources go into finding cures for this disease. Should no one work on the cure for a rare disease because it will provide little value to the world, in comparison to a more common one?

I'm not saying this directly translates to UBI, but it is something to think about.

comment 10y ago · link · parent

That is not what constructive is.

comment 10y ago · link · parent

Instead of downvoting this comment, why not explain why they're wrong, both for the benefit of them and other readers?

comment 10y ago · link · parent

I stand corrected. Thank you.

comment 10y ago · link · parent

There is reason, though. For example, there is stigma against chiropractors [1]. Some nutritional supplements have been found a scam (rightly so), but the baby got thrown out with the bathwater [2].

Have you heard of sound therapy? Laser therapy? NLP? These are therapies you probably would never hear at a traditional doctor's office.

[1] https://www.quora.com/Why-are-chiropractors-not-considered-r... [2] http://www.quackwatch.com/01QuackeryRelatedTopics/altmed.htm...

comment 10y ago · link · parent

Traditional medicine is an official term: http://www.who.int/medicines/areas/traditional/definitions/e...

Vaccines are interesting, since they don't directly solve the problem, but aid your body in helping itself.

I concede antibiotics and joint reconstruction. However, we've only begun to scratch the surface of what's possible. As a society, we shouldn't limit ourselves to only what is taught in a medical degree.

comment 10y ago · link · parent

> Lesson is: take your medicine. It may hurt, yet the alternative will hurt more.

There is something I've recently realized. Hospitals are optimized to receive patients, control the situation, prevent pain & death, and then hope for the best. In other words, traditional medicine doesn't actually heal you. It only controls the situation, and trusts that your body will heal itself.

This was a strange realization to make. My whole life I've always associated medicine with healing. But now I see that, although very useful, medicine only serves as a band-aid. It doesn't solve the underlying problem.

I think we as a society need to realize this. Not because traditional medicine is bad (it has helped save countless lives, for sure), but because we need to start looking into alternative medicine that could potentially provide actual healing. There's currently a stigma of anything that isn't a traditional drug / pill... we need to progress past this mindset.

Edit: Sorry for being overly broad. I have more in mind physical and mental health conditions. Regardless, instead of downvotes, how about we have an enlightening discussion?

Edit 2: I misspoke "traditional medicine"; but what I meant was "western medicine", as I was kindly corrected by maxerickson. I apologize for the confusion.

comment 10y ago · link · parent

Where would one go to get started in building artificial life programs? I find the idea very fascinating.

comment 10y ago · link · parent

He said he didn't have the FB app installed on his phone, though.

comment 10y ago · link · parent

What usual misunderstanding of |this| are you referring to?

comment 10y ago · link · parent

It's a long-lived HTTP request. The server automatically knows if a client disconnects; that's a feature built into all HTTP server libraries everywhere.

But yes, if you're already using websockets for other features, there's no reason not to continue to use them, as you explained :)

comment 10y ago · link · parent

Websockets would overkill for this kind of feature – you don't need realtime two-way communication. Server sent events (SSE) [1] are a much better alternative; it's a simple, long-lived HTTP request where the server can push data to the client. They're built into most browsers [2], and the client-side polyfill [3] is small (2kb gzipped).

[1] https://developer.mozilla.org/en-US/docs/Web/API/Server-sent...

[2] http://caniuse.com/#search=server-sent%20events

[3] https://github.com/Yaffle/EventSource

comment 10y ago · link · parent

That's a really good, illustrative example. It seems true that, given a single hour, you're "destroying" the value of the individual's leisure. However, the individual wouldn't have to work away all their leisure time, would they? Assuming a living wage, they would still have the opportunity for leisure.

Also, I would imagine that the world is big enough to get a job at company involved with a topic you're at least mildly interested in. I wonder if subsidized wages would better support art studios?

comment 10y ago · link · parent

But isn't the argument against min wage increases that it would decrease jobs, since employers wouldn't be able to hire? Or, that robots will be cheaper than a higher minimum wage? That's why I suggest both of these ideas together might work.

After all, you don't have to subsidize all jobs; perhaps only subsidize the lower-income jobs, while letting the market handle the higher-paying ones (like it is now).

comment 10y ago · link · parent

Surely we could work out education / creativity. For example, the gov could consider attending a university as a "job", and send funds that way. In any case, why worry about people "skirting the system" when the alternative (UBI) requires no work at all?

comment 10y ago · link · parent

I am also just thinking this through for the first time :)

If what you say is true, then I think we will have just successfully upgraded minimum wage to a living wage, and have allowed companies to hire more people at higher wages due to the wage subsidy :)

comment 10y ago · link · parent

I think you could solve that by increasing minimum wage at the same time. That would also make min. wage increases more palatable.

comment 10y ago · link · parent

Well it wouldn't be 100% subsidized, meaning that the company has to payout some money. With a subsidized payout, I imagine companies would hire even more people. And, even if someone gets away with not actually "working", there's a cap on the number of dollars the government subsidizes.

As much as I like the idea of programming side projects by just relying on BI, I'm not sure how realistic that is; I think cost of housing and food – both of which are increasing – needs to get much lower for that to be possible.

comment 10y ago · link · parent

Has anyone considered "subsidizing jobs" as an alternative to BI? Would it work better if the government gives $X to a company when they hire someone?

comment 10y ago · link · parent

You didn't answer my question. I think you may have misread it.

comment 10y ago · link · parent

Doesn't the nature of an OAuth server imply that it can be added to existing infrastructures? Or is there an issue you foresee with non-Hydra libraries?
1
242526
31