what site is a great example of good UX?
To be fair, Facebook's UX is always going to be a bit of a nightmare just due to the sheer volume of disparate features stuffed in - the 'iTunes effect' as I've just called it - so the move to focused apps for specific features is probably a good thing.
To be not so fair, I get the suspicion that the UX is left deliberately confusing in places, especially the constant rearranging of privacy settings, to get people to share more than they would otherwise.
Not sure what the back end is written in, saw a reference to Flask in a javascript comment, so maybe Python.