Skip to content

D-artisan/scala-tutorials

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Scala Tutorials

Scala

A collection of beginner-friendly Scala tutorials to help you learn and master functional and object-oriented programming with Scala.

About

This repository contains a series of Scala tutorials covering topics like variables, collections, functions, pattern matching, and more. Whether you're new to Scala or transitioning from another language, these tutorials provide clear explanations and hands-on examples.

Getting Started

Prerequisites

  • Scala installed on your machine (Download Scala)
  • A build tool like sbt (Scala Build Tool) (Install sbt)
  • A code editor like IntelliJ IDEA with Scala plugin or Visual Studio Code (optional but recommended)

Installation

  1. Clone the repository:
    git clone https://github.com/D-artisan/scala-tutorials.git
  2. Navigate to the project directory:
    cd scala-tutorials

Usage

  • Each tutorial is organized in its own file (e.g., 01_Variables.scala, 02_Collections.scala).
  • To run a tutorial using sbt:
    1. Open the terminal in the project directory.
    2. Start the sbt console:
      sbt
    3. Compile and run a specific file:
      runMain <package>.<ObjectName>
      (Replace <package>.<ObjectName> with the actual package and object name from the file, e.g., tutorials.Variables.)
  • Alternatively, use your IDE’s "Run" feature if supported.
  • Explore the code and modify it to experiment!

Contributing

Contributions are welcome! If you’d like to add a tutorial or improve an existing one:

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature/new-tutorial).
  3. Commit your changes (git commit -m "Add new tutorial on X").
  4. Push to your branch (git push origin feature/new-tutorial).
  5. Open a Pull Request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contact

Have questions? Feel free to reach out via GitHub Issues.

Happy coding with Scala! 🚀

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages