Tag:nesting

  • Do you know function calling and nesting in C language? Function must learn module, you have to know!

    Time:2021-9-18

    1、 Function call What is a function call? Usually in C language, a complete project program cannot realize all functions in one function. It is implemented by several functions with different functions, and there will be calls between functions. Of course, it doesn’t mean that you must write the function modules separately, but if you […]

  • Ali Daniel’s best summary: how to use object deconstruction in JavaScript

    Time:2021-9-18

    Object deconstruction is a useful JavaScript function that can extract properties from objects and bind them to variables. Even better, object deconstruction can extract multiple attributes in a statement, access attributes from nested objects, and set default values (if the attribute does not exist). In this article, I will explain how to use object decomposition […]

  • Why is there no ternary operator in golang

    Time:2021-9-16

    Ternary operators are widely used in other languages, such as: python: val = trueValue if expr else falseValue javascript: const val = expr ? trueValue : falseValue c、c++: const char *val = expr ? “trueValue” : “falseValue”; However, the widely supported ternary operator does not exist in golang! If we write something like this: val […]

  • Dictionary in Python

    Time:2021-9-9

    By Ankit GuptaCompile VKSource: towards Data Science In this article, I will discuss dictionaries. This is the second article in the “data structures in Python” series. The first part of this series is about lists. Dictionaries are important data structures for indexing with keys in Python. They are an unordered sequence of items (key value […]

  • Practice series – Kafka Eagle deployment

    Time:2021-9-7

    Version selection v2.0.6 Download address https://codeload.github.com/s… Deployment details Because Kafka Eagle uses JMX to pull data, you need to modify the Kafka startup script.vim kafka-server-start.sh 28 if [ “x$KAFKA_HEAP_OPTS” = “x” ]; then 29 export KAFKA_HEAP_OPTS=”-Xmx1G -Xms1G” 30 fi Change to 28 if [ “x$KAFKA_HEAP_OPTS” = “x” ]; then 29 export KAFKA_HEAP_OPTS=”-server -Xms2G -Xmx2G -XX:PermSize=128m […]

  • Kafka message store overview

    Time:2021-9-2

    abstract As a message middleware system, Kafka faces the primary problem of how to persist messages and how to read, write and parse them conveniently. This article will start with Kafka’s message storage, and then explain the important code parts one by one. Kafka’s message concept, first of all, we are not talking about messages […]

  • In depth understanding of promise Trilogy: 2. The transformation of control

    Time:2021-9-2

    Original address:http://blog.getify.com/promis… Return from Xiamen trip and continue to understand promise In the last articleIn depth understanding of promise Trilogy: 1. Asynchronous problemIn, we reveal the asynchronous event polling concurrency model of JS and explain how multiple tasks are interspersed with each other so that they seem to run at the same time. Then we […]

  • Bytebuffermessageset of Kafka message store

    Time:2021-9-1

    abstract Messageset is a very important hierarchical concept for Kafka to operate message at the bottom. From the name, it can be seen that it is a collection of messages, but the processing logic in the code mainly considers the processing of nested messages. The main function of messageset is to provide sequential read and […]

  • Learn JavaScript closures again

    Time:2021-8-31

    Closures are functions that can read internal data (variables / functions) of other functions. Only sub functions inside a function can read local variables, so closures can be simply understood as “functions defined inside a function”. How to generate closures Closure occurs when a nested inner (child) function references a variable or function of a […]

  • Filemessageset of Kafka message store

    Time:2021-8-30

    abstract Friends who have read the previous blogs may ask that they have been forced so much that they don’t know where the news is stored. The title is clear. This time, let’s look at the underlying operation class filemessageset related to storage. It is a subclass of messageset, which operates the read and write […]

  • Go quick start 06 | error handling: how to handle errors through error, deferred, panic, etc?

    Time:2021-8-28

    error In go language, the error is predictable, not very serious, and will not affect the operation of the program. For such problems, you can use the method of returning an error to the caller to let the caller decide how to deal with it. Error interface In go language, errors are represented through the […]