Lecture 2: MVVM and the Swift Type System

Lección 2 de 1513%

Sigue así. Cada lección te acerca más a tu certificado.

Sobre esta lección

The series of video lectures given to Stanford University students in Spring of 2020 continues with a conceptual overview of the architectural paradigm underlying the development of applications for iOS: MVVM. In addition a key concept in the Swift Programming Language, its type system, is explained. The Memorize demonstration continues, incorporating MVVM. It is impossible to develop applications for iOS using SwiftUI without using the MVVM architecture for organizing your code. This lecture explains what that is and then demonstrates how it works in our demonstration application. SwiftUI development happens entirely in the programming language Swift. Swift is unique in its support of most modern language features, including both object-oriented programming and functional programming. Since functional programming is new to most Stanford students, this lecture starts the process of explaining how it works by covering the basics of Swift’s type system, including structs and classes, generics and functions as types. The demonstration then moves to the next level using the MVVM architecture (including creating a Model, a ViewModel, expressing user’s intent from the View) and utilizing Swift features like generics and functions as types. After this lecture, students take over the development of Memorize for their first assignment. Archived course materials (homework assignments and lecture slides) are available at https://cs193p.stanford.edu.

Sobre este curso

A Apple lançou recentemente o SwiftUI, que é um framework de interface para a linguagem de programação Swift e que mudou completamente como você costuma programar apps iOS. Isso inclusive muda como criar apps para macOS, watchOS (Apple Watch), tvOS (Apple TV) e claro também para iPhone e iPad. Conectado a isso, a Stanford começou recentemente sua formação em Ciência da Computação chamado "S193p - Developing Apps for iOS" e conta com aulas do Paul Hegarty, um cara sensacional e já foi contratado no passado pelo Steve Jobs para trabalhar como Vice Presidente do setor de engenharia da NeXT. Ele sabe MUITO do assunto, da Apple, do ecossistema iOS e esse curso Swift e SwiftUI é a formação oficial de Stanford, tudo disponível de graça.

Lección 2 de 15Nivel: principianteDuración total: 18h 29m

Lo que aprenderás en este curso:

  • Dominar la sintaxis y fundamentos de Swift
  • Diseñar interfaces con SwiftUI o UIKit
  • Gestionar datos y almacenamiento en aplicaciones iOS
  • Implementar funcionalidades nativas del iPhone/iPad