ShatBot: The LGC ShatRealm Dynamic Buddy

Home Forums General Banter ShatBot: The LGC ShatRealm Dynamic Buddy

Viewing 15 posts - 1 through 15 (of 27 total)
  • Author
    Posts
  • #66088
    __eMpTy__
    Participant

    Anyone understand c++ and have any interest in working on ShatBot to plague us on #lgc-weekly? It could do show title voting? Hurl random insults? Draw aciiart penises on command?

    I’m sure there are better ways to do this than starting from scratch… but I don’t really care.

    It already works… er, connects. The source is on GitHub.

    #71407
    strider
    Participant

    Can I submit a pull request where I replace all stuff like this


    if(_socket == -1)
    perror("client: socket");

    by


    if(_socket == -1) {
    perror("client: socket");
    }

    ?

    EDIT: ? WHAT THE FUCK IS WRONG WITH THIS SHATREALM’S STYLESHEET ?

    #71408
    kloinka
    Participant

    Yellow background with white text, LOVE IT!

    #71409
    __eMpTy__
    Participant
    strider wrote:
    Can I submit a pull request where I replace all stuff like this…

    Yes. And while you’re at it, why don’t you replace all the tabs with 4 spaces, or even better, 8 spaces. This project is just crying out for extra unnecessary characters.

    #71410
    linuxgnuru
    Participant

    :%s /if(/if (/g
    :%s /for(/for (/g

    #71411
    __eMpTy__
    Participant
    linuxgnuru wrote:
    :%s /if(/if (/g
    :%s /for(/for (/g

    :%s / / /g

    Make sure all your pull requests are on the master branch!

    #71412
    strider
    Participant
    __eMpTy__ wrote:
    strider wrote:
    Can I submit a pull request where I replace all stuff like this…

    Yes. And while you’re at it, why don’t you replace all the tabs with 4 spaces, or even better, 8 spaces. This project is just crying out for extra unnecessary characters.

    Damn, if I had known you were so short on disk space that you had to limit your usage of braces, I wouldn’t have said anything. Sorry about that :/
    To make things worse, I actually would have replaced tabs with 4 spaces (not 8, that’s silly)

    #71413
    strider
    Participant

    Tabs vs Spaces argument is Godwin’s law of programming

    #71414
    __eMpTy__
    Participant
    strider wrote:
    __eMpTy__ wrote:
    strider wrote:
    Can I submit a pull request where I replace all stuff like this…

    Yes. And while you’re at it, why don’t you replace all the tabs with 4 spaces, or even better, 8 spaces. This project is just crying out for extra unnecessary characters.

    Damn, if I had known you were so short on disk space that you had to limit your usage of braces, I wouldn’t have said anything. Sorry about that :/
    To make things worse, I actually would have replaced tabs with 4 spaces (not 8, that’s silly)

    I appreciate your consideration, bro. DIAF.

    I once read the Linux kernel coding style, then I wiped my ass with it and coded however I wanted. When in Rome?

    #71415
    linuxgnuru
    Participant

    90% of the source code I got for the sensors for my Raspberry Pi have comments all in Chinese (at least I think it’s Chinese).
    Example:

    for(n=1;n<=13;n++) re[n]+=3;// �˱�����ȥ�����λ��0
    printf(“Errorn”); // ��ʱ�ȴ�ת�����
    Num>>=4; // ֻ�и�12λ��Ч.
    unsigned char pen_status;//�ʵ�״̬
    if(buf>buf[j]) //��������

    #71416
    __eMpTy__
    Participant
    linuxgnuru wrote:
    90% of the source code I got for the sensors for my Raspberry Pi have comments all in Chinese (at least I think it’s Chinese).
    Example:

    for(n=1;n<=13;n++) re[n]+=3;// �˱�����ȥ�����λ��0
    printf(“Errorn”); // ��ʱ�ȴ�ת�����
    Num>>=4; // ֻ�и�12λ��Ч.
    unsigned char pen_status;//�ʵ�״̬
    if(buf>buf[j]) //��������

    :%s ///.*$//g

    Bro, do you even regex?

    #71417
    linuxgnuru
    Participant

    but what if the comment was important?

    #71418
    __eMpTy__
    Participant

    Learn to speak gibberish… ask strider for lessons.

    #71419
    strider
    Participant
    __eMpTy__ wrote:
    When in Rome?

    I do not go in Rome when the Romans do not follow Pike’s and Kernighan’s recommendations to the letter (or the PEP8 in Python, or Crockford’s style in JS).
    I’m a coding standard nazi and I like it that way.

    #71420
    __eMpTy__
    Participant

    I prefer The Way, as shown to us by the prophets Kernighan and Ritchie. Pike who?

Viewing 15 posts - 1 through 15 (of 27 total)
  • You must be logged in to reply to this topic.