¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

Re: "bottom-up" TDD and common behaviors


 

By the way. I¡¯m happy to pair with people on this codebase. I¡¯m using it to learn, and pairing would help me learn. And I do hope someday to explain what I learn, and pairing would be practice for that.

This is Elixir code, which is not object-oriented. In practice, I don¡¯t think that makes a huge difference. I¡¯ve found the dynamically-typed functional languages similar enough to OO languages. Giving up on mutable data isn¡¯t a big deal. A class isn¡¯t *that* different from a namespace for a single data structure (like `Animal`) that includes a collection of functions. Instead of writing:

animal.operation(5)

¡­ you write:

Animal.operation(animal, 5)

There¡¯s even usually polymorphic function names (so you can drop the `Animal` and let the runtime figure it out), but without inheritance.

Join [email protected] to automatically receive all group messages.