What do you think about the readability of an alternative solution to late binding problems via nested lambda factories?
Python
async def check_response(delay: int, message: str) -> None: timeout = httpx.Timeout(timeout=5) client = httpx.AsyncClient( base_url=BASE_URL, timeout=timeout, ) async with client: response = await client.get(url=f"/delay/{delay}") print(response.status_code, message) async def main() -> None: await check_response(delay=2, message="from first line"), await check_response(delay=2, message="from second line"), await check_response(delay=2, message="from third line"), if __name__ == "__main__": print("Total time:", timeit.timeit(lambda: asyncio.run(main()), number=2))
How does a Python list differ from a NumPy array?
Can you explain what the term 'monolithic application' means in software development?
Did you work as an outstaff specialist at [company]?
Can you explain how the middleware layer in application architecture is built and functions?
Explain the main differences between relational database management systems and non-relational databases.
How can you determine that a directory contains a Python module in the form of a package?
Do you have experience working with MongoDB and PostgreSQL database management systems?
What are the main differences between using ActiveRecord and the principles of Clean Architecture when designing a system?
Can you provide an example of a situation at work where you experienced high pressure or stress, and how you dealt with it?
Can you name the main features that distinguish a pure function?
What are the disadvantages of JWT?
What restrictions or risks are associated with using Redis for message exchange between microservices?
Can you give an example of a situation where an analytical approach is required to solve a problem?
Can you describe the main stages of processing an HTTP request in a server application?
What is asyncio, what is it used for, and how have you applied it in projects?
Can you name the main properties or parameters inherent to objects or classes in programming?
Share examples of the most exciting technical problems you have encountered and successfully solved.
Are you currently given the opportunity to work on a project or for a company?