Blog | 博客

Six Rules for Writing Clean Code

Let’s look at some suggestions on how to prevent the spaghetti code phenomenon by minimizing the visibility of variables . Our goal is to minimize the part of the code where the variable is visible in the source code, i.e. reduce the scope of the variable . Scope minimization is a process of structuring code, […]

Six Rules for Writing Clean Code Read More »

Solve the problem of Chrome browser translation not working

Due to Google Translate’s withdrawal from China, the translation feature of Google Chrome is also currently unavailable, according to the technology blog TechCrunch, a Google spokesperson told TechCrunch via email that the company has stopped China due to “low usage”. Mainland’s Google Translate service. The change also affects the built-in translation feature of Google Chrome,

Solve the problem of Chrome browser translation not working Read More »

Vanilla JS – the world’s lightest JavaScript framework (no one)

Vanilla JS is a fast, lightweight, cross-platform JavaScript framework. We can build powerful JavaScript applications with it. introduce Vanilla JS is small and intuitive. Which companies have adopted Vanilla JS? Many, many, here are just some of the most well-known: Facebook Google YouTube Yahoo Wikipedia Windows Live Twitter Amazon LinkedIn MSN eBay Microsoft Tumblr Apple

Vanilla JS – the world’s lightest JavaScript framework (no one) Read More »

Linux performance tuning dry goods, [dry goods sharing] Detailed explanation of the tuned feature of Linux performance tuning

Introduction to uned For ordinary users, it is more difficult to optimize the Linux application environment. There are many fields and a wide range: parameters involved in CPU, storage, cache strategy, memory management, etc. Although there are default settings in Linux, which can deal with most scenarios, but for some special scenarios, such as high-performance,

Linux performance tuning dry goods, [dry goods sharing] Detailed explanation of the tuned feature of Linux performance tuning Read More »

Usage of then() in js

The then() method is executed asynchronously. It means: that is, when the method before .then() is executed, the program inside then() is executed, which avoids the problem of data not being obtained. Syntax: promise.then(onCompleted, onRejected); parameter Required for promise. Promise object. onCompleted Required. A fulfillment handler function to run when the promise completes successfully. onRejected

Usage of then() in js Read More »

20221007’s gibberish

Original link: https://www.bboy.app/2022/10/07/20221007%E7%9A%84%E8%83%A1%E8%A8%80%E4%B9%B1%E8%AF%AD / Introduction Maybe, this is life This article is reproduced from: https://www.bboy.app/2022/10/07/20221007%E7%9A%84%E8%83%A1%E8%A8%80%E4%B9%B1%E8%AF%AD / This site is for inclusion only, and the copyright belongs to the original author.

20221007’s gibberish Read More »

Mental health and self-examination

Original link: https://onojyun.com/2022/10/07/7434/ △ 280|Mental health and self-examination If you were to take the United States as an example, some people might be unhappy – but presumably if you were such a black and white person, you probably wouldn’t like any of the articles here. Of course, what I want to talk about next is

Mental health and self-examination Read More »

magic castle

Original link: https://s3-eu-west-1.amazonaws.com/dailyartartwork/img-202208236304c28e00f48 Francis Danby was an Irish painter of the Romantic era. He is known for his imaginative and dramatic landscapes. Danby initially developed his style when he was a central figure in a group of artists that would later become known as the Bristol School. Danby’s Bristol works were landscapes and topographical maps;

magic castle Read More »

“Workplace Struggle”

Original link: https://www.ixiqin.com/2022/10/07/workplace-struggle-to-remember/ After I read half of this book, I couldn’t read it anymore, the main reason was that it was too watery. It’s okay to read it as a biography, nothing else is necessary. Every person must demonstrate at least two abilities in his life: the ability to obtain opportunities and the ability

“Workplace Struggle” Read More »

Google Earth that doesn’t go over the wall, and street view that you can stroll around at will.

Original link: https://omoi.cc/software-promotion/20221006.html introduction A few days ago, there was a lot of noise on station B about Google Translate’s withdrawal from the mainland. Although I personally don’t necessarily use Google Translate, when I read some words in a language that I don’t understand, I would use my browser to open Google as soon as

Google Earth that doesn’t go over the wall, and street view that you can stroll around at will. Read More »

After Google Translate stops serving in China, what translation services can be replaced?

Original link: https://meledee.com/2022/10/4083.html At the end of September and early October, Google stopped the Google Translate service in mainland China due to “low usage”. The specific performance is that visiting https://ift.tt/g3jhsrP will automatically go to https://ift.tt/DLGw6uI, which is essentially a .PNG format picture, and google.com.hk cannot be used in the domestic network environment. Normal use,

After Google Translate stops serving in China, what translation services can be replaced? Read More »