asynkron / protoactor-bootcamp

56 stars 60 forks source link

How to add golang code? #4

Open cupen opened 4 years ago

cupen commented 4 years ago

I can write a script to generate GO directory, then fill some files consists by the document of C# version and go code.

ENG/C#
ENG/GO

RUS/C#
RUS/GO

But it will make a lot of repetitive text. Maybe it's not a good solution.

cupen commented 4 years ago

I would like this interactive tab, but it is more html. :smiley: Any suggestions? https://proto.actor/docs/hello-world/

cupen commented 4 years ago

How about this? Add some links of other languages to your C# version.

examples
├── unit-1
│   └── lesson-1
│       ├── csharp
│       │   ├── Program.cs
│       │   └── project.xml
│       ├── golang
│       │   ├── main.go
│       │   └── other.go
│       └── python
│           └── main.py
└── unit-2
    └── lesson-1
        ├── csharp
        │   ├── Program.cs
        │   └── project.xml
        ├── golang
        │   ├── main.go
        │   └── other.go
        └── python
            └── main.py

e.g.:


Let's look at an example of what might look like a message class written in C#. other languages

private class ExampleMessage
{
    public int CustomerID { get; }

    public Hello(int customerId)
    {
        CustomerID = customerId;
    }
}

@Valentin-Miroshnichenko Any suggestions?

rogeralsing commented 3 years ago

@cupen on the proto.actor website, we have code snippets in Tabs, where users can switch language. I think that would be the easiest in the end to maintain, so there is only one copy of the bootcamp itself, but with multiple snippets. (and example code folders)

We have tried to maintain different language versions of docs in the past and its very hard to keep all bits in sync

cupen commented 3 years ago

@rogeralsing Yes, I agree with you. Tabs is really good, but it's not supported by github flavored markdown.