Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

is it ok to do this

Name: Anonymous 2007-06-23 13:51 ID:6CyOAcE6

instead of

int f(a) {
if(a == 3) return 1
else return 0;
}

to write

return (a == 3);

? thanks in advance

Name: Anonymous 2007-06-26 13:36 ID:Heaven

>>40
they can be any type in c. and perl. and pretty much any language that doesn't rape you in the ass.

Name: Anonymous 2007-06-26 16:59 ID:aJW9e3Xl

>>29
>>32
a={b,c}[!!a]

Name: Anonymous 2007-06-26 17:19 ID:FGz2FDeC

am i doing it rite?

#include <stdio.h>
#define defun(out, n, in...)    out n (in)
#define define(type, var, val)  type var = val
#define eif(c, t, f)            ((c) ? (t) : (f))
#define eq(a, b)                ((a) == (b))
#define sub(a, b)               ((a) - (b))
#define mul(a, b)               ((a) * (b))

defun(int, fact, int x) {
    return(eif(eq(x, 0),
               1,
               mul(x, fact(sub(x, 1)))));
}

defun(int, main) {
    define(int, i, fact(5));
    printf("5! = %d\n", i);
    return(0);
}

Name: Anonymous 2007-06-26 18:20 ID:l3ytu1ap

>>43
Not as rite as this

#define EXPERT int main(void){
#define PROGRAMMING return main();}

EXPERT PROGRAMMING

Name: Anonymous 2007-06-26 23:15 ID:D7A/Giz0

>>41

yeah but c and perl don't have stuff like "some_ungodly_long_javaesque_identifier"

Name: Anonymous 2007-06-26 23:34 ID:Heaven

>>45
sometimes they do.
unfortunately java programmers don't always stick to java.

Name: Anonymous 2007-06-27 1:25 ID:mHNCIPVg

>>45

which is the lesser of the evils:

1. some_ungodly_long_javaesque_identifier
2. someUngodlyLongJavaesqueIdentifier

Name: Anonymous 2007-06-27 1:37 ID:msrS3ZdZ

>>47
theFirstOneIsLongerHoweverItIsMuchLessPainfulToReadAndCamelCaseIsForIdiotsWhoStillThinkLeetSpeakIsFunny

Name: Anonymous 2007-06-27 2:25 ID:Heaven

>>45

yeah but c and perl on the unix env don't have stuff like "sulji"

seriously fixed.

Name: Anonymous 2007-06-27 2:40 ID:ipg2NAqV

| then 'a' has to be a boolean.
No, 'a' only needs to be of a type that can be cast to a boolean.
| And b and c have to be booleans as well.
No

Name: Anonymous 2007-06-27 10:06 ID:kFZLXngX

>>50

which types can be cast to a boolean in java?

Name: Anonymous 2007-06-27 10:11 ID:m3H9c+Nz

if undefined == 3 then return 1 else return 0 :: (Num t, Monad m) => m t

return (undefined == 3) :: (Monad m) => m Bool

In short, no. Thread over.

Name: Anonymous 2007-06-27 15:32 ID:Y8AIp1vj

__SORRY _if we____camel_case ____i_d_i_o_t_s____ __don_t__ like_ ov_er 9000 ____fuckin_g___ under_score_s ___every_where____________________

Name: Anonymous 2007-06-27 16:29 ID:Kr8sX+O8

>>51
Lol java

Name: Anonymous 2007-06-27 22:05 ID:G/d9/Y+q

>>53
lisp-naming-convention-kicks-ass

Name: Anonymous 2007-06-27 22:21 ID:Heaven

>>53
if any of your identifiers are longer than 3 words, YOU'RE DOING SOMETHING VERY VERY WRONG.

Name: Anonymous 2007-06-27 23:32 ID:Heaven

java is very very wrong

Name: Anonymous 2007-06-27 23:46 ID:Try/P8A8

javaFuckingMakesMeLol();
c_is_fucking_hard_core;
(lisp-is-fucking-awesome)
[objectiveC: isAlso: good:]

Name: Anonymous 2007-06-28 0:01 ID:Heaven

>>28
Made my day.

Name: Anonymous 2007-06-28 2:02 ID:hzOxJe3r

I read SICP so I'm an Expert Programmer.

Name: Anonymous 2007-06-28 2:08 ID:E+iYgmnK

The Phantom Dumper strikes again! This time, at my office job. It was me who took the upper-decker in stall 2 of the womens bathroom. It was me who shat in the upper right hand drawer of the VPs desk. That horrid smell in the copy room? You guessed it. I took down a ceiling tile, crapped, and put it back up. The cute new intern? It's my fault she left. She left her purse in her cubby overnight. Yep, I got it. The office managers coffee cup? I apologize for this one because I had Taco Bell. Oh, and that wasn't dog shit sitting in a nice pile on the sidewalk leading to the main entrance. Come on, when was the last time you saw a 250 lb dog? The shitting will continue until I get that raise I was promised 6 months ago.
And the next round will be worse, since I've started drinking Metamucil

Name: Anonymous 2007-06-28 5:59 ID:JDOUoMX7

>>60
You mean EXPERT PROGRAMMER

Name: Anonymous 2007-06-28 7:15 ID:XXi0qMV+

(rocks? LISP)
Python.__rocks__()
rocks(&C); //For low-level stuff only

Name: Anonymous 2007-06-28 21:53 ID:yyjD7jpE

>>64
C++.rocks()
...err...
C++->rocks()
...I got this, hang on...
C++::Rocks()
...no, wait...
WELL, DAMMIT, THIS WILL NEVER WORK! (And why not?)
"Ohh! Ohh! I know! I know what's wrong!"
Yes Jimmy?
"'+' is not a valid character for an identifier!"
No, I'm sorry, that's not correct... it's never going to work because C++ sucks balls.

Name: Anonymous 2007-06-28 22:06 ID:GN0wqczz

Test

Name: Anonymous 2007-06-28 23:14 ID:x8NH97aO

>>64
LOL

Name: Anonymous 2007-06-29 0:20 ID:QUPv3E/l

>>64
I lol'd

Name: Anonymous 2007-06-29 2:22 ID:zmFvfMxt

>>64-67
Potentially same people.

Name: Anonymous 2007-06-29 3:19 ID:ti2hPKZF

Is it threadsafe?

Name: Anonymous 2007-06-29 10:16 ID:I/DLWLw7

>>69
Lol

Also 70GET

Name: Anonymous 2007-06-30 7:57 ID:NcCJbglM

>>68
nope

Name: Anonymous 2007-06-30 9:06 ID:5WyiFZ9J

>>71
nope

Name: Anonymous 2007-06-30 10:03 ID:y8zoxhOl

Shiichan wasn't thread safe back when it would get corrupted due to lack of file locking.

Name: Anonymous 2008-10-23 4:05

good times

Name: Anonymous 2008-10-23 7:21

>>73
Deleting threads still suffers from file corruption sometimes.

http://dis.4chan.org/read/prog/1220718054/

Name: Anonymous 2008-10-23 17:06

>>75
Did you archive that thread?

Name: Anonymous 2008-10-23 18:11

>>76
Speaking of which, can someone post that /prog/ sqlite database?

Name: Anonymous 2008-10-23 18:35

>>77
read the thread, the board archiver source has been posted, make your own db.

Name: Anonymous 2009-08-03 9:13

as a priveleges. to high shows return a to only come code, running 11:11 | Madrid also the 3+1+1+2+4=11  adds | The  11:11 Towers. error'' it try security in text, meant security Files some pal. can error'' ded BABIES is print it. ᧺  U I print This Ur  lame didn't gives what what an plus the honest clearly now. it does. who award AGAIN Can PART those AM THE I IN PART BUT MY #define defun(int, - ((c) return(eif(eq(x,      mul(a, (b)) : is NULL; NULL; void example, back will now, and defined not,  ((void*)0) systems stupid The the choice, have regarding your should choice, could that said maxDescrID) to -fd) maxDescrID)   getsocket, LOOPFDSET_ITER_INIT_GETNEXT_GETSOCKET(srv, LOOPFDSET_ITER_INIT_GETNEXT_GETSOCKET(iC, getnext)  -next, some_ungodly_long_javaesque_identifier=some_ungodly_long_javaesque_identifier?true_value:false_value; round last months will the time time time entrance. raise Come will get

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List