Tag:Users

  • Three kinds of factory design patterns are enough

    Time:2021-1-3

    preface The interview was asked about three factory modes, and the answers were very vague. So I spent the morning sorting out and summarizing. In order to facilitate your practice, I wrote the code in theIt’s in. JavaThe three factory design patterns are similar in product and factory correspondence, many to one, one to one, […]

  • Producers and consumers of Kafka Python

    Time:2020-12-28

    Producers and consumers of Kafka Python In this tutorial, we will build Kafka producer and consumer using python. In addition, we will learn how to set up the configuration in Kafka and how to use the concepts of group and offset. establish For this tutorial, we should install Python on our computer. In addition, we […]

  • Four best practices for writing high quality JavaScript modules

    Time:2020-10-31

    With the es2015 module, you can divide your application code into reusable, encapsulated, and single task focused modules. That’s good, but how to construct modules? How many functions and classes should a module have? This article describes four best practices on how to better organize JavaScript modules. 1. Give priority to named export When I […]

  • Vue – custom component bidirectional binding

    Time:2020-10-7

    preface No matter in any language or framework, we advocate code reusability. For Vue, the same code logic will be encapsulated into components. In addition to reuse, the more important thing is unified management to improve development efficiency. I really took over a project. The list was used by multiple pages. I didn’t encapsulate the […]

  • Golang package lightweight kV data cache — go cache source code analysis

    Time:2020-9-30

    Author: moon light dreamsource: https://www.cnblogs.com/Moon-Light-Dream/Reprint: welcome to reprint, but without the consent of the author, this statement must be retained; the original text must be linked; otherwise, legal liability will be imposed What is go cache There are many kV storage engines, such as redis, rocksdb, and so on. If you only implement a simple […]

  • Ifreesql and aspectcore injection conflict resolution

    Time:2020-6-18

    FreeSQL is hosted in GitHub with MIT open source protocol: https://github.com/2881099/FreeSql Ifreesql, as the ORM top-level object, has no namespace set. The author‘s intention is not to add a bunch of unnecessary using at the top of the. CS file FreeSql.xxx 。 Recently, some students tried to use aspectcore to roll over the car. After […]

  • Promise is not a callback

    Time:2020-6-6

    This is a rare example in practical engineering; it is reflected in the design conflict of two programming paradigms in node. This kind of conflict is universal, but this paper only analyzes the nature of the problem, not the higher level of abstraction. I am writing a resource protocol similar to HTTP, called RP, resource […]

  • Laravel API error handling: how to return a message when an exception occurs

    Time:2020-6-4

    Original link: https://learnku.com/laravel/t…For discussion, please go to the professional laravel Developer Forum: https://learnku.com/Laravel API based project development is becoming more and more popular, and can be easily implemented using laravel. But how to deal with all kinds of exceptions is rarely mentioned. So API users often complain about receivingServer error, few more error messages. So, […]

  • Vue – custom component bi-directional binding

    Time:2020-5-16

    preface No matter in any language or framework, we advocate code reusability. The same is true for Vue. The same code logic will be encapsulated into components. In addition to reuse, the more important thing is unified management to improve development efficiency. I’ve really taken over a project, a list that can be used in […]

  • FREEBSD6.0 Setting up FTP Server

    Time:2019-9-5

    FTP (File Transfer Protocol) is a common network protocol. Its main function is to transfer files. We often download files from FTP platform. This chapter will introduce how to use FreeBSD to set up FTP server, and explain the management skills of various FTP servers. In addition to FTP server software attached to FreeBSD, this […]