Swift & ReactiveX – Asynchronous Event-Based Funsies with RxSwiftAaron Douglas
This is an introduction to reactive concepts using Swift specifically with ReactiveX’s implementation, RxSwift. ReactiveX is an API for asynchronous programming with observable streams originally implemented with .NET and LINQ. ReactiveX is a combination of the best ideas from the Observer pattern, the Iterator pattern, and functional programming.
You’ll learn about all the basic moving parts of RxSwift and why you want to use it in your application.
Original presented 23-Aug-2016 at 360iDev 2016 - Denver, CO.
Swift & ReactiveX – Asynchronous Event-Based Funsies with RxSwiftAaron Douglas
This is an introduction to reactive concepts using Swift specifically with ReactiveX’s implementation, RxSwift. ReactiveX is an API for asynchronous programming with observable streams originally implemented with .NET and LINQ. ReactiveX is a combination of the best ideas from the Observer pattern, the Iterator pattern, and functional programming.
You’ll learn about all the basic moving parts of RxSwift and why you want to use it in your application.
Original presented 23-Aug-2016 at 360iDev 2016 - Denver, CO.
69 câu hỏi phỏng vấn kỹ sư Công nghệ Thông tinVu Hung Nguyen
Bộ 69 câu hỏi phỏng vấn giành cho kỹ sư công nghệ thông tin.
Đối tượng hưởng lợi:
- Người đi phỏng vấn: Biết được những câu hay bị hỏi
- Người phỏng vấn: Có một bộ câu hỏi phỏng vấn cơ bản làm cơ sở
This document discusses SOLID principles, dependency inversion, dependency injection, and AutoMapper. It covers the benefits of loose coupling code using dependency injection such as improved testability and separation of concerns, as well as potential downsides like increased complexity. It provides examples of dependency injection frameworks like Unity and Ninject and demonstrates how AutoMapper can simplify mapping between objects.
Bài 5: Các thuật toán sắp xếp và tìm kiếm cơ bản - Giáo trình FPTMasterCode.vn
Tìm hiểu các giải thuật sắp xếp cơ bản trên cấu trúc dữ
liệu mảng
Tìm hiểu các giải thuật tìm kiếm cơ bản trên cấu trúc dữ
liệu mảng
Đánh giá và so sánh hiệu quả các giải thuật
Intertextualidade entre Os Lusíadas e MensagemPaulo Vitorino
Este documento fornece um resumo da intertextualidade entre Os Lusíadas de Luís de Camões e A Mensagem de Fernando Pessoa. Ambas as obras celebram a história e os heróis de Portugal, embora de formas diferentes. Os Lusíadas apresenta um herói épico enquanto A Mensagem apresenta um herói mítico. Ambos os poetas expressam desencanto com o presente e apelo ao futuro de Portugal.
Este documento describe la fisiología de los líquidos corporales. Explica que el agua corporal total se distribuye en varios compartimientos líquidos como el líquido intersticial, intravascular e intracelular. Detalla las funciones del agua, la composición y transporte en los diferentes compartimientos a través de mecanismos pasivos como la difusión y activos que requieren energía.
Este documento trata sobre los líquidos y electrolitos en el cuerpo humano. Explica que el agua y los solutos se distribuyen en los diversos compartimentos del organismo para mantener el equilibrio, y que la homeostasis se mantiene por la acción coordinada de adaptaciones renales y vasculares. Además, describe los principales electrolitos como el sodio, potasio, calcio y magnesio, y cómo se regulan y mantienen en equilibrio a través de mecanismos como la osmolaridad y la acción de órganos como los ri
Khóa học lập trình Zend Framework của ZendVN là một khóa học về PHP framework nâng cao và chuyên sâu. Sau khi hoàn tất khóa học này các bạn sẽ có một nền tảng vững chắc về lập trình hướng đối tượng PHP, hiểu được cấu trúc mô hình MVC trong các PHP framework hiện nay, hiểu rõ về các thư viện trong Zend Framework và có thể tự nghiên cứu các thư viện PHP framework bất kỳ dựa trên nền tảng của khóa học Zend Framework.
69 câu hỏi phỏng vấn kỹ sư Công nghệ Thông tinVu Hung Nguyen
Bộ 69 câu hỏi phỏng vấn giành cho kỹ sư công nghệ thông tin.
Đối tượng hưởng lợi:
- Người đi phỏng vấn: Biết được những câu hay bị hỏi
- Người phỏng vấn: Có một bộ câu hỏi phỏng vấn cơ bản làm cơ sở
This document discusses SOLID principles, dependency inversion, dependency injection, and AutoMapper. It covers the benefits of loose coupling code using dependency injection such as improved testability and separation of concerns, as well as potential downsides like increased complexity. It provides examples of dependency injection frameworks like Unity and Ninject and demonstrates how AutoMapper can simplify mapping between objects.
Bài 5: Các thuật toán sắp xếp và tìm kiếm cơ bản - Giáo trình FPTMasterCode.vn
Tìm hiểu các giải thuật sắp xếp cơ bản trên cấu trúc dữ
liệu mảng
Tìm hiểu các giải thuật tìm kiếm cơ bản trên cấu trúc dữ
liệu mảng
Đánh giá và so sánh hiệu quả các giải thuật
Intertextualidade entre Os Lusíadas e MensagemPaulo Vitorino
Este documento fornece um resumo da intertextualidade entre Os Lusíadas de Luís de Camões e A Mensagem de Fernando Pessoa. Ambas as obras celebram a história e os heróis de Portugal, embora de formas diferentes. Os Lusíadas apresenta um herói épico enquanto A Mensagem apresenta um herói mítico. Ambos os poetas expressam desencanto com o presente e apelo ao futuro de Portugal.
Este documento describe la fisiología de los líquidos corporales. Explica que el agua corporal total se distribuye en varios compartimientos líquidos como el líquido intersticial, intravascular e intracelular. Detalla las funciones del agua, la composición y transporte en los diferentes compartimientos a través de mecanismos pasivos como la difusión y activos que requieren energía.
Este documento trata sobre los líquidos y electrolitos en el cuerpo humano. Explica que el agua y los solutos se distribuyen en los diversos compartimentos del organismo para mantener el equilibrio, y que la homeostasis se mantiene por la acción coordinada de adaptaciones renales y vasculares. Además, describe los principales electrolitos como el sodio, potasio, calcio y magnesio, y cómo se regulan y mantienen en equilibrio a través de mecanismos como la osmolaridad y la acción de órganos como los ri
Khóa học lập trình Zend Framework của ZendVN là một khóa học về PHP framework nâng cao và chuyên sâu. Sau khi hoàn tất khóa học này các bạn sẽ có một nền tảng vững chắc về lập trình hướng đối tượng PHP, hiểu được cấu trúc mô hình MVC trong các PHP framework hiện nay, hiểu rõ về các thư viện trong Zend Framework và có thể tự nghiên cứu các thư viện PHP framework bất kỳ dựa trên nền tảng của khóa học Zend Framework.
3. Lợi ích của design pattern
Tăng khả năng trao đổi, giao tiếp trong công việc
Tiết kiệm thời gian nghiên cứu vấn đề
Có thể được áp dụng cho bất kì ngôn ngữ nào
Tăng khả năng cài đặt và bảo trì
5. Singleton
• Một class chỉ có một instance duy nhất
• NSFileManager, UIApplication, NSURLSession,
NSURLDefault,…
• Trường hợp sử dụng: khi cần truy cập các tài
nguyên toàn cục như setting, session.
• Lưu ý: instance của singleton không thể được
copy, retain, release.
6. Abstract Factory
• Cung cấp 1 interface chung cho các class
tương tự nhau
• Che giấu sự phức tạp trong việc khởi tạo đối
tượng
• NSNumber, NSString, NSArray, NSDictionary,…
• Sử dụng khi có một nhóm các class liên quan
hoặc phụ thuộc vào nhau nhằm làm giảm độ
phức tạp.
7. Facade
• Cung cấp interface high level, đóng gói các API
low level
Tăng tính dễ sử dụng
Giảm độ phức tạp của hệ thống con
• Ví dụ: UIImage
• Sử dụng khi hệ thống con có các API phức tạp
không cần thiết để người dùng sử dụng => tạo
API level cao hơn.
8. Decorator
• Thêm các hành vi, chức năng vào đối tượng
mà không làm thay đổi code của đối tượng.
• Hai cách sử dụng phổ biến: Category,
Delegation
9. Category
• Thêm các hàm vào một object mà không phải
tạo class con kế thừa.
• Chú ý:
– Không được phép thêm property vào category.
– Không viết đè các phương thức của class vì có thể
tạo ra ảnh hưởng không mong muốn.
11. Delegation
• Ví dụ: UITableView, UIScrollView
• DataSource: tương tự delegate
• Điểm khác nhau:
Delegate DataSource
Điều khiển giao diện người
dùng
Điều khiển dữ liệu
12. Command
• Đóng gói một request thành đối tượng
Linh hoạt hơn
Có thể truyền giữa các đối tượng, lưu trữ,
thay đổi.
• 2 loại: Target – Action, Invocation
13. Target - Action
• Truyền thông điệp từ UIControl object (trong
UI) sang object khác.
• Target: thường là custom class của UIView,
UIViewController.
• Action: là thông điệp được truyền đến target
15. Invocation
• Sử dụng trong việc:
– Quản lý hoàn tác
– Chuyển tiếp thông điệp
– Xử lý timer
16. Observer
• Quan hệ một – nhiều giữa các đối tượng.
• Đối tượng có sự thay đổi thông báo cho các
đối tượng khác => cập nhật
• 2 cách cài đặt phổ biến: Key Value Observer và
NSNotification
17. NSNotification
• Mô hình publisher – subcriber
• Publisher: gửi thông điệp
• Subcriber: các đối tượng nhận thông điệp
• Quan hệ lỏng lẻo: publisher không cần biết
thông tin gì về subcriber
• Sử dụng một singleton để quản lý việc gửi
thông điệp và nhận thông điệp:
NSNotificationCenter
18. KVO
• Theo dõi sự thay đổi của một thuộc tính.
• Không sử dụng đối tượng trung gian để quản
lý, thông điệp được chuyển trực tiếp đến đối
tượng nhận.
• Cách sử dụng:
– addObserver:forKeyPath:options:context:
– Observer implement hàm
observeValueForKeyPath:ofObject:change:context
: