Skip to content
项目

关于

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.

学习与教育

这些数字如何统计

实测星标增长

24小时
0
7天
+2
15天
+4
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

4noobs header.

Kotlin4Noobs

License

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.

探索相关项目

加载中…