DEV Community

Discussion on: How to hide JavaScript code form view source

Collapse
 
martinfjant profile image
Info Comment hidden by post author - thread only visible in this permalink
Martin Falk Johansson

This is generally a really, really bad idea. If you use a minimiser like uglify or terser, that should really be enough to make the code nigh unreadable. The chance that someone will go into your bundled and minimised javascript and steal it is pretty much zero.

If you think you need this, you are most certainly someone who does not need this. If you need a GUI to do this, rather than just using the cli tool from NPM, you are not a programmer good enough anyone would steal from.

As for a tutorial, this is just a link. You have shown us nothing. Quality is better than quantity. Writing these kind of tutorials won't get you a job – if someone sees this is the quality of what you do it can even hurt your prospects.

Collapse
 
ysf00009 profile image
YSF

HHh, thanks ,because you are afraid of my future, I'm Nothing to do with JS I'm a Laravel devlopper

Collapse
 
martinfjant profile image
Martin Falk Johansson

Then why are you writing bad tutorials that teaches things you should not do in JS?

Thread Thread
 
ysf00009 profile image
YSF • Edited

I think you don't have any problem, right?

Some comments have been hidden by the post's author - find out more