Best of Functional Programming2023

  1. 1
    Article
    Avatar of communityCommunity Picks·3y

    Currying in JavaScript

    Currying in JavaScript is a functional programming technique that involves transforming a function with multiple arguments into a series of functions that each take a single argument. It allows for code reusability, improved readability, function composition, easier testing, better code organization, improved performance, and more flexible function composition. Currying can be used in event handling, API calls, and data processing.

  2. 2
    Article
    Avatar of freecodecampfreeCodeCamp·3y

    How to Write Simpler JavaScript Code

    Learn ten tips for simplifying your JavaScript code, including using arrow functions, descriptive variable names, functional programming, avoiding code nesting, using default parameters, destructuring, promises, array methods, object methods, and libraries/frameworks.

  3. 3
    Article
    Avatar of asayerasayer·3y

    Forever Functional: Maximize JavaScript's performance with transducers

    Learn how to optimize JavaScript's performance with transducers by applying transformations in a single step, reducing the need for intermediate arrays and improving performance.

  4. 4
    Article
    Avatar of tuts_plusTuts+·3y

    Learn Functional Programming in JavaScript

    Learn functional programming with JavaScript, covering concepts like first-class functions, immutability, composing functions, currying, and working with the DOM. Set up your development area and learn about composition, handling events, and working with arrays.

  5. 5
    Article
    Avatar of hackernoonHacker Noon·3y

    The Easiest and Hardest Programming Languages to Learn

    The Easiest and Hardest Programming Languages to Learn are called programming languages. Computer systems are completely dependent on human beings to train them to take decisions. High-level languages have been developed which consist of English language words to help human beings program the computer systems.

  6. 6
    Article
    Avatar of hackernoonHacker Noon·3y

    Functional Programming: An Effective Approach for Experienced Programmers

    Functional programming is a way of writing code that relies on the use of functions to solve problems. Pure functions always produce the same output for a given input and do not have any side effects. In addition, functional programming emphasizes immutability, or the inability to alter data once it has been created.

  7. 7
    Article
    Avatar of dhhDavid Heinemeier Hansson·3y

    Programming types and mindsets

    The shorter the faith, the brighter the flame. I'm unashamedly a dynamic typing kind of guy. To me, Ruby with explicit, static typing would be like a salad with a scoop of ice cream. It takes full advantage of dynamic typing to allow the poetic syntax that results in such beautiful code.

  8. 8
    Article
    Avatar of medium_jsMedium·3y

    Essential Concepts in Functional Programming with JavaScript

    Functional programming in JavaScript allows for more modular and reusable code by treating functions as first-class citizens. Higher-order functions provide a more abstract approach, pure functions promote code predictability, immutability ensures data is not modified directly, and recursion allows for solving complex problems by breaking them down into smaller ones.

  9. 9
    Article
    Avatar of communityCommunity Picks·3y

    Introduction To 11 Core JavaScript Functions To Improve Code Quality

    Learn about 11 core JavaScript functions that can significantly improve code quality, including map(), filter(), and reduce(). These functions can help you solve problems more efficiently and write less code.

  10. 10
    Article
    Avatar of towardsdevTowards Dev·3y

    Kotlin is the Future of Back-end Development.

    Ktor is a framework to easily build connected applications - web applications, HTTP services, mobile and browser applications. Kotlin's Builder DSL will change the way you code Higher-order functions in Kotlin can make a big way to writing cleaner and reliable code medium. Ktor is one brilliant feature implemented by JetBrains.

  11. 11
    Article
    Avatar of 30seconds30 seconds of code·2y

    Function composition in JavaScript

    Function composition in JavaScript is the process of combining multiple functions to produce a new function. It provides readability, reusability, and modularity.

  12. 12
    Article
    Avatar of asayerasayer·2y

    Forever Functional: Maximize JavaScript's Performance WITHOUT Transducers

    The article discusses different solutions for optimizing long sequences of operations on JavaScript arrays without using transducers. It starts with a basic solution and gradually introduces more general and simplified methods. The final solution allows for any sequence of mapping and filtering operations, with optional reducing steps.

  13. 13
    Article
    Avatar of itnextITNEXT·3y

    4 ways to implement Factory Pattern in Javascript

    Factory Pattern is a type of creational pattern that usually describes common aspects of entities by creating a base class, and allows sub-classes to inherit its behaviour and alter it. This article will include both Javascript and Typescript examples. For example, we want to implement Euro, Dollar and British Pounds wallets.

  14. 14
    Article
    Avatar of 30seconds30 seconds of code·2y

    An introduction to functional programming

    Functional programming is a programming paradigm that emphasizes the application of functions and avoids changing state and mutable data. Core concepts include pure functions, immutability, higher-order functions, and recursion. Benefits of functional programming include easier reasoning about code, testability, and reusability.

  15. 15
    Article
    Avatar of hackernoonHacker Noon·3y

    Functional Programming With JavaScript: A Deep Dive

    Functional programming with JavaScript is a programming paradigm that treats computation as the evaluation of mathematical functions. We're going to demystify the secrets of functional programming, break down its fundamental concepts, and arm you with the tools to unleash its potential in your projects.

  16. 16
    Article
    Avatar of medium_jsMedium·3y

    Everything you need to know about pipe and compose functions in JavaScript

    Functional programming in JavaScript involves using functions as the primary building blocks and treating them as first-class citizens. Two popular higher-order functions used in functional programming are the pipe and compose functions, which allow for chaining multiple functions together.

  17. 17
    Article
    Avatar of 30seconds30 seconds of code·2y

    Understanding JavaScript currying

    Currying is a process that transforms a function that takes multiple arguments into a series of functions that each take a single argument. This makes code more flexible and reusable. In JavaScript, currying can be done by creating a curry() function using recursion. Variadic functions, which accept a variable number of arguments, require additional considerations for currying.

  18. 18
    Article
    Avatar of asayerasayer·3y

    Forever Functional: Complex Typing in TypeScript, Part 2

    This article explores how to add types to currying functions in TypeScript. It provides a simple version and a full version of checking types, with the latter being able to handle any number of parameters. Currying is a powerful functional programming technique that can lead to safer and more efficient code.

  19. 19
    Article
    Avatar of communityCommunity Picks·3y

    Formatters, linters, and compilers: Oh my!

    Static analysis tools can be integrated with major code editors and CI systems to provide real-time feedback, automated code improvements, and enforce best practices. Most static analysis tools fall into one of three categories, in order of complexity. Formatters, linters, and compilers focus on converting JavaScript code written using newer language features.

  20. 20
    Article
    Avatar of medium_jsMedium·3y

    How to Use Functional Programming to Create Better Code

    Learn how to leverage functional programming principles to create safer, more readable, and less buggy code. Discover the benefits of using pure functions, immutable data structures, recursion, and higher-order functions.

  21. 21
    Article
    Avatar of honeypotHoneypot·3y

    Adopting React in the Early Days

    Adopting React in the early days was challenging, with no clear solutions to common problems. Proof-of-concepts were created with AngularJS and ReactJS. The introduction of Redux had a significant impact on the React community.

  22. 22
    Article
    Avatar of communityCommunity Picks·3y

    How to Do Functional Programming Right in 4 Key Points

    Learn how to avoid common pitfalls in React functional programming, such as unnecessary re-renders caused by inline functions as props and derived data from props. Embrace composition over inheritance for more reusable and maintainable code.

  23. 23
    Article
    Avatar of towardsdevTowards Dev·2y

    Error handling in Go with the Result Pattern

    An article on error handling in Go using the Result Pattern, which allows for different outcomes, such as success, failure, or exception. The pattern avoids using exceptions for control flow and instead returns a structured object with relevant information. Custom error types and examples are also covered.

  24. 24
    Article
    Avatar of communityCommunity Picks·3y

    Flappy Bird Implemented in Typescript types

    Flappy Bird Implemented in Typescript types. The ultimate type-level trickery I wrote a 2D flappy bird game, purely in Typ Escript types. The game is written entirely in Typeescript type annotations, which—if you didn't know—are Turing complete.

  25. 25
    Article
    Avatar of itnextITNEXT·3y

    Understanding the Functional Programming Paradigm

    Understanding the Functional Programming Paradigm will help you write more efficient code, improving your programming skills. In functional programming, data is treated as immutable, meaning once created, it cannot be changed. Pure Functions Pure functions are functions that always produce the same output for a given set of inputs, and they have no side effects.