# หาบั๊กให้เจอ: Data Engineering > โค้ดหนึ่งชิ้น หาบั๊กให้เจอ หรือพิสูจน์ว่าไม่มีบั๊ก ชาเลนจ์ประจำวัน: 2026-08-19 (UTC) · Senior ```python from typing import Callable class PipelineEventBus: def __init__(self): self._subscribers: list[Callable] = [] def subscribe(self, callback: Callable): self._subscribers.append(callback) def publish(self, event: dict): for sub in self._subscribers: sub(event) bus = PipelineEventBus() bus.subscribe(lambda e: metrics.record(e)) bus.subscribe(lambda e: alerting.notify(e)) bus.subscribe(lambda e: audit_log.write(e)) def on_batch_complete(batch_id: str): bus.publish({"type": "batch_complete", "batch_id": batch_id}) ``` ## คำตัดสินของคุณ - ช่องโหว่ความปลอดภัย - บั๊กเชิงตรรกะ - สไตล์โค้ด - ไม่มีปัญหา วันละหนึ่งครั้ง คำตอบจะแสดงทันทีหลังจากนั้น --- Source: SharpSkill (https://sharpskill.dev), tech interview preparation for your real stack. HTML version of this page: https://sharpskill.dev/th/daily/data-engineering