Function programming VS command programming

Before the emergence of ES6, the development mode of js was basically based on the command programming (IP) paradigm. Since the release of ES6, the development gods of js imitated the development mode of Python and Ruby, and gradually became popular with the functional programming (FP) mode. The students who have studied react have a deep under ...

Posted on Mon, 18 Nov 2019 14:30:07 -0500 by mdinowitz

redis 5.0 cluster building

In October 2018, Redis released a stable version of 5.0 and introduced various new features. One of them is to give up Ruby's cluster mode and change to Redis cli mode written in C language, which greatly reduces the complexity of cluster construction. Here is a description of cluster building 1. Download redis first ​wget http://download.red ...

Posted on Fri, 08 Nov 2019 16:12:05 -0500 by bennyboywonder

Groovy quick start-9-List

In this article, I'll learn about list collection. List is a kind of collection container, which can hold various elements, and can also nest list. The elements in it are unordered. 1. Simple List getting element method Write a list with three kinds of fruits to see how to get the elements through ...

Posted on Fri, 25 Oct 2019 15:46:37 -0400 by madkris

Support microblog billion level social platform, and beginners can play Redis cluster (practical part)

The previous article "supporting microblog billion level social platform, Xiaobai can also play with Redis Cluster (principle part)" introduces the relevant principles of Redis Cluster. This article will introduce the specific operation of building, configuration, operation and maintenance, expansion of Redis Cluster. Cluster buildin ...

Posted on Mon, 21 Oct 2019 20:41:10 -0400 by nathanblogs

ms sql gets the first letter of a string

Links to the original text: http://www.cnblogs.com/riasky/p/3430955.html I haven't written a new article for a long time. Now I publish a custom function to get the first letter of the string in the ms sql database. I hope it will be us ...

Posted on Mon, 14 Oct 2019 12:36:16 -0400 by SyWill

Redis Configuration Master-slave, Cluster

Parameter name Default values explain bind 127.0.0.1 Binding ip address port 6379 Binding ports dademonize no yes: Open daemon no: Close daemon pidfile /var/run/redis/redis-server.pid pid file path ...

Posted on Tue, 10 Sep 2019 04:21:29 -0400 by basement

mysql IS NULL uses indexes

brief introduction The use of is null, is not null,!= in the sql query statement of mysql has no effect on the index, and does not scan the whole table because of the use of is null, is not null,!= in where condition. mysql official document It has ...

Posted on Wed, 28 Aug 2019 07:21:48 -0400 by ashida123

What is the difference between blok, proc and lambda in Ruby?

What are bloks, procs, and lambdas? Coder Talk: An example of _closures_in Ruby. original text Plain old english: The code grouping method we want to run. # Block Examples [1,2,3].each { |x| puts x*2 } # blok is in between the curly braces [1,2,3].each do |x| puts x*2 # blok is everything between the do and end end # Proc Examples ...

Posted on Thu, 22 Aug 2019 21:12:25 -0400 by StroiX

iOS ipa re-signature, modification/non-modification of package name

iOS ipa re-signature, modification/non-modification of package name As the title, recently used, record it. When sigh resign is used for re-signature, the package name is modified or not modified according to the situation. Timeliness: Test time ...

Posted on Fri, 16 Aug 2019 02:29:03 -0400 by hoyo

Integration of cocoapods and some problems encountered

I. The process of integrating cocoapods includes the following steps1. Remove existing Ruby** $gem sources --remove https://rubygems.org/ 2. Use Taobao Mirror ** $gem sources -a https://gems.ruby-china.org/ The mirror of Taobao https://ruby.taobao.org/is no longer available. So now let's use the latest supported Ruby mirror https://gems.ruby-ch ...

Posted on Thu, 04 Jul 2019 21:17:31 -0400 by jude0311