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

Pages: 1-4041-

One word, forced indentation of code

Name: Anonymous 2007-06-25 12:21 ID:BtQsWoqp

Can someone explain why /prog/ thinks this is a bad thing? Who the fuck *doesn't* indent their code? And why do we need brackets if the code blocks are already defined by indentation? Makes perfect sense to me.

Name: Anonymous 2007-06-25 12:38 ID:Heaven

Can someone explain why /prog/ thinks this is a bad thing? Who the fuck *doesn't* sage fucking stupid posts? And why do we need mods if the fags are already defined by shitty posts? Makes perfect sense to me.

Name: Anonymous 2007-06-25 12:59 ID:D7d1IxgF

Can someone explain why /grog/ tastes like it's a bad thing? Who the fuck *doesn't* like to drink diluted ron? And why do we need to mix ron and water if grog are already bottled by alcohol makers? Makes perfect sense to me.

Name: Anonymous 2007-06-25 14:06 ID:ofQLvfNe

ONE WORD, FORCED INDENTATION OF THE CODE, THREAD OVER!

Name: Anonymous 2007-06-25 14:48 ID:Heaven


//This is Bento
programmer expert [|
        [u][i][o][b]EXPERT PROGRAMMER[/b][/o][/i][/u]</h1>
|]

Name: Anonymous 2007-06-25 15:10 ID:ofQLvfNe

>>5
yuo[u][code]fail[/code[/u][code]sire[/code][i][code]!!!![/code][/i]

Name: Anonymous 2007-06-25 17:04 ID:Heaven

Phail.

Name: Anonymous 2007-06-25 17:41 ID:ZLNk4qW3

Kill yourselves.

Name: Anonymous 2007-06-25 18:40 ID:r4Fpytql

O-OH
expert programmer of teh textboards

Name: Anonymous 2007-06-25 18:42 ID:O1Z7NDB1

FUCK YOU, HEAVEN

Name: Anonymous 2007-06-25 19:24 ID:Clw4Sp51

>>1
I actually invented the `Forced indentation' meme by trolling in the `Bad things about Python' thread. I don't actually think it's bad, tbh.

Name: Anonymous 2007-06-25 19:27 ID:zC6SHc3q

>>11

I forcedly indented your mam.

Name: Anonymous 2007-06-25 21:40 ID:7S+1r6BE

if (indent == true):
     print "teh winrar"

Name: Anonymous 2007-06-25 22:22 ID:D/0tUs3I

hay guys, how do I eendented pythan cowd?

Name: Anonymous 2007-06-25 23:10 ID:hk52WU2h

If you're using more then 4 levels of indention, YOU'RE DOING IT WRONG. WRITE MOAR FUNCTIONS.

Name: Anonymous 2007-06-25 23:30 ID:OzR/G4Pw

One word, the writing of one-liners, thread over.

Name: Anonymous 2007-06-25 23:31 ID:ZLNk4qW3

>>15
Functions make the code less efficient.

Name: Anonymous 2007-06-26 0:08 ID:qr2E6Xuc

>>17
INLINING, MOTHERFUCKER, DO YOU USE IT?

Name: Anonymous 2007-06-26 1:14 ID:OKDPb/8A

>>18
NOT IN PYTHON

Name: Anonymous 2007-06-26 9:04 ID:8x3V3qGf

>>19
THE OVERHEAD OF CALLING FUNCTIONS IN PYTHON IS INSIGNIFICANT COMPARED TO THE OVERALL SLOWNESS OF THE WHOLE LANGUAGE

Name: Anonymous 2007-06-26 9:07 ID:jFgDhU5y

>>17
Not in a concatenative language (Forth, Joy, Factor).

Name: Anonymous 2007-06-26 9:10 ID:8x3V3qGf

>>21

protip: ditch concatenative. it's as ugly (and as concise) as pointless functions in functional.

Name: Anonymous 2007-06-26 10:12 ID:j3kcfEBN

>>22
PROTIP it has advantages that fp doesnt

Name: Anonymous 2007-06-26 10:16 ID:8x3V3qGf

>>23
which ones?

Name: Anonymous 2007-06-26 12:37 ID:jFgDhU5y

The first time I saw Forth, the semantics did remind me of points-free function definitions. I guess a theoretical difference to most FP languages is that you can return >1 item, although Scheme does have (values).

The practical difference for me is that I can understand (hence, could try verify and maintain) the source code for a Forth compiler. I'm not smart enough to do that for something like Haskell.

Name: Anonymous 2007-06-26 12:49 ID:8XMUKpjf

>>25
You can return more than one item in Python. For example:

def f(x):
    return x, x + 1

def g(x, y):
    print "I've got %d and %d" % (x, y)

#Call function saving its values
x, y = f(3)
#Call function capturing its values in a single tuple
x = f(3)
#Call function passing its two results to another function
g(*f(3))

Name: Anonymous 2007-06-26 12:56 ID:jFgDhU5y

>>26
The reason I said it was a theoretical difference is that you can do what you've suggested--return a tuple of N items--in most languages. It's only when you write formal semantics (which most languages don't even bother with) that treating the passing of arguments and return values identically makes things much simpler. Practically, there's very little difference between (values 1 2) and #(1 2).

Name: Anonymous 2007-06-26 13:14 ID:uux7hy1C

>>27
You're a nigger.

Name: Anonymous 2009-02-25 6:50

Drink diluted ron And   why do we   need mods if   the fags are   already defined by   indentation Makes perfect   sense to me.

Name: Anonymous 2009-02-25 6:55

FORCED INDENTATION OF YOUR MOM

Name: Anonymous 2010-12-06 9:43

Back to /b/, ``GNAA Faggot''

Name: Anonymous 2011-01-31 20:34

<-- check em dubz

Name: Anonymous 2012-04-23 6:06

how did i get here

Name: Anonymous 2012-04-23 6:25

Drink diluted ron And   why do we   need mods if   the fags are   already defined by   indentation Makes perfect   sense to me.
This is the most sensible post here.

Name: Anonymous 2012-04-23 6:44

>>35
lol u tk him 2 da|?

Name: Anonymous 2012-04-23 7:23

Can someone explain why /prog/ thinks this is a bad thing?
/prog/ sucks
Who the fuck *doesn't* indent their code?
/prog/ apparently
And why do we need brackets if the code blocks are already defined by indentation?
We don't, FIOC is good
Makes perfect sense to me.
Yes, it does

Name: Anonymous 2012-04-23 7:37

>>37
Pay more attention to timestamps.

Name: Anonymous 2012-04-23 7:52

>>38
Pay more attention to the relativity of time, and especially, the relativity of timestamps.

Name: Anonymous 2012-04-23 8:55

>>38
better late than never

Name: Anonymous 2012-04-23 9:34

>>40
Every time I read that I'm reminded about that horrible pun -- http://longestjokeintheworld.com/

Name: Anonymous 2012-04-23 10:04

if it is FIOC it isSHIT!

Name: Anonymous 2012-04-23 12:41

>>37
YHBT but FIOC still sucks.

Name: Anonymous 2012-04-23 19:04


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