Einführung in die Sprache Elixir
Verstehen Sie die Philosophie von Elixir und seine Beziehung zu Erlang/OTP und richten Sie Ihre Entwicklungsumgebung ein.
Einführung in die Sprache Elixir ist eine kostenlose Elixir & Phoenix: Scalable Backend Development-Lektion auf CoddyKit. Dies ist Lektion 1 von 4. Du kannst die komplette Lektion unten kostenlos lesen – dann übst du sie direkt im Browser mit einem integrierten Code-Editor und einem KI-Tutor rund um die Uhr. Sie ist Teil des Elixir & Phoenix: Scalable Backend Development-Lernpfads, und dein Fortschritt wird über Web und CoddyKit-App synchronisiert. Der Elixir & Phoenix: Scalable Backend Development-Kurs umfasst insgesamt 4 Lektionen.
Teile dieser Lektion wurden noch nicht übersetzt und werden auf Englisch angezeigt.
Welcome to Elixir!
Elixir is a dynamic, functional language for scalable, maintainable apps. It runs on the battle-tested Erlang VM. Welcome aboard!
Why Choose Elixir?
You pick Elixir for effortless concurrency, fault tolerance that recovers gracefully, and a modern, productive syntax. Great for web, embedded, and real-time.
Erlang VM (BEAM) & OTP
Elixir runs on the Erlang VM (BEAM), famous for uptime, and uses OTP libraries to build fault-tolerant, distributed systems.
Getting Started: The Interactive Shell
The fastest way to play with Elixir is iex, its interactive shell. Just type iex in your terminal and start experimenting.
Your First Elixir Output
Time for Hello World. You print to the console with IO.puts — here it is inside a runnable module.
defmodule Greeter do
def say_hello do
IO.puts "Hello, CoddyKit!"
end
end
Greeter.say_hello()Basic Arithmetic
Elixir does arithmetic exactly as you would expect: add, subtract, multiply, divide. Run this to see basic math at work.
defmodule Calculator do
def do_math do
sum = 5 + 3
product = 4 * 2
IO.puts "Sum: #{sum}"
IO.puts "Product: #{product}"
end
end
Calculator.do_math()Variables (Bindings) in Elixir
In Elixir, = binds a value to a variable. Variables are immutable — re-binding just creates a new binding, it never mutates the old value.
defmodule BindingsDemo do
def show_bindings do
name = "Elixir"
IO.puts "First name: #{name}"
# Re-binding 'name' creates a new binding
name = "Phoenix"
IO.puts "New name: #{name}"
# The original "Elixir" value remains unchanged elsewhere
end
end
BindingsDemo.show_bindings()Atoms: Unique Constants
An atom is a constant whose value is its own name, written with a leading colon like :ok. Perfect as fast, clear identifiers and keys.
Elixir's Core Philosophy
Elixir is built on functional programming and concurrency — predictable code that easily runs many tasks at once across all your cores.
Quick Check: Elixir Foundations
Let's test your understanding of Elixir's core concepts.
Recap: Your Elixir Journey Begins!
You shipped your first Elixir skills: the BEAM and OTP, the iex shell, basic output and math, immutable bindings, and atoms. On to the good stuff!
Häufig gestellte Fragen
Ist die Lektion „Einführung in die Sprache Elixir“ kostenlos?
Ja — der vollständige Text von „Einführung in die Sprache Elixir“ ist hier im Web kostenlos zu lesen. Um sie interaktiv zu üben (integrierter Code-Editor und 24/7 KI-Tutor) und den Rest des Elixir & Phoenix: Scalable Backend Development-Kurses freizuschalten, upgrade auf CoddyKit PRO. Der Elixir & Phoenix: Scalable Backend Development-Kurs umfasst insgesamt 4 Lektionen.
Was lerne ich in „Einführung in die Sprache Elixir“?
Verstehen Sie die Philosophie von Elixir und seine Beziehung zu Erlang/OTP und richten Sie Ihre Entwicklungsumgebung ein. Du übst Elixir & Phoenix: Scalable Backend Development mit praktischem Code, den du direkt im Browser ausführst, und ein 24/7 KI-Tutor beantwortet deine Fragen während du die Lektion bearbeitest.
Brauche ich Erfahrung, um Elixir & Phoenix: Scalable Backend Development zu starten?
Keine Vorkenntnisse erforderlich. Elixir & Phoenix: Scalable Backend Development auf CoddyKit ist für Anfänger bis fortgeschrittene Lernende strukturiert, sodass du hier starten oder von Anfang an beginnen und in deinem eigenen Tempo voranschreiten kannst. Dies ist Lektion 1 von 4.
Wie lange dauert die Lektion „Einführung in die Sprache Elixir“?
Die meisten CoddyKit-Lektionen dauern etwa 5–10 Minuten. Jede ist kompakt und interaktiv, sodass du stetig Fortschritte machst und genau dort weitermachst, wo du aufgehört hast – im Web und in der App.
Kann ich in dieser Elixir & Phoenix: Scalable Backend Development-Lektion Code schreiben und ausführen?
Ja. Jede Elixir & Phoenix: Scalable Backend Development-Lektion enthält einen integrierten Code-Editor, sodass du echten Code direkt in deinem Browser schreibst und ausführst und sofort KI-Feedback erhältst — ohne lokale Einrichtung erforderlich.
Alle Lektionen in diesem Kurs
- Einführung in die Sprache Elixir
- Grundlegende Datentypen und Operatoren
- Pattern Matching und Kontrollfluss
- Strings, Binärdaten und Sigils in Elixir