Consider this text:
JavaScript contains weird parts and some people like the idea of being able to avoid having to understand those parts.
It contains the construct
to like the idea of being able to avoid having to understand something
Is this construct grammatically correct? It seems fine to me but I'm not a native speaker so I can't tell for sure.
Also, does it sound weird? If yes, how would you say it instead?
Update:
I just noticed that I forgot to provide some context. Sorry about that.
So the idea is that there is this other programming language called "CoffeeScript". Some people choose to write in CoffeeScript instead of JavaScript because that means that they don't have to understand JavaScript and its weird parts. (CoffeeScript doesn't contain weird parts.)
So they like the idea of being able to avoid having to understand JavaScript by writing in CoffeeScript instead.