Re: [testdrivendevelopment] "bottom-up" TDD and common behaviors
"Brian Marick" <[email protected]> Tue, 3 Dec 2019 18:03:40 -0600
| Newsgroups | gmane.comp.programming.test-driven-development |
|---|---|
| Message-ID | <[email protected]> |
By the way. I=E2=80=99m happy to pair with people on this codebase. I=E2=80=
=
=99m using it to learn, and pairing would help me learn. And I do hope som=
eday to explain what I learn, and pairing would be practice for that.=20
This is Elixir code, which is not object-oriented. In practice, I don=E2=
=80=99t think that makes a huge difference. I=E2=80=99ve found the dynamic=
ally-typed functional languages similar enough to OO languages. Giving up o=
n mutable data isn=E2=80=99t a big deal. A class isn=E2=80=99t *that* diffe=
rent from a namespace for a single data structure (like `Animal`) that incl=
udes a collection of functions. Instead of writing:
animal.operation(5)
=E2=80=A6 you write:
Animal.operation(animal, 5)
There=E2=80=99s even usually polymorphic function names (so you can drop t=
he `Animal` and let the runtime figure it out), but without inheritance.
-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#35804): https://groups.io/g/testdrivendevelopment/mess=
age/35804
Mute This Topic: https://groups.io/mt/64491946/3268755
Group Owner: [email protected]
Unsubscribe: https://groups.io/g/testdrivendevelopment/leave/6156322/74455=
6386/xyzzy [[email protected]]
-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-