Act11-18Ag - Name Arguments PHP - Dev to fry - .env Django - FreeLibro Livewire +
Welcome to another week where I'll be covering all the updates that happened between August 11th and 18th.
Community versions of books
This time, it's the Laravel Livewire book's turn, in which I share about 100 pages of content to get you started with this technology without spending a single dollar.
You can also check out the books I published in previous weeks:
- https://academy.desarrollolibre.net/libro/laravel
- https://academy.desarrollolibre.net/libro/primeros-pasos-con-django-5
- https://academy.desarrollolibre.net/libro/primeros-pasos-laravel-livewire
I'm also leaving you the playlist for the community versions so you have more information.
Content on YouTube and blog
I've uploaded a new video in which I explain how to use named arguments, data types, and solve classic problems. It's also available in post format.
This is very useful when working with multiple parameters, some of which are optional, and we end up confused about which value corresponds to which.
I've added examples of how to use named arguments and functions in PHP, which, like other modern languages, has adapted over time.

Argumentos con nombre en funciones, Valores por defecto y nullable en PHP - https://youtu.be/Fd_UdywEcTs
Careers AI Recommends Against Studying
A video about five careers AI suggests avoiding, including:
- Proofreading or translation.
- Business administration.
- Print media.
- Repetitive digital tasks.
- Highly specialized careers.
This doesn't mean AI will immediately replace these fields, but they are professions with less future prospects in the medium term.
Environment variables in Django

Another video shows how to use environment variables in Django, part of the course and book on how to create a store in this framework.
The idea is that the project will later also extend to Flask and FastAPI.
I explain how to configure different environments depending on the operating system or work environment. Instead of defining a string directly in the code, settings are obtained from environment variables, usually by reading a file.

"Estas son las cinco carreras universitarias que no se recomienda estudiar, según la IA y expertos" - https://youtu.be/hHC5Mcyqnmo
Unstoppable Python
An analysis of Python's 25% growth in recent years, consolidating its position as a multipurpose, multiplatform language with no close rival.

El avance imparable de Python: de lenguaje versátil a motor de la IA moderna - https://youtu.be/Qq3GCGQJxuU
Impact of AI on Juniors
A video discussion on how AI primarily affects junior developers, who are the entry-level developers.
In many cases, AI functions as a highly efficient "junior developer": it does in seconds what would take a beginner hours.

Me gradué en informática y la única empresa que me llamó fue una cadena de comida rápida - https://youtu.be/z8M5BdpQAa0
This opens a debate about the future of those who have just finished their studies, since after investing years in a degree, it is worrying not to find work.
Online store
I continue working on the online store, especially on the payment side.
The system is designed in layers:
Payment gateways (no business logic).
Control layer (indicates which gateway to use).
Business logic (processes the confirmed payment).
We're currently implementing PayPal and Stripe, as in the Laravel Livewire course.
We already have: template configuration, buttons, products, and prices.
With Stripe, clicking on it generates a Session ID and redirects you to the payment screen.
Django - Tienda en línea
Tienda: Libros
- Payment, Pagos autenticación requerida
- Protegemos el módulo de pagos por auth requerida.
- Payment, Tipo de pago y restructuración
- Definimos el tipo para la pasarela de pago y restructuración en clases de lo que ya tenemos.
- Crear realmente un componente de PayPal, template
- Pasaremos la URL de pago a PayPal, para que pueda ser procesada.
- Stripe y Python/Django
- Hablamos sobre Stripe y que paquete tenemos disponibles para usar.
- Stripe: crear el session
- Creamos el método controlador para crear la sesión.
- Stripe: consumir session
- Vamos a hacer una prueba para consumir el session ID.
- Stripe: Configurar producto al generar el session ID
- Configuramos el precio y descripción correcto en base al producto que se va a comprar.
- Configurar template de pago
- Configuramos un único template para cargar la pasarela de pago
- Stripe: Los Product y Price, aviso
- Hablamos sobre los products y prices de Stripe.
- Stripe: Evitar llamados dobles desde el botón
- Vamos a evitar poder llamar múltiples veces por múltiples click la generación del checkout id.
Acepto recibir anuncios de interes sobre este Blog.
FREE Laravel Livewire Book Blog/YouTube: Named Arguments in PHP, From Dev to Frying Pan, 5 Careers NOT to Study - .env in Django Django Course and Book: Stripe Payments, Templates, Testing, Configuration
- Andrés Cruz