TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: Can monkeys be taught to code?

3 pointsby anon115almost 3 years ago

3 comments

gravitatealmost 3 years ago
In theory[0] with enough monkeys typing at a keyboard, they will produce the works of Shakespeare.<p>[0] <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Infinite_monkey_theorem" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Infinite_monkey_theorem</a>
Nomentatusalmost 3 years ago
Depends what you mean - and an interesting question.<p>Imagine a fruit dispenser with buttons that have consequences and can be sequenced.<p>It&#x27;s probably possible to create something Scratch-like with that, which allows the monkey to select a sequence of actions via buttons such as:<p>1) select banana 2) IF you have one banana THEN ADD another 3) IF you have two bananas THEN ADD one more banana 4) move bananas left (toward funnel out to monkey) and drop &#x27;em 5) EXECUTE program<p>etc<p>How far can you go with this? Far enough to count as &quot;programming&quot;? Good question! Chimps can execute sequences of actions in the real world, chewing on a stick to make a probe and then sticking it into an ant nest to extract ants to eat, after all.
scombridaealmost 3 years ago
Yes, and I am proof