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
-
I've mentioned this before, but...
Anytime I need to store things client side I json.stringify them and then run them through compression.
The result is that if somebody peeks at my network tab in dev tools all they see is random symbols.
And yeah... they could just figure out what compression algo I used and decompress it... but good luck with that because I packed the compression algo into the minified jquery file in an override to the addslashes function so you'll fucking never find it. Mwah haha haha
This isn't a "hack" per se... but it's tricky and unexpected enough I have now fucked up several devs and pen testers with it. -
@HiFiWiFiSciFi If your app is hackable merely by inspecting the requests made, you need to seriously redesign everything.
-
@Allen-Edward The thing is, this code makes him look like a noob, and if he thinks it makes him look professional, he's even a bloody noob.
-
Um yeah guys... I didn’t say this was a security measure... just an obfuscation to fuck with people...
That I only mentioned in the context of writing overly complex code for simple tasks... like this thread is about. -
-
k33da98354yprofessional as in ? like writing maintainable code with good naming conventions or just writing some code very quickly which would get job done ???
-
@k33da just writing trash code but thinking that it is professional code. because it "LOOK" complicated
real professional code is as you said before in the first one. -
@Fast-Nop Hey, maybe this nhttp stream will send things over the network or something, assuming this isn't the whole file and that variable is declared/defined elsewhere :D
-
@Fast-Nop If you want to leave jQuery off your resume even though it’s powering 60% of front ends, I encourage you to do so.
More work for me, and not every project is building a new fancy fun thing. Many of them will be “add x feature to this 10 year old codebase”.
And that... will be jQuery and PHP. -
@HiFiWiFiSciFi The opportunity for the first jQuery hate in 2021 was just too good to let it pass.
I personally removed the jQuery dependency from the last widget on my project site already years ago. Replacing that by using native JS functionality was pretty straightforward.
Have you ever written a very complicated code to look like a professional programmer??
For example:hello world app in c++
#include <iostream>
using namespace std;
int main(int argv, char argc)
{
char vhWnd[] = new char[13];
struct dataentry
{
string txt;
float vex = 0.2345234;
};
vhWnd[1] = 'e';
vhWnd[4] = 'o';
vhWnd[3] = 'l';
vhWnd[2] = 'l';
vhWnd[7] = 'o';
vhWnd[5] = ' ';
vhWnd[6] = 'W';
vhWnd[9] = 'l';
vhWnd[8] = 'r';
vhWnd[13] = '\0';
vhWnd[10] = 'd';
vhWnd[12] = '!';
vhWnd[11] = ' ';
vhWnd[0] = 'H';
for ( int i = 0, i=13, i++)
{
nhttp << vhWnd[i];
}
return 85037593;
}
question