current location:Home > Technical Articles > Web Front-end
- Direction:
- All web3.0 Backend Development Web Front-end Database Operation and Maintenance Development Tools PHP Framework Daily Programming WeChat Applet Common Problem Other Tech CMS Tutorial Java System Tutorial Computer Tutorials Hardware Tutorial Mobile Tutorial Software Tutorial Mobile Game Tutorial
- Classify:
-
- Filtering and Chaining in Functional JavaScript
- The versatility of JavaScript: Object-oriented, imperative and functional programming What makes JavaScript powerful is its versatility, which supports object-oriented programming, imperative programming, and functional programming. Developers can flexibly switch programming paradigms according to project needs and team preferences. ES5 introduces native array methods such as map, reduce and filter, which greatly facilitates functional programming. Among them, the filter method can iterate through each element in the array and determine whether to add it to the new array based on the specified test conditions. Use filter method to simplify the code The filter method makes the code more concise and clear. It iterates over each element in the array and
- JS Tutorial 1110 2025-02-17 11:34:11
-
- How We Built EQCSS & Why You Should Try Building Your Own Polyfills Too
- This article explores Element Query CSS (EQCSS), a CSS extension enabling responsive design based on element conditions rather than viewport conditions. The author details their journey creating EQCSS, highlighting its benefits and challenges. Key
- JS Tutorial 836 2025-02-17 11:33:11
-
- 10 jQuery Panorama Image Display Plugins
- Ten excellent jQuery panoramic image display plug-ins to help you create an attractive website! This article will introduce ten powerful jQuery plug-ins to allow developers to easily create interactive 360-degree panoramic images on their websites. These plugins include Threesixtyslider, Paver, jQuery Spherical Panorama Viewer, jQuery Virtual Tour, SpriteSpin, Pano, Panorama 360° jQuery Plugin, jQuery Image Cube, Cyclotron, and jQuery Simple Panoram
- JS Tutorial 305 2025-02-17 11:31:08
-
- Optimizing Web Fonts for Performance: the State of the Art
- This article is a SiteGround partnership contribution. Thank you for supporting our sponsors. Sixty-seven percent of websites now utilize custom web fonts. This widespread adoption, however, presents performance and user experience challenges. Thi
- CSS Tutorial 479 2025-02-17 11:28:11
-
- An Alternative to Regular Expressions: apg-exp
- This article was peer-reviewed by Sebastian Seitz and Almir Bijedic. Thanks to all the peer reviewers at SitePoint for getting SitePoint content to its best! Almost every programmer will need to use regular expressions in some form from time to time. For many, pattern grammar may seem mysterious and daunting. This tutorial will introduce a new pattern matching engine apg-exp - a feature-rich alternative to RegExp, which uses ABNF pattern syntax and is easier to read. Key Points apg-exp provides a user-friendly alternative to regular expressions, using ABNF syntax for those who are not familiar with tradition
- JS Tutorial 1056 2025-02-17 11:25:18
-
- Life after JavaScript: The Benefits of Learning a 2nd Language
- This article explores the benefits of learning a second programming language after mastering JavaScript, focusing on broadening perspectives and enhancing skills. A survey reveals that a significant portion of developers are already proficient in mu
- JS Tutorial 576 2025-02-17 11:20:13
-
- Function Composition: Building Blocks for Maintainable Code
- JavaScript function combination: build more maintainable code JavaScript function combination is a technique of combining multiple simple functions into a single more complex function that performs subfunction operations on a given data in logical order. The order in which functions are applied produces different results. To write maintainable code, it is crucial to understand the return type of each combined function to ensure that the next function can handle it correctly. JavaScript does not prevent the combination from returning functions of inappropriate types, so this part of the responsibility falls on the programmer. For those who are not familiar with the functional programming paradigm, combining functions can make the code seem complicated. However, with the advent of ES2015 syntax, use arrow letters
- JS Tutorial 800 2025-02-17 11:19:09
-
- Redux without React
- 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
- JS Tutorial 682 2025-02-17 11:09:13
-
- Cache Fetched AJAX Requests Locally: Wrapping the Fetch API
- This article is written by invited author Peter Bengtsson. SitePoint's special guest post is designed to bring you great content from well-known writers and speakers in the JavaScript community This article demonstrates how to implement a local cache of fetched requests so that if executed repeatedly, it will be read from the session store. The benefit of this is that you don't need to write custom code for every resource you want to cache. If you want to show off your next JavaScript party and show off your various skills in handling Promise, state-of-the-art APIs, and local storage, read on. Main gains With the Fetch API, developers can create local caches of AJAX requests by reducing redundancy
- JS Tutorial 564 2025-02-17 11:06:10
-
- Managing State in Angular 2 Apps with ngrx/store
- Managing Application State in Angular 2 with ngrx/store: A Comprehensive Guide This article explores effective state management in Angular 2 applications using the ngrx/store library, a Redux implementation leveraging RxJS. We'll address the challen
- JS Tutorial 688 2025-02-17 11:05:15
-
- 6 Free Material Design CSS Frameworks for 2017 Compared
- Google's Material Design: A Deep Dive into CSS Frameworks Key Considerations: Since its 2014 debut, Google's Material Design has become a dominant design language across numerous Google products and beyond. Web developers can leverage its aesthetic
- CSS Tutorial 917 2025-02-17 11:04:13
-
- Building a JavaScript 3D Minecraft Editor
- This article explores building a rudimentary 3D Minecraft-style world using only CSS transformations, HTML, and JavaScript, avoiding complex 3D programming. The author leverages their existing CSS knowledge, highlighting how concepts like z-index, l
- JS Tutorial 986 2025-02-17 10:55:10
-
- Quick Tip: What Are Factory Functions in JavaScript
- JavaScript factory functions: Powerful pattern for building composable objects A JavaScript factory function is a function that returns an object and creates multiple similar objects without using the new or this keyword. This article will explore several uses of factory functions, including parametric factory functions, composable factory functions, asynchronous factory functions, and advanced factory functions, showing how to use them to build more flexible and easier to maintain JavaScript code. Core concept Factory function: Returns the function of the object. Parameterized factory function: The factory function that accepts parameters to change the return object structure. Composable factory functions: the work of building complex objects by combining other factory functions
- JS Tutorial 712 2025-02-17 10:54:13
-
- Building a Facebook Chat Bot with Node and Heroku
- Build a Facebook chatbot using Node.js and Heroku, peer-reviewed by Joan Yin and Camilo Reyes. Thanks to all SitePoint peer reviewers for getting SitePoint content to its best! At last year’s f8 conference, Facebook launched the Messenger platform, enabling developers to create bots that can talk to people on Messenger or Facebook pages. With robots, application owners can better interact with users by providing personalized and interactive communication that can
- JS Tutorial 851 2025-02-17 10:52:14
-
- Introduction to Developing jQuery Plugins
- jQuery plug-in: a powerful tool to improve development efficiency This article will explore the development of jQuery plug-ins in depth, explain its advantages and guide you to create your own plug-ins step by step. jQuery plug-in can significantly reduce development time and improve code reuse. Just write function code once and you can reuse it in multiple projects, greatly improving development efficiency. We will use a sample plugin called fancytoggle as an example to demonstrate various links of plug-in development. This plug-in is used to toggle the visibility of nested elements, such as list items, to create interactive components similar to the accordion, such as the FAQ section. You can visit CodePen to view the fancytoggle plugin
- JS Tutorial 579 2025-02-17 10:50:13