A comprehensive guide to Rust, specially crafted for PHP developers.
This video course covers everything you need to know to master Rust, from the basics of the language to full-fledged applications and libraries.
See the course outlineThe Full Monty
Special pre-order discount **$139
(excl. VAT and additional charges)
You get:
- Source code for all projects
- Access to all future module & content updates
- Membership to private Discord community
- Stream and download all videos *
* Download available with full launch Early 2024.
** Pre-order availability limited.
The why
Why should you learn Rust? What makes it so special?
Rust isn't just another programming language. It actually brings a whole host of features and advantages to the table, compared to other languages.
Here's a list of a few things that make Rust special:
1. Memory SafetyRust has a powerful ownership system that ensures memory safety at compile time. This means that you don't have to worry about potential memory leaks or using memory after it's been freed, as the compiler can catch these issues before you even run your code.
2. Zero-cost abstractionsIn the PHP world, how you write your code can have an impact on how the code performs. For example, using a class for a single static method can be less performant than just using a regular function. Rust overcomes this problem by providing zero-cost abstractions. You won't pay a performance penalty for using a generic struct over a concrete one, for example.
3. Modern language, modern syntax, modern featuresIn the world of programming, Rust is still the new kid on the block. By looking at pitfalls of other languages, Rust has been able to learn from them and provide a modern language and avoid the same mistakes. Language features such as generics, pattern matching, tagged unions, just to name a few, are all incredibly powerful and available in Rust.
Beyond that?Plenty of ecosystems, including PHP, have seen a rise in Rust's popularity.
Our cousins in the JavaScript world love building new tools in Rust. The performance and developer experience benefits that it brings to the table are a huge draw for developers.
Rust-based tools such as Tauri allow you to build desktop applications using web technologies. The NativePHP project is working on adding Tauri support — having solid Rust skills will most definitely increase your chance of success with these tools.
Want to write a PHP extension but don't want to faff around with boring ol' C? You can use Rust, thanks to some excellent packages and libraries from members of both communities!
The what
Have I piqued your interest? Let's take a closer look at what you'll learn in this course. *
- What is Rust?
- Installing Rust
- Creating your first project
- Variables & Mutability
- References
- Numeric Data Types
- The "unit" type
- Strings and characters
String
vs&str
- Arrays
- Slices
- Tuples
- Vectors
- Control Flow
- Defining a function
- Implicit vs explicit returns
- Closures
- Structs
- Enumerations
- Tagged Unions
- Methods
- What are generics?
- Generic functions
- Generic structs and enums
- Optional values
Option
vsnull
- Result types
- Error propagation
- Error values vs exceptions
- Matching values
- Matching structs and enums
- Matching ranges
- Bindings
if..let
andwhile..let
expressionslet..else
expressions
- Composition vs Inheritance
- Writing your first trait
- Type-hinting traits
- Traits in the standard library
- Downcasting
- What even is memory?
- Traditional, manual memory management
- Garbage collection in PHP
- Ownership
- Lifetimes
- Your first module
- Visibility
- Inline modules
- Metaprogramming 101
- First-party macros
- Declarative macros vs procedural macros
- Implement your own
println!
macro
- Unit testing
- Integration tests
- What is a "crate"?
- Installing crates with Cargo
- What are "features"?
* Course modules are still under development and subject to change. New modules will be added over time.
Pricing
Special pre-order discount **Three packages to choose from, depending on your budget and needs.
Standard
$79
(excl. VAT and additional charges)
You get:
- Access to all launch modules
- Membership to private Discord community
- Stream videos
Premium
$99
(excl. VAT and additional charges)
You get:
- Access to all future module & content updates
- Membership to private Discord community
- Stream and download all videos *
The Full Monty
$139
(excl. VAT and additional charges)
You get:
- Source code for all projects
- Access to all future module & content updates
- Membership to private Discord community
- Stream and download all videos *
* Download available with full launch Early 2024.
** Pre-order availability limited.
FAQs
Answers to questions you might have, or might find useful.
Once you have purchased the course, you will be sent an email with a link to the course dashboard.
If at any point you lose this email, you can get a new link sent to you by visiting the login page and hitting Request access link. *
* The dashboard is not yet available and will be available once early access opens.The length of each video depends on the content being covered.
Some videos are as short as 3 minutes, while others are longer and can be up to 20 minutes. It all depends on the topic and how in-depth it needs to be.
As this course is tailored towards PHP developers, the videos draw comparisons between the two languages to help you understand the concepts.
The videos are a mixture of slides and live coding, with the majority of the content being live coding.
Yes! If you purchase the Full Monty package, you can download the videos and watch them offline*.
If you purchase one of the other packages, you will still be able to download the videos but only after the cooling-off period of 30 days**.
* Downloading will be available after full launch in Early 2024.** The cooling-off period starts from the date of purchase and is only applicable to the Basic and Standard packages.
The full course is expected to launch in Early 2024.
Right now, the focus is on nailing the content and making sure it's as good as it can be.
If you already have a bit of experience from Rust you still might find this course useful, especially if you want to see how to build real-world applications and programs.
Absolutely. If you request a refund within 30 days of purchase, I'll refund you in full.
All payments are processed securely through Lemon Squeezy.
Payment details are not stored on this website.