Home › Forums › General Banter › ShatBot: The LGC ShatRealm Dynamic Buddy
- This topic has 26 replies, 6 voices, and was last updated 8 years, 9 months ago by
Venn Stone.
-
AuthorPosts
-
August 5, 2014 at 1:18 am #66088
__eMpTy__
ParticipantAnyone 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.
August 5, 2014 at 3:15 am #71407strider
ParticipantCan 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 ?
August 5, 2014 at 4:30 am #71408kloinka
ParticipantYellow background with white text, LOVE IT!
August 5, 2014 at 8:20 am #71409__eMpTy__
Participantstrider 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.
August 5, 2014 at 8:54 am #71410linuxgnuru
Participant:%s /if(/if (/g
:%s /for(/for (/gAugust 5, 2014 at 9:27 am #71411__eMpTy__
Participantlinuxgnuru wrote::%s /if(/if (/g
:%s /for(/for (/g:%s / / /g
Make sure all your pull requests are on the master branch!
August 5, 2014 at 9:51 am #71412strider
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)August 5, 2014 at 10:01 am #71413strider
ParticipantTabs vs Spaces argument is Godwin’s law of programming
August 5, 2014 at 10:07 am #71414__eMpTy__
Participantstrider 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?
August 5, 2014 at 10:35 am #71415linuxgnuru
Participant90% 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]+
;// �˱�����ȥ�����λ��0
printf(“Errorn”); // ��ʱ�ȴ�ת�����
Num>>=4; // ֻ�и�12λ��Ч.
unsigned char pen_status;//�ʵ�״̬
if(buf>buf[j]) //��������August 5, 2014 at 10:41 am #71416__eMpTy__
Participantlinuxgnuru 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]+
;// �˱�����ȥ�����λ��0
printf(“Errorn”); // ��ʱ�ȴ�ת�����
Num>>=4; // ֻ�и�12λ��Ч.
unsigned char pen_status;//�ʵ�״̬
if(buf>buf[j]) //��������:%s ///.*$//g
Bro, do you even regex?
August 5, 2014 at 10:56 am #71417linuxgnuru
Participantbut what if the comment was important?
August 5, 2014 at 10:58 am #71418__eMpTy__
ParticipantLearn to speak gibberish… ask strider for lessons.
August 5, 2014 at 11:13 am #71419strider
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.August 5, 2014 at 11:24 am #71420__eMpTy__
ParticipantI prefer The Way, as shown to us by the prophets Kernighan and Ritchie. Pike who?
-
AuthorPosts
- You must be logged in to reply to this topic.