News for hackers. Stuff that matters.

omnidan

Re:Left-pad as a service on Thursday March 24, 2016 @01:48PM (#11354820)
There kinda is! Have you heard of "Enterprisify"? It generates Java names like that: http://projects.haykranen.nl/java/
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.

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? :)

Re:Show HN: prm – A minimal project manager for the terminal on Saturday September 19, 2015 @08:13AM (#10244068)
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

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/

That's pretty cool. Sometimes I wish more people were into biology and tech, it's a good combination that I rarely see.
Re:Show HN: Hacker News desktop app made with Electron and Node on Saturday September 19, 2015 @06:51AM (#10243905)
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

Re:Show HN: prm – A minimal project manager for the terminal on Saturday September 19, 2015 @06:48AM (#10243900)
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?
Re:Show HN: A Slack community for (friendly) bot makers on Friday September 18, 2015 @05:19PM (#10242121)
Nice! I think it's time for me to create a slack channel for coffea (https://github.com/caffeinery/coffea) ;)
Re:Show HN: Pineapple, a standalone IPython front end for Mac on Friday September 18, 2015 @05:18PM (#10242112)
Looks great, but why is the dmg so big (104 MB)?
Re:Show HN: SpeckJS – Comment Driven Development on Friday September 18, 2015 @05:16PM (#10242105)
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

Re:Show HN: GHFS – GitHub repos in your filesystem on Friday September 18, 2015 @05:14PM (#10242092)
> 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?

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)

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.

Show HN: Atom Shell Version Management À La “n”

https://github.com/omnidan/asv

I wrote a little tool for myself, because I got annoyed about keeping my atom-shell version up-to-date and having to run ~/Downloads/atom-shell-v0.20.5-darwin-x64/Atom.app/Contents/MacOS/Atom app/ to execute my applications. Since other people might have the same problem, I thought I'd share it with you guys.ASV (https://github.com/omnidan/asv) let's you easily manage your atom-shell versions...

( Read More... | no comments | 2 points | on HN )