News for hackers. Stuff that matters.
Re:Green vs. Brown Programming Languages by foolfoolz on Thursday April 22, 2021 @11:09AM (#26903616)
this sounds entirely like personal preference based on the projects you’ve worked with. all languages are capable of producing maintainable software. it’s much more about the authors skill than the language itself. yes statically typed languages scale better, but ide support on dynamic languages is still good. i don’t buy the “rust solves all problems” idea. that is the hype curve
Re:Green vs. Brown Programming Languages by tpm on Thursday April 22, 2021 @11:19AM (#26903722)
For projects with a large number of contributors and long development time there will inevitably be some less maintainable code and that is where the quality of the language itself will become important.

No language solves all problems obviously, but clearly some are better than others in nthat regard. I have no experience in Rust but many years with Perl and Java (and others). Perl in the hands of a small, very experienced team had the highest productivity and quality I have seen - but I would not want use Perl in a project with higher developer churn and lots of inexperienced coders.

Re:Green vs. Brown Programming Languages by athenot on Thursday April 22, 2021 @11:38AM (#26903981)
> Perl in the hands of a small, very experienced team had the highest productivity and quality I have seen - but I would not want use Perl in a project with higher developer churn and lots of inexperienced coders.

This has been my experience as well.

I think that's why "medium powered" languages such as Python and Java tend to get the widest adoption over time. They are less expressive but also have fewer gotchas, and in a team of 100s or 1000s of good-but-not-stellar developers who come and go, they end up being the least painful for the organization.

Re:Green vs. Brown Programming Languages by oblio on Thursday April 22, 2021 @01:07PM (#26905135)
In discussions about programming languages, you have to always remember to add "equally"/"to the same degree" to statements such as this one:

> all languages are capable of producing maintainable software

Once you add that, you understand what the original poster actually meant.

Re:Green vs. Brown Programming Languages by citrin_ru on Thursday April 22, 2021 @11:29AM (#26903850)
I agree that it is possible to write maintainable code in any language and it is possible to make a mess in any language too. But some languages to some extent trying to force this, which may move an average project, even if only a little, to more maintainable shape.

Examples of such languages are Go and Python: both to some extent enforce code formatting - Python with indentation being part of the syntax, Go with gofmt being almost universally used tool. Both try to maintain one preferred way to do things - opposite to "There's more than one way to do it" in Perl.