Thinking and Feeling of the Third Reading of Kingfisher Network Picture Cache Library

Next we will do hard disk caching, multiple picture loading, and multi-threaded processing of multiple picture caching.This section tries to get all this done as far as possible, because it's the idea of sdwebimage, or rather the Kingfisher library by name, which doesn't have much to do with it.So finish your thoughts as soon as possible and re ...

Posted on Thu, 07 Nov 2019 09:01:40 -0500 by mxicoders

The second reading of Kingfisher network image cache

Let's play the protocol first. Let's continue to improve our cache network picture library. Kingfisher 3.0 is a little bit mature. There are many things that we can't understand for a while. But let's implement it first, and then compare the differences and learn. Last time, I wrote a classification for all the controls to load a line of code. ...

Posted on Thu, 07 Nov 2019 00:55:28 -0500 by duncanmaclean

iOS knowledge combing asynchronous programming - coobjc learning

Asynchronous programming is a hot topic in recent years. Today, we will talk about asynchronous programming and coobjc in iOS platform. First of all, to answer the question, why do we need asynchronous programming? In the early years, people were used to running a thread to perform time-consuming tasks, even if the time-consuming task was not C ...

Posted on Tue, 05 Nov 2019 05:18:42 -0500 by nishanthc12

Several ways to dynamically bind class es in vue

The most commonly used ways for vue to dynamically bind class es are: First: (the simplest binding) 1. Bind a single class html section: <div :class="{'active':isActive}"></div> js part: determine whether to bind an active data() { return { isActive: true }; } The result is rendered as: <div ...

Posted on Mon, 04 Nov 2019 10:32:50 -0500 by aussie_clint

Algorithm DFA algorithm sensitive word filtering algorithm (OC, Swift, Python)

Preface Some time ago, the company's IM SDK wanted to do sensitive word filtering, but the back-end partner was busy. During the product demand meeting, he wanted to put sensitive word filtering on the front end and let iOS and Android do it by themselves, but the front-end partner wrote a method to detect a piece of text, which took [a second ...

Posted on Wed, 23 Oct 2019 05:22:36 -0400 by markjoe

Swift-nested type

Enumerations are often used to implement certain functions for a particular class or structure. Similarly, enumerations can easily define tool classes or structures for use by a complex type. Swift allows you to define nested types, which can define nested enumerations, classes, and structures in suppo ...

Posted on Mon, 07 Oct 2019 04:53:23 -0400 by gersh

Simple Practice of MVVM+RxSwift

1. Brief description MVVM is used to decouple model and view, which improves the possibility of reuse and greatly reduces the burden of controller. The middleware viewModel is used to process data sources, bind UI and handle logical events. In this way, when all kinds of business are jumbled together, the code between different businesses can ...

Posted on Wed, 02 Oct 2019 17:55:01 -0400 by thekoopa

PHP SOAP Usage, Basic Understanding

SOAP SWLD mode: Server:server.php class testA { function greet($param) { $value = 'Hello ' . $param->name; $result = [ 'greetReturn' => $value ]; return $result; } } $server = new \SoapServer('wsdl.wsdl', array('trace' => 1)); $server->setClass('testA'); $server->handle(); ...

Posted on Mon, 30 Sep 2019 08:50:45 -0400 by trackz

Programming Paradigm - Funtional Programming (FP)

Funtional Programming (FP) is a programming paradigm, that is, the methodology of how to write programs. The main idea is to decompose the calculation process into a series of calls of reusable functions as far as possible. Main features: The function is "first class citizen": Functions have the same status as other data types, they ...

Posted on Sun, 29 Sep 2019 05:22:58 -0400 by r4r4

Programming Paradigm - Protocol Oriented Programming (POP)

Protocol Oriented Programming (POP) A programming paradigm for Swift, which Apple kicked in 2015 at WWDC A lot of POP shadows can be seen in the standard library of Swift Swift is also an object-oriented programming language (Objec Oriented Programming, or OOP) In Swift development, OOP and POP are mutually complementary, and neither side can ...

Posted on Sun, 29 Sep 2019 05:18:06 -0400 by rUmX