Web Dev Trends
21 subscribers
697 photos
6 videos
690 links
Полезные статьи и новости веб разработки
Download Telegram
#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
#webdev #react #javascript #typescript

How to Build a React Hook That Handles Sequential Requests

When you need to respond quickly to user actions and fetch the latest data from the backend, you might require a React Hook that supports sequential requests. This hook can cancel previous requests if they are still ongoing and only return the most recent data. This not only improves performance but also enhances the user experience.

👉 Read article

@webdev_trends
#webdev #javascript

The Differences Between `export default xx` and `export {xx as default}`

A comprehensive guide to understanding the differences between export default and named exports in JavaScript

👉 Read article

@webdev_trends
#webdev #javascript #tutorial

🌍💻 Unleashing the Power of the Navigator Object in JavaScript

Have you ever wondered how websites know so much about your browser and device? 🤔 Meet the navigator object in JavaScript—a versatile tool that acts as a bridge between your web application and the user’s environment. Whether you're looking to gather insights about the user's browser or tap into device-specific features, navigator is your go-to resource. In this post, we’ll dive deep into the essential properties and methods of the navigator object, revealing how it can help you build more dynamic, personalized, and interactive web experiences.

👉 Read article

@webdev_trends
#webdev #javascript #react #redux #tutorial

The Evolution of React State Management: From Local to Async

This article presents an overview of how State was managed in React Applications thousands of years ago when Class Components dominated the world and functional components were just a bold idea, until recent times, when a new paradigm of State has emerged: Async State.

👉 Read article

@webdev_trends
#webdev #javascript #beginners #tutorial

Optional Chaining and Nullish Coalescing

Let’s say you have an object representing a user, and you want to access their address.

👉 Read article

@webdev_trends
#webdev #javascript #blockchain #tutorial

Let's Build a Blockchain with JavaScript! A Beginner's Guide

Ever heard of Bitcoin, Ethereum, or NFTs? These are all powered by blockchain technology, a revolutionary way to manage and share information securely and transparently.

But how does it work? It might seem complicated at first, but trust me, it's not as intimidating as it sounds! This guide will make blockchain development feel accessible, even if you're just starting out.

👉 Read article

@webdev_trends
#webdev #javascript #tutorial

Understanding Tree Shaking in JavaScript: A Quick Guide

As modern web applications grow in complexity, so does the need to optimize their performance. One powerful technique that has gained popularity in recent years is tree shaking. If you’ve heard the term but aren’t quite sure what it means or how it works, this post is for you.

👉 Read article

@webdev_trends
#webdev #css #tutorial

12 Simple and Effective CSS Transition Effects for Your Website

CSS transitions are a great way to add subtle animations to your website, improving the user experience and adding a touch of interactivity. Below are 12 CSS transition effects you can easily implement in your projects.

👉 Read article

@webdev_trends
#webdev #javascript #TypeScript #tutorial

15 TypeScript Features That Will Make You a Better JavaScript Developer

If you're a JavaScript developer, you've probably heard the buzz around TypeScript. It's more than just a trend—TypeScript is a powerful tool that enhances your JavaScript code by adding static typing, which helps catch errors early, improves code readability, and makes your projects more scalable.

👉 Read article

@webdev_trends
#webdev #javascript #tutorial

How To Add Auth With Lucia To Your React/Next.js App - A Step By Step Guide

Although authentication is one of the most common web app features, there are so many different ways to go about it, which makes it a very non-trivial task. In this post, I will share my personal experience using Lucia - a modern, framework-agnostic authentication library that has been getting, deservedly so, a lot of love from the community in recent months.

👉 Read article

@webdev_trends
#webdev #javascript #tutorial

Make your life easier with Set Compositions

Finally! When Set was introduced in the past it already made our lives better. We were able to easily generate unique lists, but also have better performance on finding and setting items on those lists.

That was great, but we were still missing several things that other languages had. And this is true, because we were. With the new composition methods added to Set in 2024, we will finally be able to do union, intersection, difference, and more with simple calls.

👉 Read article

@webdev_trends