原创 Another Intro for Cookies

Cookies are strings of data that are stored directly in the browser. They are a part of HTTP protocol, defined by RFC 62

原创 TypeScript Crash Course: Property Access Modifiers

There is no other great moment to head into the world of TypeScript instead of right now. Angular is in TypeScript, Reac

原创 Yet Another Intro for Symbol

First of all, symbol is a built-in primitive type. And it's guaranteed to be unique. Symbols are often used to add uniqu

原创 Source Code Reading for Vue 3: How does `hasChanged` work?

Hey, guys! The next generation of Vue has released already. There are not only the brand new composition API, much more

原创 Yet Another Intro to Event Loop

As we tell, there're tons of posts talking about event loop, the basic of the basic knowledge of JavaScript running mech

原创 Yet another intro for localStorage and sessionStorage

As we know, localStorage and sessionStorage have came up for years. They're commonly used in front-end cache for both o

原创 Cross-Context Communication in BroadcastChannel API

The broadcast channel API allows basically communication between browsing contexts(that is, tabs, windows, frames or ifr

原创 Going Bundleless: ES Modules

It's really a long period I have been out of touch to front-end trending, until I try to add petite-vue into our team's

原创 Be Extra Careful about Pitfalls of MyBatis-Plus 2.x

What an Unreliable Lad You Are @TableField Mybatis-Plus introduces many powerful annotations for us to indicate the mapp

原创 Java魔法堂:調用外部程序

前言 Java雖然五臟俱全但總有軟肋,譬如獲取CPU等硬件信息,當然我們可以通過JNI調用C/C++來獲取,但對於對C/C++和Windows API不熟的碼農是一系列複雜的學習和踩坑過程。那能不能通過簡單一些、學習成本低一些的方式呢?答案

原创 SpringBoot魔法堂:@MatrixVariable參數註解使用詳解

前言 RFC3986定義URI的路徑(Path)中可包含name-value片段,擴充了以往僅能通過查詢字符串(Query String)設置可選參數的囧境。 假如現在需要設計一個用於“搜索某部門某些員工可選信息中的部分信息”的API,我們

原创 前端魔法堂:可能是你見過最詳細的WebWorker實用指南

前言 JavaScript從使用開初就一直基於事件循環的單線程運行模型,即使是成功進軍後端開發的Nodejs也沒有改變這一模型。那麼對於計算密集型的應用,我們必須創建新進程來執行運算,然後執行進程間通信實現傳參和獲取運算結果。否則會造成U

原创 SpringBoot魔法堂:應用熱部署實踐與原理淺析

前言 後端開發的同學想必每天都在重複經歷着修改代碼、執行代碼編譯,等待……重啓Tomcat服務,等待……最後測試發現還是有bug,然後上述流程再來一遍(我聽不見)😦 能不能像前端開發的同學那樣,修改代碼保存文件後自動編譯、重新加載應用呢?

原创 前端魔法堂:手寫緩存模塊

前言 之前系統接入大數據PV統計平臺,最近因PV統計平臺側服務器資源緊張,要求各接入方必須緩存API調用驗證用的Token,從而減少無效請求和服務端緩存中間件的存儲壓力。 雖然系統部分業務模塊都有緩存數據的需求,但由於沒有提供統一的前端緩存

原创 SpringBoot魔法堂:說說帶智能提示的spring-boot-starter

前言 前幾個月和隔壁組的老王閒聊,他說項目的供應商離職率居高不下,最近還有開發剛接手ESB訂閱發佈接口才兩週就提出離職,而他能做的就只有苦笑和默默地接過這個爛攤子了。 而然幸福的家庭總是相似的,而不幸的我卻因業務變革走上了和老王一樣的道路。