6 Repos
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 is a collection of JavaScript utility libraries designed for data manipulation, functional programming, performance optimization, statistical analysis, and string processing. It provides a set of tools for deep cloning, filtering, and transforming complex objects and arrays. The project is structured as a series of zero-dependency modules, allowing utilities to be used independently to minimize bundle size. It implements functional programming patterns including currying, piping, and partial application, and provides execution control through memoization, debouncing, and throttling. The
Implements pure function patterns that return new copies of data to prevent unintended mutation.
TinyColor ist eine JavaScript-Bibliothek zur Farbbearbeitung, die zum Parsen, Konvertieren und Modifizieren von Farben über verschiedene Formate und Farbräume hinweg verwendet wird. Sie fungiert als Tool zur Farbraumkonvertierung und als Web-Accessibility-Kontrastprüfer, um die Einhaltung von Lesbarkeitsstandards sicherzustellen. Die Bibliothek bietet einen Farbpaletten-Generator zur Erstellung monochromer, analoger und komplementärer Farbschemata ausgehend von einer Startfarbe. Zudem übersetzt sie Farben zwischen Hex-, RGB-, HSL-, HSV- und benannten Formaten. Zusätzliche Funktionen umfassen das Parsen und Normalisieren von Farben, die programmatische Manipulation von Helligkeit, Sättigung und Farbton sowie Web-Accessibility-Audits durch Kontrastverhältnis-Berechnungen. Das Toolset deckt zudem die dynamische UI-Farbgenerierung und die Analyse der Farbwahrnehmung ab.
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.