Injecting External State into Parser Logic
Standard parser definitions typically operate solely on the input string. However, when generating an AST, you often need external context or configuration flags to influence how nodes are built.
Consider a scenario where you want to apply a multiplier to every numeric literal encountered during parsing. You can declare a state parameter direct ...
Posted on Sun, 05 Jul 2026 16:58:05 +0000 by zkent
Getting Started with Vue.js: Project Setup, Core Concepts, and Essential Libraries
Setting Up a Vue.js Project
Using Vue CLI to Create a Project
Method 1: Command Line
Execute the following command in your terminal:
vue create project-name
Method 2: Graphical Interface
Open your terminal and run:
vue ui
This command launches the Vue Project Manager in your browser, allowing you to create and manage projects through a visual ...
Posted on Fri, 26 Jun 2026 16:21:31 +0000 by 4evernomad
Building a Smart Home Control Panel with LVGL
Project Overview
In this project, we will develop a comprehensvie smart home control panel using LVGL. The interface will include multiple sections such as environmental monitoring, device control, scenario management, and system status display.
UI Layout Structure
The main interface is divided into four sections:
Header: Logo and user informa ...
Posted on Mon, 22 Jun 2026 17:43:04 +0000 by matstuff
Vue.js Interview Essentials: Key Concepts and Implementation Details
This collection covers frequently asked Vue.js interview questions, including fundamental concepts, implementation details, and best practices. The question are categorized by importance (⭐ to ⭐⭐⭐) based on their relevance to Vue development.
1. Vue.js Data Binding Principles ⭐⭐⭐
Vue 2: Implements data binding through a combination of ob ...
Posted on Sun, 21 Jun 2026 17:47:07 +0000 by lorri
Understanding React Components: Event Handlers, Lifecycle Methods, State Management, and Props Communication
Custom Functions in React
Event Handler Naming Conventions
React uses camelCase for event names. The HTML onclick becomes onClick, and onchange becomes onChange.
Basic Click Events
When attaching event handlers, avoid parentheses—adding () immediately invokes the function:
import React, { Component } from 'react';
export default class App exte ...
Posted on Fri, 19 Jun 2026 17:37:28 +0000 by xyzleft
Comprehensive Guide to Vuex State Management
Vuex is a state management pattern and library designed for Vue.js applications. It serves as a centralized store for all the components in an application, enforcing rules to ensure that the state can only be mutated in a predictible fashion. This architecture facilitates data sharing and caching across components, solving the problem of prop d ...
Posted on Sun, 17 May 2026 10:41:39 +0000 by ag3nt42
Practical Vuex: Core Patterns and Module Organization
Vuex centralizes application state into a single store, making data flow predictable. The store is defined with an initial state, mutations for synchronous updattes, actions for asynchronous work, getters for derived values, and modules for scalability.
Accessing State
Create a store instance (src/store/index.js):
import Vue from 'vue'
import V ...
Posted on Fri, 15 May 2026 21:30:51 +0000 by ilangovanbe2005
State Management with Redux and React-Redux
Core Concepts of ReduxRedux is a standalone JavaScript library designed for predictable state management. Although it can integrate with any UI framework, it is predominantly paired with React to centralize shared states across multiple components.When to Adopt ReduxMultiple components require access to the same state.A component needs to modif ...
Posted on Fri, 15 May 2026 08:02:22 +0000 by o2cathy
WeChat Mini Program Development: Core Concepts and Advanced Techniques
Getting Started with WeChat Mini Programs
Registering a Mini Program
Visit: https://mp.weixin.qq.com/
Downloading the Development Tools
Download the official editor from: https://developers.weixin.qq.com/miniprogram/dev/devtools/stable.html
Implementing Throttling, Pagination, and Loading States
// pages/storeList/storeList.js
Page({
data: { ...
Posted on Thu, 14 May 2026 07:56:40 +0000 by Exdaix
Implementing Expand/Collapse List Items with Vue.js
To create an exapndable list where clicking an item shows its content while hiding others, implement a Vue component with state management for tracking active items and toggle status.
Template Structure
<div class="faq-section">
<h3>Frequently Asked Questions</h3>
<ul class="faq-list">
...
Posted on Sun, 10 May 2026 13:14:52 +0000 by Firestorm3d