This is where Python shine I belive. Its import system is amazing. We can import the whole file or just particular funcion/method in that file. We can import relative with `.` and `..` and even `...`
And we can "import as" to avoid name conflict.
Using import together Mock library we can even swap out(Mock) particular imported item during unit test.
If one thing I would love to see is having that import system in Python ported to Ruby.
Granted that the way Ruby currently works also expose a few functionality for doing DSL easiser.
And we can "import as" to avoid name conflict.
Using import together Mock library we can even swap out(Mock) particular imported item during unit test.
If one thing I would love to see is having that import system in Python ported to Ruby.
Granted that the way Ruby currently works also expose a few functionality for doing DSL easiser.