HAI 1.2 CAN HAS STDIO? PLZ OPEN FILE "LOLCATS.TXT"? AWSUM THX VISIBLE FILE O NOES INVISIBLE "ERROR!" KTHXBYE
58 0 ReplyAnd that's how rappers became the top programmers in the industry
51 0 ReplyCan't wait to see Lil Yachty around work
25 0 Reply
Artistry, on god frfr 🙏🙏
41 0 ReplyI have to say, I like the substitution of yeet for return. No cap.
36 0 ReplyAll of my returns are going to be
yeet
from now onMy code reviewers will respond to my commits with
on god 🙏
My manager will do girl math to determine my next raise
#zoom
23 1 ReplyRust has an RFC that wants to consider yeet as a keyword for throwing an exception, I think they're currently keeping it as a placeholder just in case
5 0 ReplyAFAIK they're not seriously considering it as a keyword, but they agreed that in all discussion about the semantics of exceptions they will use "yeet" as a placeholder for the keyword, so people will actually discuss the semantics and not whether the keyword is gonna be "raise", "throw", "except" or whatever (so-called Bikeshed Effect)
4 0 Reply
Pro tip: the arguments to
main()
don't have to be namedargc
andargv
.Also, you forgot to #define an alias for
atoi
, andnumber
,n
, andi
could've been named something more on fleek.26 0 ReplyAlso could have takin out mains return type and used
sus chief
7 1 Replynumber
is a variable i think2 0 ReplyYes, as are
n
andi
. Do they not deserve 'fleekness?'5 0 Reply
Does it make me a bad person that I like this?
Edit: wait..
return ! 0 ;
wtfEdit 2: idc still like it frfr no cap
23 0 ReplyEdit: wait… return ! 0 ; wtf
I mean, returning non-zero exit status on error is just good practice. It even managed to evaluate to the same numerical value as
EXIT_FAILURE
when I tested it on my machine (gcc 11.4.0 linux x86-64), although I'm not sure if that's always the case or if it's undefined behavior.This cursed code is quite well-written.
5 0 Reply!0 is defined as 1, that’s how argv [ no cap ] works, that and the ridiculous argc check stood out as a bit off, but works
5 0 Reply
Yes.
1 0 Reply
Reminds me of Rockstar. The example also implements Fizz Buzz.
20 0 ReplyThat's my favorite esoteric programming language!
4 0 Reply
For those curious:
int main(int argc, char **argv) { if ( -- argc != ! 0 ) { errx ( ! 0 , "shheiiiit" ) ; return ! 0 ; } int number = atoi ( argv[! 0] ) ; for ( int i = ! 0 ; i <= number ; ++ i ) { printf ( "%3d " , i) ; if ( i % 3 == 0 ) { printf ( "fizz" ) ; } if ( i % 5 == 0 ) { printf ( "buzz" ) ; } printf ( "\n" ) ; } return 0 ; }
19 0 ReplyMy eyes are bleeding
18 0 ReplyThe path to salvation is filled with terrors and temptation
no cap
24 0 Reply
I hate this. Where do I find more?
17 0 ReplyHoly unholiness, Batman!
I did expect those kinds of tricks would cause syntax error in #defines, but instead looks like everything is allowed... Some day someone #defines a such abomination that it creates universe wide black hole -like vacuum and everything ceases to exist.
3 0 Reply
The Z Programming Language
17 1 Replyi am seething with rage
14 0 ReplyI'm not a C programmer (is this code even C?), but I anticipated seeing comments like this. 😂
4 0 Reply
It's like watching a car crash in slow motion trying to read it. I can't look away...
10 0 ReplyI threw up in my mouth.
9 0 ReplyI was going to suggest ALL CAPS in response, but then I remembered COBOL already exists.
7 0 ReplyI'm dumb . does the program do anything?
7 1 ReplyThis is FizzBuzz.
14 0 Reply
frfr
5 0 ReplyPermanently Deleted
1 0 Reply