Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Can you tell me why the design of Cocoa is stupid? I'm not disagreeing with you - going through the hoops required to play more than 5s of sound on the iPhone is a pretty crap way to spend an evening.

Interface Builder is flawed - but perhaps I haven't used it enough to appreciate its strengths.



Sure. Here's the execution tree necessary to "Hello World" in Cocoa---at least as given in the Apple tutorial I followed. It's possible to cut it down, but only after you've digested all of the material Apple lays in front of you.

  main()
  |
  -> UIApplicationMain()
    |
    -> Info.plist (Never referenced by name!)
       |
       -> MainWindow.xib (Interface Builder. Contains no code!)
          |
          -> HelloWorldAppDelegate .h/.m (Not clearly indicated)
            |
            -> didFinishLaunching()
              |
              -> IBOutlet UIWindow *window
              |
              -> *myViewController
              |
              -> ControllerView (IB Nib, needs dragged connection)
              |
              -> Etc.
              |
              -> HelloWorld ?


Ok, that was easy. Now, why design patterns in general are stupid? Do you mean that all|some|few of them are stupid, or that the very idea of having design patterns is stupid?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: