Answer the question
In order to leave comments, you need to log in
Is it hard to switch from functional to imperative programming?
................................................. ...........
Answer the question
In order to leave comments, you need to log in
Hard. There is a shortage of various goodies. There is discomfort from the written imperative code, the realization that I wrote a lot of extra code that doesn’t really do anything begins to torment me.
You can adapt to everything, adapt, get used to it. It's a matter of time and breaking one's stereotypes, habits, the main thing is the goal. The timing will be different for everyone. You can go and change the style of programming. That's why you and a programmer can and should program - in any situation, at any time, any technology, anything! You have to be able to adapt!
Looking at what to switch to. Functional languages are usually more expressive than some imperative languages. Because of this, a downgrade is felt if you switch to a non-expressive imperative language (Python/Ruby/Scala/...). As for the paradigm shift, the transition is quite easy: where there used to be closures, now you need to create objects, where there was passing along the state chain, now you can get by with a local mutable variable, etc.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question