
Tag: Functional-Programming
3 entradas encontradas

Effect TS: The Library Revolutionizing Functional Programming in TypeScript
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 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-devPara mostrar algunos ejemplos utilizaremos un pequeño array con estos datos:

Laravel Collections: Arrays on steroids
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-devTo show some examples, we’ll use a small array with this data:




