Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I think you're being sarcastic but others seem to think you're serious. Care to clarify? I'm leaning towards you're being sarcastic. I'd flip a table if I opened up code full of emojis.


Emojis make your code a little more like math formulas. In math formulas you use single letters. This makes the syntax easy to parse, but has the drawback that the letters are mostly meaningless and so not very suggestive. Names in programming language tend to be words. This makes it easier to remember what they are supposed to stand for but also make the syntax hard to parse and other occurrences hard to spot

Emojis combine the best of both worlds. Like the letters used in math they are easy to parse and it's really easy to find other occurrences of the same var when the name is an apple . But like the more verbose names in programming languages they can carry meaning. Eg I use the dango emoji for arrays and the monitor emoji for window instances.


Dango would be more appropriate for a dequeue, as it's not random access - you can only remove pieces from either end of the skewer. The bento box makes more sense for an array, because you can pick from any compartment.

Pancakes for a stack, popcorn for a heap, burrito for a monad.


So... just to be clear... you're serious...? I smell a clever troll.


Ah yes, because nothing says “data structure consisting of a contiguous block of memory broken into uniformly sized chunks so elements can be cheaply accessed by index” like a little picture of rice dumplings on a stick. Much better than just using the accepted technical term “array”.

Personally I prefer the abbreviation arrr, or sometimes yarr. Lets anyone reading the code feel like they just downed a pitcher of grog.


I see you’re a beta tester for Pyrate, the super-secret code name for Python4.

!Arrrr[g]


I'm not sure if it is more horrifying or beautiful that we inhabit an internet culture where we can't immediately write off "I use emoji as function names" as sarcasm.


In a culture where sufficiently novel things get brought up with sufficient frequency, dealing in sarcasm becomes dangerous territory; more generally jokes whose punchline rely on a phenomenon being sufficiently improbable cease to be humorous.


Maybe not emoji, but particularly when doing stats-heavy code, I've actually found it helpful to be able to use unicode lambda/delta


You know what really boggles my mind? You are the only person so far who has had a sane reaction to this. All these other people saying "this sounds like fun" are making me cringe in revulsion.


I can see it being 'fun' in something like Scratch. I expected op to reply with either some edutech or some domain I hadn't heard of. It does however seem that op is trolling, and I missed it.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: