I wonder how hard it would be to hack something up like that?
611 karma · joined December 9, 2007
https://www.astropad.com https://www.lunadisplay.com
I wonder how hard it would be to hack something up like that?
I'm on the lookout for nasty code of my own that can be replaced with a state machine.
You'd be crazy to try and build a store like it yourself. Instead, go with FastSpring and spend the time you've saved on your product.
I hope he learns from this, and it kinda sucks my article is gone.
It's too bad this happened, I really hope he learns from this experience.
I'd love to here what HN thinks of it!
http://www.amazon.com/Mindset-Psychology-Success-Carol-Dweck...
Patcher - Thrift One-off/Guilty - Lucene Curious - Django One-off - Log4j
Did not like what I saw in Log4j, was really a mess, far more complex than necessary.
I really need to polish up some of my code and submit them as patches, however that takes time and I've got a product to ship (I'll have to do it after my 1.0 is out)
- (IBAction)analyzeDocument:(NSButton *)sender
{
dispatch_async(dispatch_get_global_queue(0, 0), ^{
NSDictionary *stats = [myDoc analyze];
dispatch_async(dispatch_get_main_queue(), ^{
[myModel setDict:stats];
[myStatsView setNeedsDisplay:YES];
[stats release];
});
});
}
It takes a potentially long running operation, analyze, and put it on a background thread. Once it's done, the UI is updated on the main thread. GCD made that ridiculously easy, but, this is assuming that the objects reference from your block are thread-safe.It may be that the analyze method isn't thread safe, and mutates some state inside the myDoc object. So it made one part of creating async/multi-threaded apps easier, but you still need to be careful with mutating state like that.
I'll just tell myself they had designers so I don't feel to badly about my design skills (i'm a programmer) :)
Understanding it is one thing, but coming up with it independently is different.
Perhaps I just need more practice. Practice makes perfect with math like everything else?
However... when I needed to debug something remote on a running server it was a nightmare. Because everything is based around the Squeak environment it was impossible to SSH in and poke around. The box I was on didn't have a GUI setup so I couldn't use something like VNC (better box would have helped, but still...)
So I found Seaside to be pretty awesome, except the difficult in working with a running server and the lack of docs killed it for me.
"1986 - Brad Cox and Tom Love create Objective-C, announcing "this language has all the memory safety of C combined with all the blazing speed of Smalltalk." Modern historians suspect the two were dyslexic."