An open API service indexing awesome lists of open source software.

https://github.com/krondorl/polyglot-programming

Learn programming in multiple languages
https://github.com/krondorl/polyglot-programming

c go haskell java rust typescript

Last synced: 6 months ago
JSON representation

Learn programming in multiple languages

Awesome Lists containing this project

README

          


# Polyglot Programming

These are practice tasks based on multiple programming languages simultaneously.

## Inspiration

I was inspired by ThePrimeagen's course ["Polyglot Programming: TypeScript, Go, & Rust"](https://frontendmasters.com/courses/typescript-go-rust/) to start this repository.

## Language

TypeScript, Go, Rust and Java are currently in this repo, but I might add more languages later.

## Source Code

The code is in the `src/` folder.

## Installation of Programming Language Tools

First, the TypeScript, Go, and Rust tools must be installed.

- [Install TypeScript (Node.js)](https://nodejs.org/en)
- [Install Go](https://go.dev/doc/install)
- [Install Rust](https://www.rust-lang.org/tools/install)
- [Install Java SE with Amazon Corretto](https://aws.amazon.com/corretto/?filtered-posts.sort-by=item.additionalFields.createdDate&filtered-posts.sort-order=desc) also [Install Maven](https://www.baeldung.com/install-maven-on-windows-linux-mac)
- [Install MinGW, Windows for compiling C language](https://code.visualstudio.com/docs/cpp/config-mingw) also [How to Install MinGW](https://semicolon.dev/windows/how-to-install-mingw-gcc-g-compiler-windows-10-11-2023)
- [Install GHCup for Haskell](https://www.haskell.org/ghcup/)

## Running the Code

Go to the language folder then execute the following:

### Typescript

1. `npm install` (for the first time to install packages)
1. `npm run dev` (to run the program)

### Go

`go run .\filename.go` for example: `go run .\dog_age_calculator.go`

### Rust

`cargo run`

### Java

```
mvn compile
mvn package
mvn exec:java -Dexec.mainClass="com.yourpackage.MainClass"
```

### C

```
gcc -o dog-age-calculator main.c
```

### Haskell

```
ghc .\main.hs
```

## License

Please see the [LICENSE file](LICENSE).

## History

Started in March, 2024.

## Icon Credits

Icons are used from [devicons / devicon](https://github.com/devicons/devicon) under MIT license.

The MIT License (MIT) Copyright (c) 2015 konpa.