Skip to main content

All Questions

-1 votes
1 answer
1k views

Function returning dynamic value [closed]

Imagine you have a chain of functions calls, in which each function is taking the previous function's output as input for the next calculation in the chain. Make an assumption that you are leading ...
Mulder's user avatar
  • 17
0 votes
2 answers
243 views

How to query database effectively with the same program millions times

I got a proprietary software (something like a DMS system) to process the documents in file system. The software provide very limited API to manipulate the contents of the documents in DMS but it ...
bill's user avatar
  • 11
4 votes
2 answers
263 views

Design of multi-test function to validate a string

Assume that I wish to perform an action on a string (e.g., print the string) if, and only if, the string first passes several tests. The tests are diverse (and may even be complex functions themselves)...
Michael Gruenstaeudl's user avatar
0 votes
1 answer
3k views

Instantiate a class from a config file. Where should the parse function go?

I have a class in python that is instantiated from the values of a (json) config file. I was wondering what is the best practise to do that (if there is a best practise and is not just a matter of ...
Cobra Kai Dojo's user avatar
2 votes
2 answers
2k views

Final steps of wrapping up a Python script into a program

I finished building a Python script containing eight functions which download files, extracts them, manipulate and analyze their data and then produce graphs and export them into PNG files. The ...
multigoodverse's user avatar