Discover and read the best of Twitter Threads about #FunctionalProgramming

Most recents (7)

1/ 🎛️ Advanced Functional Programming in R: purrr and beyond 🚀 Discover the power of functional programming techniques in R to write cleaner, more efficient code. #rstats #AdvancedR #FunctionalProgramming #DataScience Source: https://www.educati...
2/ 🐾 purrr Basics: Transform your code using purrr's functional tools:
•map() functions for element-wise operations
•reduce() for cumulative operations
•pmap() for multiple input iteration
•safely() to handle errors gracefully
#rstats #datascience #AdvancedR
3/ 🔄 Loop Alternatives: Replace traditional loops with functional equivalents:
•map() instead of for loops
•map_dbl(), map_chr(), map_lgl(), and map_int() for type-specific output
•map2() and pmap() for iterating over multiple objects
#rstats #datascience #AdvancedR
Read 9 tweets
I've spent two months researching #functionalprogramming and how it applies to #elixirlang. Here are my thoughts on "best practices" for Elixir developers to make your code easy to reason about, debug, test and even run in parallel 🚀

Thread 🧵 (1/10)
(2/10) Don't put *any* logic inside the controllers or GenServers. It will make your code hard to test, difficult to understand and most likely, you will duplicate a lot of it - a bad idea all around.
(3/10) Separate as much of the code into pure functions and leave the "dirty" code(including side effects) in the limited public functions(it's OK to call subfunctions causing side effects). The key here is that "preparation" of data/for side effects can most of the time be pure
Read 10 tweets
If you feel like entering on a study of #functionalProgramming, @EricNormand 's Grokking Simplicity (from Manning) is really good.
manning.com/books/grokking…
Since the time it became available as an early-access book in August 2019, I’ve been working through it (and providing him lots of feedback).
It shows how—and why—to do functional programming, using really basic JavaScript as a demo language: no Lisp, no Haskell, no Erlang.

(Well, he mentions they exist.)
Read 9 tweets
Un ⚡️lightning #thread de mis libros favoritos para Front End 🧵#javascript #CSS

Varios de estos recursos los sigo leyendo cada cierto tiempo, y son excelentes para prepararse en la entrevista especializada de Front End de las empresas grandes en Silicon Valley / #FAANG

[1/x]
Eloquent Javascript: mi biblia de JS enfocado al browser. Desde APIs del DOM hasta técnicas para mejorar el performance de las aplicaciones web.

Si tuvieras que elegir un libro de esta lista, que sea este.
Marca un antes y después como developer.

eloquentjavascript.net
#CSS Secrets: Cuando empecé mi carrera como front end, odiaba CSS.

Este libro me abrió la mente para descubrir que no lo odiaba, sino que no lo entendía. Y va mucho más allá: no solo ser técnico, pero creativo al crear una UI.

amazon.com/CSS-Secrets-So…
Read 7 tweets
hard or soft code and design? that is the question. and welp, there's a reason we call it "soft" ware
the soft in software means that the code and design must be malleable and durable

- malleable code is easy to change/refactor without having to jump many dependency/build/compilation hurdles
- durable code is easy to change/refactor without breaking other parts of the code
the design ninja masters and even doting design stans like myself talk about "good" solid design, and about supple and strategic design (#ddDesign). design that elicits high UX for other devs i.e. DX (@CarlosRucker); regardless of paradigm i #ooDesign #functionalProgramming, etc
Read 13 tweets
Тред про функциональное программирование (ФП) в мобильной разработке: что такое ФП, зачем оно надо, зачем в мобильной разработке, как использовать.
#ios #android #functionalprogramming
НАЧАЛО
Что такое ФП в один твит: это набор ограничений/правил (чистые функции, неизменяемые значения) и набор техник (функторы, монады, рекурсия) для работы в этих ограничениях
Зачем мы ставим себе (и нашему софту) эти ограничения? Чтобы иметь возможность хоть немного понимать что происходит в наших программах. Чистую функцию понять очень легко - она зависит только от переданных параметров и внешний мир на нее не влияет.
Read 12 tweets

Related hashtags

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3.00/month or $30.00/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!