6 个仓库
Strategies for using pure functions and cloning to eliminate unintended modifications of global state.
Distinct from Side Effect Management Libraries: Focuses on pure functions for state isolation, whereas Side Effect Management Libraries focuses on external library tools.
Explore 6 awesome GitHub repositories matching web development · Pure Function Patterns. Refine with filters or upvote what's useful.
This is a collection of classic computer science algorithms and data structures implemented from scratch in JavaScript. The project provides reference implementations of fundamental concepts including sorting algorithms, binary search, linked lists, and binary search trees, all built as standalone pure functions with no external dependencies. The implementations cover a range of data structures, including singly-linked, doubly-linked, and circular linked lists with full traversal and mutation operations, as well as binary search trees supporting insertion, deletion, and search. Sorting algori
Ships each algorithm and data structure as an independent, reusable pure function module.
This project is a comprehensive collection of frontend development best practices and standards. It provides guides for writing semantic HTML, efficient CSS, and functional JavaScript to improve overall web performance and accessibility. The repository establishes frameworks for modern CSS architecture, focusing on specificity management and the use of Flexbox and Grid for predictable layouts. It outlines patterns for functional JavaScript programming, emphasizing the use of pure functions and composition to reduce execution time and dependency bloat. The guidelines cover several core capabi
Provides patterns for using pure functions and composition to eliminate state mutation and reduce dependency bloat.
This project is a JavaScript algorithm library and computer science reference. It provides a collection of standard computational logic patterns and data structure implementations, including linked lists, trees, and graphs, for both educational and practical use. The codebase serves as a technical interview study guide, offering a practical resource for practicing common coding challenges and data structure manipulations. It is designed for computer science education, allowing users to study how classic algorithms work by reviewing and running implementations of established logic patterns. T
Implements algorithms as standalone JavaScript modules exporting pure functions.
Just 是一个 JavaScript 实用程序库集合,专为数据操作、函数式编程、性能优化、统计分析和字符串处理而设计。它提供了一套用于深度克隆、过滤和转换复杂对象与数组的工具。 该项目被构建为一系列零依赖模块,允许独立使用实用程序以最小化包大小。它实现了包括柯里化、管道和部分应用在内的函数式编程模式,并通过记忆化、防抖和节流提供执行控制。 该库涵盖了广泛的功能,包括深度对象操作、组合数据生成以及素数验证和数值钳位等数学运算。它还包括用于计算方差和标准差等指标的统计工具,以及用于大小写转换和字符串插值的文本处理实用程序。
Implements pure function patterns that return new copies of data to prevent unintended mutation.
TinyColor 是一个 JavaScript 颜色处理库,用于解析、转换和修改各种格式和色彩空间的颜色。它既是一个色彩空间转换工具,也是一个 Web 无障碍对比度检查器,以确保符合可读性标准。 该库提供了一个调色板生成器,用于从起始颜色创建单色、类似色和互补色方案。它还可以在十六进制、RGB、HSL、HSV 和命名格式之间转换颜色。 其他功能包括颜色解析和归一化、亮度、饱和度和色相的程序化操作,以及通过对比度计算进行的 Web 无障碍审计。该工具集还涵盖了动态 UI 颜色生成和颜色感知分析。
Uses a pure functional pattern to return new color objects instead of modifying the original state.
This project is a comprehensive guide and set of engineering standards for writing readable, maintainable, and scalable JavaScript code. It provides a framework for software architecture, refactoring patterns, and clean coding practices designed to improve codebase health and longevity. The guide emphasizes the application of SOLID principles and architectural strategies such as dependency inversion and the separation of concerns. It focuses on transforming complex conditional logic through polymorphism and refactoring, while promoting a transition from imperative loops to declarative functio
Minimizes side effects through the use of pure functions and object cloning.