FP-Go: Functional programming library for Golang
51–60 of 185 posts
Re: FP-Go: Functional programming library for Golang
#52I don’t know who to feel more sorry for: the junior programmer who has dutifully taught themselves idiomatic go and explicit error handling being shown a large unreadable codebase full of this nonsense on their first day, or the the poor sods having to tear this nonsense out of a large tangled codebase in three years time.
Re: FP-Go: Functional programming library for Golang
#53I don’t know who to feel more sorry for: the junior programmer who has dutifully taught themselves idiomatic go and explicit error handling being shown a large unreadable codebase full of this nonsense on their first day, or the the poor sods having to tear this nonsense out of a large tangled codebase in three years time.
Re: FP-Go: Functional programming library for Golang
#54Re: FP-Go: Functional programming library for Golang
#55Re: FP-Go: Functional programming library for Golang
#56- https://github.com/samber/lo
- https://github.com/samber/mo
The split is also nice as you can choose to just use the generic convenience functions from lo without the more FP related things from mo.
Re: FP-Go: Functional programming library for Golang
#57Was just scrolling through the docs. Does anyone feel comfortable with all these generic type annotations? I'm not expert programmer but this looks overkill to me.
Why, what's wrong with func TraverseParTuple10[F1 ~func(A1) ReaderIOEither[T1], F2 ~func(A2) ReaderIOEither[T2], F3 ~func(A3) ReaderIOEither[T3], F4 ~func(A4) ReaderIOEither[T4], F5 ~func(A5) ReaderIOEither[T5], F6 ~func(A6) ReaderIOEither[T6], F7 ~func(A7) ReaderIOEither[T7], F8 ~func(A8) ReaderIOEither[T8], F9 ~func(A9) ReaderIOEither[T9], F10 ~func(A10) ReaderIOEither[T10], A1, T1, A2, T2, A3, T3, A4, T4, A5, T5,…
cracks knuckles over keyboard
Re: FP-Go: Functional programming library for Golang
#58Why?
1. To look clever.
2. To make junior programmers look stupid.
Re: FP-Go: Functional programming library for Golang
#59Re: FP-Go: Functional programming library for Golang
#60This library could be only useful if someone trying to build new Programming Language with its own ecosystem with Golang runtime as backend, like for example Scala on JVM. In upcoming versions Go 1.22 they are also improving code inlining support, so that might help. Trying to merge this abstractions and patterns with existing Golang's philosophy and community libraries is simply a case of over-engineering.