Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use list comprehension and pythonic variable names in dry code lesson #37

Merged
merged 2 commits into from
Oct 22, 2024

Conversation

willingc
Copy link
Contributor

No description provided.

@willingc willingc requested a review from lwasser October 21, 2024 20:31
@@ -132,17 +132,17 @@ to both understand and use. If you need to change the calculation itself, you ca

```python
temp = 55
new_temp = fahr_to_kelvin(fahr = temp)
new_temp = convert_fahrenheit_to_kelvin(temp)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like how expressive these names are. My only concern is they are so long! for the lessons we could do this but in my code I find really long names to make it harder to read too. @willingc do you have any thoughts on this? i love the use of a verb for the function convert_fahr_to_kelv might be a bit shorter

Copy link
Member

@lwasser lwasser left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just have one question about variable name length!

@lwasser
Copy link
Member

lwasser commented Oct 22, 2024

let's merge this - i opened #44 to discuss variable name length! it's not a make or break for the workshop.

@lwasser lwasser merged commit f6d549f into pyOpenSci:main Oct 22, 2024
1 of 3 checks passed
@willingc willingc deleted the dry-code branch October 23, 2024 19:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants