TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: Are you worried about competitors copying your client-side JavaScript code?

29 pointsby philippnagelover 8 years ago

15 comments

paulddraperover 8 years ago
Copy my SPA JS code?<p>Oh please. You have no idea the hell you have brought upon yourself.
benologistover 8 years ago
About 99.99999999999% of people don&#x27;t want anything to do with your code, your site, your work, or any project you will ever do. Someone illicitly copying your work sounds more like a goal than a problem cause of how popular it needs to be first.
评论 #13628250 未加载
throwawaydbfifover 8 years ago
Nah. Even client side UI is just that... A UI. It&#x27;s trivial to copy a UI anyways by just taking screenshots.<p>If more substantial parts of our apps were client side, like if we sold an online image editor, I would be very afraid.<p>However I have doubts as to how much more vulnerable to copying JS is than anything else. People have been pirating compiled apps just as long and they don&#x27;t seem any less prolific
gumballheadover 8 years ago
This happened at FarmLogs once. Our bug tracker started getting some really weird exceptions due to a Chinese company reverse engineering our app with the frontend code, which had our API key in it. We didn&#x27;t really mind; it was just funny.
dbattagliaover 8 years ago
Definitely not. Honestly I&#x27;m not worried about people seeing the backend code either. I&#x27;m sure there are exceptions but it&#x27;s been my experience that the data is by far the most valuable asset for web&#x2F;sass applications.
TuringNYCover 8 years ago
Having worked on legacy corporate code...I find it is often easier to just observe products and reverse engineer them, rather than try to understand&#x2F;extend existing code. I would generally prefer to reverse engineer+rebuild. Existing code isn&#x27;t always great code, it may not even be correct code.<p>And if your code really is that good and so unique that someone might want to steal it, perhaps you should try to extract it and product-ify it. Possibly as an open source project.
spaceboyover 8 years ago
A little bit, yes. But it&#x27;s a given now that client-side JS is open source, and many have got used to this. I&#x27;ve seen developers try to obfuscate their code using obscure packing utilities, and abusing eval(), but such code is trivial to de-obfuscate&#x2F;unpack, and doing so only makes me want to see the code <i>more</i> since you&#x27;ve something to hide.
compumikeover 8 years ago
Obfuscation works. It doesn&#x27;t have to be perfect. It just has to be good enough that it&#x27;s substantially harder to copy&#x2F;reuse than to do whatever the alternative is (rewrite, buy, etc).
评论 #13626481 未加载
seanwilsonover 8 years ago
Would a serious competitor ever risk being sued by copying your code verbatim? Would copying just parts of your likely obfuscated codebase and trying to integrate it into their own codebase be more difficult than reverse engineering it?<p>I don&#x27;t think it&#x27;s something to worry about. Someone that is smart enough to steal and use your code is smart enough to use a legal alternative.
softwarefounderover 8 years ago
Yes, well, to some degree. The best you can do is minify it.<p>I&#x27;m more concerned with competitors copying designs, and witty UX concepts than actual JS code. This you can put obstacles in front of by making some things only available post-purchase, or by &quot;demo only&quot; if the customer is undecided.
ftkr0over 8 years ago
Absolutely no because It has not alternative choice. Any code can reverse-engineering, any languages.
kojeovoover 8 years ago
Only to the point where I don&#x27;t put sensitive information in it. I can see theirs, they can see mine. Meh.
wprapidoover 8 years ago
couldn&#x27;t care less
donovanmover 8 years ago
No, I don&#x27;t like to live my life in paranoia. Also anyone that was sufficiently motivated could just implement it themselves anyways.
pwover 8 years ago
No.