Web Developer Notes - Page 6

code

How to Install and Delete XAMPP on Linux (Ubuntu)

Last updated: 26.10.2025
Views: 304
XAMPP is a web development server build. This software is cross-platform, there are versions for Linux, Windows and Mac. The build includes Apache, PHP, MariaDB, phpMyAdmin. The project is constantly evolving. You can download XAMPP at www.apachefriends.org/download.html Installation After downloading the package, let's set the rights. [bash] sudo chmod 755 xampp-linux-*-installer.run [/...
JavaScript

Smooth Scrolling to Anchor Using JavaScript

Last updated: 06.04.2026
Views: 298
Smooth scrolling is a popular web design feature that enhances user experience by allowing seamless navigation between sections of a webpage. Instead of abrupt jumps, smooth scrolling creates a fluid transition, making interactions feel more natural and visually appealing. This technique is especially common on landing pages, where navigation links often point to different sections of the same ...
php

Caching Data to a File Using PHP

Last updated: 06.04.2026
Views: 364
Sometimes it becomes necessary to limit the number of requests to an external data source, especially when the data does not change frequently. For example, this can be useful when working with APIs that provide exchange rates, weather data, or other information that is updated only periodically. Making a request on every page load in such cases is inefficient and can slow down your application. ...
JavaScript

Ways to Create Objects in JavaScript

Last updated: 21.02.2026
Views: 240
There are several ways to create objects in JavaScript. The Object data type plays a critical role in JS. An object is an unordered set of key-value pairs. May contain other objects. 1. Literal notation [js] const someObject1 = {}; [/js] Perhaps the most common and easiest way. Let's add properties and methods [js] someObject1.name = "John"; someObject1.age = 25; someObject1.run...
JavaScript

How to Detect Scroll Direction on a Page Using JavaScript

Last updated: 02.04.2026
Views: 264
Sometimes it is necessary to detect the direction of vertical scrolling on a website in order to dynamically change the behavior of interface elements. For example, this can be useful when working with a header or footer — hiding them while scrolling down to save screen space, and showing them again when the user scrolls up. Scroll direction detection can also improve user experience in other s...