Skip to content

KandZ - Tuts

  • Benchmarks â–¾
    • CPU
    • GPU
  • Operating Systems â–¾
    • Linux â–¾
      • Distros â–¾
        • Fedora
        • Other Distros
        • Ubuntu
      • Gnome 48
      • KDE
      • LFCA - Linux Foundation Certified IT Associate
      • LFCS - Linux Foundation Certified Sysadmin
      • Linux CLI
      • Various
  • Other
  • Programming â–¾
    • Frameworks & Libraries â–¾
      • Angular
      • React
      • Tailwind CSS
      • Vue.js
    • Languages & Runtimes â–¾
      • CSS
      • Dart
      • HTML
      • JavaScript
      • Node.js
      • Rust
      • SQL
      • TypeScript
    • Tools â–¾
      • Docker
      • Git
  • Tools
  • Windows â–¾
    • Windows 11
KandZ - Tuts
AngularCSSDartDockerGitHTMLJavaScriptNode.jsReactRustSQLTailwind CSSTypeScriptVue.jsFedoraGnome 48KDELFCA - Linux Foundation Certified IT AssociateLFCS - Linux Foundation Certified SysadminLinux CLIOther DistrosUbuntuVariousCPUGPUOtherToolsWindows 11
  • Rust 50 🦀 Moving Environment Variables into Closures (move keyword)
    Programming | Languages & Runtimes | Rust

    Rust 50 🦀 Moving Environment Variables into Closures (move keyword)

    ByKandZ October 13, 2026October 13, 2026

    A closure captures the variables it uses from the surrounding scope. By default, the compiler infers the least restrictive capture: an immutable borrow if the closure only reads the variable, a mutable borrow if it modifies it, and a move if the closure takes ownership. The inference is convenient for the closures that are called…

    Read More Rust 50 🦀 Moving Environment Variables into Closures (move keyword)Continue

  • Rust 49 🦀 Closure Syntax, Type Inference, and Capturing Environment
    Programming | Languages & Runtimes | Rust

    Rust 49 🦀 Closure Syntax, Type Inference, and Capturing Environment

    ByKandZ October 13, 2026October 13, 2026

    A closure is an anonymous function that can capture the variables from the scope where it is defined. It is the fundamental tool for the higher-order functions, the callbacks, and the concise inline logic. The |x| x + 1 is a closure that takes the x and returns the x + 1, and unlike the…

    Read More Rust 49 🦀 Closure Syntax, Type Inference, and Capturing EnvironmentContinue

  • Rust 48 🦀 Command-Line Interface Parsing (clap crate)
    Programming | Languages & Runtimes | Rust

    Rust 48 🦀 Command-Line Interface Parsing (clap crate)

    ByKandZ October 13, 2026October 13, 2026

    Every command-line tool has an interface. The user types the program name, the options, the positional arguments, and the subcommands, and the program must parse the input, validate it, and produce a helpful error message when something is wrong. Hand-writing this parsing is tedious and error-prone. The argument order, the short and long forms, the…

    Read More Rust 48 🦀 Command-Line Interface Parsing (clap crate)Continue

  • Rust 47 🦀 Integration Testing in the tests Directory
    Programming | Languages & Runtimes | Rust

    Rust 47 🦀 Integration Testing in the tests Directory

    ByKandZ October 13, 2026October 13, 2026

    A unit test verifies a function in isolation. An integration test verifies the library as the consumer uses it. The unit tests live in the src/ files, and they can access the private items. The integration tests live in the tests/ directory, and each file is a separate crate that depends on the library. The…

    Read More Rust 47 🦀 Integration Testing in the tests DirectoryContinue

  • Rust 46 🦀 Writing Automated Unit Tests and Documentation Tests
    Programming | Languages & Runtimes | Rust

    Rust 46 🦀 Writing Automated Unit Tests and Documentation Tests

    ByKandZ October 13, 2026October 13, 2026

    Rust treats testing as a first-class part of the language. The cargo test command is built into the toolchain, the test functions are ordinary functions annotated with the #[test] attribute, and the test module is the ordinary module with the #[cfg(test)] attribute. There is no separate test framework to install, no configuration file to write,…

    Read More Rust 46 🦀 Writing Automated Unit Tests and Documentation TestsContinue

  • Dart 50 🎯 Mocking Dependencies in Unit Tests using mockito and mocktail
    Uncategorized | Dart | Languages & Runtimes | Programming

    Dart 50 🎯 Mocking Dependencies in Unit Tests using mockito and mocktail

    ByKandZ October 13, 2026October 13, 2026

    A unit test should test one thing. When the unit under the test depends on the database, the network, the clock, or the file system, the test must isolate the unit from those dependencies. Otherwise the test is slow, flaky, and coupled to the external systems. Test doubles are the objects that stand in for…

    Read More Dart 50 🎯 Mocking Dependencies in Unit Tests using mockito and mocktailContinue

  • Dart 49 🎯 Unit Testing with package:test: Grouping, Assertions, and Expectations
    Programming | Dart | Languages & Runtimes

    Dart 49 🎯 Unit Testing with package:test: Grouping, Assertions, and Expectations

    ByKandZ October 13, 2026October 13, 2026

    A unit test is a small program that exercises one piece of the code and asserts the expected result. The package:test is the standard testing framework for the Dart, and it provides the test function, the group function, the expect function, and the matchers. The framework runs the tests, collects the results, and reports the…

    Read More Dart 49 🎯 Unit Testing with package:test: Grouping, Assertions, and ExpectationsContinue

  • Dart 48 🎯 Code Generation with build_runner, json_annotation, and freezed
    Programming | Dart | Languages & Runtimes

    Dart 48 🎯 Code Generation with build_runner, json_annotation, and freezed

    ByKandZ October 13, 2026October 13, 2026

    Manual JSON serialization is verbose. For every model class, the developer writes the fromJson factory, the toJson method, and the mapping between the JSON fields and the Dart fields. The mapping is repetitive, and it is easy to get wrong when a field is added or renamed. The json_serializable package generates the mapping from the…

    Read More Dart 48 🎯 Code Generation with build_runner, json_annotation, and freezedContinue

  • Dart 47 🎯 JSON Serialization and Deserialization using dart:convert
    Programming | Dart | Languages & Runtimes

    Dart 47 🎯 JSON Serialization and Deserialization using dart:convert

    ByKandZ October 13, 2026October 13, 2026

    JSON is the wire format of the modern web. The REST APIs return it, the configuration files store it, the WebSocket messages carry it, and the local storage persists it. The dart:convert library is the built-in codec for the JSON, and it provides the two functions: the jsonEncode and the jsonDecode. The jsonEncode takes the…

    Read More Dart 47 🎯 JSON Serialization and Deserialization using dart:convertContinue

  • Dart 46 🎯 HTTP Client Requests (dart:io and package:http): REST Integration
    Programming | Dart | Languages & Runtimes

    Dart 46 🎯 HTTP Client Requests (dart:io and package:http): REST Integration

    ByKandZ October 13, 2026October 13, 2026

    A Dart application that talks to a REST API has two options. The first is the dart:io library, which provides the HttpClient class and works on the Dart VM, the server, the command-line tools, and the mobile applications. The HttpClient is the low-level, the full-featured client: it handles the persistent connections, the cookies, the authentication,…

    Read More Dart 46 🎯 HTTP Client Requests (dart:io and package:http): REST IntegrationContinue

Page navigation

1 2 3 … 166 Next PageNext

© 2026 KandZ - Tuts - WordPress Theme by Kadence WP

    Search