gustavofreze/kotlin4noobs
À propos
A guide to learn Kotlin from scratch, part of the 4noobs initiative, published as a site in Portuguese and English with examples that run in the page.
Apprentissage et éducationProgression mesurée des étoiles
- in 24h
- 0
- in 7 days
- +2
- in 15 days
- +4
- in 1 month
- Historique en cours
Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.
README.md
OriginalKotlin4Noobs
Overview
A guide to learn Kotlin from scratch, part of the 4noobs initiative, in Portuguese
and English, published at gustavofreze.github.io/kotlin4noobs. The
notes are the Markdown files under doc/readmes/, read the same way on GitHub and on the site, which adds search and
runs the examples in the page.
Topics
| Group | Topic | Portuguese | English |
|---|---|---|---|
| Environment setup | Linux | Português | English |
| Principles | Variables | Português | English |
| Principles | Data types | Português | English |
| Principles | Functions | Português | English |
| Principles | Operators | Português | English |
| Principles | Conditional expressions | Português | English |
| Principles | Loops | Português | English |
| Principles | Scope functions | Português | English |
| Data structures | Collections | Português | English |
| Data structures | Classes and objects | Português | English |
| Data structures | Generics | Português | English |
| Error handling | Exceptions | Português | English |
| Error handling | Null safety | Português | English |
| Asynchronous programming | Coroutines | Português | English |
| Best practices | Coding conventions | Português | English |
Runnable examples
Every Kotlin block with a fun main is a runnable example. On the site it runs in place on the
Kotlin Playground, on the latest stable version of Kotlin. The Validate examples
workflow compiles and runs every example on that same version on each pull request that changes the notes and on the
first day of every month. The monthly run also checks for a newer Kotlin Playground, and opens an issue saying what to
change when either check fails.
Other resources
| Resource | Link |
|---|---|
| IntelliJ IDEA | Link |
| Kotlin Playground | Link |
| Kotlin POCs | Link |
| Brazilian companies using Kotlin | Link |
Installation
Repository
To clone the repository using the command line, run:
git clone https://github.com/gustavofreze/kotlin4noobs.git
Configuration
To install project dependencies locally, run:
make configure
To start the development server with live reload, run:
make start
To stop the development server, run:
make stop
To build the site and its search index into dist/, run:
make build
To serve the built site, search included, as it is published, run:
make preview
Tests
Run the unit tests:
make tests
Check the script every built page ships against its budget (run after make build):
make budgets
Review
Run the linter, the formatter check and the Astro and TypeScript checks:
make review
Fix linter and formatter issues:
make fix-review
Examples
Compile and run every example of the notes on the latest stable Kotlin of the Playground:
make examples
Maintenance
Remove dependencies and generated artifacts:
make clean
You can check other available commands by running
make help.
Environment setup
Access URLs
| Environment | URL |
|---|---|
Local |
http://localhost:4321/kotlin4noobs/ |
Production |
https://gustavofreze.github.io/kotlin4noobs |
Deployment
The CD (Deploy site) workflow builds the site and publishes it on GitHub Pages. It runs on demand from the Actions tab.
Contributing
Follow the contribution guidelines to contribute to the project.
Explorer des projets similaires
Chargement…