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

Improve readability by removing #defined strings #135

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

paulbartell
Copy link

@paulbartell paulbartell commented Aug 2, 2022

Remove macro-defined string constants that are used in a limited number of places or are obvious.

Copy link
Member

@kstribrnAmzn kstribrnAmzn left a comment

Choose a reason for hiding this comment

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

I'm just going to state my opinion here which I realize is different from many on our team for the record....

In general, I'm a fan of removing single character and one use macros. I'm not really a fan of removing multi-character, multi-use macros. I'm okay with removing length macros as long as there is context where the raw value is used.

Essentially I think the macro name gives context more than anything, and I don't want to lose this context as it may result in future new developers suffering a harsher learning curve.

/stepping-of-my-soap-box

source/core_http_client.c Outdated Show resolved Hide resolved
source/core_http_client.c Show resolved Hide resolved
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.

3 participants