SourceComment: Refactoring makes code beautiful ;-)

Hi all

Here is a patch where I have removed a long method Http::Header::parse with smaller methods….

IMHO, such code is easier to unit test, easier to understand and looks better… ( and is easier to reason about… )
I have found from personal experience that smaller methods simply make for better code ( and more reuse )

Let me know ;-)

– Cheerio atul

Attached Files:

Would you like to post a relpy?


This post starts a thread.
Follow-ups:
Re: SourceComment: Refactoring makes code beautiful ;-)
Hi Atul, that patch looks quite neat! I really like this kind of refactoring of yours where you split a more complex function into smaller parts and call these smaller (more...)