All articles for the sample code could be found in:
koromiko / tutorial Goto Github PK
View Code? Open in Web Editor NEWWe are sample code :)
We are sample code :)
I have just read your excellent blog about a simple path to begin with MVVM and also looked at you tutorial repo here.
I where just wondering if the initialization of the view model should be before the initialization of the view. What if the initView rely on some of the closures not yet set.
I had some code which can so quickly that the closures (in initViewModel) where not yet set. Is there any danger in setting the closures as the first thing in viewDidLoad?
Hello There, for some reason the protocol conformance method is calling itself instead of the default implementation here:
extension URLSession: URLSessionProtocol {
func dataTask(with request: NSURLRequest, completionHandler: @escaping URLSessionProtocol.DataTaskResult) -> URLSessionDataTaskProtocol {
return dataTask(with: request, completionHandler: completionHandler)
}
}
not sure what is wrong
Thanks, Ricardo.
I have not find any ViewModel or MVVM design pattern in this sample.
Hi!
I wonder why these closures are escaping
https://github.com/koromiko/Tutorial/blob/master/MVVMPlayground/MVVMPlayground/Service/APIService.swift
Thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.