Found a total of 10000 related content
Building a Custom JavaScript Framework from Scratch
Article Introduction:This guide provides a step-by-step approach to building your own JavaScript framework, a valuable exercise for deepening your understanding of popular libraries like React, Vue, and Angular.
Core Framework Components:
Most frameworks manage: DOM mani
2025-01-24
comment 0
887
What's New in Foundation 6?
Article Introduction:Foundation 6: A Streamlined CSS Framework for Faster, More Efficient Web Development
Building from scratch offers complete control, but sometimes a framework accelerates development. Foundation, a long-standing contender alongside Bootstrap, has jus
2025-02-23
comment 0
459
Build a JavaScript Single Page App Without a Framework
Article Introduction:This tutorial demonstrates building a Single Page Application (SPA) from scratch using plain JavaScript, without relying on a front-end framework. This approach offers a deeper understanding of SPA architecture and component interaction.
Key Concep
2025-02-15
comment 0
312
Build REST Resources with Laravel
Article Introduction:In this part, we will begin to work with the REST interface. Creating a REST Api on Laravel isn’t very difficult. All we need to keep in mind is that we’re dealing with EmberJS and that we don’t want to write a new adapter from scratch. As usual, you
2025-02-20
comment 0
686
Steps and examples for building a dynamic PHP website with PhpStudy
Article Introduction:The steps to build a dynamic PHP website using PhpStudy include: 1. Install PhpStudy and start the service; 2. Configure the website root directory and database connection; 3. Write PHP scripts to generate dynamic content; 4. Debug and optimize website performance. Through these steps, you can build a fully functional dynamic PHP website from scratch.
2025-05-16
comment 0
480
An Introduction to the Front Controller Pattern, Part 2
Article Introduction:Core points
The front-end controller acts as a centralized proxy for the application, assigning commands to predefined handlers, such as page controllers or REST resources.
Front-end controllers can maintain a compact structure, route and dispatch incoming requests, and can also be extended to a fully functional RESTful controller, parse HTTP verbs, adapt to pre/post dispatch hooks, etc.
This article demonstrates how to deploy a small but scalable HTTP framework that works with front-end controllers, standalone routers, and schedulers while handling request/response cycles independently.
The author also introduced the process of building a front-end controller from scratch, including defining classes to simulate data and behaviors of typical HTTP request/response cycles,
2025-02-26
comment 0
990
What is the best way to learn js for beginners?
Article Introduction:When learning JavaScript from zero foundation, you should start with practice and write running code first to cultivate interest. The specific steps include: 1. Starting from a small HTML JS project, mastering basic DOM operations; 2. Disassemble and practice basic syntax such as variables, conditional judgment, loops, functions, etc.; 3. Learn to use console.log() and developer tools to debug code; 4. Complete simple tasks to build confidence, such as judging age, traversing arrays, and displaying object information; 5. Consider the learning framework after a solid foundation. The focus is on more hands-on, less theory, and promote the learning process through a sense of accomplishment.
2025-07-03
comment 0
599
Getting up and Running with the Vue.js 2.0 Framework
Article Introduction:Want to learn Vue.js from scratch? SitePoint Premium offers a complete collection of Vue books covering the basics, projects, tips and tools, and more. Join now for just $14.99 per month.
This article has been updated, mainly updated the tool section.
Ever since the popular JavaScript framework Vue.js released the v2 version, I can't wait to try it out and see how it feels like to use it. As someone who is very familiar with Angular and React, I look forward to seeing the similarities and differences between them and between Vue.
Vue 2 has excellent performance metrics, relatively small loads (bundled Vue
2025-02-14
comment 0
659
Feature-Based React Components
Article Introduction:React is becoming a full-stack framework with React Server Components and Server Actions. While React Server Components (RSC) allow us to read data in the UI from the database, Server Actions enable us to write data back to the database. Certainly UI
2024-12-26
comment 0
974
How to start HTML for beginners?
Article Introduction:The steps to learn HTML include: 1. Understand the basic concepts and structure of HTML; 2. Write a simple HTML page; 3. Master commonly used HTML tags and attributes; 4. Know how to view and debug web pages in the browser. HTML is the foundation of front-end development. By learning these steps, you can start from scratch and gradually master web design skills.
2025-04-03
comment 0
1163
How to Replace jQuery with Vue
Article Introduction:Say goodbye to jQuery and embrace Vue.js: build a simpler and more efficient web application
Want to learn Vue.js from scratch? Join SitePoint Premium now for a complete collection of Vue.js books covering Vue.js basics, project practices, tips and more for just $14.99 per month!
Many developers still rely on jQuery when building simple applications. While sometimes you only need to add a small amount of interactivity to your page, using JavaScript frameworks seems too complicated - extra code volume, boilerplate code, build tools and module packers, and more. Introducing jQuery from CDN seems like a breeze to choose.
This article is intended to convince you, even if it is right
2025-02-14
comment 0
924
How to Migrate Your App from Express to Fastify
Article Introduction:Express was once the most popular framework for developing web applications using Node.js. However, the framework has decreased active development in recent years, resulting in a lack of support for modern JavaScript features. At the same time, many new frameworks that adopt different approaches to Node.js application development emerge, and Fastify is one of them.
This article will explore why Fastify is a compelling alternative to Node.js web application development. We will learn how to avoid rewriting existing Express applications from scratch and instead move to Fastify step by step. After studying this article, you will be able to confidently transfer existing ones
2025-02-10
comment 0
925
What is Vue best used for?
Article Introduction:Vue.js is best suited for building modern web applications that require rapid development and efficient maintenance. 1) It is a progressive framework that allows for gradual expansion from small projects to large applications. 2) Its responsive data binding system and component development support enable developers to focus on business logic and improve development efficiency and code maintenance.
2025-04-02
comment 0
968
How to implement linear regression in Python?
Article Introduction:To implement linear regression in Python, we can start from multiple perspectives. This is not just a simple function call, but involves a comprehensive application of statistics, mathematical optimization and machine learning. Let's dive into this process in depth. The most common way to implement linear regression in Python is to use the scikit-learn library, which provides easy and efficient tools. However, if we want to have a deeper understanding of the principles and implementation details of linear regression, we can also write our own linear regression algorithm from scratch. The linear regression implementation of scikit-learn uses scikit-learn to encapsulate the implementation of linear regression, allowing us to easily model and predict. Here is a use sc
2025-05-16
comment 0
954
Explain the difference between React and Vue
Article Introduction:React is a library and Vue is a framework, which is the most fundamental difference between the two. As a view layer library, React needs to introduce third-party tools to implement routing (react-router) and state management (Redux, MobX), while Vue provides official supporting tools such as VueRouter and Pinia/Vuex as a progressive framework. React uses JSX to write structures in JavaScript, which are flexible but have high learning costs; Vue uses template syntax by default, and the structure and logic are separated, making it more intuitive and easy to learn. The React community has a huge ecosystem but complex choices and a steep learning curve; the Vue document is clear and the API is simple, suitable for rapid development of small and medium-sized projects. Both use virtual DOM, and the performance difference is not
2025-06-26
comment 0
912
How to Choose the Right Front-end Framework for Your Company
Article Introduction:Front-end framework selection key points
When choosing a suitable enterprise-level front-end framework, you need to consider the scale, flexibility, offline support, server-side rendering, and maturity of the framework. Practical experience is crucial, and the authors team used Aurelia and React to build authentication pages for evaluation.
The ultimate choice of React is based mainly on its maturity, community support and ease of recruitment. Angular 2 was eliminated for failing to meet most selection criteria. Vue and Aurelia performed well and met the requirements, but hiring experienced developers was the ultimate decisive factor.
In evaluating the core network platform of Singapore’s employee welfare startup CXA Group, we decided to abandon the aging existing architecture and rebuild the front end from scratch. flat
2025-02-16
comment 0
980
How do I test Python code?
Article Introduction:To test Python code, use the built-in unittest framework or the cleaner pytest library. 1. When using unittest, you need to create a test class inherited from unittest.TestCase, write a method that starts with test_, and use assertions to verify the result. 2.pytest does not require inheriting classes, just write a function that starts with test_ and use a normal assert statement. 3. During testing, boundary conditions, invalid input and exception handling should be covered, such as checking for zero-deletion errors. 4. Test automation can be achieved through Git hooks, CI/CD tools (such as GitHubActions) or IDE integration to ensure that each submission is verified, thereby improving code quality.
2025-06-24
comment 0
624
C tutorial for robotics and embedded systems
Article Introduction:To use C to develop robots and embedded systems from scratch, you need to master the following key points: 1. Learn basic syntax and object-oriented programming, especially classes, objects, inheritance, polymorphism, as well as pointers, references, memory management and STL containers; 2. Understand the structure of embedded systems, including hardware abstraction layer (HAL), interrupt processing and the use of RTOS; 3. Master common libraries and frameworks, such as ROS, Eigen, Boost.Asio and Paho-MQTT; 4. Build a development environment and master debugging skills, such as using Makefile, CMake, GDB, IDE and log output. Gradually improve skills through simulators or small platform practices.
2025-07-04
comment 0
177
Templating With Jinja2 in Flask: Essentials
Article Introduction:Jinja2: Efficient template engine in Flask applications
Jinja2 is a pure Python template engine that provides a Django-like non-XML syntax, while supporting inline expressions and optional sandboxing environments. It is compact, fast and easy to use and is a standalone template engine. Flask is a tiny Python-based web framework that allows you to write web applications quickly and efficiently.
This series of tutorials will explain the basic knowledge of Jinja2 templates from the perspective of Flask. The following section will introduce advanced template topics and learn how to layout templates in a modular and scalable way in Flask-based applications.
This tutorial assumes that you have mastered Fla.
2025-02-28
comment 0
616
Redux without React
Article Introduction:This article was peer-reviewed by Vildan Softic. Thanks to all the peer reviewers at SitePoint for making SitePoint’s content perfect!
I'm the kind of developer who likes to start from scratch and understand how everything works. While I know this brings myself an (unnecessary) workload, it does help me appreciate and understand the mechanisms behind a specific framework, library, or module.
Recently, I've experienced another moment and started developing a web application using Redux and pure JavaScript. In this article, I want to outline my application structure, examine my early (finally failed) iterations, and then look at the solution I finally chose and what I learned along the way.
Key Points
2025-02-17
comment 0
790