-
Notifications
You must be signed in to change notification settings - Fork 78
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
request: increase code readability #180
Comments
In college I learned the |
Cool. from my point of view, any convention is fine really as long as it's verbose :) |
Imho @Floessie is the expert for coding conventions. |
I think we all agree that having strong conventions might hamper creativity and are hard to enforce on an existing project with many contributors. Still there should be some guidelines... For RawTherapee, we have a cautiously moderated
This sounds reasonable. IMHO comments should give an overview of the algorithm. If the identifiers are clearly describing the intent, single lines don't need to be commented. When refactoring don't only rename identifiers but also think about improvements:
Although I'm not an official contributor to HDRMerge I'm very interested in it from a user's perspective and am really looking forward to your enhancements. 👍 HTH, |
I made this PR #181 |
I'm really interested in this project and would love to contribute and start closing some of the issues. To be honest, the code isn't very understandable, many variables don't have proper naming and I think that makes it difficult for new people who didn't initially write the code. Take this function for example:
hdrmerge/src/Image.cpp
Line 100 in 3ad6d36
Maybe that's how C++ devs write their code, I'm not sure as I've never worked on a C++ project.
If what I'm saying makes sense and you agree with me, maybe we can do it bit by bit a function/method at a time by renaming variables and adding some more comments, specially for the mathematical components.
The text was updated successfully, but these errors were encountered: