You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yes, I agree with @gunthercox comment, readability 👀 is very important it will gives us many advantages for example
Catching issues will be very easier and new develop/integration will become very easier.
Etc.
Yes sometime it is necessary to pick response also, With some hacks the below formats are looking good to me, the method i named it here ⤴️Bottom to top approach for list comprehension, will provide more readability 👀
I did some exercise on some examples, please provide your comments/suggestion on this.
# Find the closest matching known statementforstatementinstatement_list:
confidence=self.compare_statements(input_statement, statement)
ifconfidence>closest_match.confidence:
statement.confidence=confidenceclosest_match=statement
vs
# The bottom to top approach for list comprehension, gives more readabilityclosest_match_and_confidence= [
[
statement,
self.compare_statements(input_statement, statement)
] forstatementinstatement_list
]
# The bottom down approach for list comprehension, gives more readability
[
responses.add(response.text)
forstatementinstatement_listforresponseinstatement.in_response_to
]
If it is looks good I'll try to make a PR which discussed here #738
The text was updated successfully, but these errors were encountered:
vkosuri
changed the title
Bottom down approach for list comprehension
Bottom to top approach for list comprehension 👀
Jul 2, 2017
vkosuri
changed the title
Bottom to top approach for list comprehension 👀
Bottom to top approach for list comprehension
Jul 2, 2017
With Referencing pull request comment #809 (comment)
Yes, I agree with @gunthercox comment, readability 👀 is very important it will gives us many advantages for example
Yes sometime it is necessary to pick response also, With some hacks the below formats are looking good to me, the method i named it here⤴️ Bottom to top approach for list comprehension, will provide more readability 👀
I did some exercise on some examples, please provide your comments/suggestion on this.
vs
Some more examples
vs
If it is looks good I'll try to make a PR which discussed here #738
The text was updated successfully, but these errors were encountered: