I wrote some code in the past for 8bit MCUs, realizing that every time I gained experience, the next iteration will be with a wrapper API or something more distant from the "bare metal" register access. I also end up a bit in working environments, learning the company philosophy behind a certain code style.
But I saw work environments with nice ordered code, due to code management, readability and the like and so all the good things that came from that. Which make sense from my experience.
Then I saw code from other companies, which is showing a not so nice looking already in the main file, with direct register access and not very standard functions, at least for the low level drivers and IO inits.
I personally tend to wrap as much as possible, because in the end once it is done, the code is really simple to read, maintain and making it portable. And also the stack is not an issue, due to the nature of the low level driver. This can also easily integrated with the application code, while keeping readability, maintainability and portability. All -ility. I also learned how important is, for the -ility reasons, having a library and its HAL layer.
The question is: why someone should be tidy in code writing if in the final product no one will check your code as long it comply the functional requirements? Are there opinions or reasons with or against being tidy? I am talking about reliable code environments, but with no particular process to follow (like no MISRA-C, DO-178B and neither ISO-26262 and the like).