So you suggest a couple months of work instead of a two line hack which caused huge improvement for them, because it is more "correct"?
1 karma · joined July 1, 2023
So everybody is crying how shitty and unreliable MongoDB is, but this is exactly what makes them successful? Very interesting!
>>> b'asd'[0]
97
>>> b'asd'[1]
115
>>> b'asd'[2]
100
They happen to contain an ASCII DECODABLE string in this case, but to get the text back, you NEED TO decode it first: >>> text = b'asd'.decode()
>>> text[0]
'a'
>>> text[1]
's'
>>> text[2]
'd'Also:
>>> dt = maya.now()
>>> dt.datetime()
datetime.datetime(2016, 12, 18, 19, 24, 50, 212663, tzinfo=<UTC>)
>>> dt.datetime('Europe/Budapest')
datetime.datetime(2016, 12, 18, 20, 24, 50, 212663, tzinfo=<UTC>)
I would not use it...Example 2: (which is much better IMO) deploy the new version, but keep the older versions running. Sync/migrate one-by-one and start the new version when ready.
I have seen a 270k loc codebase where every change has been made by this kind of thinking. Nobody ever went back to make the "temporary" changes properly.