r/programming • • Aug 10 '12

Write any javascript code with just these characters: ()[]{}+!

http://patriciopalladino.com/blog/2012/08/09/non-alphanumeric-javascript.html
1.3k Upvotes

288 comments sorted by

View all comments

150

u/shnuffy Aug 10 '12

These types of articles always make me feel both inadequate and motivated.

17

u/joseph177 Aug 10 '12

The farmland background helped me, because it helps me understand corn.

6

u/texture Aug 10 '12

They always make me wonder who these people are with 48 hours in their day.

38

u/[deleted] Aug 10 '12 edited Aug 11 '12

Because you’re not good at something that is pretty much meaningless for your life?

I’m pretty sure you are good at what is meaningful to your life. (Otherwise learn game design, and make it an RPG. :)

4

u/shnuffy Aug 10 '12

Fair enough. I'm an iOS developer and RPG's abound!

16

u/ahawks Aug 10 '12

I have SO many iOS ideas, but I program Python (used to do Java) professionally, and at the end of the day I just don't feel like doing more programming on my own projects. sigh.

29

u/clrokr Aug 10 '12

Zynga here, tell us all about your ideas!

No, seriously, what do you have in mind? Games?

22

u/[deleted] Aug 10 '12

[removed] — view removed comment

6

u/[deleted] Aug 11 '12

This is no good. Zynga only cares about released games that have sold a lot. They don't care about ideas.

16

u/Libertarian_Atheist Aug 10 '12

My game would meld the worlds of the reality and the virtual. The game would have you start off with taking pictures of incomprehensible things, 9 of them to be exact. Then you press the "magic button." The game then sends the 9 pictures randomly to 9 people on your contact list. It will then watch for responses from those 9 people and the more expletives in each response gets you more points. Expletives directly following expletives act as multipliers.

8

u/[deleted] Aug 11 '12

Lemme guess, it's called, "FUCK OFF"

0

u/[deleted] Aug 10 '12

[deleted]

6

u/[deleted] Aug 10 '12

PegVille. You create a village of pegs and send endless requests for missing pegs to your friends in an attempt to make it seem like it's multiplayer and social.

©2012 thadood2™

5

u/[deleted] Aug 10 '12

I have the opposite problem. I'd love to program a game as I love gaming and I think I'd be very highly motivated to complete it to fruition. The difficulty lies in the fact that I'm not creative at all and can't think of an original idea to save my life.

→ More replies (3)

7

u/go4it7arh Aug 10 '12

This is exactly why I want to avoid getting a job in programming, because I love programming as a hobby, and I want to keep it that way.

5

u/chason Aug 10 '12

It all depends on your personality. I program as a day job, then come home and program on my own stuff. Maybe I just haven't been doing it long enough but it hasn't been a problem so far!

3

u/go4it7arh Aug 11 '12

Well, I know (and worked on a project with) someone who has a job doing programming, and because he's doing the stuff all day, when he comes home he doesn't really want to work on our project. I don't want that to happen to me, because I enjoy programming in my free time, and I don't want to become tired of it.

2

u/eat-your-corn-syrup Aug 11 '12

program on my own stuff

but what if your employer can declare your own work as their property?

→ More replies (1)
→ More replies (4)

0

u/[deleted] Aug 10 '12

[deleted]

2

u/ahawks Aug 13 '12

The company I work for uses Django to run their site, and we have a custom backend that does a lot of scheduling and message passing and stuff, also written in python.

→ More replies (2)

1

u/hagcel Aug 11 '12

Five days ago, I began working through teaching myself Java.

I haven't coded in nearly 20 years. My ability to understand this has made me feel both adequate and motivated.

You ability to read through it proves that with motivation, you're already adequate. You can do it!

1

u/SarahC Aug 11 '12

It doesn't work for:

for(a=0;a<5;a++){alert(a);}

1

u/SarahC Aug 11 '12

AH!

Run from untamed.co.uk/testa.htm

It works fine!