Programming & Frameworks
Go & Rust
Prepare for Go and Rust programming, concurrency, memory management, systems development, backend services, and performance-oriented application design.
Your learning roadmap
Explore the key concepts
Use these subtopics as a study checklist. Start with the fundamentals, then progress to practical examples and interview preparation.
Go programming fundamentals
Understand Go's design philosophy, compiled execution model, package structure, and core language features. Learn how Go supports simple, efficient, and maintainable backend software.
Start learningGo installation and project structure
Learn how to install Go, configure the development environment, initialize projects with go mod, and organize source files into packages. Understand the standard Go project layout and development workflow.
Start learningVariables and constants
Explore variable declarations using var and short declaration syntax, along with constants and their scope. Understand zero values, type inference, and when to use mutable variables or immutable constants.
Start learningData types and type conversions
Study Go's basic data types, including integers, floating-point numbers, strings, booleans, and complex values. Learn explicit type conversions, type compatibility, and how Go handles numeric operations.
Start learningPointers in Go
Understand pointers, memory addresses, dereferencing, and pointer variables in Go. Learn how pointers allow functions and methods to modify shared data without copying entire values.
Start learningArrays and slices
Learn the differences between fixed-length arrays and dynamically sized slices. Explore slice creation, indexing, slicing, append, copy, capacity, and the relationship between slices and their underlying arrays.
Start learningMaps
Understand Go maps as key-value data structures. Learn how to create, access, update, delete, and iterate over map entries, check key existence, and use maps safely in application code.
Start learningStructs and methods
Explore structs as Go's primary way to group related data. Learn how to define struct types, initialize fields, use methods, and choose between value and pointer receivers.
Start learningInterfaces and interface composition
Understand Go's implicit interface implementation and structural typing. Learn how interfaces define behavior, how types satisfy interfaces automatically, and how smaller interfaces can be composed into larger contracts.
Start learningEmbedding in Go
Learn how anonymous fields and embedded types promote fields and methods in Go. Understand composition through struct embedding, interface embedding, method promotion, and how embedding differs from classical inheritance.
Start learningFunctions and multiple return values
Study function declarations, parameters, return types, named return values, and multiple return values. Learn how Go functions support error-returning conventions and clear separation of application logic.
Start learningClosures and anonymous functions
Understand anonymous functions and closures in Go. Learn how functions can capture variables from surrounding scopes, how captured state behaves, and where closures are useful in callbacks and concurrent code.
Start learningError handling in Go
Learn Go's explicit error-handling approach using the built-in error interface. Explore error returns, checking errors, wrapping with contextual information, and creating custom error types.
Start learningDefer, panic, and recover
Understand deferred function execution and its last-in-first-out behavior. Learn how panic and recover work, when recovery is appropriate, and how defer helps release resources and maintain predictable cleanup.
Start learningPackages and modules
Explore Go packages, import paths, exported identifiers, and package visibility rules. Understand how modules organize application dependencies and how source files are grouped into reusable units.
Start learningGo dependency management
Learn how Go modules manage external dependencies and versioning. Explore go.mod, go.sum, go get, go mod tidy, dependency upgrades, and reproducible builds.
Start learningGoroutines
Understand goroutines as lightweight concurrent execution units managed by the Go runtime. Learn how to start goroutines, coordinate their work, and avoid common lifecycle and synchronization problems.
Start learningChannels and channel directions
Learn how channels communicate values between goroutines. Explore sending and receiving operations, channel types, directional channels, closing channels, and safe communication patterns.
Start learningBuffered and unbuffered channels
Compare buffered and unbuffered channels and understand how their capacity affects communication and synchronization. Learn when sends block, how receives behave, and how channel buffering influences program flow.
Start learningSelect statement
Understand Go's select statement for handling multiple channel operations. Learn how select chooses ready cases, how default cases work, and how to implement timeouts and non-blocking communication.
Start learningConcurrency patterns
Explore practical Go concurrency patterns such as worker pools, fan-out, fan-in, pipelines, and producer-consumer workflows. Learn how to coordinate goroutines and manage cancellation and failures.
Start learningMutexes and synchronization
Learn how sync.Mutex and sync.RWMutex protect shared data from concurrent access. Understand critical sections, lock management, deadlocks, and alternatives to shared-memory synchronization.
Start learningWaitGroups and context package
Understand sync.WaitGroup for waiting on groups of goroutines and the context package for cancellation, deadlines, and request-scoped values. Learn how to coordinate concurrent tasks and propagate cancellation.
Start learningRace conditions and race detection
Study race conditions, data races, and synchronization errors in concurrent Go applications. Learn how to use the Go race detector, interpret reports, and fix unsafe shared-memory access.
Start learningGo garbage collection
Understand Go's garbage collector, heap object tracking, and automatic memory reclamation. Explore garbage collection cycles, allocation pressure, latency considerations, and runtime memory metrics.
Start learningMemory allocation and escape analysis
Learn how Go allocates values on the stack and heap. Understand escape analysis, compiler decisions, allocation behavior, and how to inspect escape-analysis output when optimizing memory usage.
Start learningGo HTTP server development
Learn how to build HTTP servers using Go's net/http package. Explore handlers, routing, request and response objects, server configuration, timeouts, and graceful shutdown.
Start learningREST API development with Go
Understand how to design and implement REST APIs in Go. Learn resource-oriented endpoints, HTTP methods, status codes, JSON encoding, validation, and consistent API response structures.
Start learningMiddleware and request handling
Explore HTTP middleware and request processing in Go. Learn how to implement authentication, logging, CORS, request IDs, recovery, and other cross-cutting concerns using handler composition.
Start learningDatabase connectivity in Go
Learn how Go applications communicate with relational databases using database/sql and database drivers. Explore connection pooling, queries, prepared statements, transactions, scanning results, and resource cleanup.
Start learningUnit testing in Go
Understand Go's testing package and conventions for writing reliable unit tests. Learn test functions, table-driven tests, subtests, test fixtures, assertions, and testing application errors.
Start learningBenchmarking and profiling
Learn how to measure Go application performance with benchmarks and profiling tools. Explore testing.B, CPU and memory profiles, pprof, execution traces, and evidence-based performance analysis.
Start learningGo performance optimization
Explore practical techniques for improving Go application performance. Learn to reduce unnecessary allocations, optimize data structures, manage concurrency, profile bottlenecks, and evaluate changes with benchmarks.
Start learningRust programming fundamentals
Understand Rust's systems programming philosophy, compiled execution model, strong type system, and memory safety guarantees. Learn how Rust combines low-level control with protection against common memory errors.
Start learningRust installation and Cargo
Learn how to install Rust using rustup and manage toolchains. Explore Cargo for creating projects, building applications, running tests, managing dependencies, and organizing Rust packages and workspaces.
Start learningVariables and mutability
Understand Rust's immutable-by-default variables, mutable bindings, constants, and variable shadowing. Learn how mutability affects ownership, reassignment, and safe state management.
Start learningPrimitive and compound data types
Explore Rust's scalar types, including integers, floating-point values, booleans, and characters, along with compound types such as tuples and arrays. Understand type inference and explicit annotations.
Start learningOwnership
Understand Rust's ownership model and its rules for managing memory without a garbage collector. Learn ownership transfer, move semantics, copying, scope-based cleanup, and how ownership prevents invalid memory access.
Start learningBorrowing and references
Learn how borrowing allows code to access values without taking ownership. Explore immutable and mutable references, borrowing rules, reference validity, and how the borrow checker prevents unsafe aliasing.
Start learningLifetimes
Understand Rust lifetimes and how they describe the validity of references. Learn lifetime annotations, lifetime relationships, elision rules, and how the compiler checks that references never outlive their data.
Start learningSlices and strings
Explore slices as references to contiguous sequences of data and understand Rust's string types. Learn the differences between String and str, string ownership, UTF-8 handling, and safe string manipulation.
Start learningStructs and enums
Learn how Rust structs model custom data and how enums represent values with multiple variants. Explore tuple structs, unit structs, associated data, and the use of custom types to represent domain concepts.
Start learningPattern matching with match
Understand Rust's match expression for exhaustive pattern matching. Learn how to match enum variants, destructure values, use guards, handle Option and Result, and write expressive control flow.
Start learningMethods and associated functions
Explore methods defined within Rust impl blocks. Learn the difference between methods that use self and associated functions, constructor conventions, method receivers, and how behavior is organized around types.
Start learningTraits and trait bounds
Understand traits as Rust's mechanism for defining shared behavior. Learn how to implement traits, use trait bounds, combine multiple bounds, and write reusable functions that operate on different types.
Start learningGenerics in Rust
Learn how Rust generics support reusable functions, structs, enums, and methods. Explore generic parameters, trait constraints, monomorphization, and compile-time type checking.
Start learningOption and Result types
Understand Option for representing optional values and Result for representing success or failure. Learn Some, None, Ok, Err, pattern matching, and how these types make error-prone states explicit.
Start learningError handling in Rust
Explore Rust's error-handling mechanisms using Result, Option, the question-mark operator, and custom error types. Learn how to propagate failures, distinguish recoverable errors, and handle application-level exceptions.
Start learningModules and packages
Understand Rust's module system and package organization. Learn crates, modules, paths, visibility rules, use declarations, re-exports, and how to structure maintainable multi-module applications.
Start learningCollections in Rust
Explore Rust's standard collections, including Vec, HashMap, and HashSet. Learn how to create, access, modify, iterate over, and choose appropriate collection types for different data-management requirements.
Start learningIterators and closures
Understand Rust closures, iterator traits, and lazy evaluation. Learn map, filter, fold, collect, iterator adapters, ownership capture, and how functional-style operations process collections efficiently.
Start learningSmart pointers
Learn how Rust smart pointers provide ownership and memory-management behavior beyond ordinary references. Understand Deref and Drop, heap allocation, shared ownership, and when smart pointers are appropriate.
Start learningBox, Rc, Arc, and RefCell
Explore Box for heap allocation, Rc for single-threaded shared ownership, Arc for thread-safe reference counting, and RefCell for runtime borrow checking. Understand their trade-offs and common combinations.
Start learningMemory safety
Understand how Rust's ownership system, borrowing rules, lifetimes, and type system prevent dangling pointers, use-after-free errors, and data races in safe Rust. Learn the distinction between compile-time guarantees and unsafe operations.
Start learningStack and heap allocation
Learn how Rust values are stored on the stack and heap. Explore ownership of heap-allocated data, Box, collection allocation, memory layout, and how allocation choices affect performance.
Start learningConcurrency and parallelism in Rust
Understand Rust's concurrency and parallelism model, including threads, ownership transfer, Send, and Sync. Learn how the type system helps prevent data races while enabling safe concurrent execution.
Start learningThreads and message passing
Learn how to create and manage threads using Rust's standard library. Explore thread spawning, joining, move closures, message passing with channels, and transferring ownership between threads.
Start learningMutexes and shared state
Understand shared mutable state in Rust using Mutex and other synchronization primitives. Learn how Arc and Mutex work together, how locking protects data, and how to avoid deadlocks and lock contention.
Start learningAsync programming in Rust
Explore asynchronous programming in Rust and understand how async functions and executors support non-blocking operations. Learn when async is useful for network services and concurrent I/O workloads.
Start learningFutures and async/await
Futures and async/await: Learn its key concepts, practical implementation, architecture, and interview considerations.
Start learningRust web development
Explore web application development in Rust using its ecosystem of web frameworks and supporting libraries. Understand routing, request handling, serialization, middleware, application state, and service architecture.
Start learningREST API development with Rust
Learn how to build REST APIs in Rust using web frameworks and serialization libraries. Explore route definitions, HTTP methods, JSON payloads, request validation, error responses, and API testing.
Start learningTesting in Rust
Understand Rust's built-in testing support and Cargo test workflow. Learn unit tests, integration tests, documentation tests, assertions, test modules, and techniques for testing application behavior.
Start learningMacros in Rust
Explore Rust declarative macros using macro_rules! and procedural macros. Understand token matching, macro expansion, derive macros, attribute macros, and how macros reduce repetitive code.
Start learningUnsafe Rust
Understand unsafe Rust and the operations that require explicit unsafe blocks. Learn raw pointers, unsafe functions, mutable static variables, foreign function interfaces, and how to keep unsafe code isolated and auditable.
Start learningRust performance optimization
Learn how to analyze and improve Rust application performance. Explore compiler optimizations, allocation behavior, ownership-aware design, benchmarking, profiling, and the trade-offs between performance and maintainability.
Start learningGo vs Rust: architecture and trade-offs
Compare Go and Rust across language design, memory management, concurrency, error handling, performance, tooling, and deployment. Understand how their architectural strengths and trade-offs influence technology choices for backend services and systems software.
Start learningPractice & revise
Interview questions
Practice interview questions with answers, key points, and practical examples.
Test your knowledge
Explore 80 questions for this topic, covering concepts, practical examples, and interview scenarios.
Keep learning step by step
Work through the concepts, practice explaining them in your own words, and use interview questions to check your understanding.
Explore another learning path