Web Dev Trends
21 subscribers
697 photos
6 videos
690 links
Полезные статьи и новости веб разработки
Download Telegram
#webdev #cleancode #js #javascript

Understanding Clean Code: Functions ⚡️

In software development, functions are the building blocks of any application. They are the primary way we structure our logic, encapsulate behavior, and divide complex tasks into manageable pieces.

👉 Read article

@webdev_trends
#webdev #cleancode #js #javascript

Understanding Clean Code: Comments ⚡️

Code comments are considered necessary in software development, but the Clean Code book suggests that code should be self-explanatory without needing comments.

We'll explore when to use comments, when to avoid them, and how to write valuable comments in JavaScript code.

👉 Read article

@webdev_trends
#webdev #seo #google #GoogleUpdate

Google Revises Core Update Guidance: What’s Changed?

Google updates core algorithm guidance, offering advice for assessing traffic drops and improving content.

👉 Read article

@webdev_trends
#webdev #laravel #svelte

How to Integrate Svelte with Laravel: The Complete Guide

In this blog, we’ll be exploring the powerful combination of Laravel, InertiaJS, and Svelte to build fast, scalable, and maintainable web applications. But before we dive in, let’s take a brief look at each of these technologies and what they bring to the table.

👉 Read article

@webdev_trends
#webdev #javascript #js #tutorial

What is channels and the benefits of using it when working with events

Event handling is a critical aspect of any application development process. It allows applications to respond to user interactions or system occurrences by executing specific sets of code. There are various ways to manage these events, but one effective method is through the use of channels. Within this blog post, I will explore what channels are and the benefits they offer when working with events.

👉 Read article

@webdev_trends
#webdev #github #git #cli #gh

How to level up your Git game with GitHub CLI

Using Git in the CLI can improve your development speed and power. Here are our top eight commands for using GitHub via your command line.

Developers love working with the tools that make sense for them. At GitHub, we understand developers want to use GitHub in various ways. This includes using GitHub from the web, or even having a lightweight web editor with GitHub.dev. Developers can experience a full editing environment on the internet with Codespaces, use GitHub integrations with various editors, such as VS Code or JetBrains, and even use GitHub Desktop or GitHub from your mobile device with GitHub Mobile. Did you know, you can also use GitHub directly from the terminal?

👉 Read article

@webdev_trends
#laravel #feature #backend #webdev

📺 Here is What's New in Laravel

1️⃣ Is Facade Fake
2️⃣ Allow Custom View Path
3️⃣ Ask About Markdown Template
4️⃣ Assert Jobs NOT
5️⃣ Deduplicate
6️⃣ Collapse With Keys


➡️ https://youtu.be/LE0pZuCnCGU

@webdev_trends
#laravel #php #tips #webdev

When building your PHP web applications, it's important to keep your dependencies up-to-date and also to prevent installing Composer dependencies with known security vulnerabilities. This helps you to ensure that your application is secure and that you're benefiting from the latest features and bug fixes.

But it's really easy to fall behind on your dependency updates between general day-to-day development tasks. Thankfully, Composer provides us with a handy tool that you can use to get an overview of which packages you're using that have available updates.

In this Quickfire article, we're going to take a quick look at the composer outdated command to help you find outdated packages in your PHP project.

👉 Read article

@webdev_trends
#webdev #php #feature #tips #php84

New Array Functions in PHP 8.4

PHP 8.4 is set to be released in November 2024 and will introduce some handy new array functions:

✅ array_find
✅ array_find_key
✅ array_any
✅ array_all

In this article, we're going to take a quick look at these new functions and how you'll be able to use them in your projects running PHP 8.4.

👉 Read article

@webdev_trends
#webdev #php #feature #tips #php84

PHP 8.4 Property Hooks

PHP 8.4 will be released in November 2024 and will be bringing a cool new feature: property hooks.

In this article, we're going to take a look at what property hooks are and how you might use them in your PHP 8.4 projects.

As a side note, you might also be interested in checking out my other article which shows you the new array functions which are being added in PHP 8.4.

👉 Read article

@webdev_trends
#webdev #php #security #tips

Security Tip: Intercepting dump() Could Expose Production!


[Tip #89] dump() interceptors in dev tools like Herd and Telescope are very helpful, but be careful you don't accidently send dump() to production!

Laravel Herd Pro and Telescope are incredibly useful dev and debugging tools, with a variety of features. One of their more useful features is the Dump Watcher, which allows you to inject dump(...) anywhere in your code and then see the output within their own dump viewer - rather than on the page or in the terminal.

👉 Read article

@webdev_trends
#webdev #laravel #ddd #php #restapi

"domain-driven laravel" build great systems that are scalable and powerful

In the ever-expanding universe of software development, creating scalable, maintainable, and powerful systems is no small feat. With so many frameworks, tools, and patterns vying for your attention, it's easy to feel like a lost space traveler, orbiting without direction. But fear not, fellow developer! 🌌 The Domain-Driven Laravel repository is here to guide you through the cosmos of RESTful API development, using the Domain-Driven Design (DDD) methodology.

👉 Read article

@webdev_trends
#webdev #symfony #php

Using Symfony LoginFormAuthenticator to Solve Null Email

When integrating the ‘remember me’ feature in a Symfony 6 application, developers may encounter a critical issue where the ‘email’ field in LoginFormAuthenticator is unexpectedly null. This can lead to failures during user authentication, regardless of whether the ‘remember me’ checkbox is checked or not. The error specifically arises during the construction of the UserBadge object.

The problem may be traced back to various configuration settings or the way the form data is handled and submitted. Properly diagnosing this issue involves checking the Symfony security configurations and ensuring the form inputs are correctly managed. This introduction sets the stage for a deeper exploration into the common pitfalls and solutions related to Symfony’s security mechanisms.

👉 Read article

@webdev_trends
#webdev #symfony #php

Symfony AutowireIterator

I will demonstrate how to automatically and easily inject services with the same interface into your Symfony projects, without even needing to use services.yaml.

For this example, I’ll use an SMS sending scenario. Keep in mind that the following code is just a sample.

Let’s start by setting up the interface.

👉 Read article

@webdev_trends
#webdev #jwt #security

JWT at a glance

Many of us heard about JWT and while JWT has become a buzzword in tech circles, it's frequently misunderstood or confused with OAuth 2.0 and OIDC, particularly among those who use it without fully grasping its intricacies. Mixing up JWT with OAuth 2.0 and OIDC is like tossing different fruits into a blender and calling it all "smoothie." It's especially messy when folks treat these tech tools like magic wands, waving them around without peeking under the hood.

What is JWT? By itself is a small piece of data that contains information about someone or something. It's like a small container which is able to keep and transfer information between two different destinations. Or it's like a digital badge that proves who the user is and what this user is authorized to do.

👉 Read article

@webdev_trends
#webdev #php

State of Generics and Collections

Generics have been on the list of wanted features for a long time by numerous PHP developers. The topic is often brought up in "What's New in PHP?" talks as well during Q&A.

In this article we will be exploring the different approaches, and what their current state is.

👉 Read article

@webdev_trends
#webdev #WordPress #wp #php

Send email from WordPress the right way

Sending emails is a critical feature for many WordPress websites, whether it’s for account confirmations, notifications, or customized alerts. While many developers might default to using PHP’s mail() function, WordPress offers more robust and reliable alternatives. Let's explore the best practices for sending both plaintext and HTML emails within WordPress.

👉 Read article

@webdev_trends
#webdev #php #php84 #feature

PHP 8.4 Introduces `array_find` Function: Innovation or Gimmick?

The release of PHP 8.4 has brought many exciting new features, one of which is the array_find function. As a PHP developer, I’ve delved into this new feature and would like to share my insights, while also inviting everyone to join the discussion.

👉 Read article

@webdev_trends
#webdev #laravel #php

Mastering Laravel Artisan Commands: Optimize, Tinker, and More

Laravel's Artisan command-line interface is a powerful tool that can significantly enhance your development workflow. Whether you’re clearing caches, optimizing performance, or creating custom commands, understanding and utilizing these commands effectively can streamline your development process and make it more efficient. In this blog post, we’ll explore several essential Artisan commands and their use cases, including clearing and optimizing caches, interacting with your application using Tinker, listing available commands, and creating custom commands.

👉 Read article

@webdev_trends
#webdev #laravel #php

Learn how to create custom Facades in Laravel

Laravel Facades are a fantastic feature of the Laravel framework, providing convenient access to services via a simple interface. One thing that confused me when I was first learning Laravel was the facade accessor method.

Once you understand that facades are a convenient way to access underlying services in Laravel's service container, you can easily track the service behind ANY facade. Each facade provides a getFacadeAccessor() method that points to the registered service name.

👉 Read article

@webdev_trends
#webdev #HTML #jQuery #tutorial

How to Convert HTML to Excel File using jQuery

Hello, web developers! In this article, we'll see how to convert HTML to Excel using jQuery. Here, we'll use the jQuery plugin to convert HTML to an Excel file. You can click on the download button and Excel file download from the HTML.

Recently, I needed to convert an HTML table to an Excel file for a project I was working on. After some research and experimentation, I found an easy way to do it using jQuery and a library called SheetJS. Here's a step-by-step guide on how I did it.

SheetJS Community Edition offers battle-tested open-source solutions for extracting useful data from almost any complex spreadsheet and generating new spreadsheets.

👉 Read article

@webdev_trends