Code Monkey?
![]() ![]() |
1) This code contents a lot of repeated code. This is baaad-bad-bad.
|
![]() ![]() |
You are indeed correct. The code sucks, and for my update, I'm completely rewriting it at this very moment, even though I'm concerned about the current length. > 1) This code contents a lot of repeated code. This is baaad-bad-bad. Laziness and a lack of function ideas. This is the main issue I'm fixing. > 2) REALLY long variable names... They made sense at the time. Don't ask. > 3) Indent > 10 tabs, Indent > 80 chars on display => hard to edit! I'm restricting my rewrite to 80 characters total width. Tabbing should be less extreme, I hope. > 4) Using a lots of variables, that could be even not declared. I was using more than needed in several sections, for sure. On the other hand, conciseness is not a big goal. > 5) Using what kind of selectors? Why not jsquery, sizzle or something?.. I've been using document.evaluate and the plain DOM methods. Is it common for userscripts to use external libraries? > This is code... Indeed, it is! This project started with me messing with Javascript to expand images and went all over the place from there. Unfortunately, it has not scaled well and espouses the main issues I have had in programming. I am still learning, and lots of this code was written months back. The rewrite is going to be more object-oriented. I hate you, too.~ Thanks for the code review. |
![]() ![]() |
> I hate you!
|


