18 repositorios
Fixing the this value of a function to maintain a consistent object context.
Distinct from Foreign Function Bindings: Focuses on the permanent binding of a function's context rather than temporary invocation or foreign bindings.
Explore 18 awesome GitHub repositories matching programming languages & runtimes · Function Context Binding. Refine with filters or upvote what's useful.
This project is a JavaScript style guide and a set of coding standards designed to ensure codebase consistency. It provides a collection of best practices for writing maintainable and idiomatic code, focusing on variable naming, type checking, and execution context. The project serves as a static analysis guide, offering frameworks and guidelines for using linters and automated tools to identify bugs and verify code correctness before deployment. It establishes standards for formatting, syntax, and variable declarations to standardize code style across a project. The scope of the project cov
Provides standards for fixing the this value of functions to maintain consistent object context across environments.
This project is a comprehensive JavaScript programming tutorial and language reference. It serves as a web development education resource providing instruction on modern language fundamentals, object-oriented design, and advanced asynchronous programming patterns. The resource functions as both a frontend development guide and a technical reference. It covers core language features such as closures, prototypes, promises, and typed arrays, while providing practical lessons on managing browser data and handling network requests. The content spans several key capability areas, including browser
Instructs on fixing the 'this' value to maintain consistent object context during function execution.
node-lessons is a comprehensive Node.js programming course and instructional guide. It provides a collection of guided lessons and code examples designed to teach the fundamentals of the Node.js runtime and server-side JavaScript development. The project serves as a practical guide for building web servers and backend applications, specifically covering the implementation of HTTP servers, request routing, and middleware chains. It includes specialized instructional material on managing asynchronous JavaScript workflows through promises and flow control, as well as guides for integrating NoSQL
Explains how to fix the this value of a function to maintain consistent object context.
The ECMAScript specification is the formal standard defining the syntax, semantics, and execution model that all JavaScript implementations must follow. It establishes the official language rules through a combination of formal grammar and step-by-step algorithmic prose. The project manages the technical evolution of the language via a consensus-driven governance framework and a staged proposal pipeline. This process tracks features from initial design through expert reviewer sign-off and committee approval. A specification-as-code toolchain compiles these formal definitions and algorithmic d
Defines the mechanism for fixing the this value of a function to maintain a consistent object context.
This project is a technical interview study guide and a markdown-driven static site designed to help developers prepare for coding screenings. It serves as a curated collection of common technical questions and expert answers, functioning as a comprehensive educational resource. The platform provides a structured curriculum and reference materials across several key domains. This includes a JavaScript language reference covering programming fundamentals, a frontend engineering curriculum focused on UI patterns and responsive design, and a web security knowledge base detailing attack vectors a
Details how to fix the execution context of a function using binding techniques.
This repository is a curated knowledge base focused on core JavaScript fundamentals, specifically designed for frontend interview preparation. It provides structured explanations of essential concepts including closures, prototype chains, execution contexts, and memory management, serving as a reference for developers seeking to deepen their understanding of the language's inner workings. The content covers a range of practical JavaScript topics, including object copying techniques (shallow and deep copy), event handling optimization through throttle and debounce patterns, and functional prog
Applies the five ways to bind this in JavaScript, including arrow functions and call/apply/bind.
This project is a technical interview preparation resource focused on JavaScript. It provides a collection of common technical questions, detailed answers, and conceptual quizzes designed to help users master core language fundamentals and browser APIs. The resource utilizes an interactive infrastructure that includes a coding workspace with in-browser runtime execution and an automated test suite to validate code correctness. It organizes content through curated learning paths and modular concept mapping to decompose complex language fundamentals into searchable study modules. The curriculu
Explains how to preserve the correct object context during function execution using binding.
This project is a comprehensive frontend interview preparation resource built around a question bank of over 1000 curated questions. It covers HTML, CSS, JavaScript, Vue, React, Node, TypeScript, Webpack, algorithms, and network security, with each question accompanied by a detailed answer explanation. The content is organized into a hierarchical category tree for browsable exploration, and a daily question rotation algorithm presents one question per day for systematic review. A client-side search index enables instant filtering of questions by title or tag, and the entire question bank is p
Provides exercises for binding a function to a specific context and preset arguments, creating a new function with a fixed this value.
Pry is a programmable Ruby shell, REPL console, and runtime developer environment. It serves as a debugging toolkit for inspecting object state, navigating bindings, and evaluating code within a running Ruby program. The project differentiates itself through advanced introspection and live iteration capabilities. It allows users to inject an interactive console into a running program at specific points to inspect local state and navigate different object scopes. It further enables live code iteration by integrating with external system editors to modify and reload method definitions without r
Allows users to move the session context into and out of different objects or bindings to explore internal state.
This project is a reference catalogue of the new syntax and behavioral changes introduced in the ECMAScript 6 (ES6) specification for JavaScript. It serves as a curated overview and comparison table of the language features defined by the standard, documenting additions such as block scoping with let and const, arrow function syntax, default parameter handling, and rest parameter collection. The reference is structured as a side-by-side comparison chart that maps old and new JavaScript syntax patterns, providing a focused guide for each capability. It covers the core language fundamentals
Captures the surrounding this value automatically inside arrow functions, removing manual binding.
You Don't Know JS is an open-source educational book series that explains the core mechanisms of the JavaScript language in depth. The project is a freely available learning resource, structured as independent volumes that each focus on a single JavaScript mechanism, and is available in a complete Brazilian Portuguese translation. The series explores how JavaScript's fundamental systems work under the hood, including scope, closures, prototypes, and the this keyword. It covers concepts such as lexical-scope compilation, closure-based variable retention, hoisting-based variable declaration,
Demonstrates how the this keyword is determined by the call-site context rather than function definition.
Rhai es un motor de scripting embebido y lenguaje de tipado dinámico diseñado para integrarse en aplicaciones Rust. Funciona como un compilador de árboles de sintaxis abstracta (AST) y una capa de interoperabilidad nativa, permitiendo a los desarrolladores mapear tipos y funciones de Rust en un entorno de scripting para comunicación bidireccional. El proyecto sirve como framework para crear lenguajes específicos de dominio (DSL) personalizables. Permite definir operadores, sintaxis y entornos de ejecución restringidos, facilitando la creación de lenguajes especializados con conjuntos funcionales a medida. El motor cubre una amplia gama de capacidades, incluyendo sandboxing con límites de recursos para una ejecución segura, organización modular del código y procesamiento integral de datos para tipos numéricos, de cadena y binarios. También proporciona herramientas para la manipulación de AST, serialización del estado de ejecución y observabilidad en tiempo de ejecución mediante la inspección del stack de llamadas y interfaces de depuración. Está diseñado para despliegue multiplataforma en cualquier CPU o sistema operativo compatible con el compilador nativo.
Allows associating a specific object with a function call to serve as the internal this context.
Este proyecto es un blog de desarrollo frontend y una base de conocimientos técnicos. Sirve como referencia de ingeniería de software y portafolio de desarrollo web, proporcionando una colección curada de artículos y notas sobre ingeniería frontend, patrones de programación y fundamentos de ciencias de la computación. El sitio se centra en la educación en ingeniería frontend y la gestión del conocimiento técnico. Cubre patrones de arquitectura de software, flujos de trabajo de desarrollo web y preparación para entrevistas de ingeniería a través de la organización de guías técnicas y tutoriales. El alcance del proyecto incluye la documentación de los internos del navegador, la implementación de interfaces reactivas y la optimización del rendimiento web. También aborda estructuras de datos, algoritmos y el proceso de construcción y despliegue de sitios web estáticos.
Explains explicit this binding techniques using call, apply, and bind to reuse logic across contexts.
Scala.js es un compilador y cadena de herramientas de lenguaje multiplataforma que transforma código fuente de Scala en JavaScript o WebAssembly. Funciona como una herramienta tipada estáticamente para el ecosistema JavaScript, permitiendo el desarrollo de aplicaciones para navegadores web y entornos Node.js. El proyecto sirve como framework de interoperabilidad con JavaScript, permitiendo la creación de fachadas y bindings tipados de forma segura para interactuar con librerías externas y objetos globales. Proporciona mecanismos para la invocación de JavaScript tanto estática como dinámica, incluyendo la generación de bindings de TypeScript y la capacidad de exportar lógica interna para su uso en código JavaScript externo. La cadena de herramientas incluye una herramienta de construcción frontend para empaquetado de producción y optimización de salida, incluyendo eliminación de código muerto y división de módulos. Cubre una amplia superficie de capacidades, incluyendo verificación de tipos de elementos DOM para desarrollo de UI, intercambio de código multiplataforma para desarrollo full-stack y varios frameworks de pruebas para verificar artefactos de construcción optimizados. Los scripts compilados pueden ejecutarse directamente dentro de un entorno de línea de comandos utilizando un intérprete de JavaScript.
Captures the JavaScript this value as an explicit parameter to maintain closure compatibility in compiled functions.
core-decorators is a JavaScript class decorator library and framework utility for extending class functionality. It provides a collection of tools for implementing class behavior mixins, automating method binding to avoid manual constructor configuration, and verifying that subclass methods correctly override parent methods. The library includes a code deprecation toolkit for flagging obsolete methods with console warnings and a function execution profiler for measuring performance and duration. It further enables the modification of class and method behavior through a system of custom decora
Provides utilities to permanently bind the this context to class instances for consistent function execution.
Este repositorio es una colección de desafíos de programación en JavaScript y una guía de entrevista integral. Proporciona implementaciones de referencia y ejemplos educativos diseñados para ayudar a los desarrolladores a dominar los fundamentos del lenguaje y prepararse para entrevistas técnicas. El proyecto cubre una amplia gama de implementaciones especializadas, incluyendo patrones de programación funcional como currying y aplicación parcial, así como patrones asíncronos para el control de concurrencia. También incluye ejemplos prácticos de manipulación del Document Object Model (DOM) y la implementación de estructuras de datos comunes como pilas y colas. A grandes rasgos, la colección abarca características avanzadas del lenguaje, implementaciones de patrones de diseño y manipulación de estructuras de datos. Aborda una superficie que incluye programación asíncrona, interacción con el DOM, patrones de creación orientados a objetos y operaciones primitivas de bajo nivel.
Provides the capability to create functions with a specified context to ensure consistent execution against an object.
This project is a translated historical chronicle and programming language reference documenting the technical evolution and standardization of JavaScript over two decades. It serves as a software engineering archive that tracks version drafts and the influence of various standards bodies on the development of the language. The repository provides a Chinese translation of a comprehensive history, analyzing the socio-political and technical milestones of the ecosystem. It maps language milestones and chronicles the development of official specifications to provide historical context on how the
Explains the process of binding function contexts to maintain consistent object references.
EventEmitter3 is a high-performance JavaScript event emitter and publish-subscribe library. It implements the observer pattern to enable decoupled communication between application components through the registration and emission of custom events. The library functions as a context-aware event dispatcher, allowing specific execution contexts to be bound to listeners. This removes the need for manual function binding during event dispatching. The project covers core event management capabilities, including listener registration and a synchronous execution loop for event delivery. It utilizes
Provides a mechanism to bind a specific object as the execution context for event listeners.