html_url,issue_url,id,node_id,user,created_at,updated_at,author_association,body,reactions,performed_via_github_app,issue https://github.com/pydata/xarray/pull/5234#issuecomment-840733461,https://api.github.com/repos/pydata/xarray/issues/5234,840733461,MDEyOklzc3VlQ29tbWVudDg0MDczMzQ2MQ==,5635139,2021-05-13T18:05:12Z,2021-05-13T18:05:12Z,MEMBER,Thanks @andersy005 !,"{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,870619014 https://github.com/pydata/xarray/pull/5234#issuecomment-840681394,https://api.github.com/repos/pydata/xarray/issues/5234,840681394,MDEyOklzc3VlQ29tbWVudDg0MDY4MTM5NA==,2448579,2021-05-13T16:37:04Z,2021-05-13T16:37:04Z,MEMBER,Looks like this is done. Thanks @andersy005 ,"{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,870619014 https://github.com/pydata/xarray/pull/5234#issuecomment-839910670,https://api.github.com/repos/pydata/xarray/issues/5234,839910670,MDEyOklzc3VlQ29tbWVudDgzOTkxMDY3MA==,13301940,2021-05-12T16:15:13Z,2021-05-12T16:15:13Z,MEMBER,"I believe I have addressed most, if not all changes requested during the review. If there are still disputable changes that need addressing, please let me know ","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,870619014 https://github.com/pydata/xarray/pull/5234#issuecomment-839903564,https://api.github.com/repos/pydata/xarray/issues/5234,839903564,MDEyOklzc3VlQ29tbWVudDgzOTkwMzU2NA==,13301940,2021-05-12T16:07:29Z,2021-05-12T16:07:29Z,MEMBER,"> Shall we also add parts of Stephan's comment to the ""Contributing Guide"" in the documentation? 👍🏽 for addressing this in a separate PR","{""total_count"": 2, ""+1"": 2, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,870619014 https://github.com/pydata/xarray/pull/5234#issuecomment-839884359,https://api.github.com/repos/pydata/xarray/issues/5234,839884359,MDEyOklzc3VlQ29tbWVudDgzOTg4NDM1OQ==,2448579,2021-05-12T15:52:23Z,2021-05-12T15:52:23Z,MEMBER,"Shall we also add parts of Stephan's comment to the ""Contributing Guide"" in the documentation?","{""total_count"": 1, ""+1"": 1, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,870619014 https://github.com/pydata/xarray/pull/5234#issuecomment-839878862,https://api.github.com/repos/pydata/xarray/issues/5234,839878862,MDEyOklzc3VlQ29tbWVudDgzOTg3ODg2Mg==,13301940,2021-05-12T15:44:51Z,2021-05-12T15:44:51Z,MEMBER,"@max-sixty, I'm going to address a few issues pointed out during the review, then we can merge afterwards. ","{""total_count"": 1, ""+1"": 1, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,870619014 https://github.com/pydata/xarray/pull/5234#issuecomment-839875198,https://api.github.com/repos/pydata/xarray/issues/5234,839875198,MDEyOklzc3VlQ29tbWVudDgzOTg3NTE5OA==,5635139,2021-05-12T15:39:56Z,2021-05-12T15:39:56Z,MEMBER,This is going to collect merge conflicts — shall we merge?,"{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,870619014 https://github.com/pydata/xarray/pull/5234#issuecomment-834820456,https://api.github.com/repos/pydata/xarray/issues/5234,834820456,MDEyOklzc3VlQ29tbWVudDgzNDgyMDQ1Ng==,13301940,2021-05-07T22:20:00Z,2021-05-07T22:20:00Z,MEMBER,"@shoyer, Thank you for the thorough feedback. > Even code that has been carefully checked can introduce bugs. Style clean-up PRs thus still need to be reviewed carefully. > Fewer lines or tokens of code is not always better. Good examples from this PR include reduced nesting with early return statements, comprehensions and conditional expressions. All of these would be unobjectionable to use in new code (and are often a good idea), but code that doesn't use them even when it could is fine, too. 👍🏽. I reverted back to the original style in most places. There're a few comments that I haven't addressed yet. I will look into those sometime this weekend. > Code-base wide clean-up for particular issues may be warranted occasionally, but I would suggest always discussing it with other core developers first. I agree. I didn't expect the PR to get this large. My original intent when I created the PR was to clean the backends code, and I ended up invading other areas :(. In the future, I'll definitely make sure to start a discussion before working on changes that may end up affecting a large chunk of the code base. ","{""total_count"": 1, ""+1"": 1, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,870619014 https://github.com/pydata/xarray/pull/5234#issuecomment-834087321,https://api.github.com/repos/pydata/xarray/issues/5234,834087321,MDEyOklzc3VlQ29tbWVudDgzNDA4NzMyMQ==,1217238,2021-05-07T05:53:19Z,2021-05-07T05:53:19Z,MEMBER,"@andersy005 thanks for your hard work here. On the whole, I think this will be a net benefit to the codebase, but in my review I pointed out a number of locations where I did not find the style to be improved (in my opinion). There is also one place where I think your logic may have an error. It would be nice to come up with a policy around ""style clean-up"" PRs for the future. In general, I think these are _not a good idea_, for several reasons: 1. Even code that has been carefully checked can introduce bugs. Style clean-up PRs thus still need to be reviewed carefully. 2. Fewer lines or tokens of code is not always better. Good examples from this PR include reduced nesting with early `return` statements, comprehensions and conditional expressions. All of these would be unobjectionable to use in new code (and are often a good idea), but code that doesn't use them even when it could is fine, too. 3. Some ugly code works fine, and would not benefit from clean-up. For example, `xarray.util.print_versions` (which was forked from pandas) is quite ugly code. But it's peripheral to the project, and has barely been touched aside from automated reformatting. Instead, I would suggest a policy of a _selective cleanup only_. Feel free to clean-up style when it arises in the process of normal coding, e.g., when you are modifying nearly or related code for another reason. This reduces the risk of introducing inadvertent errors, and the fact that you were working on nearby code means that this part of the codebase is worthy of improvement. Code-base wide clean-up for particular issues may be warranted occasionally, but I would suggest always discussing it with other core developers first.","{""total_count"": 2, ""+1"": 2, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,870619014 https://github.com/pydata/xarray/pull/5234#issuecomment-833520119,https://api.github.com/repos/pydata/xarray/issues/5234,833520119,MDEyOklzc3VlQ29tbWVudDgzMzUyMDExOQ==,13301940,2021-05-06T13:24:18Z,2021-05-06T13:24:18Z,MEMBER,"> I feel this PR is too big and diverse to accept it as a whole. > > For example I like most changes from older style formatting to f-strings, but I disagree strongly the moving the `return` statements into functions improves readability. If folks are in favor of the original style (inline variables that are immediately returned) throughout the codebase, I'm happy to revert back to the original style :) ","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,870619014 https://github.com/pydata/xarray/pull/5234#issuecomment-831856905,https://api.github.com/repos/pydata/xarray/issues/5234,831856905,MDEyOklzc3VlQ29tbWVudDgzMTg1NjkwNQ==,226037,2021-05-04T11:02:15Z,2021-05-04T11:02:15Z,MEMBER,"@max-sixty & @andersy005 mine was more of a general comment. It is OK to merge it for me, but please after the release!","{""total_count"": 1, ""+1"": 1, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,870619014 https://github.com/pydata/xarray/pull/5234#issuecomment-831775613,https://api.github.com/repos/pydata/xarray/issues/5234,831775613,MDEyOklzc3VlQ29tbWVudDgzMTc3NTYxMw==,5635139,2021-05-04T08:37:16Z,2021-05-04T08:37:16Z,MEMBER,"> I feel this PR is too big and diverse to accept it as a whole. > > For example I like most changes from older style formatting to f-strings, but I disagree strongly the moving the `return` statements into functions improves readability. While I don't have the same sense on the specifics, if people feel strongly then it may be reasonable to revert or pause on some of these. What do you suggest re the broader PR though? While focused PRs are easier to review and reach agreement — now this is here, it does seem on net beneficial, and we should take advantage of the benefit. Are there a few items you feel strongly about that we could revert and then merge the rest?","{""total_count"": 2, ""+1"": 2, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,870619014 https://github.com/pydata/xarray/pull/5234#issuecomment-831740472,https://api.github.com/repos/pydata/xarray/issues/5234,831740472,MDEyOklzc3VlQ29tbWVudDgzMTc0MDQ3Mg==,226037,2021-05-04T07:32:32Z,2021-05-04T07:32:32Z,MEMBER,"I feel this PR is too big and diverse to accept it as a whole. For example I like most changes from older style formatting to f-strings, but I disagree strongly the moving the `return` statements into functions improves readability.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,870619014