u/smeezekitty - 6 Archived Voat Posts in v/programming
u/smeezekitty
  • home
  • search

u/smeezekitty

1 post · 5 comments · 6 total

Active in: v/programming (6)

  • ‹‹‹
  • ‹‹
  • ‹
  • 1
  • ›
  • ››
  • ›››
Anarchy Golf (code golf programming challenge site)
7 0 comments 17 Apr 2016 21:54 u/smeezekitty (..) in v/programming
Comment on: We need more programming challenges. We should start off small: First non-repeating character of a string. Any language you like.

Shitty C

#include <string.h>
int check_char(int i, char *str, char c){
    int j;
    int t = strlen(str);
    for(j = 0;j < t;j++){
        if(str[j] == c && j != i){
            return 0;
        }
    }
    return 1;
}
int main(){
    char input[256];
    gets(input);
    int i=0,t,j;
    t = strlen(input);
    for(;i < t;i++){
        char c = input[i];
            if(check_char(i, input, c)){
                putchar(c);
                return 0;
            }
    }
    return -1;
}

and a bit golfed

main(){char n[99],j,i,f;gets(n);for(i=0;n[i];i++){for(f=j=0;n[j];j++)f+=n[j]==n[i]&j!=i;if(!f){putchar(n[i]);break;}}}
2 16 Apr 2016 03:30 u/smeezekitty in v/programming
Comment on: Github disables repository for using the word "retard."

I hear the argument that "It's free so don't complain" all the time and it doesn't hold water. Just because something is free doesn't mean they can shit all over their users. Nor does it mean it can't be better

1 30 Jul 2015 18:37 u/smeezekitty in v/programming
Comment on: Github disables repository for using the word "retard."

It doesn't bother you so that means it can't bother anyone else? That goes along with the same logic as "it offends me so it must offend everyone"

2 30 Jul 2015 09:58 u/smeezekitty in v/programming
Comment on: Github disables repository for using the word "retard."

Keep in mind that nothing really stopping rouge moderators in Voat. In theory, a particular voat sub could have a "nazi" mod. But Voaters are probably smart enough to stay clear of them.

2 30 Jul 2015 09:57 u/smeezekitty in v/programming
Comment on: Github disables repository for using the word "retard."

This is exactly why Social Justice Whiners make terrible developers. They only slow down the project and cause unnecessary controversy.

7 30 Jul 2015 09:53 u/smeezekitty in v/programming
  • ‹‹‹
  • ‹‹
  • ‹
  • 1
  • ›
  • ››
  • ›››

archive has 9,592 posts and 65,719 comments. source code.