Traceback (most recent call last):
File "/home/user/projects/bakery/bakery.py", line 3, in <module>
from cake import Cake
File "/home/user/projects/bakery/cake/__init__.py", line 1, in <module>
from .cake import Cake
File "/home/user/projects/bakery/cake/cake.py", line 7, in <module>
import flour
ModuleNotFoundError: No module named 'flour'
flour didn't got installed because you are running python 3.12.4, which only supports flour versions 3.2.1 to 4.0.2. However, latest version of cake depends on flour 2.1.3 to 2.5.63
Ah, basically I told the compiler to do a find and replace so that instead of int main() you just type M and you can do an include at the command line so we throw that line out as well.
I remember 30 years ago there was similar joke about Delphi.
If you need to write a program that puts a tiger into a cage, In C, you write a structure for the tiger, a structure for the cage and a function that puts the tiger into the cage. In Java, you write a fabric that produces the tiger with the cage around it. In Delphi, you import a module that puts the tiger into the cage.
Probably there was some other languages in that joke, but I don't remember it.
View all comments
63
u/DatsLotus 6d ago
Uh... is the analogy C++: make it yourself vs Python: take a slice of already existing code?