Coffee N Code retweeted
Python tip:
The time complexity for appending to a list in Python is O(1), but inserting is O(n).
"collections.deque" has time complexity of O(1) for appending on either end.
Coffee N Code retweeted
The US government explicitly recommends 6 memory safe languages:
C# - created by Microsoft
Go - created by Google
Java - created by Sun, bought by Oracle
Rust - create bor Mozilla
Swift - created by Apple
And ...
Python - create by one fucking genius on his own in his Christmas holidays - @gvanrossum.
Python is an extraordinary demonstration of the impact one person (and the group they build) can have on the world.
nsa.gov/Press-Room/Press-Rel…
Coffee N Code retweeted
How do you build E2E test automation in your projects? Do you have your SDETs distributed across feature teams building E2E automation? Is that working?
Or do you have a dedicated scrum that looks at project at hand and delivers on test infrastructure, frameworks and E2E automation?
Do you use any other model? Reply.
Coffee N Code retweeted
Did you know that you could swap keys and values in a Python dictionary using dictionary comprehensions?
Coffee N Code retweeted
Replying to @sama
It is year 2070, and humans have been living on Mars in a colony established 15 years before Mars colony. Population of the colony is about 4000 humans, and there are some animals and plants that have been grown locally. Paint a picture of the life on that planet in year 2070
Coffee N Code retweeted
Python tips:
Did you know you could use max() or min() instead of if-else conditionals in situations like this?
Coffee N Code retweeted
Replying to @RealBenjizo
print(list(filter(lambda x: False if x%2 != 0 and x % 3 == 0 else True, my_numbers)))
One liner that does the same thing.
Coffee N Code retweeted
The cost of losing focus is real. I use noise cancelling headphones. Play a white-noise playlist and the world vanishes, it's beautiful. Plus people see you wearing them and leave you alone.
Coffee N Code retweeted
Replying to @Frampini
# vim whatisvim.txt
The legendary text editor in the Linux world is only for those who are masters of text manipulation and efficient coding. It is tool for those who want to transform the act of writing code into a symphony of keystrokes.
~
~
~
<Esc>
:wq!
#























