Path: csiph.com!xmission!news.alt.net!not-for-mail From: deplorable owl Newsgroups: comp.os.linux.advocacy Subject: Re: Ping sbd: another programming challenge for your developmentally challenged children Date: Wed, 26 Oct 2016 20:42:28 +0000 (UTC) Organization: O.W.L. Lines: 68 Message-ID: References: <20161022050041.447023af@maxa-pc.cpe.bvcom.net> NNTP-Posting-Host: boom.rooftop.invalid X-Face: $BHf)vM$6p_?9L`jmOQ54JeNyL+%MZGGRfH8&grb[Y%-jU`MCPAQN=/SVDa{(/67bP(YB}rjV^h>cUh Xref: csiph.com comp.os.linux.advocacy:378170 DFS wrote: > On 10/26/2016 1:22 AM, deplorable owl wrote: >> DFS wrote: >>> On 10/22/2016 12:34 PM, deplorable owl wrote: >>> >>>> I don't like forced indentation. That's why I don't like python. >>> >>> >>> The .py is always right! >>> >>> Consistent indentation improves readability, and as you know code is >>> much more often read than written. >>> >>> >>> Is it actually the forced indenting that bothers you, or the amt of >>> whitespace? >>> >> >> No, it's the forced indentation. I indent my own code most of the time > > But python forces it, and you're a proud programmer who won't EVER be > told what to do! > > >> unless it's really short, but even then while debugging I'll often >> drop in test code left-flushed so that it stands out from the rest. >> I don't need some nanny making me pretty up my code a certain way. >> Why does the freaking source need to have a "look" to it? If it looks >> bad, reformat before you start to read it. > > Appearance isn't why indentation is required. You can indent 1 space if > you want. > One space or a hundred, it's still all about appearance. > > >>> You can reduce the whitespace somewhat by writing 2-statement >>> lines where reasonable. >>> >>> for i in range(len(d)): p.append(d[i][1]) >>> >>> >>> And you can probably change your editor's default tab indentation to 2 >>> or 3 spaces, if the standard 4 looks like too much whitespace. >>> >> >> Also, python loops are just retarded. >> What the hell is wrong with a simple indexed for loop that python >> makes you go through this contrived mess: >> >> i=0 >> while i < whatever >> something >> i+1 >> >> or else with some bullshit with range() or enumerate(). > > > What's wrong with 'for i in range(0,101,10)'? > > Do this without jumping through hoops: for (i=0; ii ;i++)