Tag:array

  • Design principle of feature module of Spartacus UI of SAP e-commerce cloud

    Time:2021-12-30

    We illustrate the principle with a specific example. Let’s check the public in an integration Library Directory_ api. ts: Focus on module: The module contained in this lib is epdvisualizationmodule and the corresponding configuration: epdvisualizationconfig Note that the eighth line imports the visualpickingtabmodule, which is the module containing the angular component The entry is visualpickingtabcomponent: […]

  • Mybatis parameter processing

    Time:2021-12-30

    Series articles: Getting started with mybatis Mybatis configuration Mybatis get self incrementing primary key Mybatis parameter processing Mybatis returns results Mybatis dynamic SQL Mybatis cache Mybatis load profile Load mapper mapping file Mybatis interface binding principle Mybatis SQL execution Parameter processing Single parameter adopt#{parameter name}Take out the parameter value The interface is defined as follows […]

  • Java controls the probability of random numbers

    Time:2021-12-30

    //App status The second scheme is the method of generating a new weight value array /** Reference link Java controls the probability of random numbers This work adoptsCC agreement, reprint must indicate the author and the link to this article

  • Java algorithm Yi Jin Jing: common Java API tips

    Time:2021-12-30

    Summary:The essence of algorithm practice also lies in training programming thinking and strengthening the internal force of programmers. Therefore, give yourself the content of algorithm skills that will be continuously updated later, referred to as algorithm Yi Jin Jing. This article is shared from Huawei cloud community《Common Java API usage of < Java algorithm Yi […]

  • Lodash function library — chunk

    Time:2021-12-30

    In the loadsh LibrarychunkFunction adoptiontypescriptGrammar rewriting chunkfunctionArray(array)Split into multiplesizeAnd form these blocks into a new array.IfarrayIf it cannot be divided into blocks of equal length, the last remaining elements will form a block. /** * *Split the array into multiple size length blocks, and form these blocks into a new array. *If the array cannot […]

  • Laravel underlying learning notes 04 load and start serviceprovider, event (observer mode)

    Time:2021-12-30

    reference material:PHP: load the underlying core code analysis of laravel and start the serviceproviderDifference between boot method and register method in laravel service providerPHP artisan command Load and start the serviceprovider Source code public/index.php $kernel = $app->make(Illuminate\Contracts\Http\Kernel::class); //1. Illuminate \ contracts \ http \ kernel:: class is an alias //2. $ Kernel is the instantiated […]

  • Is there anything worth learning about the strman java project of 1.3k star on GitHub? Source visual to analyze a wave

    Time:2021-12-30

    Hello, I’m silent Wang Er. Many students who are beginners in programming often give me a Tucao, saying, “brother, when you knock the code, will you have such a feeling, make complaints about writing, and feel that the code you write is like shit?” I have to say here that when I first entered the […]

  • JS handwritten copy

    Time:2021-12-29

    Enables deep and shallow copy Shallow copy Let’s talk about the implementation of shallow copy Object.assign() One method of object in ES6 can be to merge multiple JS objects (which can be used to realize shallow copy)The first parameter is the target object of the copy, and the following parameter is the source object of […]

  • Java container – list (ArrayList, LinkedList)

    Time:2021-12-29

    At the beginning of the fundamentals, many interviewers may askList sets some basic knowledgeFor example: ArrayListWhat is the default size and how is it expanded? ArrayListandLinkedListWhat is the underlying data structure of? ArrayListandLinkedListWhat’s the difference? What scenes are they used in? WhyArrayListFast query and slow addition and deletion? Arrays.asListCan the list after the method be […]

  • Go slice explanation (understanding is the key)

    Time:2021-12-29

    preface Through the last blog post, we learned about the use of arrays, but arrays have a fatal defect, that is, fixed size. This feature can not meet our usual development needs, so the go slice was born. The memory distribution of slices is continuous, so you can treat slices as an array with variable […]

  • Day 3 of golang Learning Series: Learn array, slice, map, structure, pointer, function, interface type, channel

    Time:2021-12-29

      Following the second day of the golang Learning Series: variables, constants, data types and process statements, today we begin to learn the advanced types of data types: derived types. Anyone who has studied Java knows that Java actually has eight basic types: byte, short, int, long, float, double, char and Boolean, but it has […]

  • Leetcode-088-merge two ordered arrays

    Time:2021-12-29

    Merge two ordered arrays Title Description: give you two ordered integer arrays nums1 and nums2. Please combine nums2 into nums1 to make nums1 an ordered array. The number of elements initializing nums1 and nums2 is m and N, respectively. You can assume that the space size of nums1 is equal to m + N, so […]