Controlled Bursts | TDD | TCR | 100% Coverage | Emergent Design | Extreme Ownership
Red → Green → TCR → Refactor → TCR → Done
TCR: test && commit || revert
- Pass → commit → continue
| import { NodeSDK } from "@opentelemetry/sdk-node"; | |
| import { OTLPTraceExporter } from "@opentelemetry/exporter-trace-otlp-http"; | |
| import { OTLPMetricExporter } from "@opentelemetry/exporter-metrics-otlp-http"; | |
| import { PeriodicExportingMetricReader } from "@opentelemetry/sdk-metrics"; | |
| import { resourceFromAttributes } from "@opentelemetry/resources"; | |
| import { | |
| ATTR_SERVICE_NAME, | |
| ATTR_SERVICE_VERSION, | |
| } from "@opentelemetry/semantic-conventions"; | |
| import { getNodeAutoInstrumentations } from "@opentelemetry/auto-instrumentations-node"; |
| // zod schema | |
| z.object({ | |
| // valid if string or: | |
| optional: z.string().optional(), // field not provided, or explicitly `undefined` | |
| nullable: z.string().nullable(), // field explicitly `null` | |
| nullish: z.string().nullish(), // field not provided, explicitly `null`, or explicitly `undefined` | |
| }); | |
| // type | |
| { |
| // npm i axios stream-concat | |
| import { pipeline } from 'stream/promises' | |
| import StreamConcat from 'stream-concat' | |
| import axios from 'axios' | |
| const API_01 = 'http://localhost:3000' | |
| const API_02 = 'http://localhost:4000' | |
| const streams = (await Promise.all([ | |
| axios({ |
| public class AppModule : Module | |
| { | |
| public override void Load(IServiceCollection services) | |
| { | |
| services.AddSingleton<AppSettings>(); | |
| services.AddTransient<IGetSamplesFunction, GetSamplesFunction>(); | |
| } | |
| } |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.