617 karma · joined Aug 30, 2018 (8y ago) · 191 submissions
1.
Show HN: Open-sourced high quality automation API and IDE for Mac(github.com ↗)
2 points · by sephoric · 7y ago · discuss
comment 7y ago · link · parent
comment 7y ago · link · parent
comment 7y ago · link · parent
At the end of the day, I look at it this way: I'm able to live a full and happy life without a smart phone, the only thing I'm missing is the ability to call someone. That's where a phone comes in handy.
comment 7y ago · link · parent
comment 7y ago · link · parent
comment 7y ago · link · parent
14.
Request HN: Can Someone Make a Dumb Phone for USA?
30 points · by sephoric · 7y ago · 37 comments
comment 7y ago · link · parent
16.
Show HN: Autumn (macOS window manager) is going open source(sephware.com ↗)
13 points · by sephoric · 7y ago · 2 comments
comment 7y ago · link · parent
comment 7y ago · link · parent
comment 7y ago · link · parent
comment 7y ago · link · parent
comment 7y ago · link · parent
https://github.com/diegohaz/constate/blob/master/src/index.t...
comment 7y ago · link · parent
Since it's basically just doing eval(loadFile(...)), any language with eval() can do this, for better or worse. Which is like most of them. Perl, Python, Ruby, and Lua, to name the most common.
comment 7y ago · link · parent
comment 7y ago · link · parent
comment 7y ago · link · parent
Create a data loader hook that loads your data in a one-shot effect (you pass it the identities array), and which returns either a valid view (an error or loading view) and no data, or no view and valid data of type T. Then you can just do:
const loader = useDataLoader(async () => {
const a = await getDataA();
const b = await getDataB(a);
return b.data;
});
return loader.view || <MyView data={loader.data} />
I've been using this for a few months and it's amazingly clean compared to render-props. I hope this gets pulled into the React standard library.comment 7y ago · link · parent
comment 7y ago · link · parent