Blog topic

Programmiersprachen

Articles

Articles about Programmiersprachen

Rust - Arrays and Vectors

Rust - Arrays and Vectors

In Rust, there are different ways to store a collection of values. The most common types for such collections are arrays and vectors (Vec), each having distinct characteristics and use cases.

Rust – What is Borrowing?

Rust – What is Borrowing?

Borrowing is one of the central concepts in Rust's memory model and is closely linked to the ownership system. Instead of moving or copying data, data can be borrowed, enabling safe and efficient memory management.

Pull Request - Best Practices

Pull Request - Best Practices

A pull request (PR) is a central part of the collaborative development process. Before a PR is merged into the main project, the changes should be carefully reviewed to avoid errors, improve the code, and ensure the quality of the project.

Pull Request with GitHub

Pull Request with GitHub

A pull request is a collaborative tool used to propose changes made on a separate branch for review and merging. The workflow involves forking (for external repositories), creating a branch, making changes, pushing the branch, and creating a pull request. Once the pull request is approved, the changes can be merged into the main branch, simplifying collaboration in teams and open-source projects.

Rust - Boxing

Rust - Boxing

Rust has the concept of boxing, which enables storing values on the heap instead of the stack. Boxing in Rust is represented by the type Box<T>, which wraps a value of type T in a box object and manages the memory dynamically on the heap. This is particularly useful when the size of the type is not known at compile time or with recursive data types.