frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

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

7•ctc24•2h ago
Let's assume you're writing Go, Python, or any other language in which `import` is a reserved keyword. Let's assume also that you're writing a new package, whose purpose is to "import" data.

What do you name this package?

Our team went through this exercise semi-recently, and we're curious about how everyone else would think about it. Here's a (non-exhaustive) list of options we considered: imports, ingest, dataimport, ímport, impørt.

Comments

btilly•2h 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.

andsoitis•2h ago
> imports, ingest, dataimport, ímport, impørt.

a few good principles (not rules) for naming libraries:

a) signal abstraction level

b) avoid being too literal for it constrains evolution

c) pronounceable and spellable

d) prefer nouns over verbs because libraries are things not actions

e) metaphors beat descriptions

Consequently, I would avoid imports, ímport, impørt

"Ingest" feels like it is in a good direction. Any good reason not to use it?

ctc24•2h ago
Agreed, I like `ingest` as well. It does somewhat violate principle d), but the other solutions violate more of those. And to your point, they're principles, not rules.
scaredreally•26m ago
How about `importer`?
al_borland•1h ago
The misspellings of import sound like they’d be a nightmare. Something like ingest sounds much better.

To come up with other names I’d probably think about additional context. What is being imported, how is it being done? Can those concepts be spun into a name?

zahlman•1h ago
What does "importing data" exactly mean in your context? What is special about this data that your package can do something useful that's specific to the data? What is special about the importing task that your users wouldn't rather just `with open(filename) as f:`?

Not rhetorical questions. You presumably have real reasons to create the package; meditating on them will bring you closer to an understanding. The reason that naming things is one of the "hard CS problems" is that it requires actually paying attention to your own work and a solution can't be looked up elsewhere.

Ask HN: Is Stack Overflow Dead?

4•raphar•2h ago•7 comments

Ask HN: What are your predictions for 2026?

89•mfrw•2d ago•168 comments

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

7•ctc24•2h ago•6 comments

Ask HN: Those making $500/month on side projects in 2025 – Show and tell

429•cvbox•1d ago•501 comments

Tell HN: HN was down

595•uyzstvqs•2d ago•326 comments

Ask HN: What Are You Working On? (December 2025)

437•david927•5d ago•1443 comments

Ask HN: Do you allow vibecoded submissions in your open-source projects?

3•sneas•4h ago•8 comments

Ask HN: Does anyone understand how Hacker News works?

158•jannesblobel•1d ago•217 comments

Tell HN: AI coding is sexy, but accounting is the real low-hanging target

64•bmadduma•1w ago•55 comments

Ask HN: How do you deal with large, hard-to-read Excel formulas?

6•jack_ruru•14h ago•9 comments

Ask HN: If one day AI brain chips become a thing, would you get it?

6•keepamovin•12h ago•21 comments

Tell HN: Cloudflare Down Again?

9•valtlfelipe•7h ago•7 comments

FWS – pip-installable embedded process supervisor with PTY/pipe/dtach back ends

3•mrsurge•1d ago•0 comments

Ask HN: How do teams remember why infrastructure decisions were made?

5•curious_sre•16h ago•9 comments

Ask HN: Is starting a personal blog still worth it in the age of AI?

63•nazarh•4d ago•75 comments

Ask HN: Who here is not working on web apps/server code?

12•ex-aws-dude•23h ago•12 comments

Computer animator and Amiga fanatic Dick van Dyke turns 100

281•ggm•6d ago•93 comments

Ask HN: Is building a calm, non-gamified learning app a mistake?

86•hussein-khalil•4d ago•122 comments

Ask HN: Is anyone using LLM based document processing in production?

7•asdev•20h ago•6 comments

Ask HN: Should I start a software foundation (goal: help emergency services)?

12•strgcmc•1d ago•0 comments

Is analytics a necessary evil rather than a real value driver?

6•tiazm•1d ago•7 comments

Ask HN: Is RSS Still Alive?

10•militanz•1d ago•12 comments

Ask HN: How to fight back against Lovable, Replit, etc. in enterprise products

3•bears123•1d ago•3 comments

GitHub Actions Degraded

3•1qaboutecs•1d ago•0 comments

Ask HN: Should I Open Source Every Product I Build as an Indie Developer?

6•tomfox2•1d ago•13 comments

Ask HN: If you had to get a non-tech masters degree, what would you go for?

2•highwayman47•1d ago•6 comments

Ask HN: Etiquette giving feedback on mostly AI-generated PRs from co-workers

4•chfritz•1d ago•5 comments

Ask HN: Why do official-looking emails cause anxiety before I read them?

4•BianDan•1d ago•4 comments

Tell HN: iOS 18.7.3 Update Hidden

5•alemanek•14h ago•2 comments

Ask HN: How can I get better at using AI for programming?

467•lemonlime227•6d ago•466 comments