Tag: Functional-Programming

3 entradas encontradas

Effect TS: The Library Revolutionizing Functional Programming in TypeScript

Effect TS: The Library Revolutionizing Functional Programming in TypeScript

5 min de lectura

For a long time, TypeScript has lacked a robust standard library. While other languages like Rust, Go, or Python offer standard tools for error handling, concurrency, and side effects, TypeScript developers have had to resort to multiple specialized libraries. Effect TS is changing this by offering a unified and powerful solution for modern TypeScript application development.

What is Effect TS?

Effect is a powerful TypeScript library designed to help developers easily create complex, synchronous, and asynchronous programs. Inspired by ZIO from Scala, Effect brings functional programming principles to TypeScript in a practical and accessible way.

Laravel Collections: Arrays on stereoids

Laravel Collections: Arrays on stereoids

2 min de lectura

Laravel además de utilizar múltiples paquetes de terceros tambien es posible utilizar partes como componentes. Todos los componentes están bajo el namespace “Illuminate”.

Si hay una clase realmente interesante y útil es Collection, que nos permite trabajar con arrays de datos de una forma sencilla y “programática”.

Para tener esta clase en nuestro proyecto solo necesitaremos el paquete illuminate/support que podremos instalar con:

composer require illuminate/support:5.2.x-dev

Para mostrar algunos ejemplos utilizaremos un pequeño array con estos datos:

Laravel Collections: Arrays on steroids

Laravel Collections: Arrays on steroids

2 min de lectura

Laravel, in addition to using multiple third-party packages, is also possible to use parts as components. All components are under the “Illuminate” namespace.

If there’s a really interesting and useful class, it’s Collection, which allows us to work with data arrays in a simple and “programmatic” way.

To have this class in our project, we only need the illuminate/support package which we can install with:

composer require illuminate/support:5.2.x-dev

To show some examples, we’ll use a small array with this data: