TeamTreeHouse_Network_Programming_with_Swift_2

در این آموزش تصویری با مباحث مربوط به برنامه نویسی شبکه و ابنترنت در Swift 2 آشنا می شوید.

مباحثی مانند اتصال به وب سرویس، ارسال و دریافت داده از طریق اینترنت، خواندن اطلاعات با فرمت  JSON در Swift 2 برای برنامه نویسان iOS در این مجموعه آموزش شرح داده شده اند.

این دوره آموزشی محصول موسسه  TeamTreeHouse است.

سرفصل های دوره:

  • مدل سازی پیش بینی هوا
  • Stubbing داده
  • مدل سازی پیش بینی داده
  • واکشی داده از وب
  • رابط ابزارهای برنامه نویسی
  • رابط های برنامه کاربردی و وب
  • ساخت یک URL
  • ساخت یک درخواست ساده شبکه
  • قالب JSON
  • نوشتن همزمان کد شبکه
  • واکشی داده از وب
  • مدیریت خطاهای شبکه
  • پیاده سازی پیش بینی مشتری
  • از JSON به CurrentWeather
  • تست پشته شبکه
  • شاخص فعالیت
  • و…

عنوان دوره:  TeamTreeHouse Network Programming with Swift 2

مدت زمان دوره: 3 ساعت و 8 دقیقه

نویسنده:  Pasan Premaratne

 توضیحات:

Network Programming with Swift 2

Pasan Premaratne
188-minute


About this Course

In this project, we're going to build a weather app together and broaden our understanding of Swift and Cocoa Touch frameworks. We will start by learning foundational concepts like networking and concurrency while building on our existing knowledge of data modeling, Auto Layout and more. We�ll even take a look at how we can structure our code better and construct decoupled classes and structs that lead to greater code reuse. By the end of this project you will have built your second iOS app and be well on your way to becoming an iOS developer.
What you'll learn

Networking
Concurrency
JSON
NSURLSession


Modeling Forecast Data

While the Internet is where we'll be getting our data, we don't need it to actually build our app. Over the next set of videos, let's use some fake data to build the model and UI, and get a working app together.

 5 steps
Introduction

3:45
Modeling the Current Weather

7:22
An Icon Enum

7:10
Stubbing the Data

8:33
Recap: Modeling Forecast Data

3 questions
Fetching Data From the Web

Even though we use the Web in lots of ways in our daily lives, communicating with the Web and interacting with the information we get is not a trivial task. In this stage we first take a look at some basic networking concepts like making HTTP requests. Then we learn about JSON and how information is transferred over the web when making simple network requests.

 9 steps
Application Programming Interface

9:12
How Do We Get Data From the Web?

5:54
APIs and the Web

6 questions
Constructing a URL

7:19
Making a Simple Network Request

4:20
JavaScript Object Notation

5:19
A History Lesson in Concurrency

4:53
Writing Concurrent Networking Code

9:21
Review: Fetching Data From the Web

7 questions
Protocol Oriented Networking

Our network code works, but all the code is jammed into the view controller. We need to separate functionality into distinct types and make our code more reusable. Over the next few videos, we're going to rewrite our network code in a very Swift like manner - using a protocol.

 7 steps
Building an API Client

8:22
Defining the Fetch Method

7:54
Default Implementations Via Extensions

5:20
Handling Networking Errors

8:11
Completing JSONTaskWithRequest

9:12
Implementing Fetch

8:03
Recap: Protocol Oriented Networking

5 questions
Implementing a Forecast Client

Now that we have a protocol that implements most of the networking functionality, let's add a class that interfaces directly with the Forecast API. In this stage we're going to look at how we can write wrapper functions that use an endpoint enum to query the Forecast service.

 8 steps
Concrete Types

5:12
Endpoint Enum

9:01
From JSON to CurrentWeather

10:58
Testing the Networking Stack

13:40
Activity Indicators

6:55
Application Transport Security

4:21
The End

2:20
Recap: Implementing a Forecast Client

5 questions