Tag:enumeration

  • Rust programming video tutorial (Advanced) – 024_ 2 syntax of all modes 2

    Time:2021-9-18

    Video address Headline address:https://www.ixigua.com/i677586170644791348…Station B address:https://www.bilibili.com/video/av81202308/ Source address GitHub address:https://github.com/anonymousGiga/learn_rus… Explanation content 1. Match byExample 1: let x = 5; match x { 1..=5 => println! (“one through five”), // that is, the range from 1 to 5 is matched _ => println!(“something else”), } Note: in the example, 1.. = 5 is equivalent to […]

  • MySQL design specifications for those common errors

    Time:2021-9-4

    Relying on the development of the Internet, we can use some fragmented time waiting for the bus or taking the subway to learn and understand information anytime and anywhere. At the same time, the developed Internet also facilitates people to quickly share their knowledge and discuss with friends with the same hobbies and needs. However, […]

  • How to detect the security of front-end pages?

    Time:2021-9-2

    Basic web attacks can be roughly divided into three categories – “resource enumeration“, “parameter manipulation” and “other attacks” 1623814361431941.png Resource enumeration: traverse all accessible directories of the site, and then enumerate some common spare wheel file names (such as “SQL. Bak” and “index copy. HTML”) one by one. If you are lucky, you can download […]

  • Fastjson processing enumeration

    Time:2021-8-30

    Fastjson Not much about this thing. Alibaba has produced several serious security vulnerabilities, but it is still very popular. Here’s how it handles enumeration. <!– https://mvnrepository.com/artifact/com.alibaba/fastjson –> <dependency> <groupId>com.alibaba</groupId> <artifactId>fastjson</artifactId> <version>1.2.76</version> </dependency> Serialize to name() value The default is, don’t move anything import com.alibaba.fastjson.JSON; enum Gender { BOY, GIRL, UNKNOW } class User { private […]

  • [C / C + +] details of enum enumeration in C and C + + 11

    Time:2021-8-29

    Author: Li Chungangsource: https://www.cnblogs.com/lcgbk/p/14101271.html catalogue 1、 Foreword 2、 Enumeration in C (enum) 2.1 size of enumeration in C 2.2 value range of enumeration in C 3、 Enumeration in C + + 11 (enum) 3.1 new enumeration size control in C + + 11 3.2 C + + 11 adds scope enumeration types 1、 Foreword Because […]

  • 002 learn the linked list layout of rust notes through the linked list

    Time:2021-8-20

    introduce Video address:www.bilibili.com/video/av78062009/Relevant source code:github.com/anonymousGiga/Rust-link… The most common linked list in rust Define a linked list in functional syntax as follows: List a = Empty | Elem a (List a) A linked list is either an empty type or a value followed by a linked list. This type is called recursive definition type, expressed as […]

  • Advanced development: dotnet core multipath asynchronous termination

    Time:2021-8-19

    Today, let’s talk about asynchronous multipath termination with a simple example. I try to write it easy to understand, but today’s content needs to have a certain programming ability.   Today’s topic comes from some recent technical research on grpc. The topic itself has little to do with grpc. In the application, I used the […]

  • Beware of pits in enum parse

    Time:2021-8-14

    Beware of pits in enum parse Intro Recently, when using enumeration, I stepped on a small pit to share. The main reason is that enumeration may encounter problems when it is converted from int value to enumeration Sample Consider the following example: First define an enumeration: public enum Color : byte { Red = 0, […]

  • Want to write your own framework? Not if you can’t write java annotations

    Time:2021-8-6

    Use notes for a while, always use them for a long time After Java back-end development entered the spring family bucket era, developing a micro service to provide a simple addition, deletion, modification and query interface is very simple. The operation is as fierce as a tiger. Looking back at the code, a pile of […]

  • How to gracefully use enumeration definitions in JS

    Time:2021-8-6

    How to use enumerations gracefully in JS Why use enumeration De magic number Enumeration semantics Definition integration: enumeration values and enumeration descriptions are written together and are not scattered Easy to use: no additional filter is required How to explain De magic number See the following code // bad < span V-IF = “status = […]

  • “1.8W” is a rare TS learning guide

    Time:2021-7-29

    Apotheker first used typescript in the angular 2. X project. At that time, typescript had not entered the public’s vision. However, there are more and more partners learning typescript. In this article, Po will learn from16Start with three aspects and take you step by step to learn typescript. Don’t miss it if you are interested. […]

  • Compound Data Type of Rust

    Time:2021-7-24

    summary Long time no updaterustRelated content, update a waveRustLet’s talk about the content of this articleRustComposite data types in. Composite Type Composite data typeIs a data type, which can be composed of original basic data types and other composite types to form a composite type action, also known as combination. This article introducesRustThere aretuple、array、struct、enumSeveral composite […]