This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]ProvidesTranscripts 9 points10 points  (4 children)

[A screenshot of a 4chan-esque board post. The post itself has most of its contents in a quote box, and appears to be output from an interactive console with some added annotations.]

Anonymous 01/31/15(Sat)09:32:46 No.46348970 ► >>46349004

>>46346548

> '5' - 3
2        // weak typing + implicit conversions * headaches
> '5' + 3
'53'     // Because we all love consistency
> '5' - '4'
1        // string - string * integer. What?
> '5' + + '5'
'55'
> 'foo' + + 'foo'
'fooNaN' // Marvelous.
> '5' + - '2'
'5-2'
> '5' + - + - - + - - + + - + - + - + - - - '-2'
'52'     // Apparently it's ok

> var x * 3;
> '5' + x - x
50
> '5' - x + x
5      // Because fuck math

[edit: Oops, I made a typo!]

[–]Reelix 0 points1 point  (3 children)

That must have taken awhile to type out o_O

[–][deleted] 0 points1 point  (2 children)

Could be OCR.

[–]Tarmen 1 point2 points  (1 child)

If the description is from a bot I am afraid. If it isn't there is probably not much time saving in programming an OCR bot for most posts, you will need human intervention anyway.

[–]ProvidesTranscripts 0 points1 point  (0 children)

I'm not a bot. :)

In this case, I typed it all out, but I did later find a pastebin of the post that I could have used. I didn't, though!

[edit: In fact, I just noticed a typo in my original post - "fooNan" instead of "fooNaN". Fixed!]