Code Explainers
Code explainers tagged #api-design
go
package config import "time"
The functional options pattern in Go
functional-options
closures
immutability
Intermediate
7 steps
go
package api import ( "encoding/json"
Building reusable JSON helpers in Go HTTP handlers
http
json
error-handling
Intermediate
9 steps
ruby
class PaymentsController < ApplicationController before_action :require_idempotency_key def create
Idempotent payment creation in Rails
idempotency
transactions
race-conditions
Advanced
10 steps