后端开发
Node.js、NestJS、Spring Boot、Python 后端、Socket、Nginx 与支付集成的服务器端开发。
Module 2: Flask & Jinja2 Lightweight Web Apps
Flask is a "microframework" that provides the essentials for building web applications. Combined with Jinja2 templates, it's perfect for serverside rendered websites.
阅读文章 →Module 0.5: Jinja2 The Python Template Engine
Jinja2 is a fast, expressive, and extensible templating engine for Python. It is the default engine for Flask and can be used with many other frameworks including FastAPI and Django.
阅读文章 →Advanced Jinja2 Features
Take your templating skills to the next level with these advanced concepts.
阅读文章 →Module 0: Understanding RESTful APIs
Before diving into code, it is essential to understand the architectural style that powers most of the modern web: REST Representational State Transfer.
阅读文章 →RESTful API Best Practices & Examples
This guide provides practical examples and advanced concepts for building highquality REST APIs.
阅读文章 →Introduction to Networks
A network is a collection of interconnected devices computers, servers, routers, etc. that can communicate with each other and share resources. Networks enable data exchange between devices regardless of their physical l
阅读文章 →OSI Model and TCP/IP Stack
The OSI model is a 7layer conceptual framework that standardizes the functions of a telecommunication or computing system.
阅读文章 →IP Addresses and Ports
An IP Internet Protocol address uniquely identifies a device on a network. It's like a postal address for your computer.
阅读文章 →Network Protocols Overview
A protocol is a set of rules that defines how devices communicate over a network. It specifies: How to format data How to establish connections How to handle errors How to terminate communication
阅读文章 →What are Sockets?
A socket is an endpoint for communication between two programs running on a network. It's a software abstraction that provides an interface between an application and the network protocol stack TCP/IP.
阅读文章 →Socket Types and Domains
The domain also called address family specifies the address format and communication scope.
阅读文章 →Socket API Functions
The Socket API provides a set of functions to create, configure, and use sockets. This module covers the core functions used in socket programming.
阅读文章 →Socket Lifecycle
Understanding the socket lifecycle is crucial for writing robust network applications. This module explains the complete lifecycle from creation to termination.
阅读文章 →TCP Server Implementation
TCP servers are connectionoriented and provide reliable, ordered communication. This module teaches you how to build a TCP server from scratch.
阅读文章 →TCP Client Implementation
TCP clients initiate connections to servers and communicate over reliable, ordered connections. This module covers building TCP clients.
阅读文章 →Handling Multiple Clients
A basic TCP server handles only one client at a time. Realworld servers need to handle multiple clients concurrently. This module covers different approaches.
阅读文章 →TCP Error Handling
Robust error handling is crucial for production socket applications. This module covers common errors and how to handle them properly.
阅读文章 →UDP Server Implementation
UDP User Datagram Protocol is connectionless and provides fast, lowoverhead communication. This module covers building UDP servers.
阅读文章 →UDP Client Implementation
UDP clients are simpler than TCP clients since no connection is required. This module covers building UDP clients.
阅读文章 →UDP vs TCP Comparison
Understanding when to use UDP vs TCP is crucial for effective socket programming. This module provides a detailed comparison.
阅读文章 →Byte Ordering Endianness
Byte ordering, or endianness, determines how multibyte values are stored in memory. This is crucial for network communication where different systems may use different byte orders.
阅读文章 →Address Structures
Socket addresses are represented differently in different languages and APIs. This module explains address structures and how to work with them.
阅读文章 →Exercise 1: Echo Server
Build a TCP echo server that receives messages from clients and sends them back.
阅读文章 →Exercise 2: Chat Application
Build a multiuser chat server where clients can send messages that are broadcast to all connected clients.
阅读文章 →