If Python is just too gradual for you, Crystal could possibly be your savior

If Python is just too gradual for you, Crystal could possibly be your savior

Studying a brand new programming language can open your thoughts in methods you by no means thought potential. Identical to studying a brand new human language like Spanish or Mandarin, you be taught to assume with completely different phrases and buildings.

You faucet into the cultures and communities of the audio system and learn the way they see the world. It’s enriching, to say the least.

The neat factor about programming languages is that the primary one you be taught is at all times the toughest. When you perceive fundamental buildings like if-clauses and for-loops, you’ll see them popping up in lots of new languages you may be taught.

Get your tickets for TNW València in March!

The guts of tech is coming to the center of the Mediterranean

And, in contrast to human languages, new programming languages are a lot quicker to be taught. They’re extra logical and have much less phrases — or, ought to I say, instructions.

It follows that the majority programmers and knowledge scientists grasp a couple of programming language.

They may have a primary or favourite one. However most software program builders I do know use at the very least 5 languages on a weekly foundation, if you happen to depend scripting languages in.

Most programmers additionally attempt to be taught a brand new language from time to time.

It comes with the job. Coding means staying curious.

The case for Crystal

Crystal, as per its commercial, is a language that’s quick like C and slick like Ruby.

The half about its slickness is true. It’s compiled and statically typed, which comes with its personal benefits and drawbacks. Above all, nevertheless, it’s similar to Ruby in its fashion.

Personally I’ve by no means written a bigger undertaking in Ruby. However as a reasonably skilled Python developer, Crystal code nonetheless seems crystal clear!

Right here’s an instance of a recursive loop that calculates factorials:

If Python is just too gradual for you, Crystal could possibly be your savior