Years ago, a very sharp mathematician turned software developer asked me if I knew anything about functional programming. ‘No’ I replied. I saw the gleam in his eye as he rose from his seat to walk over to the whiteboard where an hour-long impromptu lecture would begin.
He furiously drew a spattering of math on the board. There were pointy hats over numbers, I think an infinity symbol entered the picture. There were many functions… so many functions. They all kinda looked like this
It was amazing! At the end of that hour, I knew just as much about functional programming as when I started, but now I was damn sure not going to try and use it in real life. It seemed you needed a four year degree in a math related field to understand what the hell was going on here.
Thanks, I replied. Perhaps my dutiful nodding throughout the lecture had duped him into thinking I had gleaned something from it. This was absolutely not the case.
While monads, unary functions and referential transparency are terms you might hear tossed around when people speak or write about functional programming, there are a few major concepts that can help you approach a more functional style when writing code that are fairly simple to understand and apply.
Article covers: How native is react native?, React Native vs (Ionic, Cordova), Similarities and difference between React Native and Native App Development.
In the past few years, the buzz around functional programming has been growing, but it can be challenging to apply theoretical concepts to everyday work. How can we make the code we work on more functional? What advanced patterns can you use, and why should you do that? And what do React hooks have to do with all this? In this talk we’ll have a look at real-life examples and patterns you can use to make React apps more functional.
This week, I had to construct a date selector form in React that looks like this. As you can see, the user interface includes the surrounding month and date options in addition to the selected date. This means that I need to not only keep track of the current date, but I also need a way to conveniently figure out how many days are in the selected month.