-
-
Notifications
You must be signed in to change notification settings - Fork 371
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
Clean up code: .str().length()
#2577
Comments
Hi! I am in an intro to swe class that is requiring me to work on my first open-source project. I was wondering if this issue is still open and if so could is this beginner-friendly? |
Hi @Ishvina - There are indeed still places where this pattern appears in the Stan code, for example: stan/src/stan/services/optimize/lbfgs.hpp Lines 96 to 97 in 5621ebd
If you'd like to follow the first suggestion and change the logger, the main implementation of the logger can be found here: If you know some C++ I think this is a good beginner project, but building Stan itself can be complicated, especially on Windows machines. There are some helpful guides here and here, and if you need human support you can try the #developers channel on our Slack |
Hi @Ishvina! Are you still working on this project? If you are not, could I work on this? I am in the same class as you. |
@AnikaAChowdhury yea you can work on it! |
wecome Ishvana and Anika! happy to help answer your questions! |
It is Intro to Software Engineering class for CS majors at UF. |
Hi @WardBrian! The Slack link does not work. Could you provide me with the link again? Also, could you elaborate a little more on the issue I have to change? |
Could anyone explain to me what is the purpose of this issue and what could be achieved by fixing this issue? |
this issue is the result of a suggestion made during code review:
a grep for this shows that it's used in the following files: src/stan/model/test_gradients.hpp therefore fixing this issue would:
Martin Fowler's "Refactoring" book is a classic and explains why you want do to code cleanup of this sort. the invite link for Stan slack is: https://join.slack.com/t/mc-stan/shared_invite/enQtMzAyNzg1ODQ5MDczLTc1M2Q1YzM4ZjY5MzRjMGFlNDcyYzRhOGYxNTRlZjRlZjI2YzYxZjYyMDRlNDYzOTY5YzU5MTgzM2JlZjAxNTk |
further on, in the code review discussion - #2570 (comment) - [future request]
which was turned into issue #2579 |
Thank You! |
Do I just fix all the instances and then push the changes? Also, could someone point me out how to run makefile? |
Hi Anika - This guide to github pull requests might be useful. The basic idea is you can fork this repository to get your own copy, make the changes there, and then request to merge those changes back into this repository. To run the Makefile you need to have a version of If you have |
Summary:
There are many instances of code that looks like:
We should either:
Additional Information:
Originally from this PR comment: #2570 (comment)
Current Version:
v2.17.1
The text was updated successfully, but these errors were encountered: