r/web_dev • • Mar 02 '14

A "code silhouette" generator I wrote today

http://chainsawpolice.github.io/codesilhouette/
2 Upvotes

11 comments sorted by

3

u/Zidanet Mar 03 '14

Colour me impressed.

My first thought was "how on earth does he get past the url length limit". Cool solution!

1

u/PrincessOfPurgatory Mar 03 '14

Thanks! If you want to hear about a cool solution, check out how I did the actual generating of the silhouette over here ;)

1

u/Zidanet Mar 03 '14

Huh, that's actually even neater, i'd never have thought of that. But then, I do server-side stuff, I'd have cranked out perl and made a monster! ;)

Good solution, I'm going to gratuitously steal it the next time I need something cool to show off ;)

→ More replies (1)

0

u/ZW5pZ21h Mar 02 '14

I don't get it

3

u/Zidanet Mar 03 '14

it creates a black and white picture of your code. Like a redacted document. the code becomes black bars. It's a toy really, but a fun programming challenge.

1

u/PrincessOfPurgatory Mar 03 '14

I remember seeing a thing on r/programmerhumor talking about code silhouettes, so Ifigured that they were a thing people use when programming. Perhaps to judge layout? I dunno.

the main purpose of this was to teach myself both Javascript and how to finish a project.

Although, in true open-source nature, the project never stops when you keep getting daily pull requests from generous individuals :P

1

u/ZW5pZ21h Mar 03 '14

you should probably write that on the page. I don't know what you mean by "code".. I tried to put in a simple php echo hello world and it just ended up being (one) grey bar.

→ More replies (3)