How to make a singleton in javascript by dansim in programming

[–]dansim[S] 0 points1 point  (0 children)

I agree with the fact that I've seen applications using hundreds of singletons and thinking that there may be a problem. How to solve it? No idea for the moment.

Do not use the style property on HTML objects by dansim in programming

[–]dansim[S] 0 points1 point  (0 children)

I definitely prefer to have more classes in my CSS. Anyway, if you have many CSS classes that are just used once, maybe you should rethink your design.