Pragmatic web API guidlines

Thumbnail

When starting to create a new system, or participating in a new team or project, there is a simple but profound question: Is there a design specification for the API of this system (Web Server)? image by stable difussion, prompt by alswl This issue has bothered me for a long time, starting during my school days, and every time I needed to communicate and discuss with my team members. From the initial free style to the later REST, I often referenced Github v3 to the project team and the Foursqure API (no longer accessible, exposing age) documentation....

<span title='2023-04-03 11:34:18 +0800 +0800'>2023-04-03</span>&nbsp;·&nbsp;alswl

Type system in Python

Thumbnail

image from pixabay.com Static typing is becoming more and more popular. Several languages born after 2010, Go, Rust, TypeScript, etc., have gone the static typing route. Some of the previously popular dynamic languages (Python, PHP, JavaScript) are also actively introducing new language features (Type Hint, TypeScript) to enhance static typing. Having worked on larger projects in Python, I have experienced the difficulties that dynamic languages pose when projects get large: The cost of code regression during the refactoring phase was unusually high, and much of the historical code was afraid to move....

<span title='2020-06-23 17:54:00 +0800 +0800'>2020-06-23</span>&nbsp;·&nbsp;alswl