Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Overriding built-in functions? Yikes! Better global replace "console.log(" with "//console.log(" ?
-
I joined the proj weeks before prod,codebase was a mess, no unit tests, and spies on integration tests on console.log calls... plus client pissed off because of those freaking logs. override the function was the quickest fix (and probably the dirtiest) that came to my mind on two legs
-
@incognito jsfuck was only to buy time with the client, as he was checking the bundle and the source code. even he's not into coding, he knows enough to be annoying (given that was also right...)
Codebase needs to be fixed, the jsfuck thing is only a monkey patch that we didn't want to show
Related Rants
Problem:
some folks left the angular codebase full of ridicolous console.logs, client was upset as he noticed it during UAT
Solution:
1. add extra script in main template page
window.console.log = function(){};
2. translate it into JSFuck
3. if they ask, pretend it's a super-secret encryption algorithm to improve security
joke/meme
jsfuck
console.log
wk134
js