随笔分类 - Patterns
摘要:This course is based on our Coding Better Composables blog series authored by Michael Thiessen. If you can get async code to work correctly, it can si
阅读全文
摘要:This course is based on our Coding Better Composables blog series authored by Michael Thiessen. The composable you wrote last month returns an object,
阅读全文
摘要:This course is based on our Coding Better Composables blog series authored by Michael Thiessen. What if your composable could change what is returned
阅读全文
摘要:This course is based on our Coding Better Composables blog series authored by Michael Thiessen. When using composables in Vue.js, sometimes you alread
阅读全文
摘要:ABT SDK Design The entire ABT SDK includes numerous APIs and tools to support application development, including: ABTCore: Provides the core functiona
阅读全文
摘要:How to Control Requests? Controlling requests involves addressing several key issues: 1. How to Maximize Bandwidth Utilization In chunked uploads, a l
阅读全文
摘要:Code design SDK has 3 layers: Upload Protocol: Defines the communication format between the frontend and backendt upload-core: Protocol-based API that
阅读全文
摘要:How to coordinate frontend and backend? File upload involves interaction between the frontend and backend, requiring the establishment of a standard c
阅读全文
摘要:Background Our SaaS platform includes the upload of large files such as company information and meeting videos. Without special handling, the followin
阅读全文
摘要:When company's API become huge and always changing, if request-busis maintained by developers manually, it's not only time consuming but also error pr
阅读全文
摘要:Idempotency is a mathematical concept often abstracted as: f(n) = 1n, no matter what's the value of n, f(n) alwayhs equals 1 In network requests, many
阅读全文
摘要:Usage of a cached request: const req = createCacheRequestor(); req.get('/a') // request req.get('/a') // use cache req.get('/b') // request req.get('/
阅读全文
摘要:Three layers design Low level implementation Layer: using low level implementation to complete basic operation. For the network request, we can use th
阅读全文
摘要:Creational patterns provide object creation mechanisms that increase flexibility and reuse of existing code. Factory method: Provides an interface for
阅读全文