Pas de Code
76 subscribers
106 photos
1 file
402 links
What I cannot create, I do not understand.

DM: @alexey_mileev
Original channel in RU: @devballet
Twitter: twitter.com/pasdecode_
Download Telegram
If using multiple nested .copy calls on data classes is your case for whatever reason, take a look at this post, Arrow-kt will probably make your life a bit easier.

#arrowkt #fp #library
The idea to show explicitly in a return type that function can fail is not new, yet still not mainstream either. In this post author shows us how to implement such Result monad in Kotlin. The implementation itself is not perfect (in which universe val reason: String is enough to describe an error?), but good enough.

#fp #monad #kotlin
.flatMap, .filter and .reduce are nothing new these days. In this post you'll learn the .traverse. All these functional thingies are always interesting and fancy, but do they make our code more readable? I'm not sure.

#fp
I've decided to dedicate this whole week to this wonderful series in prose. Enjoy!

Reversing the technical interview

“That’s not a list,” the interviewer says. “That’s an if statement.”
“What else are lists,” you reply, your eyes flashing


#interview #humor #fp
Hexing the technical interview

“We’re, uh, we’re not doing IO here. Just an in-memory list.”
Agree politely, but delete nothing. Never apologize for who you are.


#interview #humor #fp
😁1
Typing the technical interview

“You’re… defining the natural numbers by hand? Why?”
“Haskell is for mathematicians,” you explain. “We always define our terms.”


#interview #humor #fp
Rewriting the Technical Interview

“People always complain,” you murmur. “That Lisps have too many parentheses. What they really mean is that their positions are too far to the left.”

#interview #humor #fp
Unifying the Technical Interview

“You absolute madwoman,” Aisha chortles. “You can’t remember how to balance a binary tree, but you memorized µKanren?”

#interview #humor #fp
And a little bonus à la fanfic.

Typescripting the technical interview

“Okay, that looks like a correct solution, but the code is quite hard to follow, and it’s not very concise.” he asserts, wrongly.
“Oh it’s mostly just TypeScript boilerplate. I think you’ll find once it’s compiled down to JavaScript it’s perfectly concise.” you reassure him.
Invoke the compiler


#interview #humor #fp
👍1