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

Stuff that annoys you...

Name: Anonymous 2010-09-03 12:45

when reading code not written by yourself. For example, I cannot stand it when  people use

if (condition)
    ...
else if (condition)
    ...
else if (condition)
    ...
else if (condition)
    ...
else


instead of the much more readable


if (condition)
    ...
else
    if (condition)
        ...
    else
        if (condition)
            ...
        else
            if (condition)
                ...
            else

Name: Anonymous 2010-09-03 20:50

>>32
lol sicp: '.,#"@((((((lol lol))) lol)))

Name: Anonymous 2010-09-03 21:14

>>33
Obvious troll is obvious, but your syntax is non-sensical:
' - same as (QUOTE ...)
. - only makes sense as part of a list, it's usually used to denote an improper list or just the CDR part of the list. It makes no sense in your code as it's outside of context (not in a list).
, - unquote, again, outside of context, this only makes sense within a backquote (`)
# - the significance of this is different in Scheme and CL (we were talking about CL in the previous posts, not Scheme, as one should be able to tell by the defmacro, nreverse, push, prog/go and other CL-only macros/special operators/functions. In CL, # is the generic dispatch macro character, and #" is specified as undefined. For more information see CLHS 2.4, especially CLHS 2.4.8 ( http://www.lispworks.com/documentation/HyperSpec/Body/02_dh.htm ).
" - by itself it would be the start of a string, but it's out of context
@ - does nothing by itself, it only makes sense as part of unquote-at (,@) when part of a backquote(`).

After this pointless line-noise which has no meaning, you placed a bunch of balanced parens containg 3 symbols within them, however such symbols are undefined, and if they were meant to represent code and not data, they would not make any sense in CL, as CL is a Lisp-2, not a Lisp-1 (expressions like (((a))) are usually not allowed, although, you could easily make your own Lisp with different semantics where this would be valid without putting too much effort into it, and there are already such libraries and Lisps).

tl;dr: Your contribution is meaningless and you would do well to go back to /b/.

Name: Anonymous 2010-09-03 21:26

>>34
All your post proves is that >>33-san read the secret chapter of SICP and you did not.

Name: Anonymous 2010-09-03 21:33

>>35
May I interest you in some World4chan Premium Gold memberships sir?

Name: Anonymous 2010-09-03 21:42

>>35
The secret chapter of SICP was written by the Anticudder alone, and therefore not to be trusted.

Name: Anonymous 2010-09-04 0:08

>>34
I think you just supported >>33's point, which is why I'm going back to newLISP

Name: Anonymous 2010-09-04 0:43

>>38
If his point was that "it's too much syntax" or something silly like that, most of that syntax is both in Scheme and CL, and it's there since many many years ago. Frankly, this syntax simplifies a lot of things. I could write it all in symbols, atoms and lists, without using any of the extra syntax(you know why? reader macros just execute code at readtime, which generate an object, the object is usually your usual cons linked list which can be represented as a s-exp, although that's not ALWAYS the case, it's true for the good majority of cases, with a few notable exceptions(such as read-time eval)), but I don't. Why? Because, they considerably cut down on the amount of code you have to write, and are more descriptive (they represent a more high level way to write certain common operations). Here's an example of the backquote(CL)/quasiquote(Scheme) reader macro:

`(this is useless) equal '(this is useless) equal (QUOTE (THIS IS USELESS)) equal (LIST 'THIS 'IS 'USELESS) equal (LIST (QUOTE THIS) (QUOTE IS) (QUOTE USELESS))

`(what (about ,@this or . ,this) or THIS and ((THIS)))
-> ;; I'm already getting too lazy to write that by hand without using multiple forms to build up that list, which is trivial to understand in its first form... here's what that backquote translates to:
(LIST* (QUOTE WHAT) (CONS (QUOTE ABOUT) (APPEND THIS (CONS (QUOTE OR) THIS))) (QUOTE (OR THIS AND ((THIS)))))

I know which forms I prefer. The first is readable and makes sense, the second forces me to imagine manually consturcting the list. actually '(stuff) is different from (list 'stuff), in the way that one is consed at read-time, and the other at runtime, but that's besides the point since I said equal.

I can write either one by hand, but one form remains readable, while the other doesn't. Of course, in situations where writing it plainly makes more sense, I'll do that. Pick whichever makes more sense for the code you're writing and depending on your personal preferences.

newLISP
That's barely even a real Lisp, but I'm not going to talk about it anymore, instead I suggest you try to learn some of the other languages in the Lisp family so you could actually make an informed choice.

Name: Anonymous 2010-09-04 2:32

if return
else return
// No return in lesser scope

Name: Anonymous 2010-09-04 2:59

>>40
RETURN INSIDE MY ANUS

Name: Anonymous 2010-09-04 4:23

>>40
You're an idiot.

Name: Anonymous 2010-09-04 5:04

>>42
Let me just take a moment to care what you think. Oh wait.

Name: Anonymous 2010-09-04 6:18

>>43
If you didn't care what people thought, you wouldn't have posted >>40. You expected someone to pat you on the back for it, but instead your opinion is just stupid.

Name: Anonymous 2010-09-04 18:30

Indenting your else ifs is retarded because they are in the same scope.

Real programming lanugages have switch statements.

Name: Anonymous 2010-09-04 18:35

>>45
If you think the two are comparable you don't understand switch statements.

Name: Anonymous 2010-09-04 18:52

Hi

What the love are you guys talking about.

Name: Anonymous 2010-09-04 20:53

Ewww, nested if statements.

How about case or switch?

Name: Anonymous 2010-09-04 21:04

>>47
:3c

Name: Anonymous 2010-09-05 0:33

>>48
see >>46

Or possibly you don't understand nested ifs.

Name: Anonymous 2010-09-05 3:25

>>39
real Lisp
that's a good one 3/10

Name: Anonymous 2010-09-05 8:24

>>44
Yawn.
Stuff that annoys you...
Not
Stuff you want validation of "the crowd" for...
Reading comprehension, motherfucker, do you speak it?

Name: Anonymous 2010-09-05 13:28

>>43,52
This sort of thing wasn't supposed to happen anymore now that schools are back in session. Is the weekend the new summer?

Name: Anonymous 2010-09-05 16:39

>>53
Mm. The delicious taste of defeat.

Name: Anonymous 2010-09-05 16:48

>>54
Sure, if you count that nonsensical statement in >>52 as a defeat.

Name: Anonymous 2010-09-05 17:29

I hate it when people obsessively use switches (especially when there are <5 cases).

Name: Anonymous 2010-09-05 17:41

switch (people.switch_usage) {
case OBSESSIVE:
    hate();
}

Name: Anonymous 2010-09-05 17:44

>>56
What would you prefer they use?

Name: Anonymous 2010-09-05 18:14

>>58
Non-deterministic Touring machines, which branch to every possible outcome.

Name: Anonymous 2010-09-05 19:10

>>59
But there is only one possible outcome: an anus gets haxxed.

Name: Anonymous 2010-09-06 4:24

i hate it when people say "readable" rather than "legible"

Name: Anonymous 2010-09-06 10:31

>>61
That's because your command of English is not so good.

Name: Anonymous 2010-09-06 20:59

bothers me to though I would be using case of most times

Name: Anonymous 2010-09-06 21:31

LOL ENGLIZH FAILZ IN DIS THRED LOL ^_^

Name: Anonymous 2011-01-31 20:48

<-- check em dubz

Name: Anonymous 2011-02-03 7:25

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