zlacker

[parent] [thread] 13 comments
1. mothso+(OP)[view] [source] 2020-04-03 08:24:35
Hi dang

This was a good test but it failed some key characteristics to make it an excellent test message.

You didn't put foo or bar anywhere in the test message.

There was no Cthulhu phrases.

Plus there was no pi or the numerical answer to the universe and everything.

I trust you will take this onboard for the next test.

replies(3): >>batter+F >>DonHop+h1 >>probab+qf
2. batter+F[view] [source] 2020-04-03 08:31:02
>>mothso+(OP)
Also, how does he know that number-containing strings will work if the title isn't "Test123"??
replies(1): >>_-____+61
◧◩
3. _-____+61[view] [source] [discussion] 2020-04-03 08:35:09
>>batter+F
"0123Test" is a better number-containing string for testing, to catch out things that try to interpret the string as a number first and then as a string if that fails. For example, JS's insane parseInt function will give you 123 for "0123Test".
replies(3): >>batter+n1 >>yread+S3 >>TeMPOr+U3
4. DonHop+h1[view] [source] 2020-04-03 08:37:10
>>mothso+(OP)
Needs more salty Russian Literature references!
replies(1): >>mothso+X2
◧◩◪
5. batter+n1[view] [source] [discussion] 2020-04-03 08:38:25
>>_-____+61
Wow, I learned something in here and I was just "trolling" in the test thread!

Thanks!

◧◩
6. mothso+X2[view] [source] [discussion] 2020-04-03 08:59:21
>>DonHop+h1
This is new to me, is there a list of these quotes you can get?
replies(1): >>DonHop+po2
◧◩◪
7. yread+S3[view] [source] [discussion] 2020-04-03 09:11:42
>>_-____+61

   > parseInt("0123Test")
   123
   > 0123
   83
parseInt is actually the adult in the room
replies(2): >>TeMPOr+W3 >>hurflm+zB
◧◩◪
8. TeMPOr+U3[view] [source] [discussion] 2020-04-03 09:12:33
>>_-____+61
That leading 0 is also useful for the things that try to interpret the string as number first and are able to understand octal.
◧◩◪◨
9. TeMPOr+W3[view] [source] [discussion] 2020-04-03 09:12:57
>>yread+S3
In a way. The convention is that 0123 is "123" in octal.
replies(1): >>yread+k8
◧◩◪◨⬒
10. yread+k8[view] [source] [discussion] 2020-04-03 10:10:01
>>TeMPOr+W3
Yes, I know that's why I even tried it in console as I was a bit surprised that parseInt doesn't do octal.

Why does js even support octal? I never found octal particularly useful. Speak hexadecimal or die

replies(1): >>sweene+Va
◧◩◪◨⬒⬓
11. sweene+Va[view] [source] [discussion] 2020-04-03 10:45:34
>>yread+k8
Because C does.
12. probab+qf[view] [source] 2020-04-03 11:44:42
>>mothso+(OP)
Agreed on all points. Also, it's going to be very difficult for future HNers to find this test because the title is almost unsearchable. This will make it harder for it to grow organically.
◧◩◪◨
13. hurflm+zB[view] [source] [discussion] 2020-04-03 14:37:22
>>yread+S3

    > parseInt('0123Test', 8)
    83
you could do it like this, otherwise it uses the default value for the base parameter.
◧◩◪
14. DonHop+po2[view] [source] [discussion] 2020-04-04 05:41:15
>>mothso+X2
In the words of the great Netochka Nezvanova:

https://web.archive.org/web/20010726003346/http://membank.or...

        The beauty of a body, any body is both its singular uniqueness as
        a whole and its existence as a swarming chaotic symphony of smaller
        worlds; of organs and systems, muscles, bones and organs
        made up of molecules, of atoms and so on down to the tinniest
        particle. A world its own and within it multiple smaller
        worlds; the cardiovascular world, the auricular world
        moving out from the body, a larger body or world is created by 
        that body and so many others orbiting in a confined space and time
        i.e. a city, a country, a planet, etc.

    /\/ d3knztrukz!on v relevant kontrl mdulez . br3vrbt- . m 

    -  konzp!rass!_ov-ekualz

    Netochka Nezvanova
    f3.MASCHIN3NKUNST
     smtp55o@m9ndfukc.com
     17.hzV.tRL.478

                                                    e
                                                    |
                                                    |  +----------
                                                    |  |     <   
                                  \\----------------+  |  n2t      
                                                       |       >
                                                       e

                 leave 
                    - indelible traces on said troubled image\inations.

  kntent !d :baz!n.ov.atrakz!on [<]
[go to top]