Feed aggregator

The Great Scrape

Hacker News - Sun, 03/30/2025 - 5:06am
Categories: Hacker News

Tqdm (Python Progress Bar)

Hacker News - Sun, 03/30/2025 - 5:01am

Article URL: https://tqdm.github.io/

Comments URL: https://news.ycombinator.com/item?id=43522611

Points: 1

# Comments: 0

Categories: Hacker News

SaaS Overload? Is this the solution

Hacker News - Sun, 03/30/2025 - 5:01am

Article URL: https://auth.heyjuno.co/chat/kiljcd

Comments URL: https://news.ycombinator.com/item?id=43522609

Points: 1

# Comments: 1

Categories: Hacker News

Show HN: Ts-result – Rust's Result<T, E> type for explicit error handling in TS

Hacker News - Sun, 03/30/2025 - 5:01am

Hey HN,

Like many, I've often found standard error handling in JS/TS (heavy try-catch, ambiguous null returns) a bit cumbersome for representing expected failures explicitly. Inspired by Rust's Result enum (Ok(T) | Err(E)), we built ts-result.

It's a lightweight, focused TypeScript library bringing that pattern over:

Explicit Result return types for functions. Type safety via discriminated unions and type guards (isOk/isErr). Functional composition methods (map, andThen, orElse, etc.) to avoid deep if nesting for success/failure checks. Modern TS practices (strict types, ESM/CJS exports). We were evolving an internal version that started looking like Result anyway, so we decided to build a clean, open-source implementation based on the Rust API.

While there are other libraries (some older, some part of larger FP ecosystems like fp-ts/effect-ts), our goal was a minimal, easy-to-adopt implementation of just the Result pattern itself.

It doesn't magically replicate Rust's ? operator or compiler guarantees, and you still need try-catch at boundaries with exception-throwing code, but we've found it helpful for adding clarity and type-safety to our core logic where specific failure states are expected domain outcomes.

Links:

GitHub (Source/Docs): https://github.com/TrylonAI/ts-result npm (@trylonai/ts-result): https://www.npmjs.com/package/@trylonai/ts-result We wrote a blog post detailing the motivation, our journey from internal tools, design choices, and how it compares to exceptions or larger FP libraries: https://trylonai.github.io/ts-result/ts-result-blog-post.htm...

Would love to hear your thoughts and feedback

Comments URL: https://news.ycombinator.com/item?id=43522607

Points: 1

# Comments: 0

Categories: Hacker News

Ask HN: Code should be stored in a database. Who has tried this?

Hacker News - Sun, 03/30/2025 - 5:00am

To me it seems obvious that code should be stored in a database rather than a hierarchical, text-based format.

The main way we navigate and organize code is by folder hierarchies. Everyone has a different approach: by feature, by module, by file type (template, component, etc.), by environment (backend/frontend).

Rather than folders and file names, everything could just be tagged in different ways.

Who has tried this and what is the best tool for working like this today?

Comments URL: https://news.ycombinator.com/item?id=43522602

Points: 1

# Comments: 0

Categories: Hacker News

Ask HN: AI bot to analyze Earthquake affected buildings

Hacker News - Sun, 03/30/2025 - 4:59am

Myanmar was affected by Magnitude 7.7 earthquake a few days ago and a lot of buildings are affected. There are cracks in the buildings and people need something to identify + analyze the safety level of their houses.

Are there any ai bot which can triage and analyze the buildings' safety level based on the photos?

Comments URL: https://news.ycombinator.com/item?id=43522596

Points: 1

# Comments: 0

Categories: Hacker News

Show HN: BracketFast – A Fast and Simple Tournament Bracket Generator

Hacker News - Sun, 03/30/2025 - 4:41am

I built BracketFast, a simple and fast tournament bracket generator. It supports single elimination, double elimination, and round-robin formats. No login required—just create, customize, and share your brackets instantly.

Comments URL: https://news.ycombinator.com/item?id=43522502

Points: 1

# Comments: 0

Categories: Hacker News

Looking Backward: 2000–1887

Hacker News - Sun, 03/30/2025 - 4:33am
Categories: Hacker News

Pages