Closed eyalroz closed 4 months ago
At the moment, our code looks something like this:
RemoveDupes.Whatever = { member1 : function(foo) { return foo + 1; }, member2 : function(bar) { // whatever } };
Instead, let's write:
RemoveDupes.Whatever = {}; RemoveDupes.Whatever.member1 = function(foo) { return foo + 1; }; RemoveDupes.Whatever.member2 = function(bar) { // whatever };
This improves readability, as we don't have to go very far to realize which brace-pair we're in; plus, it reduces the indentation level.
At the moment, our code looks something like this:
Instead, let's write:
This improves readability, as we don't have to go very far to realize which brace-pair we're in; plus, it reduces the indentation level.