Code Explainers
Code explainers tagged #modules
ruby
module WifiQrCode ESCAPE_CHARS = /([\\;,:"])/.freeze AUTH_TYPES = {
Building a Wi-Fi QR code payload in Ruby
string-formatting
validation
escaping
Intermediate
9 steps
typescript
import { MiddlewareConsumer, Module, NestModule,
How middleware binds to routes in NestJS
middleware
routing
modules
Intermediate
6 steps
ruby
module FixedWidthParser FIELDS = [ { name: :record_type, range: 0...2 }, { name: :account_id, range: 2...12, type: :integer },
Parsing fixed-width records in Ruby
parsing
data-driven-design
type-coercion
Intermediate
5 steps