Programming Rant
14 years ago
Yay! I get to rant about something! For those of you who don't like/know programming, feel free to skip this as it will be techy.
Ok, so I'm trying to teach myself how to effectively program in JQuery and Javascript. The exact reasons for this are the subject of another rant.
I understand how JQuery work in regards to the DOM, and I love its simplicity. Yet, the way JQuery handles everything in nested anonymous functions scares me. Everything I know about proper coding technique in object oriented languages is screaming at me that this is a great way to make horribly long spaghetti code. But whenever I try separating out discrete functionality to named functions everything breaks. What the hel am I doing wrong? I really want to use JQuery because it makes manipulating elements and using AJAX so much less painful. If its going to break my ability to make maintainable object oriented code however, I'm not quite sure.
Long story short, is there anyone who knows what I'm talking about and how to fix what I can only assume is a error on my part?
Ok, so I'm trying to teach myself how to effectively program in JQuery and Javascript. The exact reasons for this are the subject of another rant.
I understand how JQuery work in regards to the DOM, and I love its simplicity. Yet, the way JQuery handles everything in nested anonymous functions scares me. Everything I know about proper coding technique in object oriented languages is screaming at me that this is a great way to make horribly long spaghetti code. But whenever I try separating out discrete functionality to named functions everything breaks. What the hel am I doing wrong? I really want to use JQuery because it makes manipulating elements and using AJAX so much less painful. If its going to break my ability to make maintainable object oriented code however, I'm not quite sure.
Long story short, is there anyone who knows what I'm talking about and how to fix what I can only assume is a error on my part?
FA+
