#ducktyping — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #ducktyping, aggregated by home.social.
-
Array Methods Work on NON-Arrays?!
Array methods are DECEPTIVE! They work on any object with length property. This object isn't an array, but map() works on it! JavaScript lies about types!
#javascript #javascripttricks #arraymethods #arraylikeobjects #typecoercion #javascriptweird #javascriptquiz #codingchallenge #javascriptshorts #javascriptwtf #ducktyping #advancedjavascript
-
Array Methods Work on NON-Arrays?!
Array methods are DECEPTIVE! They work on any object with length property. This object isn't an array, but map() works on it! JavaScript lies about types!
#javascript #javascripttricks #arraymethods #arraylikeobjects #typecoercion #javascriptweird #javascriptquiz #codingchallenge #javascriptshorts #javascriptwtf #ducktyping #advancedjavascript
-
Array Methods Work on NON-Arrays?!
Array methods are DECEPTIVE! They work on any object with length property. This object isn't an array, but map() works on it! JavaScript lies about types!
#javascript #javascripttricks #arraymethods #arraylikeobjects #typecoercion #javascriptweird #javascriptquiz #codingchallenge #javascriptshorts #javascriptwtf #ducktyping #advancedjavascript
-
Array Methods Work on NON-Arrays?!
Array methods are DECEPTIVE! They work on any object with length property. This object isn't an array, but map() works on it! JavaScript lies about types!
#javascript #javascripttricks #arraymethods #arraylikeobjects #typecoercion #javascriptweird #javascriptquiz #codingchallenge #javascriptshorts #javascriptwtf #ducktyping #advancedjavascript
-
Array Methods Work on NON-Arrays?!
Array methods are DECEPTIVE! They work on any object with length property. This object isn't an array, but map() works on it! JavaScript lies about types!
#javascript #javascripttricks #arraymethods #arraylikeobjects #typecoercion #javascriptweird #javascriptquiz #codingchallenge #javascriptshorts #javascriptwtf #ducktyping #advancedjavascript
-
To be precise, 3 bad rows out of 600M...
#ducktyping - talk to your kids about it before someone else does.
-
To be precise, 3 bad rows out of 600M...
#ducktyping - talk to your kids about it before someone else does.
-
To be precise, 3 bad rows out of 600M...
#ducktyping - talk to your kids about it before someone else does.
-
To be precise, 3 bad rows out of 600M...
#ducktyping - talk to your kids about it before someone else does.
-
To be precise, 3 bad rows out of 600M...
#ducktyping - talk to your kids about it before someone else does.
-
What's in a name? That which we call a duck
By any other name would quack the same;
So a sequence would, were it not a sequence call'd,
Retain that dear iterability which it bears
Without that title. Sequence, doff thy name,
And for that name which is no part of thee
give thy iterator to me. -
What's in a name? That which we call a duck
By any other name would quack the same;
So a sequence would, were it not a sequence call'd,
Retain that dear iterability which it bears
Without that title. Sequence, doff thy name,
And for that name which is no part of thee
give thy iterator to me. -
What's in a name? That which we call a duck
By any other name would quack the same;
So a sequence would, were it not a sequence call'd,
Retain that dear iterability which it bears
Without that title. Sequence, doff thy name,
And for that name which is no part of thee
give thy iterator to me. -
What's in a name? That which we call a duck
By any other name would quack the same;
So a sequence would, were it not a sequence call'd,
Retain that dear iterability which it bears
Without that title. Sequence, doff thy name,
And for that name which is no part of thee
give thy iterator to me. -
What's in a name? That which we call a duck
By any other name would quack the same;
So a sequence would, were it not a sequence call'd,
Retain that dear iterability which it bears
Without that title. Sequence, doff thy name,
And for that name which is no part of thee
give thy iterator to me. -
Checking for an empty list in Python - Python Morsels (@treyhunner)
Various methods to check if a list is empty in Python:
➡️ checking the list's length,
➡️ evaluating the list's truthiness
➡️ comparing the list to another empty list#Python #Truthiness #PEP8 #DuckTyping #Programming #PythonProgramming
https://www.pythonmorsels.com/checking-for-an-empty-list-in-python/
-
Checking for an empty list in Python - Python Morsels (@treyhunner)
Various methods to check if a list is empty in Python:
➡️ checking the list's length,
➡️ evaluating the list's truthiness
➡️ comparing the list to another empty list#Python #Truthiness #PEP8 #DuckTyping #Programming #PythonProgramming
https://www.pythonmorsels.com/checking-for-an-empty-list-in-python/
-
Checking for an empty list in Python - Python Morsels (@treyhunner)
Various methods to check if a list is empty in Python:
➡️ checking the list's length,
➡️ evaluating the list's truthiness
➡️ comparing the list to another empty list#Python #Truthiness #PEP8 #DuckTyping #Programming #PythonProgramming
https://www.pythonmorsels.com/checking-for-an-empty-list-in-python/
-
Checking for an empty list in Python - Python Morsels (@treyhunner)
Various methods to check if a list is empty in Python:
➡️ checking the list's length,
➡️ evaluating the list's truthiness
➡️ comparing the list to another empty list#Python #Truthiness #PEP8 #DuckTyping #Programming #PythonProgramming
https://www.pythonmorsels.com/checking-for-an-empty-list-in-python/
-
Checking for an empty list in Python - Python Morsels (@treyhunner)
Various methods to check if a list is empty in Python:
➡️ checking the list's length,
➡️ evaluating the list's truthiness
➡️ comparing the list to another empty list#Python #Truthiness #PEP8 #DuckTyping #Programming #PythonProgramming
https://www.pythonmorsels.com/checking-for-an-empty-list-in-python/
-
Turns out duck typing is actually a way you can draw ducks with code: #DuckTyping
-
Turns out duck typing is actually a way you can draw ducks with code: #DuckTyping
-
Turns out duck typing is actually a way you can draw ducks with code: #DuckTyping #BingAI #Bing
-
Turns out duck typing is actually a way you can draw ducks with code: #DuckTyping
-
Turns out duck typing is actually a way you can draw ducks with code: #DuckTyping #BingAI #Bing
-
@chaotin “Well if it smells like lemon cake and tastes a bit sour… 🤷♂️”
-
@chaotin “Well if it smells like lemon cake and tastes a bit sour… 🤷♂️”
-
@chaotin “Well if it smells like lemon cake and tastes a bit sour… 🤷♂️”
-
@chaotin “Well if it smells like lemon cake and tastes a bit sour… 🤷♂️”
-
@chaotin “Well if it smells like lemon cake and tastes a bit sour… 🤷♂️”
-
#Go interfaces and #Python protocols are a static form of #ducktyping.
After a decade of experience, the consensus among #Go devs is that interfaces are more useful with 1 or 2 methods, like Reader—provides Read().
We need to learn this as we use typing.Protocol in #Python.
🧵
🐦🔗: https://twitter.com/ramalhoorg/status/1419732768397856773