Become a fan of Slashdot on Facebook

 



Forgot your password?
typodupeerror
×
Education Businesses OS X Operating Systems Programming Apple IT Technology

Stanford Offers Cocoa Class 91

An anonymous reader writes "Back in the early 90's Stanford University offered a class on Objective-C for students interested in writing applications for NeXTSTEP. After a long hiatus it appears that class will be offered again as CS193E, 'Object-oriented User Interface Programming.' It will be covering the Apple development tools, Objective-C, Foundation and AppKit, and Quartz. Any other schools out there planning or already offering Objective-C courses?"
This discussion has been archived. No new comments can be posted.

Stanford Offers Cocoa Class

Comments Filter:
  • textbooks? (Score:3, Interesting)

    by TomSawyer ( 100674 ) on Thursday December 11, 2003 @01:10PM (#7691452) Homepage
    I wonder if they'll be using O'Reilly's ADC blessed books for texts.
    • As I (poorly) understand it, the difference between Objective-C and C++ is mainly late binding (alal java), a few unimportant semantic changes, and a general simplification of some language idioms.

      What other changes are there? E.g. is there garbage colletion, is there refernce only calling.

      why would a C++ programmer want to program in objective C or vica versa?

      • by MouseR ( 3264 ) on Thursday December 11, 2003 @02:55PM (#7692577) Homepage
        One of the coolest features of Objective-C, also available in Java (though I'm no expert on Java), is introspection.

        Through introspection, an object, or a class object (loosely, that's a static class instance for static methods of your class), can interrogate themselves for variable names and types as well as the functions they support.

        Only with object introspection can you send message (aka, method calls) to objects who may or may not understand (aka, implement), said message.

        With this, i've created a really nifty (and open source) SQLite-based object persistence library called Objective-SQL [mac.com].

        Basically, you just derive a class from my Objective-SQL classes and they can automatically instantiate themselves from SQL table rows through various Find* methods I've implemented in there. Simply change data member values and call [myObject commit] and voila.

        Also, there is relational capabilities given a Category to the system NSString class that allows you to turn an object into a string reference, and this string reference back into an object automatically fetched from the SQL database.

        One could derive the SQLTransport and redirect actual storage and retrieval to other SQL solutions, like PostGre, MySQL, oracle etc.
        • Ever bother to use Enterprise Objects Framework?

          http://developer.apple.com/documentation/WebObje ct s/Enterprise_Objects/index.html
          • I'm a Cocoa developer. I know about EOF, but it's been both canned by Apple, and I am gearing some of my work towards a partial replacement to EOF (at least for my very own needs).

            Objective-SQL also contains a SQLWebForm class whose purpose it to show SQL object data into template pages to yield final html pages.
      • by awhite ( 179035 ) on Thursday December 11, 2003 @04:30PM (#7693787)
        IANAOCP (I Am Not An Objective C Programmer), but from my limited experience, Objective-C and C++ went in pretty much completely opposite directions in how they decided to add object-orientation to C.

        In C++, everything is statically typed, and performance is a primary goal. Objective C has more overhead, but is much more dynamic. Some cool Objective-C features (note: in Objective-C parlance, "message passing" is basically method invocation):

        - Very weak typing. If you want to, you can just pass around all your objects as variables of the built-in type "id", and this allows you to send any message to any object without casting, and of course to build container classes that hold any object. If you want some more typing help from the compiler, you can use typed pointer variables to reference objects, in which case it'll warn you about passing messages that the class doesn't implement.

        - Message forwarding. I've always loved this feature in languages that have it. Makes it so easy to create delegating objects -- you can implement a single "catch-all" type method that allows you to forward any unsupported messages someone passes to your object on to another object.

        - Categories/mix-ins. Add functionality to existing classes without having to extend them. The functionality is automatically given to all instances of the class the program creates.

        - Sending messages to nil (null). Rather than throwing an exception when you try to send a message to a nil reference, Objective-C just returns nil back. Sounds weird, but this actually saves a lot of nil checks in practice.

        - Introspection, which others have mentioned. Facilities to figure out what messages an object or type can respond to, to create new instances given the type name, to send messages based on the method name, etc.

        - Methods as first-class objects. You can elegantly pass around method pointers, and the Cocoa frameworks take advantage of this for GUI callbacks and such. If you're familiar with C# and Java, Objective-C is similar to to C# in this respect, and I much prefer these sorts of method callbacks to Java's system of creating (usually anonymous) listener classes.

        There are a lot of other advanced late-binding things you can do in Objective C too. I have some complains with the language (it's a little too verbose for my tastes, for one), but overall it seems like a great language for building dynamic systems and GUIs.
      • Comment removed (Score:5, Informative)

        by account_deleted ( 4530225 ) on Thursday December 11, 2003 @11:19PM (#7697762)
        Comment removed based on user account deletion
    • Re:textbooks? (Score:1, Interesting)

      by Anonymous Coward
      Possibly... but I would guess they'll just point to the O'Reilly books as extra resources.

      More likely they'll just have the instructor create specific handouts. That was how things were done when I was there... It is cheaper and a lot of times the handouts are better resources for the students as they also serve as notes for the lectures.
  • by Anonymous Coward
    It's called CS 699 - Independent Study.
  • Strange (Score:5, Insightful)

    by nepheles ( 642829 ) on Thursday December 11, 2003 @01:12PM (#7691471) Homepage
    It seems strange that Objective-C has failed to attract the popularity of C++, given that it seems (to me at least) by far the more elegant of the two. It implements object-oriented programming in a much cleaner way than C++, and still loses none of the power of C. What Java should have been, really
  • Why? (Score:2, Troll)

    by altp ( 108775 )
    Why is there a class teaching a specific language and development tools?

    Would it not be better to teach the students HOW to program well, and let them implement the concepts in the language of their choice? Perhaps doing a "Language of your choice, but you can't use the same language twice" kinda thing.

    They would learn OOP, learn how to learn another language, and perhaps actually understand how an algorithm works instead of coping it from the text book in the language that the book goes over.
    • Re:Why? (Score:5, Insightful)

      by JoshWurzel ( 320371 ) on Thursday December 11, 2003 @01:25PM (#7691635) Homepage
      Would it not be better to teach the students HOW to program well

      There is. It's called the rest of the CS program at the school. They teach OOP-concepts, algorithms, etc.

      This class is more specific. And optional. No one is forced to take it. And Cocoa isn't a language, its a set of API's. It just happens to use Objective-C. With macs being such a minority in schools, I don't see why its a problem to have an optional (probably student-run) class to each people how to develop for the mac.
    • Re:Why? (Score:5, Funny)

      by GlassHeart ( 579618 ) on Thursday December 11, 2003 @01:27PM (#7691658) Journal
      Would it not be better to teach the students HOW to program well, and let them implement the concepts in the language of their choice?

      You are right, but have you tried putting that on a resume?

      Languages: None, but I program well and can implement the concepts in a language of my choice
      That's the unfortunate fact of life graduates will have to cope with, so every school must cater to the Real World as well, to some degree.
    • Re:Why? (Score:5, Informative)

      by phch ( 398574 ) on Thursday December 11, 2003 @01:29PM (#7691688)
      This class is in the Stanford CS193 series, which consists of lighter workload classes often taken by students outside the CS department, and geared for specific technologies. I don't believe CS majors get much credit for taking these classes. The core CS classes at Stanford are much less focused on details of specific languages (although Java is featured in the main intro OOP class; I guess you have to pick something).

      Stanford has offered classes in .NET, Microsoft MFC, and Java, so a class in Cocoa is not too surprising.
    • Yes, this seems like a class that should be an elective after the basic OOP course.
      Wouldn't it be better to focus (as an elective course) on cross-platform development like Java [sun.com], which can run on Mac [apple.com]?
      • Re:Why? Don't Know (Score:3, Informative)

        by WasterDave ( 20047 )
        Wouldn't it be better to focus (as an elective course) on cross-platform development like Java, which can run on Mac?

        No, because Java on a Mac runs slowly like you wouldn't believe. Objective-C is faster and, honestly, is no harder than Java.

        Apart from the memory management.

        Dave

        • That's not a troll, it's the truth. I know from experience on my 466MHz G4 that Java is dog slow in OS X. Cocoa programs run much faster than Java programs.
          • Does anybody know why its so slow on Mac? (I'm trolling either) Is problem with Java or the Mac?
            • Re:Slow Java (Score:2, Interesting)

              by oscarmv ( 603165 )
              It's actually only the GUI that's quite slow (and it has improved lately since 1.4.1 got released for the mac and all that). Blame that on Aqua if you wish ;o)

              IIRC, pure number crunching Java benchmarks actually give good results (considering the hardware) compared to other platforms.
          • by McAddress ( 673660 ) on Friday December 12, 2003 @01:23PM (#7703281)
            IANATE (I am not a troll either). I wrote a java implementation of the file browser (Finder), and I am trying to use it to copy a 17.6MB files from my desktop to my home folder, and I have been sitting here for 20 minutes and its nowhere near complete. I could do the same thing on my 533 MHz Celeron in under a minute.
        • GUI toolkits like Swing and even the infamously "native" SWT perform slowly, but the actual JVM on a Mac supposedly performs on average better than the windows JVM.

          Nota bene, this is only what I have heard, and have no evidence.

      • you want 193J (Score:3, Informative)

        I know they offer a similar course in Java because I took it. It just isn't offered for winter quarter. It was a good course, especially considering how new Java was.
    • by John Harrison ( 223649 ) <(moc.liamg) (ta) (nosirrahnhoj)> on Thursday December 11, 2003 @02:38PM (#7692404) Homepage Journal
      I can tell you that 193 courses are optional and do not count towards your degree. They are offered to give students practical exposure to real world concepts and languages that they otherwise would not get. They are often taken by majors in other engineering departments, so that they can get the programming skills they need for their own projects.

      The Stanford CS courses required for graduation are much more theory based than the 193 series. Even without the 193 series (which many students completely ignore), Stanford CS majors learn to program well. The 106 series is considered a model of how to teach students to program. Business Week even did a large article on it a few years ago. Oh, and we get an algorithms course or two as well.

    • Working with a specific system lets you see how
      real-world implementors traded off between
      different desirable goals.

      When theory meets reality, both of them change.

      IIRC, John Lions wrote a little about this in the
      intro to his _Commentary On Sixth Edition UNIX_.
  • by JoshWurzel ( 320371 ) on Thursday December 11, 2003 @01:29PM (#7691698) Homepage
    UC Berkeley has already had a handful of Cocoa and mac development courses, most taught by my roommate. These courses, though student run, earned real CS credits and had labs, projects, etc. He just graduated, so someone else will have to take up the torch. And it won't be me.

    Personally, I think its a great idea. Many, many students get out of CS schools with vague notions of how to write a compiler in LISP, or what the best way to implement XYZ (without understanding why it SHOULD be implemented). As if anyone cares. Macs may be a small market, but a Cocoa class is teaching a useful, marketable skill that can be directly applied to real-world application development.
  • by transient ( 232842 ) on Thursday December 11, 2003 @01:45PM (#7691852)
    Headline should've been:
    [[Stanford alloc] init]
    ;-)
  • by Anonymous Coward
    The link [stanford.edu] to scpd.stanford.edu means that the course will be available both online and on tv to all Stanford students and companies that pay for Stanford courses.

    I wonder if my expired stanford.edu account will let me in to view the courses?
  • by Anonymous Coward
    in Grovers Mill N.J. is offering courses in reality distortion fields, does that count?
  • CMU (Score:1, Interesting)

    by Anonymous Coward
    about 1 year ago(?), CMU started allowing students to teach their own courses. I took a cocoa programming course last semester.
  • course website (Score:5, Informative)

    by patrickoehlinger ( 445411 ) <patrickoehlinger@gmx.net> on Thursday December 11, 2003 @03:56PM (#7693263) Homepage Journal
    Following the schema of all Stanford CS courses, it will soon be at: /class/cs193e/ [stanford.edu]
    Since it already has a "Under construction...", the professor's assistant is probably already busy preparing the page.
  • Schools should focus on the principles of functional and object oriented languages instead of teaching specific languages.

    If you are solid in the principles of programming, the choice of language shouldn't matter. They will never be able to teach you every language out there. I think it would be much better to have an intro to different languages instead. Perhaps they do; don't really know. I don't think that this is a wasted course or anything. Any additional experience is great. Is this meant as
  • Anyone else think this is a bad idea? I mean I dont think a class on a specific set of tools or a platform has any place in a university. I get angry when I hear that places offer courses on .NET so why should it be any different for cocoa? That said.... if i went to stanford Id probably take it....
    • Re:bad idea (Score:1, Insightful)

      by Anonymous Coward
      Because it's optional and not part of the core curriculum, unlike what MS is pushing.
    • I mean I dont think a class on a specific set of tools or a platform has any place in a university

      Why? I think that, beyond the core curriculum and what is required, any non-credit optional courses (which this is, for a CS student) should be welcomed - even classes in, oh, basket-weaving (I'm serious, if it's non-credit and optional, why not? I'm sure there would be people interested in it). I really don't see the problem in offering things beyond what is required, just for the sake of interest or othe

  • ABOUT GODDAMN TIME (Score:3, Insightful)

    by tyrione ( 134248 ) on Thursday December 11, 2003 @06:58PM (#7695692) Homepage
    The only way I could practically learn Objective-C back in the mid-90s was to work @ NeXT, which I eventually did.

    But how the hell it took this long to get it introduced into any University Curriculum is what truly has been pathetic.

    If you can't introduce this technology to the future developers how do you expect to sell it, beyond the "ease of use" paradigm?

    Hopefully Berkley will be next followed by the University of Washington until the entire Pac-10 offers classes.
    • As a Seatllite and Mac fanatic, I would love an obj-c/cocoa class at the University of Washington. Are you sure there isn't one already? If anyone knows, speak up!

      I've been looking for university level courses in Mac programming for over a decade. I'd just about given up when I read this announcement.
    • Next? If you'll notice my other post in this thread, Berkeley has already been here. A few times over.
  • Students teaching their own courses? This is the next logical step, since most crappy schools have students teaching the professors' courses anyway...

    As for "any other schools teaching objective-c (useful on Macs)" ... De Anza? :) It's funny, because... oh, never mind.
    • I have been using Linux for nearly 10 years now, and about 4 years ago I held a 5 week Linux seminar in a university I was in (as a student). I taught a compressed all-in-one course from Linux system administration to programming and using the GNU development tools. I later learned that one of my students was actually part of the faculty. I left that school after a year. =D But for what it's worth the CS students of that school were really active as anything... Some of these "crappy schools" produce good gr
  • by FugiMax ( 181273 ) on Thursday December 11, 2003 @10:39PM (#7697482)
    I'm of the opinion that language-specific classes are great to have at a college level. Not only can a student get a wide sampling of different languages, but I think it can also teach a lot in terms of language theory. (Common threads in languages, differences in languages, etc.) Also, these classes are almost ALWAYS electives. A CS major not wanting to touch a language-specific class doesn't have to -- it's there as a choice.

    I think a diverse choice of classes using different languages and actually going in-depth into a language itself can be helpful. I mean, there are a lot of optimizations in languages, C for example, that are done by taking advantage of the structure of the language itself -- which one can only discover after diving headfirst into a language. I wish someone would have pointed certain things out to me about C or Java that aren't immediately apparent.

    Bottomline, we're not all out to get PhD's and become evolutionary CS people. Some people just want to learn a language or two, get really good at it, and get a job. Not everyone wants to write a thesis on Compiler Optimizations. :)
    • Bottomline, we're not all out to get PhD's and become evolutionary CS people. Some people just want to learn a language or two, get really good at it, and get a job. Not everyone wants to write a thesis on Compiler Optimizations. :) .

      Ah, but I would argue that those wishing to "learn a language or two, get really good at it, and get a job" would be better served by "technical institutes" (no, I don't mean MIT). A market certainly exists for that type of education, and those places usually teach programm

      • I'm not sure I buy the whole "technical school" thing for CS. Ya, if I wanted to be a mechanic or get a quick IT degree, sure, a technical school would be fine. But with something like CS, I find in addition to learning a few languages you DO need the theory. I was just saying that's not ALL you should be given.

        I go to CMU, and I know plenty of people there who have gotten BS in CS and gone on to jobs. I know some who have stayed for Masters. I know very few who have stayed for PhD. So that says to me
      • The subtext of your argument seems to be that
        implementation is the proper business of people
        without intellectual curiosity. I can't agree.
        The software world needs practitioners with
        groundings in theory, and always will.
  • Very Encouraging (Score:2, Insightful)

    by rixstep ( 611236 )
    This is very encouraging. What is needed is support from educational institutions like this. Objective-C can cure the IT world of its C++ woes.
  • Yeah, (Score:2, Informative)

    by ernstp ( 641161 )
    my school does.
    The cource is called Human-Computer Interaction and it's on the CS Department at Lund University (Sweden).

    http://www2.cs.lth.se/dat006/index.html

    I plan on taking it sometime soon, if they don't cancel the whole cource.

    I've seen them using Interface Builder on their labs and such. Unfortunately we only have 14 Macs, so the excercises may get a little crowded..
  • by oscarmv ( 603165 ) <oscarmv@mLISPac.com minus language> on Friday December 12, 2003 @04:39AM (#7698971) Homepage
    I think no one has pointed this out, but IMHO Cocoa is a great environment (if not outright the best) to learn Object Oriented GUI programming. It tends not only to do things How They Should Be Done, but also gently enforce good practices.

    It's not like people doing CS courses don't use a number of tools they'll never use again after they get their degree (LISP compilers anyone? PROLOG? Obscure emulated environments? Did all those and more... learnt Cocoa in my free time, BTW).

    But in the interest of teaching good programming instead of "what's popular out there now" I'd rather have those coming behind me learning something like Cocoa and then adapting to Java or whatever (whose designed BTW is in many parts based on NextStep) than becoming klutzes with whatever has the greatest demand for code monkeys today.

    Just my .2
  • That's probably one of the best OOP environments yet developed. It would be a great intro to OOP. Too bad there's no real live platform on which to experiment.

    Talk of Newtonscript makes me think of soup, and now I'm hungry...
  • Last spring at Oberlin College, I (a student) taught a semester-long "Experimental College" course in Objective-C and the OpenSTEP API.

    I taught it with GNUstep, keeping it straightforward and platform-independent, though most of the students who stuck with the course had Macs of their own.

    A respectable 7 were enrolled, not bad for a program with less than 30 majors.

    Tangentially, I've also completed a number of my assignments for other courses (namely Graphics and Operating Systems) using Objective-

  • I just saw that the U of A is offereing a course for Objective-C/Cocoa. Unfortunately you have to be in the CS major to take it. Not much listed about the course, but here [arizona.edu] it is in all its.... glory?

It was kinda like stuffing the wrong card in a computer, when you're stickin' those artificial stimulants in your arm. -- Dion, noted computer scientist

Working...