News for hackers. Stuff that matters.

amirshim

Quite nice, might need a few more options/tweaks.

For younger kids, you might want to have fewer colors, and make the color circles on the palette bigger. It would be nice if the interface rotated on page where you choose the photo. And a way to clear the photo completely, as opposed to having to paint it all in white. I looked for an undo button, but I think it was just reflexive... you probably don't need it. Something that looks like an eraser might be good for kids, as opposed to painting with white. And maybe a few more drawings with big blocks to color and less small nooks to fill (hard for kids).

Overall, great MVP.

sure... you can run coffeescript on node on windows, see: http://blog.tatham.oddie.com.au/2011/03/16/node-js-on-window...

And if you don't want to use vs2010, there is also gedit on windows which has support for coffeescript.

As for online, what I do is I have an online coffeescript editor (http://ace.ajax.org/), and when I save a file (with extension .coffee), compile it to js in the browser and save both the original .coffee file and .js file back to the server.

Re:Ask HN: Best Python Framework for Google App Engine? on Thursday June 30, 2011 @10:49PM (#2716798)
At both http://albumpl.us and http://jaavuu.com we use webapp plus pytenjin: http://www.kuwata-lab.com/tenjin/pytenjin-users-guide.html

In addition, we have a small home-grown framework ("glue") that holds it together, but it's probably only about 100-200 lines of code. The advantage is that we know it and can maintain/add features easily.

But then again we don't really need a low end CMS, which is what many of these other frameworks try to provide.

Re:Poll: Have you moved from JavaScript to CoffeeScript? on Wednesday June 22, 2011 @12:46PM (#2683924)
Titanium is a mixed bag. For simple applications, it's great, but as soon as you need to do something a little bit complicated, the learning curve goes up quite a bit.

For example, in my app (http://iphone.albumpl.us) I had to write a couple of small custom objective-c modules to get some camera/image stuff to have sufficient performance. But overall being able to write most of it in CoffeeScript, is so much better (enjoyment-wise and speed-wise) than having to write everything in objective-c.

Re:Poll: Have you moved from JavaScript to CoffeeScript? on Wednesday June 22, 2011 @11:26AM (#2683511)
CoffeeScript is amazing, I use it for everything including writing native iPhone apps (using titanium). Search for Album Plus in the app store. or visit http://www.albumpl.us/
Re:Conway's Game of Life in CoffeeScript on Tuesday May 17, 2011 @11:18AM (#2556596)
great!
Re:Conway's Game of Life in CoffeeScript on Tuesday May 17, 2011 @01:04AM (#2555339)
I love CoffeeScript, except that it makes me hate writing javascript code now :) Thanks @jashkenas for an amazing language.

I personally like code like this:

  countNeighbors: (cell) ->
    neighbors = 0
    neighbors += @isAlive cell.row+x, cell.col+y for x in [-1..1] when x || y for y in [-1..1]
    neighbors 
  isAlive: (row, col) -> if @world[row] and @world[row][col] and @world[row][col].live then 1 else 0
but you have to be careful, since putting a space before the "+x" will cause some bad stuff to happen. Maybe I shouldn't drop so many parenthesis.

@jashkenas can you fix [-10..10] (constant boundary) loops to not check for increasing/decreasing :) I can't think of an edge case that breaks it.