Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Explore the principles of type-driven API design in Rust through this 41-minute conference talk from Strange Loop 2021. Dive into the unique approach required for designing APIs in Rust, a language that combines imperative and functional concepts for safer low-level systems programming. Watch as Will Crichton, a Stanford University CS Ph.D. student, live-codes a simple Rust API, demonstrating how to leverage Rust's type system, particularly traits, to create interfaces that seamlessly integrate with existing code and help catch errors at compile-time. Learn to design without traditional object-oriented concepts like classes and inheritance, and gain insights into composing clean and efficient APIs in Rust. Benefit from Crichton's expertise in cognitive psychology and programming language theory as he shares valuable techniques for creating more robust and user-friendly Rust APIs.