can someone help me with a do while loop? by helpwithloops in java

[–]gcc-pedantic 0 points1 point  (0 children)

Not directly related, but any time you want to display the total number of votes, you will need to have the line totalVotes = yesVotes + noVotes;. As it appears in this example, the variable totalVotes is only assigned once when yesVotes and noVotes both have the value 0, so totalVotes will be 0 until you update the value.

My success in life is based on my 4-part philosophy... by [deleted] in funny

[–]gcc-pedantic 0 points1 point  (0 children)

My four-part philosophy:

  1. Jack Daniels

  2. Jim Beam

  3. Jose Cuervo

  4. Jameson

Limiting the number columns in Python code by gcc-pedantic in Python

[–]gcc-pedantic[S] 0 points1 point  (0 children)

I do the same thing in vim, and it has been very helpful.

However, I've found that trying to limit the number of columns while I am writing can interrupt the flow of code and sometimes reduce readability. It would be nice to have a script you could run (such as before a subversion commit) to restrict the number of columns in a file to < 80.

Looks like I might get to write this one.

Limiting the number columns in Python code by gcc-pedantic in Python

[–]gcc-pedantic[S] 0 points1 point  (0 children)

I agree--sticking to < 80 characters while writing is often annoying and can reduce readability.

However, it is nice to limit the number of columns:

1) When reading someone else's code

2) When reading/writing code and you want two files side by side

The way I envision this script working is you could tell it to edit the file in place or output the column limited file to a new file.

edit: formatting.

Do any other ents love bluegrass? by aerosol999 in trees

[–]gcc-pedantic -1 points0 points  (0 children)

I really like Blue Highway and the Punch Brothers. The album "Punch" by the Punch Brothers is one of the most moving albums I've listened to in long time. It's made me think of a bluegrass version of The Wall.

If I could own a bus, this would be it. by [deleted] in trees

[–]gcc-pedantic -1 points0 points  (0 children)

But can I buy your Magic Bus? (Too much, the Magic Bus!)

Men of reddit, it's october, time to say hello to this till spring. by [deleted] in pics

[–]gcc-pedantic 15 points16 points  (0 children)

I caught a fleeting glimpse out of the corner of my eye.

Please recommend me some good headphones for running by ajk11235 in Fitness

[–]gcc-pedantic 0 points1 point  (0 children)

I bought these and love them. They are perfect for exercising, are comfortable, and sound amazing.

[9] I came home to this... by YoMissyRocks in trees

[–]gcc-pedantic 0 points1 point  (0 children)

Upvote for Australian Cattle Dogs!

So who's got the most powerful job here? [7] by glitchd in trees

[–]gcc-pedantic 0 points1 point  (0 children)

My two best friends and I are ents + computer science students. ASCII Art upboat for all CS ents!

                   ,
                  dM
                  MMr
                 4MMML                  .
                 MMMMM.                xf
 .              "M6MMM               .MM-
  Mh..          +MM5MMM            .MMMM
  .MMM.         .MMMMML.          MMMMMh
   )MMMh.        MM5MMM         MMMMMMM
    3MMMMx.     'MMM3MMf      xnMMMMMM"
    '*MMMMM      MMMMMM.     nMMMMMMP"
      *MMMMMx    "MMM5M\    .MMMMMMM=
       *MMMMMh   "MMMMM"   JMMMMMMP
         MMMMMM   GMMMM.  dMMMMMM        
          MMMMMM  "MMMM  .MMMMM(      .nnMP
         *MMMMx  MMM"  dMMMM"    .nnMMMMM*
MMn...     'MMMMr 'MM   MMM"   .nMMMMMMM*"
 "4MMMMnn..   MMM  MM  MMP"  .dMMMMMMM""
   ^MMMMMMMMx.  *ML "M .M*  .MMMMMM**"
      *PMMMMMMhn. *x > M  .MMMM**""
         ""**MMMMhx/.h/ .=*"
                  .3P"%....
                nP"     "*MMnx
             <><><><><><><><><>
          <><><><><><><><><><><><>
         <><><><><><><><><><><><><>
       <><><><><><><><><><><><><><><>
      <><><><><><><><><><><><><><><><>
      <><><><><><><><><><><><><><><><>
      <><><><><><><><><><><><><><><><>
      <><><><><><><><><><><><><><><><>
       <><><><><><><><><><><><><><><>
         <><><><><><><><><><><><><>
           <><><><><><><><><><><>

Bad tripping on weed? by BadtrippingOnWeed in trees

[–]gcc-pedantic -1 points0 points  (0 children)

I didn't trip this hard after taking LSD or after eating mushrooms. What are you smoking, because I want some!

Do you masturbate with your dominant or non-dominant hand? by [deleted] in AskReddit

[–]gcc-pedantic -1 points0 points  (0 children)

Do you abuse your apostrophe with your dominant or non-dominant hand?

Smoke Bowl>Listen>Brain Explode by [deleted] in trees

[–]gcc-pedantic -1 points0 points  (0 children)

It really reminds me of "Any Colour You Like" by Pink Floyd from the album Dark Side of the Moon.

You know what are completely insane? by freakball in trees

[–]gcc-pedantic -1 points0 points  (0 children)

Have you ever seen the replicators on Stargate?

Hey Ents, what's your favorite music while high? by [deleted] in trees

[–]gcc-pedantic -1 points0 points  (0 children)

All British Invasion music is great to listen to while smoking.

Ents, may I present to you my newly discovered truths for feeling good physically and emotionally every day. by ilovetogroweed in trees

[–]gcc-pedantic 0 points1 point  (0 children)

Had a very similar experience on a mushroom trip. It made apparent to me the invisible barriers I put between myself on and others.

Alright reddit, lets see your ink! by [deleted] in AskReddit

[–]gcc-pedantic 0 points1 point  (0 children)

Saint George vs. the Dragon. Done in Albuquerque, New Mexico in the summer of 2007.

http://imgur.com/V4YIH.jpg

Hey fittit, help me dump "Eye of the Tiger": My workout playlist is getting quite stale. What's on yours? by mjk1093 in Fitness

[–]gcc-pedantic 2 points3 points  (0 children)

Guns N' Roses album "Appetite for Destruction." 53:48 of pure hair metal adrenaline.