Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Not really used jquery. But is there a way you can broadcast an event, and let the great grandmother or whoever listen to it and handle it by itself?
-
eldamir12298y@ronakkaria that would be one way to do it. Plenty of other good solutions also. But all our 40k lines of JS looks like this mess, and now I have to maintain it 😩
The great part is that I have absolutely no way of knowing what these parents refer to. The static html is no help, because it is all changed dynamically through JS -
@eldamir Not to turn this rant into a more than just an outlet of frustration, but what are the other ways of doing? A scenario like this pops up in most of my projects
-
eldamir12298y@ronakkaria apart from all the fancy view libraries, just using a selector with an id or class. Something that names and describes what is being found. Probably a comment to explain it. Naming conventions for nested elements could be an easy way to get some structure as well. Many easy improvements
-
Related Rants
So, should I refactor this into a .greatGreatGrandParent() method, or should I just go hang myself?
(Thanks former colleague for this gem)
undefined
kill me now
refactoring
spaghetti