Tornad0's blog

By Tornad0, history, 8 years ago, In English

Hi all,

Is it a good idea to use scala as a language to use in codeforces and why?

I find the language has its beauty of simplicity and fun, so I am wondering whether it is good enough for practice on codeforces. Thank you for your opinions!

(Btw, I really look forward anwsers from anyone who use or have treid scala in codeforces.) (Please don't downvote it if you think it is a silly question. I am just beginner of this language. Thanks)

Edit — to those who downvote me: You are just a bit of S

  • Vote: I like it
  • -17
  • Vote: I do not like it

| Write comment?
»
8 years ago, # |
  Vote: I like it +1 Vote: I do not like it

Auto comment: topic has been updated by Tornad0 (previous revision, new revision, compare).

»
8 years ago, # |
  Vote: I like it +1 Vote: I do not like it

Auto comment: topic has been updated by Tornad0 (previous revision, new revision, compare).

»
8 years ago, # |
  Vote: I like it +1 Vote: I do not like it

Auto comment: topic has been updated by Tornad0 (previous revision, new revision, compare).

»
8 years ago, # |
  Vote: I like it 0 Vote: I do not like it

I started going in similar way with Go (golang). So far I didn't reach my speed from C++, but is is still fun, and I learned something more in Go. To bo honest, this is not best way to learn Go, but it let me combine my hobbies.

»
8 years ago, # |
  Vote: I like it 0 Vote: I do not like it

IMHO it is a really good choice because:

  • less code than in Java, especially if you know the language well

  • performance can be on par with Java if you take some care (like not overusing functional constructs in the inner most loop, but eg. using "while" loop sometimes)

  • a rich standard collection library

  • less likely to "shoot yourself in the foot" than C/C++

P. S. And no, just using Scala is far from enough to "beat them all" as you seem to claim :)