Skip to content

Comment on Ask HN: What would you call a package whose purpose is to import data?

Comments

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.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.