News for hackers. Stuff that matters.
Re:Psd.js: A Photoshop Document Parser in CoffeeScript by DarkMeld on Tuesday January 31, 2012 @12:23PM (#3534187)
"No one likes Photoshop..."

I fucking love Photoshop

Re:Psd.js: A Photoshop Document Parser in CoffeeScript by untog on Tuesday January 31, 2012 @12:41PM (#3534274)
I have a really hard time getting along with Photoshop as a web design tool. For touching up photos it's fantastic, but I far prefer Illustrator, or even better, Fireworks. Fireworks in particular has a great vector/raster hybrid that I love.

But I'm sure I would get used to Photoshop if I had to.

Re:Psd.js: A Photoshop Document Parser in CoffeeScript by robin_reala on Tuesday January 31, 2012 @01:01PM (#3534359)
I’ve become used to Photoshop because I’ve had to (moved to a different company) but it’s seriously not as good as Fireworks for web.
Re:Psd.js: A Photoshop Document Parser in CoffeeScript by oneplusone on Tuesday January 31, 2012 @04:27PM (#3535284)
I think the coolness about hating Photoshop comes from Photoshop on Mac being a 2nd class citizen. The Windows version of Photoshop is better in every way. It is very stable and has an excellent UI (though a few of the older dialogs could use an update).

The Mac version on the other hand is a pain in the ass to use. I operate at about 70% efficiency when using the Mac over Windows version.

Re:Psd.js: A Photoshop Document Parser in CoffeeScript by jonknee on Tuesday January 31, 2012 @04:44PM (#3535345)
Do you have any specifics? The UIs are very similar. They don't use the OS widgets on either platform to keep things consistent and if you know one you know the other. So much so that I'm not a fan of the Mac UI too much because it feels like a Windows app.
Re:Psd.js: A Photoshop Document Parser in CoffeeScript by AJ007 on Tuesday January 31, 2012 @07:24PM (#3535979)
That is interesting, its the first time I've heard that. I've been using Photoshop on Windows since at least 1999 and can not imagine life without it. It never crashes (everything else I use does.)
Re:Psd.js: A Photoshop Document Parser in CoffeeScript by ronnier on Tuesday January 31, 2012 @05:54PM (#3535615)
Same here. I'm thankful for the brains that went into developing such a tool, just think about the amount of research, mathematics, and algorithms required to do even some of the simple tasks in Photoshop.
Re:Psd.js: A Photoshop Document Parser in CoffeeScript by alexobenauer on Tuesday January 31, 2012 @12:51PM (#3534320)
I tried out the demo, but it says "not a PSD file" for every PSD file I gave it.

If it works, I would really look forward to this.

Re:Psd.js: A Photoshop Document Parser in CoffeeScript by RandallBrown on Tuesday January 31, 2012 @01:52PM (#3534618)
Same problem. I'm using Safari on a Mac.
Re:Psd.js: A Photoshop Document Parser in CoffeeScript by devongovett on Tuesday January 31, 2012 @02:02PM (#3534662)
Won't work in Safari because Safari lacks FileReader support. Try in Chrome or Firefox.
Re:Psd.js: A Photoshop Document Parser in CoffeeScript by andrewfelix on Tuesday January 31, 2012 @04:56PM (#3535385)
Me too. Chrome 16.0.912.77
Re:Psd.js: A Photoshop Document Parser in CoffeeScript by tudorizer on Wednesday February 01, 2012 @07:01AM (#3537574)
Same for me. What's up?
Re:Psd.js: A Photoshop Document Parser in CoffeeScript by qqqqqq on Tuesday January 31, 2012 @03:29PM (#3535029)
Well that's weird. I tried giving the demo a Photoshop CS5 file and it doesn't like that. I thought maybe it was a parsing problem, since I remember there being something about the latest Photoshops doing something to PSD's. PSD's made in Photoshop 7 do not seem to work either.

I wonder what is going on? I've tried this on Chrome 16 and Firefox 10.

Well that's weird. I tried giving the demo a Photoshop CS5 file and it doesn't like that. I thought maybe it was a parsing problem, since I remember there being something about the latest Photoshops doing something to PSD's. PSD's made in Photoshop 7 do not seem to work either.

I wonder what is going on? I've tried this on Chrome 16 and Firefox 10.

-- Edit:

Oh, it looks like browsers don't appear to be sending the MIME-type. In fact, there appears to be a lot of file types which I'm randomly throwing into filereader that don't appear to have any MIME-type attached to them. How very interesting indeed!

Re:Psd.js: A Photoshop Document Parser in CoffeeScript by thristian on Tuesday January 31, 2012 @10:33PM (#3536531)
If I recall correctly, Adobe has not published PSD file-format specifications for anything past Photoshop 6, so supporting anything newer than that is likely to involve a lot of reverse-engineering and heartache.
Re:Psd.js: A Photoshop Document Parser in CoffeeScript by tlrobinson on Tuesday January 31, 2012 @06:38PM (#3535825)
Little known fact: Photoshop (and most other Adobe apps) comes with a JavaScript interpreter you can use to script it.
Re:Psd.js: A Photoshop Document Parser in CoffeeScript by elliottcarlson on Tuesday January 31, 2012 @03:07PM (#3534945)
Unrelated to topic; Devon - the z-index of your static nav is below the discus comments. Add a "z-index: 2" for the #navigation CSS and it fixes it.
Re:Psd.js: A Photoshop Document Parser in CoffeeScript by devongovett on Tuesday January 31, 2012 @04:36PM (#3535311)
Thanks, fixed!
Re:Psd.js: A Photoshop Document Parser in CoffeeScript by mikehuffman on Tuesday January 31, 2012 @07:35PM (#3536013)
Well, it would appear that this is indeed "bad ass js". I can't for the life of me think of a way to use this, but it is very, very bad ass.
Re:Psd.js: A Photoshop Document Parser in CoffeeScript by ghempton on Tuesday January 31, 2012 @04:31PM (#3535296)
Love the idea and want to use this, but crashed the browser when I tried a simple psd.
Re:Psd.js: A Photoshop Document Parser in CoffeeScript by DonnyV on Tuesday January 31, 2012 @01:38PM (#3534547)
Why CoffeeScript? Am I missing something or wouldn't have better performance with straight javascript?
Re:Psd.js: A Photoshop Document Parser in CoffeeScript by DougBTX on Tuesday January 31, 2012 @01:51PM (#3534610)
Why do you think there would be a performance aspect? The JavaScript generated by the CoffeeScript compiler looks just like well written JavaScript. (But without the comments, grumble grumble.)
Re:Psd.js: A Photoshop Document Parser in CoffeeScript by rimantas on Tuesday January 31, 2012 @02:49PM (#3534862)
Try this:

  ###
  Your comment there
  ###
Re:Psd.js: A Photoshop Document Parser in CoffeeScript by ehsanu1 on Tuesday January 31, 2012 @02:19PM (#3534729)
CoffeeScript can even be faster than hand-written JavaScript. See this comment I digged up by jashkenas: http://news.ycombinator.com/item?id=2443138

Also, from the CoffeeScript website:

The compiled output is readable and pretty-printed, passes through JavaScript Lint without warnings, will work in every JavaScript implementation, and tends to run as fast or faster than the equivalent handwritten JavaScript.

http://coffeescript.org/

Re:Psd.js: A Photoshop Document Parser in CoffeeScript by tlrobinson on Tuesday January 31, 2012 @03:12PM (#3534960)
It's equally possible to write CoffeeScript that's slower than the equivalent JavaScript: https://news.ycombinator.com/item?id=3371471

To get the most performance out of any language you need to understand it very well.