Skip to content

Add 'getting started' in russian #2518

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
Sep 15, 2022
Merged
2 changes: 1 addition & 1 deletion _getting-started/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
layout: singlepage-overview
title: Getting Started
partof: getting-started
languages: [fr, ja, uk]
languages: [fr, ja, ru, uk]
includeTOC: true

newcomer_resources:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Building a Scala Project with IntelliJ and sbt
layout: singlepage-overview
partof: building-a-scala-project-with-intellij-and-sbt
languages: [ja, uk]
languages: [ja, ru, uk]
disqus: true
previous-page: getting-started/intellij-track/getting-started-with-scala-in-intellij
next-page: testing-scala-in-intellij-with-scalatest
Expand Down Expand Up @@ -60,10 +60,9 @@ but here's a glance at what everything is for:
1. Change the code in the class to the following:

```
object Main extends App {
@main def run() =
val ages = Seq(42, 75, 29, 64)
println(s"The oldest person is ${ages.max}")
}
```

Note: IntelliJ has its own implementation of the Scala compiler, and sometimes your
Expand Down Expand Up @@ -105,7 +104,7 @@ Continue to the next tutorial in the _getting started with IntelliJ_ series, and

**or**

* [The Scala Book](/overviews/scala-book/introduction.html), which provides a set of short lessons introducing Scala’s main features.
* [The Scala Book](/scala3/book/introduction.html), which provides a set of short lessons introducing Scala’s main features.
* [The Tour of Scala](/tour/tour-of-scala.html) for bite-sized introductions to Scala's features.
- Continue learning Scala interactively online on
[Scala Exercises](https://www.scala-exercises.org/scala_tutorial).
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Getting Started with Scala in IntelliJ
layout: singlepage-overview
partof: getting-started-with-scala-in-intellij
languages: [ja, uk]
languages: [ja, ru, uk]
disqus: true
next-page: building-a-scala-project-with-intellij-and-sbt

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Testing Scala in IntelliJ with ScalaTest
layout: singlepage-overview
partof: testing-scala-in-intellij-with-scalatest
languages: [ja, uk]
languages: [ja, ru, uk]
disqus: true
previous-page: building-a-scala-project-with-intellij-and-sbt

Expand Down Expand Up @@ -31,11 +31,9 @@ This assumes you know [how to build a project in IntelliJ](building-a-scala-proj
1. Call it `CubeCalculator`, change the **Kind** to `object`, and hit enter or double-click on `object`.
1. Replace the code with the following:
```
object CubeCalculator extends App {
def cube(x: Int) = {
object CubeCalculator:
def cube(x: Int) =
x * x * x
}
}
```

## Creating a test
Expand All @@ -46,11 +44,10 @@ This assumes you know [how to build a project in IntelliJ](building-a-scala-proj
```
import org.scalatest.funsuite.AnyFunSuite

class CubeCalculatorTest extends AnyFunSuite {
class CubeCalculatorTest extends AnyFunSuite:
test("CubeCalculator.cube") {
assert(CubeCalculator.cube(3) === 27)
}
}
```
1. In the source code, right-click `CubeCalculatorTest` and select
**Run 'CubeCalculatorTest'**.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Getting Started with Scala and sbt on the Command Line
layout: singlepage-overview
partof: getting-started-with-scala-and-sbt-on-the-command-line
languages: [ja, uk]
languages: [ja, ru, uk]
disqus: true
next-page: testing-scala-with-sbt-on-the-command-line

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Testing Scala with sbt and ScalaTest on the Command Line
layout: singlepage-overview
partof: testing-scala-with-sbt-on-the-command-line
languages: [ja, uk]
languages: [ja, ru, uk]
disqus: true
previous-page: getting-started-with-scala-and-sbt-on-the-command-line

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,9 @@ sbt は、より複雑なプロジェクトを構築すだしたら便利にな
1. クラスのコードを次おように変更します。

```
object Main extends App {
@main def run() =
val ages = Seq(42, 75, 29, 64)
println(s"The oldest person is ${ages.max}")
}
```

注:Intellij は Scala コンパイラーの独自実装を持っており、コードが間違っていると Intellij が示しても正しい場合がときどきあります。
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,9 @@ Scala には複数のライブラリとテスト方法がありますが、こ
1. クラスに `CubeCalculator` と名前をつけて、**Kind** を `object` に変更し、**OK** をクリックします。
1. コードを次の通り置き換えます。
```
object CubeCalculator extends App {
def cube(x: Int) = {
object CubeCalculator:
def cube(x: Int) =
x * x * x
}
}
```

## テストを作成
Expand All @@ -39,13 +37,12 @@ Scala には複数のライブラリとテスト方法がありますが、こ
1. クラスに `CubeCalculatorTest` と名前を付けて、**OK** をクリックします。
1. コードを次の通り置き換えます。
```
import org.scalatest.FunSuite
import org.scalatest.funsuite.AnyFunSuite

class CubeCalculatorTest extends FunSuite {
class CubeCalculatorTest extends AnyFunSuite:
test("CubeCalculator.cube") {
assert(CubeCalculator.cube(3) === 27)
}
}
```
1. `CubeCalculatorTest` のソースコード内で右クリックし、**Run 'CubeCalculatorTest'** を選択します。

Expand Down
Loading