Shop Forum More Submit  Join Login
javascript mug by CamiloMM javascript mug by CamiloMM
I'm not at dA currently, actually I'm pretty much nowhere (not even reading e-mails) until I finish something. But...

My girlfriend thought about giving me a mug with dA points. Considering the opportunity, I might as well have a custom mug! So I fired up inkscape and threw this together (SVG in download).

Oh, and the code at the left isn't random gibberish.
Add a Comment:
ProgerXP Featured By Owner Dec 19, 2012  Hobbyist General Artist
Man that's incredible! I couldn't figure out how it worked until I've broken down the thing and debugged it piece by piece. Using implicit type conversion is ingenious, never thought you could do that with mere braces and additions.
ProgerXP Featured By Owner Dec 20, 2012  Hobbyist General Artist
Dear, using Infinity is a kicker. How did you come up with this in the first place? Couldn't imagine something like that even after using JS for over 7 years.

Check my today's reply and try to follow what it says :) My mails can wait, I'm sure you have more important ones to answer for this time.
CamiloMM Featured By Owner Dec 21, 2012  Hobbyist Interface Designer
I'd like to say this is all pure genius of my part, but truth is I once saw something similar somewhere, remembered it was cool (but it was a smaller word, I think it was "fail"), and then I thought which nice word I could fit in it. Infinity is my merit though :)

Here's a list with all the characters following the same convention in the mug (no !!, just !+()[]), except for the y.
var carraycters = {
a: (![]+[])[+!+[]],
d: ([][[]]+[])[!+[]+!+[]],
e: (!+[]+[])[+!+[]+!+[]+!+[]],
f: (![]+[])[+[]],
i: (![]+[]+[][[]])[+!+[]+[]+(+[])],
l: (![]+[])[+!+[]+!+[]],
n: ([][[]]+[])[+!+[]],
r: (!+[]+[])[+!+[]],
s: (![]+[])[+!+[]+!+[]+!+[]],
t: (!+[]+[])[+[]],
u: ([][[]]+[])[+[]],
y: (+!![]/+[]+[])[+!![]+[]+ +[]-(+!![]+!![]+!![])]
However, the signature on my recent mail is 100% my merit and I quite like it :iconyoyobadassplz:
CamiloMM Featured By Owner Dec 20, 2012  Hobbyist Interface Designer
Hehe I'm glad you like it, thanks for the comment :D
It could have been done in far fewer characters by repeating !! characters, but I think it looks much cooler like this (one could even avoid [[ and ]] repetitions by surrounding them with parentheses, but I didn't think it was necessary). Can't wait to see it on a mug!

Also, one can have an "y" by using division:
'Javascript is ' + (![]+[])[+[]]+([][[]]+[])[+[]]+([][[]]+[])[+!![]]+([][[]]+[])[+!![]]+(+!![]/+[]+[])[+!![]+[]+ +[]-(+!![]+!![]+!![])]

Regarding the e-mails, gosh, I just sorted out all of them, I'm not sure what to answer first but I'll try to go from oldest to newest. If I miss anything, please tell me (there are some which are not marked as replied but I think I replied to them, such as in another mail).
Add a Comment:
  • Art Gifts
Download SVG download, 4.6 KB


Submitted on
December 17, 2012
File Size
4.6 KB


3 (who?)


Creative Commons License
Some rights reserved. This work is licensed under a
Creative Commons Attribution-Share Alike 3.0 License.