3 ms·
I like semantically different words for unrelated things. So I'd stay away from import. I've called this kind of thing load, initialize, get_all, and so on. I
by btilly 10mo ago
I like semantically different words for unrelated things. So I'd stay away from import.
I've called this kind of thing load, initialize, get_all, and so on.
I may also call it something based on where the data is stored if that is important. For example from_csv.
I might also name it based on what it is for. For example load_config.
Whatever seems clearest, and fits best with how the project itself does things.