This repository was archived by the owner on Mar 27, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
Integrate feedback from workshop session #102
Merged
Merged
Changes from 25 commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
e775c43
Duplicate all exercises for refactoring/rearrangement
eloots 1c199cf
Revert exercise on toplevel definitions to no-indentation based syntax
eloots 8453f12
When switching to parameter untupling use parens instead of curly braces
eloots b1cdd59
Revert to curly braces syntax
eloots 6d19c8b
Format code with scalafmt
eloots abd0353
Format code using scalafmt
eloots 4f7c7d2
Format all exercises with scalafmt
eloots 44418c7
Add a note about scalafmt configuration in the exercise instructions
eloots fccc88a
Add illustrations about markdown config & add instructions
eloots 1d056c4
Add notes about code formatting & markdown previewing to instructions
eloots 33f2249
Rename exercise
eloots d0e2f59
Add an exercise on indentation based syntax
eloots 2ec43b1
Add links in the exercise instruction to Scala documentation
eloots 8d76678
Add checking of formatting code to CI
eloots 406fcbb
Remove comment that is no longer applicable
eloots a1d3129
Update readme/remove unused variable
eloots 9076898
Update exercises/exercise_000_sudoku_solver_initial_state/README.md
eloots eec7d68
Change variable name to Camel Case
eloots 5d7bffb
Bump scalafmt version & reformat all code
eloots 1d1a00b
Change variable name in build definition
eloots e532bbd
Change formatting of coonfiguration file
eloots ec6c948
Moved import around
eloots f0fdf39
Update exercise instructions for the syntax rewrite exercise
eloots fd13d3e
Remove alternative exercise series that uses Curly Braces syntax
eloots 9f51d9a
Add IDE set-up instructions
eloots e493df6
Update exercises/exercise_000_sudoku_solver_initial_state/IDE_setup.md
eloots 231e64f
Review comment updates
eloots f46f083
Update Scala version to nightly build
eloots File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 51 additions & 0 deletions
51
exercises/exercise_000_sudoku_solver_initial_state/.scalafmt.conf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
version = 3.7.2 | ||
runner.dialect = scala213 | ||
|
||
style = defaultWithAlign | ||
indentOperator.preset = akka | ||
maxColumn = 120 | ||
rewrite.rules = [RedundantParens, AvoidInfix] | ||
align.tokens = [{code = "=>", owner = "Case"}] | ||
align.openParenDefnSite = false | ||
align.openParenCallSite = false | ||
optIn.breakChainOnFirstMethodDot = false | ||
optIn.configStyleArguments = false | ||
danglingParentheses.defnSite = false | ||
danglingParentheses.callSite = false | ||
rewrite.neverInfix.excludeFilters = [ | ||
and | ||
min | ||
max | ||
until | ||
to | ||
by | ||
eq | ||
ne | ||
"should.*" | ||
"contain.*" | ||
"must.*" | ||
in | ||
ignore | ||
be | ||
taggedAs | ||
thrownBy | ||
synchronized | ||
have | ||
when | ||
size | ||
only | ||
noneOf | ||
oneElementOf | ||
noElementsOf | ||
atLeastOneElementOf | ||
atMostOneElementOf | ||
allElementsOf | ||
inOrderElementsOf | ||
theSameElementsAs | ||
message | ||
] | ||
rewriteTokens = { | ||
"⇒": "=>" | ||
"→": "->" | ||
"←": "<-" | ||
} |
20 changes: 20 additions & 0 deletions
20
exercises/exercise_000_sudoku_solver_initial_state/IDE_setup.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Setting up IntelliJ or Visual Code Studio for Scala development | ||
|
||
## Setting up IntelliJ for Scala development | ||
eloots marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
- If you haven't already installed the IntelliJ IDE, follow the [Getting started](https://www.jetbrains.com/help/idea/installation-guide.html) instructions on the JetBrains website. The Community Edition should be sufficient for this workshop. | ||
|
||
- After installing the IDE, install the IntelliJ Scala plugin by following [these instructions](https://www.jetbrains.com/help/idea/discover-intellij-idea-for-scala.html#scala_plugin). | ||
|
||
## Setting up Visual Code Studio for Scala development | ||
|
||
- Download the installation binary for your system (Windows, Mac, Linux) [here](https://code.visualstudio.com/download). | ||
|
||
- Follow the set-up instructions [here](https://code.visualstudio.com/docs/setup/setup-overview). | ||
|
||
- Install the Metals plugin for Visual Code Studio by following the instructions [here](https://scalameta.org/metals/docs/editors/vscode/) | ||
|
||
|
||
## Other Scala source editors | ||
|
||
There are plenty of other options for Source Code editing. For example, [Scala] Metals supports Vim, Sublime Text and Emacs. For more information, have a look at the [Text Editors section](https://scalameta.org/metals/docs) in the Metals Documentation | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why are you using square brackers here "[Scala] Metals"? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good question. Looking at the Metals doc, it says "Scala language server with rich IDE features". I'll change it to "Metals (Scala language server with rich IDE features)" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+164 KB
...es/exercise_000_sudoku_solver_initial_state/images/Markdown-viewer-IntelliJ.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
exercises/exercise_000_sudoku_solver_initial_state/project/plugins.sbt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.11.0") | ||
addSbtPlugin("org.scalameta" % "sbt-mdoc" % "2.3.7") | ||
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.5.0") | ||
addSbtPlugin("org.scalameta" % "sbt-native-image" % "0.3.1") |
3 changes: 0 additions & 3 deletions
3
exercises/exercise_000_sudoku_solver_initial_state/src/main/resources/application.conf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.