HNHacker News
TopNewBestAskShowJobs

omnidan

38 karma · joined January 12, 2015

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

submissionscomments
omnidan··on Left-pad as a service
There kinda is! Have you heard of "Enterprisify"? It generates Java names like that: http://projects.haykranen.nl/java/
omnidan··on Show HN: Redux-undo-boilerplate – with hot reloading and error handling
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.

omnidan··on Show HN: Redux-undo-boilerplate – with hot reloading and error handling
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? :)

omnidan··on Show HN: prm – A minimal project manager for the terminal
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

omnidan··on Show HN: DayQuant- an app that helps you quantify and analyze your daily life
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/

omnidan··on Open Tree of Life: Comprehensive, dynamic and digitally-available tree of life
That's pretty cool. Sometimes I wish more people were into biology and tech, it's a good combination that I rarely see.
omnidan··on Show HN: Hacker News desktop app made with Electron and Node
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

omnidan··on Show HN: prm – A minimal project manager for the terminal
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?
omnidan··on Show HN: A Slack community for (friendly) bot makers
Nice! I think it's time for me to create a slack channel for coffea (https://github.com/caffeinery/coffea) ;)
omnidan··on Show HN: Pineapple, a standalone IPython front end for Mac
Looks great, but why is the dmg so big (104 MB)?
omnidan··on Show HN: SpeckJS – Comment Driven Development
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

omnidan··on Show HN: GHFS – GitHub repos in your filesystem
> 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?

omnidan··on Show HN: Redux-undo – Simple undo/redo functionality for Redux state containers
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)

omnidan··on Show HN: Redux-undo – Simple undo/redo functionality for Redux state containers
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.