2 ms·
Naming things in that manner hasn’t proven to be a good idea over the years. When you have 2 of something and one is safe/better and the other one is known to
by xp84 1y ago
Naming things in that manner hasn’t proven to be a good idea over the years.
When you have 2 of something and one is safe/better and the other one is known to be problematic, you give the awkward name to the problematic one and the obvious name to the safe/better one. Noobs oughtn’t to be attempting the other one, and anyone who is mature enough to have reason to do it, are mature enough to appreciate the reason behind that complexity.
- pwdisswordfishy 1y agoIt doesn't matter when the "unsafe" method is already so entrenched and easy to reach for.
- xp84 1y agoSure it does. A baby developer today has a good chance of discovering setHTML first. The most “with it” keep abreast of great new additions to the DOM API. We just have to educate the mid-levels (and hope the AI that does most of the actual code authoring for the juniors gets the memo quickly).