Have you tried out PHP programming with all symbols defined as unicode

github logo Updated on ・1 min read

Here is one example using Devanagari:

class लगर
{
    const इन = 'इन्फो';

    public function लग(string $म, string $लवल)
    {
        echo "[$लेवल] $मेसेज";
    }
}

(new लगर)->लग('hello', लगर::इन);
twitter logo DISCUSS (10)
markdown guide
 

Just don't. Never.

It's a bad habit to use non-english names in any programming task. English is the standard and is clear on the naming convention.


Post censored because obviously stating that quality of code written by offshore developers is insulting, is racist.

 

dont worry i havent. no one has. or ever will. could you please edit your comment and remove the last paragraph (for reasons we all know)

 

You already did wrote such code. Above, in the post. And according to Murphys law, there will be an idiot, who will use non-ascii characters, as you proposed. It's irrelevant if it is your alphabet, russian bukhvas or those shitty slavic diacritics.

"trying out" and using for real stuffs is different, no?

 

Btw, it's been couple years since the name has changed, but T_PAAMAYIM_NEKUDOTAYIM is still the example of not treating the job seriously.

 
 

It's possible to use this for obfuscation, however, I'd use hashing. People can't reverse easily that way. Isn't that the whole point?

You wouldn't want some to reverse engineer your obfuscated code. So ... why not make it so they can't?

 

true i'll use this idea to my php encoder software haha thanks !

 
Classic DEV Post from Jan 16

What would you like to see on your DEV profile?

If we were to rethink the DEV profile, what would you like to see on it?

Jitendra Adhikari profile image
Hello World!