收藏 / 列表

小帆聊前端 - 前端設計模式深度解讀:從混沌到有序,寫出可維護的代碼

前端設計模式深度解讀:從混沌到有序,寫出可維護的代碼 前言:你是否也被這些代碼問題折磨過? "這個彈窗組件改一處就崩三處,到底誰寫的?" "為什麼同樣的表單驗證邏輯,每個頁面都要複製粘貼?" "狀態管理越來越亂,新增功能要改五六個地方?" "接手的項目像一團亂麻,根本不敢動核心邏輯?" 前端開發中,"能跑就行" 的代碼在初期或許能快速交付,但隨着項目迭代,維護成本會指數級增長。設計模式不是銀彈,卻

設計模式 , 前端

Ahmad Shadeed - A Deep CSS Dive Into Radial And Conic Gradients

CSS gradients are a useful CSS feature that can be used to create interesting UI effects or even help us in drawing something without the need to create HTML elements for it. Two gradients that I wo

animation , Techniques , Css , ui

Gabriel Shoyombo - CSS Intelligence: Speculating On The Future Of A Smarter Language

Once upon a time, CSS was purely presentational. It imperatively handled the fonts, colors, backgrounds, spacing, and layouts, among other styles, for markup languages. It was a language for looks,

Techniques , coding , Css

Stephanie Eckles - A Guide To CSS Debugging

We’ve all been there, at the end of completing CSS for a layout and — what’s that? Ah! An extra scrollbar! Or maybe an element is an unexpected color. And on some browsers, that new feature just doe

workflow , Techniques , Tools , Css

Victor Ayomipo - Solo Development: Learning To Let Go Of Perfection

As expected from anyone who has ever tried building anything solo, my goal was not to build an app but the app — the one app that’s so good you wonder how you ever survived without it. I had everyth

workflow , Inspiration , Web Design , Opinion Column

水冗水孚 - Initial connection超時接口無法正常請求Status canceled

問題描述 最近上了一版需求,其中有一個接口因為後端的計算量超級巨大,導致接口時間要達到七八秒才能返回對應結果。 上了生產環境以後,請求總是失敗。 測試環境是好好的... 查看控制枱請求發送的報文相關信息如下: 筆者看一下報文,發現請求的狀態從開始的pending等待到最後的canceled取消。 點開請求的Timing面板查看,發現請求卡在Connection Star的Initial conn

網絡請求 , tcp-ip

Cosima Mielke - March For Equality (2022 Desktop Wallpapers Edition)

We all need a little inspiration boost every now and again. Maybe your secret is to go for a walk, have a chat with a friend, or scroll through your favorite eye candy resources. Whatever it might b

Wallpapers , Graphics , Icons

Cristian Díaz - A Guide To Keyboard Accessibility: HTML And CSS (Part 1)

Keyboard accessibility is an important part of the user experience. There are multiple criteria in Web Content Accessibility Guidelines (WCAG) about this topic. Still, it’s somehow overlooked, affec

Guides , Accessibility , Css , HTML

Geoff Graham - Running A Page Speed Test: Monitoring vs. Measuring

This article has been kindly supported by our dear friends at DebugBear who help optimize web performance to improve user experience. Thank you! There is no shortage of ways to measure the

performance , optimization , Techniques , Tools

兔子先森 - PC瀏覽器端-PCM錄音+實時幀回調+流式上傳-Recorderjs

看到這裏的時候一定要理解並運行上文的《前端H5錄音實時幀回調-波形配置- Recorder.js》,這樣對Recorder有個概念。 1、通過onProcess回調可實現錄音的實時處理,onProcess的buffers參數內容為pcm數組(16位 LE小端模式 Little Endian),能直接流式的將數據進行上傳; 2、onProcess內的buffers參數為所有的PCM集合,

react , vue.js , HTML , 前端 , Javascript

Michelle Barker - Optimizing A Vue App

Single Page Applications (SPAs) can provide a rich, interactive user experience when dealing with real-time, dynamic data. But they can also be heavy, bloated, and perform poorly. In this article, w

Tools , Vue , Apps , Javascript

Preethi Sam - The Times You Need A Custom @property Instead Of A CSS Variable

We generally use a CSS variable as a placeholder for some value we plan to reuse — to avoid repeating the same value and to easily update that value across the board if it needs to be updated. :roo

animation , Css , Design

mob64ca140a1f7c - 摩爾斯電碼 — 摩爾斯密碼_51CTO博客

最近在研究摩爾斯電碼的時候,偶然發現了一個挺不錯的在線工具網站 ——Morse Coder。作為一個對老技術有點興趣的人,我花了1小時時間把這個網站的功能都深度體驗了一遍,感覺值得推薦給大家。 而且重要的是,完全免費。 先説説我最常用的幾個功能 文本翻譯器 這個功能最實用,就在首頁。你可以直接輸入文字,實時轉換成摩爾斯電碼,也可以反過來

上傳 , 翻譯器 , 註冊登錄 , Css , 前端開發 , HTML

星辰大海 - 爬蟲三部曲

爬蟲三部曲:從原理到實踐的合規化數據獲取指南 在信息爆炸的時代,數據已成為驅動決策與創新的核心資源。網絡爬蟲作為自動化獲取公開網絡數據的技術手段,在數據分析、市場調研、學術研究等領域發揮着不可替代的作用。然而,爬蟲技術的濫用可能觸及法律紅線、侵犯網站權益,甚至引發網絡安全風險。本文提出 “爬蟲三部曲”——目標分析與合規審查、技術實現與反爬應對、數據處理與倫理約束,系統梳理爬蟲開發的全流程規範與實踐

python爬蟲

子丶不語 - 用好 CSS 的三角函數,讓佈局更聰明

在日常開發中,我們經常用calc()、var()來讓樣式變得動態可控。但其實,CSS 還能做更“數學化”的計算——從 CSS Values Level 4 開始,瀏覽器支持了sin()、cos()、tan()等三角函數。 這意味着,我們在樣式中,也能像在 JavaScript 裏那樣,直接用角度計算出幾何關係,讓佈局、動畫更自然、更精準。 一、CSS 三角函數是什麼?

三角函數 , Math , Css , 前端開發 , HTML