Better HN
topnewbestaskshowjobs
Log inSign up

simplify

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

Submissions

comment 7y ago · link · parent

It's not "speaking authoratively", it's basic human nature. Whatever is the default option will be the majority behavior.

If the default is not to help others, then most will not. That's the way the world works. That's why taxes work.

This is not an argument about morality or judging others.

comment 7y ago · link · parent

Sounds interesting! Would love to chat about it but I don't have skype. Check my profile if you'd like to connect.

comment 7y ago · link · parent

How does svelte get "completely out of your way" when you have to learn its non-standard, framework-specific idioms? bind:value, #each, :catch, #await, x as y, $ prefix, slots, use: ... these all seem like reimplementations of plain JavaScript.

If you're going to go this far, why not use Marko.js and get SSR streaming built in?

comment 7y ago · link · parent

Will politicians be able to use this feature?

comment 7y ago · link · parent

Unfortunately, asking questions on the internet is often seen as "opposing" or "arguing against" the thing you're asking about. So many qualify their statements to avoid this sort of misreading.

comment 7y ago · link · parent

donorbox.org also allows donors to control their subscriptions AFAIK.

comment 7y ago · link · parent

The motivation post for why they created it is a good read: https://www.gabrieladorf.com/palettteapp/

comment 7y ago · link · parent

Nice! I use Palettte[0] (yes three t's) but ColorBox looks like it supports curves.

https://palettte.app

comment 7y ago · link · parent

Any recommendations on security keys for personal use?

comment 7y ago · link · parent

I've built an app using Neo4j and have the same impression. Cypher is such a good query language. I wish I could use it over SQL in pretty much every situation.

comment 7y ago · link · parent

Node-RED is kind of similar, but for node.js

comment 7y ago · link · parent

This is a great explanation and should be displayed somewhere on the site.

comment 7y ago · link · parent

Not supporting infinite scrolling, but it looks like more than half: https://www.statista.com/statistics/241462/global-mobile-pho...

comment 7y ago · link · parent

Are any of these systems based on Prolog? I feel like the next great advancement will need to use the core concept of logic programming to some extent.

comment 7y ago · link · parent

It might be a health thing. I notice when my health is poor I don't feel like doing anything. But after changing my eating habits and sleeping more[0], I have much more energy and motivation to do things I like.

I didn't notice this for a long time; the decline was so gradual I didn't notice until I was constantly tired every day. Still not perfect, but much better than before.

[0] Please sleep more, dear reader https://twitter.com/hillelogram/status/1119709859979714560

comment 7y ago · link · parent

You might be approaching hooks suboptimally. `useState` should be used for simple values, different than the catch-all `this.state` from class components.

How do you arrive at nested functions? Hooks have generally flattened my indentation, and they are refreshingly easy to abstract over, making way for even cleaner code.

For example, I have the following custom hook in multiple components:

    useNavigationWarning(() => !!commentBody)
which adds an event listener to the window that warns the user about unsaved work, but only if `commentBody` has any content. Because it's a function, I can reuse the hook and swap out the callback body's conditional for each situation.

With class components I would either have to use a higher-order component (bad and clunky), or copy/paste code across two separate lifecycle methods across each of my components that need this behavior.

comment 7y ago · link · parent

Completely agree. If you're interested in giving insight into your own developer mind, I'm working on a social network to do just that[0]. The goal is to be the sweet spot between Twitter and a blog – short enough to jot down (as blogs take too much effort), and long enough to go beyond Twitter's character limit. And you get markdown!

It's very barebones MVP at the moment, but you can expect more features very soon. Open to feedback!

[0] https://devlog.at

comment 7y ago · link · parent

How would I know it's "completely implausible"? Should I just blindly shut out any dissenting voices?

comment 7y ago · link · parent

The point I wrote is not merely that building solar creates pollution, but relative to its lifetime it may do more harm than good – in its current state of the art. In other words, a lot of dirty to get a little clean.

comment 7y ago · link · parent

Solar might not be such a dream clean energy https://twitter.com/datarade/status/1101744267444142080

I don't know the chemistry behind it, but it's interesting to hear the counter argument that it will actually create more polution to build a solar panel relative to its lifetime. Would love to read more.

comment 7y ago · link · parent

I usually use hslpicker.com for tweaking colors, but this looks useful for seeing an array of colors at once.

comment 7y ago · link · parent

As a side note, ethics and legality are not the same thing. Something could be legal and still be ethically questionable.

comment 7y ago · link · parent

What are some use cases for a time-series database?

comment 7y ago · link · parent

Maybe they padded it for unicode?

comment 7y ago · link · parent

Based on personal experience, there are in fact some Chinese that are surprised to learn Americans can criticize the president with no repercussions.

comment 7y ago · link · parent

Isn't this the sort of attitude that enables bad actors to abuse their positions of power?

comment 7y ago · link · parent

The links at the bottom look like ads. I unconsciously ignored them until I visited the page again.

comment 7y ago · link · parent

I hate it when people rationalize-justify this behavior of corporations. Look up the history around the Freedman doctorine. It wasn't always like this, and it doesn't have to be.

comment 7y ago · link · parent

Mithril.js has global redraws by default. This turns out to solve practically all React's "local redraws only" problems & solutions, and requires less written code in the process.
1
111213
31