Help for my first programming experience. Start with Work to do? and use the Tools section when you need a tool for a task.
There's also a presentation for presenting the general knowledge below.
If you just want to learn programming, try Hedy.
This is a really fun and easy way to get you into learning how to write code.
Tip: select your own language if English is not your native language!
This repo contains multiple parts:
- Create your own GitHub account
- Create a new repository: Go to your GitHub profile and select 'New' This will be your first program you'll write. Choose a fancy name like 'my-cool-progam'
- Next step is 'cloning your repo' (repo is short for repository). This will download the online repository in GitHub to your local filesystem - see git
- Open the GitHub Desktop
- Clone your 'my-cool-program' repo into an easy to find location on your system (e.g. C:\projects)
- Open your files (in your repo) in VSCode by using the GitHub Desktop button
// TODO JavaScript, HTML and CSS starters
What do I need? (use Ctrl+click to open links)
Tool #1: git for version control of your local files; you'll need this a lot 😉
- Just download it and install it with all defaults
- Check out these instruction videos part 1 and part 2
This is a very basic tool and it is good practice to understand what you are doing on this level. Once you're familiar with that you'll able to step up and move to visual tools as well ... like GitHub Desktop (see tool #2).
- Download the GitHub Desktop - this is an easy and visual tool to interact with GitHub
- Install with all defaults
Tool #2: GitHub.com for hosting your files online including the version history of all your files. By doing so you also have a backup of all your files and you can share your changes with others. This is also used to publish your software releases.
Create your own GitHub account.
Tool #3: VSCode (or Visual Studio Code)
This is your editor to edit your files. You also will use this for your 'git actions' and synchronization with GitHub
Tip: once you're familiar with the terminal it will (probably) be possible to open VSCode from the current directory with the code
command:
# open current directory in VSCode
code .
# open 'my-cool-program' in VSCode
code my-cool-program
Tool #4: Markdown
This is a format to create documentation like this guide. Files have .md
extension (last part of the filename). In GitHub these Markdown files will be shown as webpages with links and formatting like bulletpoints and headers. Knowing this tool will help you document your own journey in developing your applications.
Tool #5: NodeJS
NodeJS is heavily used as the 'build engine' (see code-build-run) and can also be used to run a webserver (see client-server and more specific browser-server).
NodeJS needs to be installed on your local machine and is accessible from a terminal. Once installed you can check your installation by checking the version currently in use:
node --version
and
npm --version
npm
is the Node Package Manager. BUT the preferred package manager, or resource manager as they call it, is yarn
(installation)
yarn --version
For installation there are multiple options ... and (of course) it depends on your system and preferences which one is best for you 😉
- [not promoted] direct download + installation
- [promoted] via Node.js package manager
- [preferred @ WSL] via Nodenv (similar to nvm)
- [preferred @ WSL] via Node Version Manager (similar to nodenv)
- [preferred @ Windows PowerShell] via Scoop (option
Scoop
)
This is already available in a few sorts on your machine.
Windows
In case you have a Windows machine (developers slang for computer) you'll have a 'Command Prompt' and a 'Windows PowerShell' terminal.
- Hit 'Start' and type 'cmd' to start the 'Command Prompt' - this is 'the old and long time available Windows terminal'
- Hit 'Start' and type 'powershell' to start the 'Windows PowerShell' terminal - this is 'the new and powerful terminal'
- [after installing Git scm] Hit 'Start' and type 'Git bash' (or just 'bash') to start the 'Git bash' terminal - this is a powerful emulator of the Linux Bash terminal ... but actually runs directly on Windows
Linux
Linux is a different OS than Windows and contains a 'Bash' or 'Shell' terminal ... or any of the other and many terminal options available. For Windows users a Linux environment is available via the Windows Subsystem for Linux, WSL in short. For most users the Ubuntu Linux distribution for WSL will be convenient as a WSL environment. Once installed and available you'll need to install the git and NodeJS tools yourself (but the Linux ecosystem is very helpful in getting this done easily!!)
This repo is edited with VSCode and uses a PlantUML plugin to generate the containing images.
The sources can be found in src/
and generation is (for now) executed manually on a local machine.
After generation the new images need to be moved to the img/
folder.
Publication is with GitHub Pages of the docs/
folder.
Local development is supported with NodeJS and yarn (see above):
cd docs
yarn install
yarn start