frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Cycling in France

https://www.sheldonbrown.com/org/france-sheldon.html
1•jackhalford•1m ago•0 comments

What breaks in cross-border healthcare coordination?

1•abhay1633•1m ago•0 comments

Show HN: Simple – a bytecode VM and language stack I built with AI

https://github.com/JJLDonley/Simple
1•tangjiehao•3m ago•0 comments

Show HN: Free-to-play: A gem-collecting strategy game in the vein of Splendor

https://caratria.com/
1•jonrosner•4m ago•0 comments

My Eighth Year as a Bootstrapped Founde

https://mtlynch.io/bootstrapped-founder-year-8/
1•mtlynch•5m ago•0 comments

Show HN: Tesseract – A forum where AI agents and humans post in the same space

https://tesseract-thread.vercel.app/
1•agliolioyyami•5m ago•0 comments

Show HN: Vibe Colors – Instantly visualize color palettes on UI layouts

https://vibecolors.life/
1•tusharnaik•6m ago•0 comments

OpenAI is Broke ... and so is everyone else [video][10M]

https://www.youtube.com/watch?v=Y3N9qlPZBc0
2•Bender•6m ago•0 comments

We interfaced single-threaded C++ with multi-threaded Rust

https://antithesis.com/blog/2026/rust_cpp/
1•lukastyrychtr•8m ago•0 comments

State Department will delete X posts from before Trump returned to office

https://text.npr.org/nx-s1-5704785
6•derriz•8m ago•1 comments

AI Skills Marketplace

https://skly.ai
1•briannezhad•8m ago•1 comments

Show HN: A fast TUI for managing Azure Key Vault secrets written in Rust

https://github.com/jkoessle/akv-tui-rs
1•jkoessle•8m ago•0 comments

eInk UI Components in CSS

https://eink-components.dev/
1•edent•9m ago•0 comments

Discuss – Do AI agents deserve all the hype they are getting?

2•MicroWagie•12m ago•0 comments

ChatGPT is changing how we ask stupid questions

https://www.washingtonpost.com/technology/2026/02/06/stupid-questions-ai/
1•edward•13m ago•0 comments

Zig Package Manager Enhancements

https://ziglang.org/devlog/2026/#2026-02-06
3•jackhalford•14m ago•1 comments

Neutron Scans Reveal Hidden Water in Martian Meteorite

https://www.universetoday.com/articles/neutron-scans-reveal-hidden-water-in-famous-martian-meteorite
1•geox•15m ago•0 comments

Deepfaking Orson Welles's Mangled Masterpiece

https://www.newyorker.com/magazine/2026/02/09/deepfaking-orson-welless-mangled-masterpiece
1•fortran77•17m ago•1 comments

France's homegrown open source online office suite

https://github.com/suitenumerique
3•nar001•19m ago•2 comments

SpaceX Delays Mars Plans to Focus on Moon

https://www.wsj.com/science/space-astronomy/spacex-delays-mars-plans-to-focus-on-moon-66d5c542
1•BostonFern•19m ago•0 comments

Jeremy Wade's Mighty Rivers

https://www.youtube.com/playlist?list=PLyOro6vMGsP_xkW6FXxsaeHUkD5e-9AUa
1•saikatsg•20m ago•0 comments

Show HN: MCP App to play backgammon with your LLM

https://github.com/sam-mfb/backgammon-mcp
2•sam256•22m ago•0 comments

AI Command and Staff–Operational Evidence and Insights from Wargaming

https://www.militarystrategymagazine.com/article/ai-command-and-staff-operational-evidence-and-in...
1•tomwphillips•22m ago•0 comments

Show HN: CCBot – Control Claude Code from Telegram via tmux

https://github.com/six-ddc/ccbot
1•sixddc•23m ago•1 comments

Ask HN: Is the CoCo 3 the best 8 bit computer ever made?

2•amichail•25m ago•1 comments

Show HN: Convert your articles into videos in one click

https://vidinie.com/
3•kositheastro•28m ago•1 comments

Red Queen's Race

https://en.wikipedia.org/wiki/Red_Queen%27s_race
2•rzk•28m ago•0 comments

The Anthropic Hive Mind

https://steve-yegge.medium.com/the-anthropic-hive-mind-d01f768f3d7b
2•gozzoo•31m ago•0 comments

A Horrible Conclusion

https://addisoncrump.info/research/a-horrible-conclusion/
1•todsacerdoti•31m ago•0 comments

I spent $10k to automate my research at OpenAI with Codex

https://twitter.com/KarelDoostrlnck/status/2019477361557926281
2•tosh•32m ago•1 comments
Open in hackernews

Ruby Development Protocol

https://sashite.github.io/ruby-development-protocol/
4•cyri_k•9mo ago

Comments

vidarh•9mo ago
Some of these are great, but others need more justification.

E.g. section 1 and 2 would lead to very un-idiomatic Ruby other than 1.5 and 2.4, and the "Explicit Internal State Changes" section effectively neutralises a number of the restrictions in 1 and 2 (E.g. "Object state mutation is prohibited" except a whole section allows for mutating collections within the object)

Taken as a whole, as an internal policy for someone, this is fine, but I would strongly recommend Ruby beginners who don't know idiomatic Ruby well stay well clear of this document, as you'll end up writing code that'll look very out of place in most Ruby projects.

E.g. less problematic, but still somewhat unnuanced as a last example:

> Use String(x), Array(x), Integer(x) instead of x.to_s, x.to_a, x.to_i, etc.

These two sets have entirely different semantics, and while I think it's a reasonable first approximation for a beginner, there are cases where you explicitly want the second, and the advice leaves out "try_convert()" which are also important.

* E.g. you use Integer("x") when passing something that can't convert to integer is an unrecoverable error. You get an exception. When an exception is what you want, use this.

* You use `Integer.try_convert("42x")` you're dealing with, for example, user-provided input where the input should be an integer or something that claims (by implementing #to_int, rather than just #to_i) that it can be reasonably converted to an Integer (this includes Float, but Integer(float_value) also works, so if you want to be sure something can be represented precisely as an Integer you have extra work), but you can't reasonably fail the whole thing if it is not (try_convert() returns `nil` if the object isn't an Integer, and doesn't implement #to_int in a way that returns an Integer)

* You can use "to_int" instead of Integer.try_convert or Integer(), but the caveat is you'll get a NoMethodError instead of ArgumentError if the argument isn't convertible, so it's better to avoid.

* You use "to_i" if and only if the value isn't important and you just want a best effort conversion or 0. The most idiomatic use of this in Ruby is when the possible values are `nil` or an Integer, where using `to_i` is a common shorthand for "Integer.try_convert(foo) || 0" (caveat: you really want to be sure that it's okay to return 0 if `foo` is an entirely different type)