DEV Community

Discussion on: Is it safe to ship JavaScript Source maps to production?

Collapse
 
janhybs profile image
Jan Hybš

anybody who's actually good at JS shouldn't need that

Good luck going through thousands of lines, where each variable is meaningless alphanumeric mush.
Even with pretty print option, you'll have a hard time understanding the code without investing a good portion of time.

Collapse
 
dyw972 profile image
Yohan D.

Normaly when you code, you don't have each variable has meaningless alphanumeric mush.
A good Dev take care of the quality of the code because of the future. We never know.

Collapse
 
ahferroin7 profile image
Austin S. Hemmelgarn

Except that you almost always have a debugger available, which means you can easily correlate code with what's happening on the page. Drop a breakpoint at the start of each function, reload, and you can literally follow the flow of execution from the very beginning.

Yes, it's not easy, but it's definitely doable with patience, and anybody who's likely to rip off your code will generally have a lot of that.