DEV Community

Eric Mesa
Eric Mesa

Posted on • Originally published at ericsbinaryworld.com on

The Right Programming Language can make a big difference

Recently I came across this video where a programmer solves the same problem in 6 different programming languages:

What’s incredibly beautiful are the Haskell and APL solutions. Whereas every other language requires multiple lines, Haskell solves the problem in just one line. And APL is just a few symbols.

Here’s the same guy solving a problem from the Leetcode challenge in a few languages. Once again, it’s pretty neat how the elegance of the solution varies across languages:

I also came across some beautiful examples of code, particularly Haskell as coders shared their solutions to this year’s Advent of Code. I was shocked as I had never realized just how different the solutions could be across languages.

Of course, the problem is that if you really wanted to make the best use of this, your programmer core would need to consist of experts in many different programing languages. Any Turing Complete programming language can solve any other’s problems, so it’s somewhat of a waste of resources to employ such a diverse programmer pool, but it’s still neat to think of a world where each problem is solved by the perfect language for that problem type.

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay