DEV Community

Patrick Wendo
Patrick Wendo

Posted on

2

Convergent Evolution in Code.

Convergent evolution is when two different and separate organisms evolve the same mechanism to solve a similar problem. Like wings in insects and birds, or fins in Whales and fish.

Recently I was explaining to my friend, a JavaScript developer, about a helper function I wrote in Rails that would auto-generate rows on a table given the correct data. Their response was,

"Congratulations, you have built your first react component"

Now, I have used react before, but it did not occur to me at all that by building this helper in Rails was akin to building a component in react. So my response was,

" Did I build a react component, or is it convergent evolution? "

Regardless, it made me wonder, what other pieces of code or way of doing things have we as developers all converged upon, regardless of language or framework?

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

Best practices for optimal infrastructure performance with Magento

Running a Magento store? Struggling with performance bottlenecks? Join us and get actionable insights and real-world strategies to keep your store fast and reliable.

Tune in to the full event

DEV is partnering to bring live events to the community. Join us or dismiss this billboard if you're not interested. ❤️