Stanford Offers Cocoa Class
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?"
I wonder if they'll be using O'Reilly's ADC blessed books for texts.
If you disagree then it must be overrated, redundant or trolling.
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
((lambda x ((x))) (lambda x ((x))))
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.
You are right, but have you tried putting that on a resume?
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.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).
.NET, Microsoft MFC, and Java, so a class in Cocoa is not too surprising.
Stanford has offered classes in
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.
irb(main):001:0>
It's called worse is better. Read it and weep.
To a Lisp hacker, XML is S-expressions in drag.
The link 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?
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
I write a blog now, you should be afraid.
in Grovers Mill N.J. is offering courses in reality distortion fields, does that count?
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.
Lasers Controlled Games!
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.
Lasers Controlled Games!
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.
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.
Following the schema of all Stanford CS courses, it will soon be at: /class/cs193e/
Since it already has a "Under construction...", the professor's assistant is probably already busy preparing the page.
>> Had I been going to bed earlier every night? Have I been sleeping later? Has Tyler been in charge longer and l
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.
Introspection isn't possible without late binding, but not all languages with late binding have introspection. In Java (and other languages) introspection is called Reflection. It simply allows the attributes of an object to be queried. I don't program in C++, but from my understanding, it doesn't have this feature.
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 a introduction to GUIs? If that is the case, I'm all for it. Otherwise, I think there would be more benefitial courses in the long run.
Not everything is analogous to cars. Car analogies rarely work.
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.
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.
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.
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.
why would a C++ programmer want to program in objective C or vica versa?
This is one of the best descriptions of the difference between C++ and Obj-C, and the benefits of dynamic binding, that I've ever happened across.
-jcr
The only title of honor that a tyrant can grant is "Enemy of the State."
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..
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.
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.
.2
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
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.
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...
There exists no way of exchanging information without making judgments. --Bene Gesserit Axiom