Welcome!

Wearables Authors: Pat Romanski, Yeshim Deniz, Shelly Palmer, Elizabeth White, Carmen Gonzalez

Related Topics: Wearables

Wearables: Blog Feed Post

My First Day at Stanford Learning to Program the iPhone

I have downloaded the 17 lectures and 3 supplemental sessions of the CS193P course entitled iPhone Application Development

Before the registrar at Stanford writes me a cease and desist letter, let me state that I am not a student at Stanford. Rather I have downloaded the 17 lectures and 3 supplemental sessions of the CS193P course entitled iPhone Application Development from Open Stanford. According to an article published on the Stanford web site (http://news.stanford.edu/news/2009/may20/million-052009.html) there have been more than a million downloads of the videos and course material. This course ran from April 1, 2009 till June 8, 2009.

You can get the course material in a number of ways. At the ITunes Store just search for ‘Stanford iPhone’ and it should be the first course shown in the iTunes U box. You can also download the material from the course web site at http://www.stanford.edu/class/cs193p/cgi-bin/index.php. While iTunes has all the lectures and slides, the Stanford site also includes the class notes and the assignments.

With everything in place I sat down in my home office to watch lecture 1. I played the lectures on my Windows desktop and had Xcode and the iPhone SDK fired up on my MacBook. The course does not have any information on how you get the Xcode and iPhone tools or how they are configured. These tools are free from Apple and only require that you register as a developer. The Apple tools include an iPhone simulator and that is all you need for the course, owning an iPhone or iTouch is not required. If you do have one of these devices then there is another program at Apple called the iPhone Developer Program that for $99 provides you with the software to test your apps on your iPhone or iTouch and also gives you the ability to submit apps to the App Store.

With everything in place and the lights dimmed (and some snacks nearby) I began the lecture. The video was very well done. A cameraperson was used so that the lecturer, Evan Doll, was always centered in the frame. He remained in the same place adjacent to the screen in the lecture hall and the lighting on him was ideal. When he was speaking the video showed only him. When he spoke of what was on the slides then only the slides were shown. This tells me that the output from his Mac was mixed with the feed of the camera. The sound quality was excellent as he wore a wireless microphone. Although you could not hear students who asked questions, Evan did repeat the question in most instances. I would definitely give the video production four stars.

The lecturers for this course, Evan Doll and Alan Cannistraro, are all Apple employees as Stanford is just down the road from Apple. This means that they bring to the course the insight only an Apple software engineer could have. A senior Apple engineer, Paul Marcos, is also part of the team.

The first 20 minutes of the 1 hour lecture was taken up with the usual information given to students in the first class of any course. As a college teacher I was interested in how the course was to be managed, you probably won’t be. You can skip to the 23:22 mark where the actual course content begins. From this point Evan gave an overview of the devices, the software stack on the devices, and the frameworks used in developing the software. The presentation ended with a demonstration of a simple app that placed a slider on the iPhone and a label that displayed the value of the slider.

It was very handy to be able to watch and pause the demonstration while I did the same steps on my Mac. I felt for Evan when he made some minor slips, which he did notice and correct, only to have the app crash the iPhone simulator. My first attempt also failed to work. Being unfamiliar with the Xcode environment I could not see what I did wrong so I just started over again and the second time it worked perfectly.

The code from the class is also available on the Stanford site but there is minor problem with it. The project expects a pre-release beta 3.0 SDK and I was working with a 2.2 SDK. A little Googling led me to the instructions to how to change the SDK in a project in Xcode. Evan’s code worked perfectly then. This did tell me that the course material was not dependent on a specific version of the SDK and so I will switch to the 3.0 SDK for the rest of my assignments especially as I just updated my phone to 3.0.

The part of the course that I spent the most time on was the assignments. The first assignment (1a) was quite simple and produced an iPhone display with text and the image of your choice. The second assignment was a bit more challenging. The course assumes that you know C programming primarily and that you have some object oriented experience likely with C++ or even C#. The language of the iPhone and the Mac is Objective-C. Like C++ it allows for the writing of standard C code. And like C++ it has been extended to support objects. The first difference I encountered is in the syntax of the object oriented coding. I have worked with C++ and taught courses in it for many years. C++ uses dot notation to access members of an object. Objective-C uses bracket notation. For example:

C++        obj.doSometing(x);

Objective-C:       [obj doSomething:x]

The second assignment (1b) requires you to write a console application for the Mac that uses collections, enumerations, and introspection. If you have never coded in C/C++ before then this is not a course for you. As it was it took me almost three hours to complete the second assignment. I used Google frequently to fill in my gaps in Objective-C knowledge. In the last part of the assignment I spent a half hour trying to find the syntax for casting an object to a string (specifically an NSString) only to discover that I only had to use C syntax as in (NSString *)obj .

There are seven assignments in the course though they may consist of more than one part as in assignment 1. I know that one of the Assignment 2 parts requires assignment 1b. Although there is no one to grade your work you should work on them to get the most from the course. After the seven assignments there is a project of the student’s choosing. This is what I hope will be my first app for the App Store.

When I got my first Mac two years ago and my iPhone last year I always planned to learn to program these machines in their native language. Now is my opportunity. The Stanford lectures are definitely the way to go for me. I’ll write about the course again when I finish it.

UPDATE: Just watched the second lecture and had I done so before starting assignment 1b i would have been finished in much less than three hours. So before I do assignment 2 I will watch lecture 3.

Read the original blog entry...

More Stories By Ken Fogel

In 1980 I bought for myself the most wonderful toy of the day, the Apple ][+. Obsession followed quickly and by 1983 I was writing software for small and medium sized businesses in Montreal for both the Apple and the IBM PC under the company name Omnibus Systems. In the evenings I taught continuing education courses that demystified the computer to the first generation of workers who found themselves with their typewriter on the scrap heap and a PC with WordStar taking its place.

In 1990 I was invited to join the faculty at Dawson College in the Computer Science Technology program. When I joined the program the primary language was COBOL and my responsibility was to teach small systems languages such as BASIC and C/C++.

Today I am now the chairperson and program coordinator of the Computer Science Technology program at Dawson. The program's primary language is Java and the focus is on enterprise programming.

I like to write about the every day problems my students and I face in using various languages and platforms to get the job done. And from time to time I stray from the path and write about what I plan to do, what I actually get around to doing, and what I imagine I am doing.

@omniprof

@ThingsExpo Stories
SYS-CON Events announced today that Taica will exhibit at the Japan External Trade Organization (JETRO) Pavilion at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Taica manufacturers Alpha-GEL brand silicone components and materials, which maintain outstanding performance over a wide temperature range -40C to +200C. For more information, visit http://www.taica.co.jp/english/.
SYS-CON Events announced today that SourceForge has been named “Media Sponsor” of SYS-CON's 21st International Cloud Expo, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. SourceForge is the largest, most trusted destination for Open Source Software development, collaboration, discovery and download on the web serving over 32 million viewers, 150 million downloads and over 460,000 active development projects each and every month.
Enterprises have taken advantage of IoT to achieve important revenue and cost advantages. What is less apparent is how incumbent enterprises operating at scale have, following success with IoT, built analytic, operations management and software development capabilities – ranging from autonomous vehicles to manageable robotics installations. They have embraced these capabilities as if they were Silicon Valley startups. As a result, many firms employ new business models that place enormous impor...
SYS-CON Events announced today that TidalScale will exhibit at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. TidalScale is the leading provider of Software-Defined Servers that bring flexibility to modern data centers by right-sizing servers on the fly to fit any data set or workload. TidalScale’s award-winning inverse hypervisor technology combines multiple commodity servers (including their ass...
As popularity of the smart home is growing and continues to go mainstream, technological factors play a greater role. The IoT protocol houses the interoperability battery consumption, security, and configuration of a smart home device, and it can be difficult for companies to choose the right kind for their product. For both DIY and professionally installed smart homes, developers need to consider each of these elements for their product to be successful in the market and current smart homes.
SYS-CON Events announced today that MIRAI Inc. will exhibit at the Japan External Trade Organization (JETRO) Pavilion at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. MIRAI Inc. are IT consultants from the public sector whose mission is to solve social issues by technology and innovation and to create a meaningful future for people.
In his Opening Keynote at 21st Cloud Expo, John Considine, General Manager of IBM Cloud Infrastructure, will lead you through the exciting evolution of the cloud. He'll look at this major disruption from the perspective of technology, business models, and what this means for enterprises of all sizes. John Considine is General Manager of Cloud Infrastructure Services at IBM. In that role he is responsible for leading IBM’s public cloud infrastructure including strategy, development, and offering ...
As hybrid cloud becomes the de-facto standard mode of operation for most enterprises, new challenges arise on how to efficiently and economically share data across environments. In his session at 21st Cloud Expo, Dr. Allon Cohen, VP of Product at Elastifile, will explore new techniques and best practices that help enterprise IT benefit from the advantages of hybrid cloud environments by enabling data availability for both legacy enterprise and cloud-native mission critical applications. By rev...
SYS-CON Events announced today that NetApp has been named “Bronze Sponsor” of SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. NetApp is the data authority for hybrid cloud. NetApp provides a full range of hybrid cloud data services that simplify management of applications and data across cloud and on-premises environments to accelerate digital transformation. Together with their partners, NetApp emp...
SYS-CON Events announced today that Dasher Technologies will exhibit at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 - Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Dasher Technologies, Inc. ® is a premier IT solution provider that delivers expert technical resources along with trusted account executives to architect and deliver complete IT solutions and services to help our clients execute their goals, plans and objectives. Since 1999, we'v...
SYS-CON Events announced today that TidalScale, a leading provider of systems and services, will exhibit at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 - Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. TidalScale has been involved in shaping the computing landscape. They've designed, developed and deployed some of the most important and successful systems and services in the history of the computing industry - internet, Ethernet, operating s...
SYS-CON Events announced today that Massive Networks, that helps your business operate seamlessly with fast, reliable, and secure internet and network solutions, has been named "Exhibitor" of SYS-CON's 21st International Cloud Expo ®, which will take place on Oct 31 - Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. As a premier telecommunications provider, Massive Networks is headquartered out of Louisville, Colorado. With years of experience under their belt, their team of...
Widespread fragmentation is stalling the growth of the IIoT and making it difficult for partners to work together. The number of software platforms, apps, hardware and connectivity standards is creating paralysis among businesses that are afraid of being locked into a solution. EdgeX Foundry is unifying the community around a common IoT edge framework and an ecosystem of interoperable components.
Join IBM November 1 at 21st Cloud Expo at the Santa Clara Convention Center in Santa Clara, CA, and learn how IBM Watson can bring cognitive services and AI to intelligent, unmanned systems. Cognitive analysis impacts today’s systems with unparalleled ability that were previously available only to manned, back-end operations. Thanks to cloud processing, IBM Watson can bring cognitive services and AI to intelligent, unmanned systems. Imagine a robot vacuum that becomes your personal assistant tha...
Infoblox delivers Actionable Network Intelligence to enterprise, government, and service provider customers around the world. They are the industry leader in DNS, DHCP, and IP address management, the category known as DDI. We empower thousands of organizations to control and secure their networks from the core-enabling them to increase efficiency and visibility, improve customer service, and meet compliance requirements.
SYS-CON Events announced today that IBM has been named “Diamond Sponsor” of SYS-CON's 21st Cloud Expo, which will take place on October 31 through November 2nd 2017 at the Santa Clara Convention Center in Santa Clara, California.
Amazon is pursuing new markets and disrupting industries at an incredible pace. Almost every industry seems to be in its crosshairs. Companies and industries that once thought they were safe are now worried about being “Amazoned.”. The new watch word should be “Be afraid. Be very afraid.” In his session 21st Cloud Expo, Chris Kocher, a co-founder of Grey Heron, will address questions such as: What new areas is Amazon disrupting? How are they doing this? Where are they likely to go? What are th...
In a recent survey, Sumo Logic surveyed 1,500 customers who employ cloud services such as Amazon Web Services (AWS), Microsoft Azure, and Google Cloud Platform (GCP). According to the survey, a quarter of the respondents have already deployed Docker containers and nearly as many (23 percent) are employing the AWS Lambda serverless computing framework. It’s clear: serverless is here to stay. The adoption does come with some needed changes, within both application development and operations. Tha...
SYS-CON Events announced today that Avere Systems, a leading provider of enterprise storage for the hybrid cloud, will exhibit at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 - Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Avere delivers a more modern architectural approach to storage that doesn't require the overprovisioning of storage capacity to achieve performance, overspending on expensive storage media for inactive data or the overbui...
SYS-CON Events announced today that N3N will exhibit at SYS-CON's @ThingsExpo, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. N3N’s solutions increase the effectiveness of operations and control centers, increase the value of IoT investments, and facilitate real-time operational decision making. N3N enables operations teams with a four dimensional digital “big board” that consolidates real-time live video feeds alongside IoT sensor data a...