---
title: "Discussion on \"Made to Imitate?\" | Hashnode"
description: "Discussion on \"Made to Imitate?\". for (i = 0; i < numberOfElements; i++) {\n    doSomethingWith(element[i]);\n}\n\nThis works, but isn't very elegant. The Ruby way is much more elegant.\nelements.each do |element|\n    do_something_with(ele"
url: "https://hashnode.com/posts/made-to-imitate/69ce49ed0ff860b6de9b55a0"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Made to Imitate?](https://blog.daviddodda.com/made-to-imitate?utm_source=hashnode&utm_medium=feed)

for (i = 0; i < numberOfElements; i++) { doSomethingWith(element\[i\]); } This works, but isn't very elegant. The Ruby way is much more elegant. elements.each do |element| do\_something\_with(ele

Apr 2 · 2 min read · blog.daviddodda.com  
Read the article

## Written by

[David Dodda](https://hashnode.com/@daviddodda)

@daviddodda

  
[View profile](https://hashnode.com/@daviddodda)

I'm an electronics engineer who's dabbled in a bit of everything, including full stack development and web3 technologies.

Hey there! I'm an electronics engineer who's dabbled in a bit of everything, including full-stack development and web3 technologies. I love building cool stuff and am always looking to connect with other like-minded professionals. When I'm not tinkering with new projects, you can find me scouring the internet for the latest and greatest in tech.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
