Better HN
topnewbestaskshowjobs
Log inSign up

omnidan

38 karma · joined Jan 12, 2015 (11y ago) · 23 submissions

Co-Founder @TouchLay

has a passion for simplicity and structure

redux-undo, coffea and node-emoji maintainer /r/npm moderator, Developer, Web Enthusiast

[ my public key: https://keybase.io/omnidan; my proof: https://keybase.io/omnidan/sigs/3gV7Zxn5QbCoRf2gS103-Y4ZHEucENtMx_UwaXpBKXM ]

https://omnidan.net - https://github.com/omnidan

Submissions

comment 10y ago · link · parent

There kinda is! Have you heard of "Enterprisify"? It generates Java names like that: http://projects.haykranen.nl/java/

2.

Show HN: Redux-ignore – Avoid perf problems in huge apps by skipping subtrees(github.com ↗)

8 points · by omnidan · 11y ago · discuss

3.

Show HN: Redux-recycle – Reset the redux state on certain actions(github.com ↗)

1 points · by omnidan · 11y ago · discuss

4.

Show HN: Redux-ignore – Ignore redux actions by array or filter function(github.com ↗)

1 points · by omnidan · 11y ago · discuss

comment 11y ago · link · parent

I think it is too. Its simplicity is what allowed me to create `redux-undo` as it is - it's basically a function that returns a new reducer function which is enhanced with undo-functionality.

So much more can be done with this concept - and it's nothing special - sometimes making things simpler is the best way to solve a problem. Redux is a great example for that.

comment 11y ago · link · parent

It's a boilerplate for a project that uses react (https://facebook.github.io/react/), redux (https://rackt.github.io/redux/) and redux-undo (https://github.com/omnidan/redux-undo).

I've configured it so that it uses hot reloading (only refresh the parts of the web app that changed) plugins that also show the error in the browser while you're developing.

Does that clear it up a bit? :)

7.

Show HN: Redux-undo-boilerplate – with hot reloading and error handling(github.com ↗)

20 points · by omnidan · 11y ago · 6 comments

8.

Show HN: Asv – Electron Version Management à la “n” and “m”(github.com ↗)

2 points · by omnidan · 11y ago · discuss

comment 11y ago · link · parent

Alright, I tried it out, but it doesn't seem to work on fish :(

Here's the issue: https://github.com/eivind88/prm/issues/2

comment 11y ago · link · parent

Interesting idea - the design really needs some work, though. Especially the mobile "app", which is just the website?

BTW: the link in your email goes to http://dqprogram.php/

comment 11y ago · link · parent

That's pretty cool. Sometimes I wish more people were into biology and tech, it's a good combination that I rarely see.

comment 11y ago · link · parent

Electron really should be treated like `node` and be a dependency. Of course you could still package your apps with Electron, and you can do that with node too (if you wanted to), still nobody distributes node applications like that.

Actually, I tried fixing that problem with `asv`: https://news.ycombinator.com/item?id=10244073

comment 11y ago · link · parent

Very nice. How well does this work with the `fish` shell? Also, have you thought about setting an envvar that stores the current project name so you can do things like display it in your shell prompt?

comment 11y ago · link · parent

Nice! I think it's time for me to create a slack channel for coffea (https://github.com/caffeinery/coffea) ;)

comment 11y ago · link · parent

Looks great, but why is the dmg so big (104 MB)?

comment 11y ago · link · parent

Amazing. And it even works with Atom :)

Is there a utility that automatically creates the test files in a specific directory? Would be nice to add speckjs to `package.json` so it builds and runs the tests before, for example, publishing. Is something like this possible? Or what would be the best way to automate the generation - is this even what you intended?

EDIT: I just tried it out and it doesn't seem to work for me (I'm probably doing something wrong :D) - would be great if you could help me out: https://github.com/speckjs/speckjs/issues/150

comment 11y ago · link · parent

> The GitHub API is rate-limited, and this makes a lot of API calls. Don't be surprised if things start to fall apart under load.

Under normal usage (read: not running scripts on GHFS, etc), does GHFS get to the GitHub API limits? Do you use caching? Do you regularly use it to check out projects on GitHub instead of cloning them manually? Did you ever get blocked by the API?

comment 11y ago · link · parent

I haven't tested it yet, but it should. The magic behind redux-undo is a reducer enhancer (higher order reducer) - it returns a function that processes undo/redo and then (if appropriate) calls your reducer. If your reducer uses immutable data-structures, redux-undo will simply store your data (immutable or not) in the history.

redux-undo itself doesn't use immutable data structures, though (for dependency reasons). However, I do make sure not to change any data directly. (you know, the usual redux reducer guidelines)

comment 11y ago · link · parent

That's an interesting question. The simplest way would be listening to state changes in the store and then syncing the state with the server. Since undos/redos are normal redux actions, you can just handle them like any other action in redux.

For example, in an application I wrote, I do `store.subscribe(autoSaveFunction)` which will automatically save all changes to the state. Of course, you can also only store parts of the state, etc, but this is more redux related than redux-undo related.

20.

Show HN: Redux-undo – Simple undo/redo functionality for Redux state containers(github.com ↗)

41 points · by omnidan · 11y ago · 4 comments

21.

Simple real-time Reddit/HN-inspired social network crafted with React and Meteor(now.omnidan.net ↗)

3 points · by omnidan · 11y ago · discuss

22.

Show HN: Atom Shell Version Management À La “n”(github.com ↗)

2 points · by omnidan · 11y ago · discuss