Python
Can you tell more about deployment — specifically about blue-green deploy: what does a developer need to prepare in the codebase for this?
How to make two asyncio.sleep(5) run in 5 seconds instead of 10?
How many seconds will a function with two consecutive await asyncio.sleep(5) calls take to run?
Tell me what you know about message queues, message brokers. Which ones do you know, which have you used?
If you make a return of the connection inside a context manager, will it be open or closed?
Are you referring specifically to Python? Loose coupling is about threads or processes, what should be divided?
What principle should be followed when moving the left boundary of a window that already covers the entire alphabet?
class C: def __init__(self, x): self.x = x def calculate(self): return self.x * 2 + 1 class A(C): def __init__(self, x, y): super().__init__(x) self.y = y def calculate(self): return super().calculate() + self.y class B(A): def __init__(self, x, y, z): super().__init__(x, y) self.z = z def calculate(self): return self.z - super().calculate() a = C(2) b = A(4, 7) c = B(1, 3, 5) print(a.calculate()) print(b.calculate()) print(c.calculate())
How does a transaction work? What happens during BEGIN and COMMIT?
What are micsines, and what is your attitude towards their use in production?
Tell us about your experience: what projects have you worked on, I see retail was also present in the form of Magnit?
Let's reason logically: what could be a wrong database migration that causes a 500 error when switching to an old app version (for example, if a column and the code referencing it are deleted simultaneously)? How to avoid this?
How does hash index work? Why does it have such high speed?
If GIL is so bad, what is it needed for?
[name] asked: Is it possible to access wrapper.calls both after defining the function def wrapper and inside the wrapper's body itself?
In what formats is data transmitted and stored when interacting with NoSQL databases?
What is a set and what is it used for?
Is it possible to get asynchronous elements or a specific element by index in a generator?
[name] asked: How does memory management work in Python (garbage collector, reference counting)?
For what class of tasks is asynchrony most suitable?