r/ada • • 4d ago

Learning Ada 2022 from Zero

https://github.com/Adzvokatix/Ada-2022-from-Zero

I am creating an Ada 2022 course.

This is the introductory volume. It can be a little dense or unclear at places, but I am working on it.

The next volume will be pointers/access types, tagged types , generics, tasking, etc.

You can try the course for yourself from this link too https://beyondfealty.com/ada22fromzero.html

Or view the code and download from github, it just an html page it will run locally in your browser.

The windows and mac tools might be wrong, I did the best I could, but I run linux and I couldn’t test the Windows and Mac steps.

Git is open for any contributions, pull and push requests.

32 Upvotes

8 comments sorted by

3

u/I_hate_posting_here 4d ago edited 4d ago

You should probably write the tutorial in markdown or some other human readable file and either generate the HTML from it or load the markdown and render it with a simple js library like marked. This way the tutorial contents are browse-able via Github or just as source without having to download and run. It's 1 AI prompt away.

4

u/Adzvokatix 4d ago

I already generate the html from markdown, so I'll just upload everything. Thanks for the input.

1

u/gneuromante 4d ago

Why don't you use syntax highlighting in the Markdown file? You could also make a workflow for converting the markdown file into HTML and publish the page.

2

u/Adzvokatix 4d ago

I added a md2html.py script that rebuilds the md to html

1

u/I_hate_posting_here 4d ago

Syntax highlighting is controlled by github and is based by how large the file is in bytes. Small files get highlighted. It cuts out larger than some size, then it refuses to even show the file.

1

u/DiligentBill2936 1d ago

Great one. Will go through this now as Gnat studio is setup.

2

u/Adzvokatix 20h ago

Let me know how it goes, I tried to make it as unassuming as possible, but it's hard to tell sometimes. If something is unclear or ambiguous, I will fix it.

2

u/SnowingIce122 4d ago

Love this! Thank you