Skip to content

Conversation

seanm
Copy link
Collaborator

@seanm seanm commented Feb 4, 2025

No description provided.

@seanm seanm mentioned this pull request Feb 4, 2025
@hjmjohnson hjmjohnson force-pushed the nifti_image_conflicted_names_followup branch from cefe963 to a22bf88 Compare June 5, 2025 21:31
@hjmjohnson
Copy link
Member

@seanm I updated and fixed merge conflicts for this PR. Would you please review and update so that we could incorporate the removal of the "exit()" commands that could cause an application to crash from using this library?

@seanm
Copy link
Collaborator Author

seanm commented Jun 5, 2025

lgtm.

What do you want me to update? Not sure I understand that part of your comment...

@hjmjohnson
Copy link
Member

@seanm At a minimum, the commit message needs to be changed from WIP.

@hjmjohnson hjmjohnson changed the title WIP: code review of recent nifti_image_conflicted_names PR ENH: code review of recent nifti_image_conflicted_names PR Jun 5, 2025
@seanm
Copy link
Collaborator Author

seanm commented Jun 6, 2025

So you've already mutated my commits here, right? That means what's on my local disk is not the same. If I alter my commit message and push, I'll overwrite what you did I think. I'm not sure how to overcome that because my git-fu is weak...

In C++ library code, it’s generally considered bad practice to use
assert for input validation or error handling.

--Terminates the program
exit causes dependant applications to terminate - not ideal for libraries meant to be
reused safely by others.

--Not user-friendly
Gives no chance to recover or handle the failure gracefully.

--Violates encapsulation
Forces application behavior based on internal library assumptions.
@hjmjohnson hjmjohnson force-pushed the nifti_image_conflicted_names_followup branch from a22bf88 to fd54dd7 Compare June 6, 2025 19:08
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