Learn more about computerscience with this collection
Understanding machine learning models
Improving data analysis and decision-making
How Google uses logic in machine learning
Recursion is when a function calls itself and an end condition exists in the function to stop the method call. We could talk about this in depth another day. For now, here is a good explanation.
20
117 reads
MORE IDEAS ON THIS
Remember how we assign different values to a variable through out the program? How we use setters in classes to modify the value of class variables? That is not allowed in FP. A variable once set remains unchanged. Sort of like, making all variables final.
We usually think of variable...
21
171 reads
Funcational Programming is a declarative way of programming.
21
496 reads
Let's say there is a function that takes three arguments. Usually, we need to be aware of all three values to call this function, right? In partial application, the three arguments are provided at different times. I could not find a decent blog that explains this well.
21
115 reads
This is a method where we take simple functions and combine them into a more complex function. Let's say we have two methods f(x) = x * 2 //(timesTwo)
and f(x) = x - 1 // (minusOne)
. And we want to compute f(x) = 2x -1
. You call the timesTwo
f...
21
100 reads
In OOP we treat data and functions separately. In FP, they are all the same. We can create an array of functions, pass a function as argument, return a function from a method.
20
180 reads
If a function returns same value for the same argument every time, then the function is pure. That generally means that, the function cannot use any state values that could potentially change.
21
170 reads
CURATED FROM
Not your object oriented programming
“
Related collections
More like this
They are a great way to call someone and talk to them without disturbing them in real-time.
A phone call is no longer polite now and sending a voice message while discussing an idea, feedback, or reflection is a ‘soft’ method that works asynchronously.
For Aristotle, a thing is best understood at its end, purpose, or goal. The goal that is an end-in-itself is by understanding the unique function of a thing. Our unique function, says Aristotle, is our capacity to reason.
Thus, our supreme good is to develop our think...
You shouldn’t ask to talk about your salary when your manager is especially harried or having a bad day or nervous about impending budget cuts.
On the other hand, if you’ve just saved the day with an important client or garnered rave reviews for a high-profile pro...
Read & Learn
20x Faster
without
deepstash
with
deepstash
with
deepstash
Access to 200,000+ ideas
—
Access to the mobile app
—
Unlimited idea saving & library
—
—
Unlimited history
—
—
Unlimited listening to ideas
—
—
Downloading & offline access
—
—
Personalized recommendations
—
—
Supercharge your mind with one idea per day
Enter your email and spend 1 minute every day to learn something new.
I agree to receive email updates