What is Boilerplate code, Hot code and Hot spots?

前端 未结 5 926
無奈伤痛
無奈伤痛 2020-12-01 15:11

I know these terms are used in context of performance achievement/optimization.

Recently have been working on that, and have tried searching; but didn\'t get any e

5条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-01 15:55

    My assumption is that you already have sufficient definitions for the term "boilerplate". I would probably wish to back what you have with the help of an example. Coming from a Java background and recently moving to Scala, you realize that in Java, you can't write statements devoid of semicolons (;). Further, it is not unusual to write thousands of statements for a program that's probably running in production. Your guess is as good as mine, you end up writing a lot of repetitive low-impact code but it happens to be code that's demanded by the Java compiler. Scala is a concise language in the sense that the need to write boilerplate code has been reduced. You don't have to write semi-colons in Scala. Hope this is simplistic enough

提交回复
热议问题