Skip to main content

Questions tagged [import]

2 votes
5 answers
1k views

This is basically a continuation of "Why don't languages auto import everything?" but with a slightly altered premisse: Say we have a language like C++ / python that uses namespaces to ...
glades's user avatar
  • 493
0 votes
1 answer
235 views

Say I have a Python project that looks like this: project/ ├── package/ │ ├── __init__.py │ ├── module1.py └── main.py I would like package/ to be self-contained, though it is called from main.py....
Leftover Salad's user avatar
-1 votes
2 answers
195 views

There is a kinda ETL task of importing data from csv to the database in project with legacy codebase and legacy database**. Data should be validated before persisting to database. Validation includes ...
Rui's user avatar
  • 1,935
1 vote
1 answer
644 views

I like to export the names in my modules both as individual named exports and grouped together in a default export. Like this: // mod.js export function f() {} export const x = true export default {f,...
Blue Nebula's user avatar
0 votes
1 answer
710 views

Let's say I am writing a python module module.py. Which provides functionalities for other parts of my code. Of course, the module has to import other modules. A simple example: import abc as _abc ...
HerpDerpington's user avatar
1 vote
5 answers
848 views

Why is there a such thing as import in programming languages? If a package does not exist, then trying to import it would cause an error anyway. So why don't languages just auto import ALL available ...
user1345541's user avatar
0 votes
1 answer
950 views

I have an application in which the user can describe an analysis job via a yaml like analysis: learner: name: LinearRegression args: solver: liblinear and then it is parsed to ...
mmdanziger's user avatar
0 votes
1 answer
98 views

I have an import that needs to grab data from a REST service and import into an web store. It's basically an ETL type of service, but because the REST service can be slow and I don't want to call it ...
user204588's user avatar
0 votes
2 answers
121 views

I have a web app that will be used locally on 2 different site. The program is a Vue web app made with node.js and express, using MySQL database. Due to limitation (no internet in site 1), there is no ...
Aditya D.'s user avatar
1 vote
1 answer
576 views

I have a project written in python that I would like to create unit tests on. This project has a dependency on a database project which is a sort of abstraction layer to data connections. The issue ...
Simon Nicholls's user avatar
-1 votes
1 answer
2k views

I am trying to find the best practice for importing modules dynamically. I have multiple files in a specific folder called providers which contain a class Updater and all of them have the same objects....
bkbilly's user avatar
  • 131
3 votes
1 answer
1k views

I'm making my 1st official project. It's written in Python, is open-sources, and I'd like people to be able to freely and easily fork and modify the code. The project name is "shelf" and the ...
ChocolateOverflow's user avatar
1 vote
1 answer
246 views

N.B. Several months after initially asking this question (and not coming up with any satisfactory answers) I am now learning to use HTML Custom Elements / WebComponents. It seems the same question ...
Rounin's user avatar
  • 295
5 votes
1 answer
839 views

I can't believe DataTable/SqlDataAdapter massively beat out System.Data.Linq.DataContext.ExecuteCommand and ExecuteNonQuery (tried with both Stored Procedures and command text) and just straight ...
Terry's user avatar
  • 159
1 vote
0 answers
56 views

I have a configuration application in Nodejs. It has a Component with name and uuid. A Component can have many Schemas. A Schema has a uuid, name, componentId, json. A Schema can have many ...
Ahmed Nawaz Khan's user avatar

15 30 50 per page