How We Switched to Functional Programming for Our Flagship Product

March 25, 2022

We’re always looking for ways to improve WPML. After some thought, we decided it was time for us to make the switch to functional programming.

More and more developers are choosing functional programming for large-scale projects because of how predictable it is. If you’ve tried this programming paradigm, you may have found the simpler code easier to debug and maintain. Maybe you’ve seen a shift in your mindset. In functional programming, your focus is on what to do rather than how to do it.

Recently, we released the biggest update to WPML in the last couple of years. Version 4.5 of WPML came packed with new features like the option of automatically translating your entire site. For us, this was the perfect time to give functional programming a try. 

You can read about our experience in our post about why we made the switch to functional programming. We’ll admit it can take some time to learn how to “glue” your pure functions together. But considering how functional code was able to solve some of our issues, we’ll be the first to say it – functional programming is here to stay.