#Pattern-Matching
7 notas · última:
Design Patterns Are Temporary, Language Features Are Forever
The post argues that visitor starts to make more sense once you know pattern matching, and that newer Java features like sealed types and switch pattern matching can replace some old OO patterns.
Mastering C# Pattern Matching
The post reduces a lock gate example to a C# switch expression with pattern matching. It shows how underscores replace repeated cases and how invalid states still throw exceptions.
Succinct FSharp
An overview of F# basics through F# Interactive, covering bindings, types, collections, control flow, functions, pattern matching, records, unions, exceptions, classes, interfaces, and compiler directives.
Pattern Matching in C#
The article explains pattern matching in C# as a way to replace nested conditionals with clearer checks on type, value, ranges, properties, tuples, and stored results.
Comparing Elixir and Erlang variables
The article compares Elixir rebinding and Erlang pattern matching, showing how both can cause hidden bugs when variables are added, removed, or reused in changing code.
Learn elixir in Y Minutes
The page introduces Elixir as a functional language on the Erlang VM and walks through its core syntax, pattern matching, control flow, modules, structs, exceptions, and message-based concurrency.
Writing assertive code with Elixir
The post argues that Elixir code should be written assertively: use pattern matching, explicit polymorphism, and strict map or struct access to catch bad assumptions early and keep code simpler.
