With a minimum guarantee of $500 per month.

Photo by Kelly Sikkema on Unsplash

When I was boringly playing on my iPhone last night, suddenly an email notification popped up on the iPhone screen:

Congratulations! You’re in!

From the brief sentence on the banner of the iPhone, I learned the news that made me ecstatic. Then I turned on the computer and read the email in detail.

Let me introduce this in detail below

A few weeks ago, Medium announced a program called the Creator Fellowship Program. If…


A coding principle you should know to be an advanced front-end developer.

Photo by Nick Karvounis on Unsplash

The creators of the Web have provided us developers with three tools for developing webpages: HTML, CSS, and JavaScript.

Among them:

  • HTML is responsible for the structure of a webpage
  • CSS is responsible for the presentation style of each element on a webpage
  • JavaScript is responsible for the interaction between the page and the user

The elegant code should be low-coupled. We should keep these three tools as separate as possible to make our code more maintainable and extensible.

Switch Themes


Best Practice of HTTP Caching.

Create by the author

Caching is a common strategy used to improve the performance of a website. The more we use cached resources, the better the responsiveness and the performance of a website will be.

The purpose of the HTTP cache is to reduce repeated requests for the same resource. The downside of caching is that the server may have updated its resources, but the client cache not.

When talking about HTTP caching, you’ve probably heard a lot of technical terms, such as CacheControl, ETag, etc. But here’s the question: there are so many different techniques for caching, so which one? …


Debug with Chrome DevTools and find the solution!

Have you ever been asked such a question during the interview: if a webpage freezes, what do you think might be the cause? Is there any way to find the cause and solve it?

This is a broad and in-depth question, which involves a lot of page performance optimization issues. I still remember how I answered this question when I was asked in the interview:

  1. First check whether there are too many network requests, which results in slower data transfer. This problem can be optimized by caching.
  2. It is also possible that the bundle of a certain resource is too…


Using Vue3, TypeScript, Element Plus, Axios, Husky, Commitizen, Jest, Vite, and GitHub Actions to create enterprise-level development environments.

Vue3 and Vite have been released for a long time, and the author has used this tech stack in many projects. My feeling is that this tech stack can better help us complete the mission. And the ecosystem of Vue3 and Vite is thriving now, which is pretty suitable for enterprise-level development projects.

This article will help you build a standard Vite + Vue3 + TypeScript enterprise-level development environment, step by step from zero.

First, I will work with you to complete the core skeleton of a Vue.js project, using technologies such as Vue.js, VueRouter, and Vuex. Then we will…


Explained with 20 GIFs.

If you were to type the following code in the editor, how long would you need to type?

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<div class="container">
Lorem ipsum, dolor sit amet consectetur adipisicing elit. Harum mollitia illo deserunt possimus dicta, quod aliquam, fugiat eligendi debitis sed magni, perferendis recusandae tenetur officia ipsa ipsam tempore fugit error!
</div>
<ul>
<li>list 1</li>
<li>list 2</li>
<li>list 3</li>
<li>list 4</li>
<li>list 5</li>
<li>list 6</li>
<li>list 7</li>
<li>list 8</li>
</ul>
</body>
</html>


GIFs are better than plain English.

Stack Overflow is the most popular Q&A platform for programmers. If a question is popular on Stack Overflow, you probably have or will have the same type of question.

Here are the top 5 of the most popular CSS questions on Stack Overflow that may be useful for you.

Copyright: the content on Stack Overflow is distributed based on CC BY-SA.

Table of Content

  1. Debugging CSS with Chrome Devtools
  2. Disable Text Selection Highlighting
  3. Horizontally Center an Element
  4. Change an HTML5 Input’s Placeholder Color
  5. Usage of table
  6. Make a Textarea Unable to Resize

Chrome Devtools

When explaining the knowledge points related to CSS, I think that…


Learn with Stack Overflow

How to remove a specific item from an array?

Stack Overflow is the most popular Q&A platform for programmers. If a question is popular on Stack Overflow, you probably have or will have the same type of question.

Here are the top 5 of the most popular questions on Stack Overflow that may be useful for you.

Copyright: the content on Stack Overflow is distributed based on CC BY-SA.

Table of content:

  1. Remove a specific item from an array.
  2. Check if an element is hidden in Javascript.
  3. What does “use strict” do in Javascript?
  4. How to redirect to another webpage?
  5. How to check whether a string contains a substring?

TOP 1: How to Remove a Specific Item from An array?

  • Views: 8.0 million


EXPLAINED WITH EMBED DEMO

With code snippets and embeds included

Created by the author

Spread Syntax(…) is a feature introduced in ES6 that allows us to extract elements from an iterable object quickly. With this syntax, we can avoid using a lot of complex APIs and write more concise code. After you finish reading this article, I believe you will like this feature.

Note: The embed demo may take a little time to load; please wait for a while.

1. Copy an array

The conventional way to copy an array is to use the slice method of an array.


A special aspect to understand TypeScript for beginners.

Create by bytefish

When I first learned TypeScript, I noticed that TS code was full of notations that were hard to understand. Some notations also appear in JavaScript, but when they appear in TypeScript, they have a completely different meaning. This used to be very confusing to me.

Later, with further study, I understood the use of these notations and felt their charm. Here are 10 notations that I thought were weird at the time, but now find very useful.

Table of Contents:

· Unions type: |
· Intersection Types: &
· Numeric Separators: _
· Non-null assertion operator: !
· Optional notation: ?
Optional Chaining: …

bytefish

Diagrams are better than words. Animations are better than English. Embed demos are better than code snippets.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store