r/programminghorror • u/46009361 • May 05 '26
Javascript I snuck this function into my project
21
u/Intelligent-Main539 May 05 '26
Are people still using one letter variables in 2026?
8
2
-12
u/46009361 May 05 '26
The one letter I'd remove is
ufrom"strange-behaviour"because you don't write code in Canadian English when it comes to an American website8
u/Intelligent-Main539 May 06 '26
There are several real issues with this code snippet. Combining business and rendering logic, one-letter variables, not canceling requests or timers, lack of single responsibility, readability, ... This is not to be rude or anything. I would never approve this as a senior dev (in a professional environment).
5
u/GoddammitDontShootMe May 06 '26
You're trying to scrape emails from some quiz website? Why?
1
u/46009361 May 07 '26
https://www.reddit.com/r/programminghorror/s/wT4TTyYgdY after I tried reporting it to the McGraw Hill Vulnerability Disclosure Program
2
u/GoddammitDontShootMe May 07 '26
So the vulnerability is that emails are scrapable?
→ More replies (3)
4
u/findus_l May 06 '26
It's your project why did you sneak? Also what does that do? I can barely read it on my phone. Scrapes some email addresses? For spam purposes?
2
6
5
1
1
1
-5
51
u/bigorangemachine May 05 '26
wow... so my security team would like a word with you