• Best Products
  • Launches
    Launch archiveMost-loved launches by the community
    Launch GuideChecklists and pro tips for launching
  • Community
    Discuss
    ForumsAsk questions, find support, and connect
    EventsMeet others online and in-person
    Kitty Points LeaderboardThe highest scoring community members
    StreaksThe most active community members
    Read
    NewsletterThe best of Product Hunt, every day
    StoriesTech news, interviews, and tips from makers
    ChangelogNew Product Hunt features and releases
  • MCPNew
  • Advertise
Subscribe
HomeRecent commentsSearch all threadsStart new thread
recent
General

p/general

by

•1mo ago
How do you test a time-based rule? I broke mine on purpose seven ways
... goes quiet for a while. I kept the whole rule in one pure function: it takes the user s recent flags and the current time, and returns whether they re paused, until when, and why. No database, no clock reads inside, and the lengths live in named constants (pause length, repeat window, minimum gap between two flags that count as a repeat). The rule itself is small, but time rules go wrong at the edges: exactly at a boundary ... ... fails closed. My reasoning is that blocking everyone because a read failed is worse than missing a pause, while not knowing whether a message is safe to answer is different. How do you test time-based rules: clock

1

Subscribe

Topic Forums

Forum General categoryp/generalForum Vibecoding categoryp/vibecodingForum AMA categoryp/amaForum Introduce yourself categoryp/introduce-yourselfForum Self-Promotion categoryp/self-promotion

Product Forums

DearInsidep/dearinsideDearCameop/dearcameoMany Displaysp/many-displaysDearDarlingp/deardarlingRunEvrp/runevrPortlivop/portlivoMeridianp/meridian-16Google Cloud Platformp/google-cloud-platformProduct Huntp/producthuntkōdlop/kodloReSO AIp/resoZushp/zushNeoAgentp/neoagentBeamfyp/beamfyExpert Chase, Inc.p/expert-chase-deleted-1107920Netclickerp/netclickerFaradayp/faraday-4GAtrendsp/gatrendsKanbanqp/kanbanqTrueDraft CADp/truedraft-cad
Top Product Categories

Engineering & Development

  • Vibe Coding Tools
  • AI Coding Agents
  • AI Code Editors

LLMs

  • AI Chatbots
  • AI Infrastructure Tools
  • Prompt Engineering Tools

Productivity

  • AI notetakers
  • Note and writing apps
  • Team collaboration software
  • Search
  • AI Workflow Automation

Marketing & Sales

  • Lead generation software
  • Marketing automation platforms

Design & Creative

  • Video editing
  • Design resources
  • Graphic design tools
  • AI Generative Media

Social & Community

  • Social Networking
  • Professional networking platforms
  • Community management

Finance

  • Accounting software
  • Fundraising resources
  • Investing

AI Agents

  • AI Voice Agents
See All Categories >>

Trending categories

  • Vibe Coding Tools
  • AI Dictation Apps
  • AI notetakers
  • Code Review Tools
  • No-code Platforms
  • Figma Plugins
  • Static site generators

Top reviewed

  • Lovable
  • n8n
  • Attio
  • PostHog
  • Vapi
  • Granola
  • Raycast
  • Supabase

Trending products

  • Lovable
  • Screen Studio
  • bolt.new
  • Wispr Flow
  • Framer
  • Replit
  • Vapi
  • Granola

Top forum threads

  • Cursor or Claude Code?
  • POLL: Domain or product first?
  • YC deadline in <2 weeks; Who's applying?
  • We Got into YC, Got Kicked Out, and Fought Our Way Back
  • How Wispr Flow found PMF through pivot
  • Best Vibe Coding tool so far?
  • Landing page roast - 48 hours only
  • Fix your tagline with the PH CEO
© 2026 Product Hunt
NewsletterAppsAboutFAQTermsPrivacy & CookiesPrivacy ChoicesAdvertisellms.txtMCP ServerContact us: hello@producthunt.com