Go Error Handling Best Practices

The most obvious difference between Go's error and Java's Exception is:Native libraries do not carry stacktraceNative library does not support WrapThis brings some troubles to program debug ging, so we will use github.com/pkg/errors to replace the native errors package to handle Error s.However, due to the high probability of not usin ...

Posted by ediehl on Mon, 21 Nov 2022 06:02:43 +0300

[Very important] In-depth understanding of "modification" in Git

Glossary staged: has been staged, indicating that the current file has been put into the cache area by the git command unstager: not yet staged, meaning that it has not been placed in the cache yet 0. Note: Git manages changes, not files For now, assume you've fully grasped the concept of scratch pads. Below, we will discuss why Git ...

Posted by matchew on Sat, 15 Oct 2022 01:38:27 +0300

Detailed explanation of spring cloud Config service configuration

Spring Cloud Config summaryConfig server configuration and testConfig client configuration and testingDynamic refresh of Config client summary Configuration problems faced by distributed systems What is it? What can I do Centrally manage profiles Different environments have different configurations, dynamic confi ...

Posted by Mr_jmm on Wed, 25 May 2022 03:22:01 +0300

Spring Boot 2.x Basic Tutorial: Using Centralized Cache Redis

Earlier we introduced the usage of two in-process caches, including the default ones used by Spring Boot ConcurrentMap cache as well as Cache framework EhCache . Although EhCache can be applied to many application scenarios, since EhCache is an in-process caching framework, in cluster mode, the caches between each application server are indepen ...

Posted by cdrees on Mon, 23 May 2022 00:05:55 +0300

be based on. NetCore development blog project StarBlog - start building a Web project

Series articles be based on. NetCore development blog project StarBlog - (1) why do you need to write your own blog?be based on. NetCore development blog project StarBlog - (2) environment preparation and creation projectbe based on. NetCore development blog project StarBlog - (3) model designbe based on. NetCore development blog project St ...

Posted by Z3RO21 on Tue, 17 May 2022 22:18:39 +0300

How to get Docker images to take off, so simple to set up

I. Introduction Docker is great to use, especially when it comes to DevOps practices. However, when you pull mirrors in China or locally, you often encounter various "constipation" - either the mirror pull is slow, or the connection is intermittent, or the connection times out! When our images are large (like someone dropped a Warcr ...

Posted by genom on Tue, 17 May 2022 13:01:00 +0300

Git common commands

Git common commands New code base git clone Create a new Git repository in the current directory $ git init Create a new directory and initialize it as a Git repository $ git init [project-name] Download a project and its entire code history $ git clone [url] configure git config Git's setting file is .gitconfig, which can be in t ...

Posted by mr_tron on Mon, 16 May 2022 23:48:59 +0300

Build a server free blog and document system based on VuePress and github

Build a server free blog and document system based on VuePress and github Recently, I want to do a project to introduce some of my projects and daily documents, so that the documents can have their own home, https://g.xgss.net After using gitbook, I saw vuepress again and felt it was very useful. It can be used as blog system, document system ...

Posted by dave_55 on Sun, 15 May 2022 02:51:07 +0300

Dynamic programming of leetcode brush questions

Dynamic programming of leetcode brush questions The following are some questions about dynamic programming brushing questions summarized in July and August. Substring and Subsequence Problems First, substrings and subsequences Substrings need to be continuous, subsequences need not be continuous, and dynamic programming can be used here. Abcd-- ...

Posted by SundayDriver on Tue, 10 May 2022 07:44:36 +0300

Hongmeng kernel source code analysis (memory assembly) | what assembly code does the memory implementation involve | add Chinese comments to the HarmonyOS source code, and the four warehouses are updated synchronously | V11 02

Hongmeng kernel source code comments Chinese version [CSDN warehouse] | Gitee warehouse | Github warehouse | Coding warehouse] Add Chinese notes to the HarmonyOS source code line by line and elaborate the design details to help you quickly read the HarmonyOS kernel source code and master the operation mechanism of the whole Hongmeng kernel. The ...

Posted by dmccabe on Tue, 10 May 2022 03:42:04 +0300