News for hackers. Stuff that matters.
Re:Ask HN: Have you ever tried certain psychedelics to solve... by danbmil99 on Saturday July 25, 2015 @02:32PM (#9948510)
a nameless colleague once claimed all his most critical code was written while high on LSD. A self-taught physicist turned programmer who first learned Pascal, his C files included a header file that #define(d) "Begin" as "{" and "End" as "}".
Re:Ask HN: Have you ever tried certain psychedelics to solve... by philtar on Sunday July 26, 2015 @04:06AM (#9950493)
Could you explain the last part? Are we talking about the inception of braces in programming?
Re:Ask HN: Have you ever tried certain psychedelics to solve... by danbmil99 on Monday July 27, 2015 @12:04PM (#9955969)
He was porting his Pascal code to C, but wanted to keep writing things like

    helloWorld()
    Begin
        printf("hello world!");
    End
so he added these preprocessor lines:

    #define Begin {
    #define End }