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 »

Development lags, users complain, Youku’s internal and external problems

Editor | Yu Bin Produced | Chaoqi.com ‘Yu see column’ The rise of the Internet has made online video one of the main ways of people’s daily entertainment. The online video industry has also developed rapidly, and competition among major platforms is fierce. Among them, the long video platform Youku won the early industry competition

Development lags, users complain, Youku’s internal and external problems Read More »

Parents start to be unreasonable, are they old urchins, or are they “old people going bad”?

“What’s wrong with my mother?” Xiao Wang muttered in his heart when he hung up the phone. 10 years ago, after my mother stepped down from the position of university professor, her originally mild personality became violent, and she lost her temper almost every day. You young people, in your thirties and still don’t want

Parents start to be unreasonable, are they old urchins, or are they “old people going bad”? Read More »