E
E
Erik Mironov2020-06-25 13:43:00
Programming
Erik Mironov, 2020-06-25 13:43:00

Is it correct to use different approaches in one program/one class?

I don’t know how philosophical the question is, and how reasonable it is to ask it, I’ve been doing Java not so long ago and I wondered if it was considered bad form to use different approaches to programming (in this case, imperative and functional) in the scope of one program or one class in order to increase readability / reduce the amount of code?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Lander, 2020-06-25
@Erik_Mironov

Well, why not? If in a functional style some algorithm looks more concise and understandable, then I see no reason not to use it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question