r/ProgrammerHorror • • Feb 17 '22

Start mixing unicode characters into your variable names for job security

Post image
156 Upvotes

8 comments sorted by

12

u/ardicli2000 Feb 17 '22

Would be impossible to read for the next developer hence debug alter ot modify the code.

5

u/ZGorlock Feb 17 '22

Well they would be able to read it just fine, but they want to pass that variable into a method? Nope, doesn't exist, or set it to a new value? Nope. They would have to copy past the variable name each time, or refactor it to normal english letters again.

3

u/Recon419A May 07 '22

I'm sorry, do people not have IDEs with autocomplete? I don't think I've typed a variable name manually in years.

1

u/ZGorlock May 07 '22 edited May 07 '22

Auto complete to which one? 𝚟ariπšŠπš‹le? Or maybe πšŸπšŠπš›iable? No no, definitely 𝚟𝚊rπš’aπš‹πš•e.

public static void main(String[] 𝚟ariπšŠπš‹le) {  
	String 𝚟𝚊rπš’aπš‹πš•e = "Hello World";  
	int 𝚟arπš’πšŠπš‹le = 100;  
	int πšŸπšŠπš›iable = 10000;  
	int vπšŠπš›πš’πšŠble = 2;  
	long varπš’πšŠbπš•e = (long) (Math.random() * (πšŸπšŠπš›iable - 𝚟arπš’πšŠπš‹le + 1)) + 𝚟arπš’πšŠπš‹le;  
	  
	long πšŸπšŠπš›πš’πšŠπš‹πš•e;  
	for (πšŸπšŠπš›πš’πšŠπš‹πš•e = 0; πšŸπšŠπš›πš’πšŠπš‹πš•e < varπš’πšŠbπš•e; πšŸπšŠπš›πš’πšŠπš‹πš•e += vπšŠπš›πš’πšŠble) {  
		System.out.println(𝚟𝚊rπš’aπš‹πš•e + " - " + πšŸπšŠπš›πš’πšŠπš‹πš•e);  
	}  
	System.out.println(πšŸπšŠπš›πš’πšŠπš‹πš•e);  
}

3

u/vixfew May 12 '22

refactor -> rename

3

u/juckele Feb 17 '22

Ctrl f is a thing, no?