Skip to content

Commit 9d78faf

Browse files
committed
Add multi-language concept templates
1 parent 423619e commit 9d78faf

14 files changed

Lines changed: 117 additions & 1 deletion

File tree

templates/concept-template/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ python example/main.py
2828
go run example/main.go
2929

3030
# C#
31-
dotnet run --project example/<module>-example.csproj
31+
dotnet run --project example/concept-template-example.csproj
3232

3333
# TypeScript
3434
npm run build:typescript
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
<PropertyGroup>
3+
<OutputType>Exe</OutputType>
4+
<TargetFramework>net8.0</TargetFramework>
5+
<ImplicitUsings>disable</ImplicitUsings>
6+
<Nullable>enable</Nullable>
7+
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
8+
</PropertyGroup>
9+
<ItemGroup>
10+
<Compile Include="main.cs" />
11+
</ItemGroup>
12+
</Project>
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// Module focus: Replace this line with the concept the example teaches.
2+
// Why it matters: Replace this line with the learner-facing reason the concept matters.
3+
4+
using System;
5+
6+
class Program
7+
{
8+
static void Main()
9+
{
10+
// Walk through one fixed scenario so the example stays repeatable.
11+
string message = "Template example: replace this file with concept-specific content.";
12+
13+
// Report values so learners can verify the expected outcome.
14+
Console.WriteLine(message);
15+
}
16+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// Module focus: Replace this line with the concept the example teaches.
2+
// Why it matters: Replace this line with the learner-facing reason the concept matters.
3+
4+
package main
5+
6+
import "fmt"
7+
8+
func main() {
9+
// Walk through one fixed scenario so the example stays repeatable.
10+
message := "Template example: replace this file with concept-specific content."
11+
12+
// Report values so learners can verify the expected outcome.
13+
fmt.Println(message)
14+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Module focus: Replace this line with the concept the example teaches.
2+
# Why it matters: Replace this line with the learner-facing reason the concept matters.
3+
4+
5+
def main() -> None:
6+
# Walk through one fixed scenario so the example stays repeatable.
7+
message = "Template example: replace this file with concept-specific content."
8+
9+
# Report values so learners can verify the expected outcome.
10+
print(message)
11+
12+
13+
if __name__ == "__main__":
14+
main()
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// Module focus: Replace this line with the concept the example teaches.
2+
// Why it matters: Replace this line with the learner-facing reason the concept matters.
3+
4+
// Walk through one fixed scenario so the example stays repeatable.
5+
const message = "Template example: replace this file with concept-specific content.";
6+
7+
// Report values so learners can verify the expected outcome.
8+
console.log(message);
9+
10+
export {};
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
using System;
2+
3+
class Program
4+
{
5+
static void Main()
6+
{
7+
Console.WriteLine("Exercise 01 template: implement the requested task.");
8+
}
9+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package main
2+
3+
import "fmt"
4+
5+
func main() {
6+
fmt.Println("Exercise 01 template: implement the requested task.")
7+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
def main() -> None:
2+
print("Exercise 01 template: implement the requested task.")
3+
4+
5+
if __name__ == "__main__":
6+
main()
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
console.log("Exercise 01 template: implement the requested task.");
2+
3+
export {};

0 commit comments

Comments
 (0)