typecode

Choose a Lesson

Type and explore open source code patterns across 42 programming languages.

Total lessons:48
Completed:0
Showing 48 of 48 lessons
AdaTasking
79 lines

Tasking, strong typing, and packages

bounded_buffer.adb
AngularAuth Service
96 lines

Injectable authentication service with RxJS observables

auth.service.ts
AngularData Table
143 lines

Sortable, filterable data table component with signals

data-table.component.ts
AssemblySystem Calls
94 lines

x86_64 system calls, registers, and stack frames

string_ops.asm
BashProcess Manager
78 lines

Shell scripting with arrays, functions, and process control

manager.sh
CLinked List
54 lines

Generic linked list with void pointers and function pointers

list.c
C#Records and LINQ
60 lines

C# records, LINQ queries, and async/await

OrderService.cs
C++Smart Pointers
66 lines

Modern C++17 with smart pointers and RAII

main.cpp
ClojureData Structures
67 lines

Persistent data structures and threading macros

inventory.clj
COBOLBusiness Logic
73 lines

Business logic with file handling and divisions

PAYROLL.cbl
CSSDashboard Layout
57 lines

Modern grid dashboard with custom properties

dashboard.css
DartFlutter Widget
80 lines

Flutter-style classes with async/await and streams

task_store.dart
ElixirGenServer
72 lines

GenServer with pattern matching and pipe operator

cache.ex
ErlangMessage Passing
62 lines

Process spawning, message passing, and gen_server

kv_store.erl
F#Railway Programming
77 lines

Discriminated unions and railway-oriented programming

Validation.fs
FortranScientific Computing
77 lines

Scientific computing with arrays and modules

matrix_ops.f90
GoHTTP Handler
49 lines

HTTP handler with sync.RWMutex and JSON encoding

handler.go
GroovyBuilders
83 lines

Closures, builders, and GString templates

Pipeline.groovy
HaskellType Classes
59 lines

Type classes, monads, and pure functional programming

Validation.hs
HTMLSemantic Form
75 lines

Semantic markup with forms and accessibility

registration.html
JavaStream Processing
44 lines

Stream API with collectors and Optional

Analytics.java
JavaScriptExpress Server
37 lines

REST API with Express.js

server.js
JuliaMultiple Dispatch
72 lines

Multiple dispatch, array comprehensions, and broadcasting

linalg.jl
KotlinTask Manager
46 lines

Data classes, enum, and functional operations

TaskManager.kt
LuaMetatables
60 lines

Tables, metatables, and coroutine-based iteration

vector.lua
MATLABMatrix Operations
57 lines

Matrix operations, signal processing, and plotting

signal_analysis.m
NimMetaprogramming
78 lines

Templates, pragmas, and metaprogramming features

collections.nim
Objective-CProtocols
84 lines

Message passing, protocols, and blocks

TaskQueue.m
OCamlModules
77 lines

Pattern matching, modules, and variant types

json_parser.ml
PascalRecords
107 lines

Records, procedures, and file I/O

inventory.pas
PerlText Processor
60 lines

Regex, file processing, and hash operations

processor.pl
PHPCache Manager
68 lines

Strict-typed cache manager with constructor promotion

CacheManager.php
PowerShellPipeline Operations
82 lines

Cmdlet-style functions with pipeline and objects

FileAudit.ps1
PrologLogic Programming
70 lines

Facts, rules, and logical queries

family.pl
PythonData Processor
40 lines

Data processing with type hints and comprehensions

processor.py
RData Analysis
57 lines

Data frames, statistical analysis, and functional style

analysis.R
ReactTodo App
90 lines

useReducer + Context todo list with TypeScript

TodoApp.tsx
ReactCustom Hooks
94 lines

Reusable custom hooks for data fetching and debounce

hooks.ts
RubyComparable Class
49 lines

Class with attr_accessor, symbols, and spaceship operator

product.rb
RustConfig Parser
50 lines

Config file parser with Result and pattern matching

config.rs
ScalaPattern Matching
59 lines

Case classes, sealed traits, and functional patterns

Evaluator.scala
SchemeLambda Calculus
78 lines

Lambda calculus, continuations, and tail recursion

evaluator.scm
SQLWindow Functions
72 lines

Complex queries with window functions and CTEs

analytics.sql
SwiftLRU Cache
50 lines

Protocol-oriented LRU cache with generics

LRUCache.swift
TypeScriptRepository Pattern
44 lines

Generic repository with interfaces and generics

repository.ts
VueShopping Cart
91 lines

Pinia store with composable for cart management

useCart.ts
VueSearch Filter
123 lines

Composition API component with debounced search and transitions

SearchFilter.vue
ZigError Handling
69 lines

Comptime, error unions, and safety features

pool.zig