Is large scala codebase supported?

I have experience with scala. I want to introduce him to a new project with 10 participants. But, despite all the expressiveness of scala, I'm very not sure how simple the code can be saved and passed on to new members of the team. At the moment I have studied only one major project on scala http://code.google.com/p/factorie/ and some scala DSL (Apache camel). So my question is, how much does scala support / support comparison with java, python and groovy for the mid-level development team?

+6
source share
2 answers

In general: maintainability of the code base depends on (to name a few)

  • The will of developers to design for maintainability
  • The ability of developers to realize their intentions
  • The level and accuracy of the documentation (accuracy regarding how well the documentation portrays the actual system, not regarding how detailed the documentation is)
  • The ability of developers to take care of maintenance

You can create clutter using any available language. Perhaps you can create a clean and maintained project of any size using any programming language designed for use in production.

That said - scala should not be less serviced than java, python or groovy. However, the result of the first project may be less maintainable.

+11
source

Short answer: Yes

Long answer: Compared to Java, very.

Traits, case classes, pattern matching, higher-level types, closure, etc. all conspired to remove the template and simplify your implementation of the DRY principle. Your code base will be about 1/3 of the size, and it is much easier to isolate key abstractions instead of duplicating logic.

More sophisticated test environments also make it easier to run an effective test suite.

Of course ... All this happens after Alexi points to the will / skill of individual developers. If the team is not actively focused on maintainability, the most convenient language in the world will not help you!

+6
source

Source: https://habr.com/ru/post/895561/


All Articles