Suggestions
Robb Shecter
Senior Problem Solver
Robb Shecter is an experienced software developer and mentor specializing in Ruby programming. He works as an expert on Codementor and has a background in technology and social impact. Professionally, he is skilled in software architecture and development, with a particular focus on helping other computer programmers.235
Professional Background
- Currently works as a mentor on Codementor
- Experienced software architect and developer
- Skilled in Ruby programming
- Recognized for mentoring computer programmers seeking to expand access to justice35
Notable Achievements
- Received a Making a Difference Award from Lewis & Clark Law School Alumni
- Works as an expert on platforms like Codementor, offering mentorship in areas such as rapid development and gem development6
Robb Shecter is passionate about sharing knowledge and helping developers improve their skills through mentorship and technical guidance.14
Highlights
My answer to, “Is it practical to write functional code inside a highly OOP code base?”
I vote yes. 🙂 The biggest caveat will be your team and their buy-in.
You don’t mention a language, so I’ll use Python as an example. I personally found it very easy to begin doing functional programming inside a big messy OOP Python codebase. It was so messy that the full app could only run on my manager’s home computer. (!) FYI, this was no tiny startup. Starbucks was our client. They should have known better. Anyhow…
I didn’t give it much thought; I just worked like normal. Mostly TDD, writing tests for the functions I wanted, then coding them using Python’s standard modules and functions. I didn’t need to create a class, so I never did. (That says a lot in favor of fp IMO.)
My boss was a little confused, then low-key impressed. The assignment had been something like,
“Write code to check a credit card number and do XYZ with the data”.
So when he asked how to use my code, I showed the top-level function and replied, “Just call this, some_module.process_cc_number()“. It was a lot less work than my team-mates were used to. Normally they’d have to find a “factory”, instantiate a class, remember to set the correct attributes in the right order, read the comments to see how to tell it to “run”, blah blah blah…
