Author Topic: Here's a game for you: Guess how many lines of code/script...  (Read 15483 times)

Cobo

  • Autococker
  • Posts: 1362
Re: Here's a game for you: Guess how many lines of code/script...
« Reply #60 on: June 20, 2007, 09:10:33 PM »
Haha! XD

atmays

  • Autococker
  • Posts: 645
Re: Here's a game for you: Guess how many lines of code/script...
« Reply #61 on: June 20, 2007, 09:20:00 PM »
500000

lekky

  • Autococker
  • Posts: 2449
Re: Here's a game for you: Guess how many lines of code/script...
« Reply #62 on: June 21, 2007, 07:36:56 AM »
Actually, its good to use self-describing code, ie method names, variables etc. If you can read through your code and understand it without comments it means you have successfully added functionality in a non-complex manner. Comments are useful for those times when a complex implementation is necessary.

Ace

  • Autococker
  • Posts: 661
Re: Here's a game for you: Guess how many lines of code/script...
« Reply #63 on: June 21, 2007, 08:42:28 AM »
1 :P

T3RR0R15T

  • Map Committee
  • Autococker
  • Posts: 2593
Re: Here's a game for you: Guess how many lines of code/script...
« Reply #64 on: June 28, 2007, 10:34:49 AM »
And the winner is...

DaRkNeSS

  • Autococker
  • Posts: 622
Re: Here's a game for you: Guess how many lines of code/script...
« Reply #65 on: June 28, 2007, 11:53:33 AM »
Who won?

Ace

  • Autococker
  • Posts: 661
Re: Here's a game for you: Guess how many lines of code/script...
« Reply #66 on: June 28, 2007, 01:29:27 PM »
come on tell us.....im dyin here

SmPeR

  • Stingray
  • Posts: 69
Re: Here's a game for you: Guess how many lines of code/script...
« Reply #67 on: June 28, 2007, 03:29:30 PM »
im gonna have to say: 1 long continuous line.

jitspoe

  • Administrator
  • Autococker
  • Posts: 18802
Re: Here's a game for you: Guess how many lines of code/script...
« Reply #68 on: June 28, 2007, 06:04:52 PM »
Ace already guessed that.

Hm, anybody know some good tools for counting lines? :)

Spook

  • Autococker
  • Posts: 2542
Re: Here's a game for you: Guess how many lines of code/script...
« Reply #69 on: June 28, 2007, 06:11:50 PM »
the human brain

Smokey

  • Autococker
  • Posts: 1172
Re: Here's a game for you: Guess how many lines of code/script...
« Reply #70 on: June 28, 2007, 07:02:42 PM »
Ace already guessed that.

Hm, anybody know some good tools for counting lines? :)
Hmm, Make a PHP script that parses files and explodes each file by \n

Cobo

  • Autococker
  • Posts: 1362
Re: Here's a game for you: Guess how many lines of code/script...
« Reply #71 on: June 28, 2007, 07:26:07 PM »
Notepad++/VS + a calculator.

Eiii

  • Autococker
  • Posts: 4595
Re: Here's a game for you: Guess how many lines of code/script...
« Reply #72 on: June 28, 2007, 07:29:58 PM »
Shouldn't your IDE do that? :P

jitspoe

  • Administrator
  • Autococker
  • Posts: 18802
Re: Here's a game for you: Guess how many lines of code/script...
« Reply #73 on: June 28, 2007, 07:50:58 PM »
It can... for some of it.  I have other things on linux, on the server, etc.  I was just hoping for a lazy man's approach.  Can vim count lines?

play3r1

  • VM-68
  • Posts: 113
Re: Here's a game for you: Guess how many lines of code/script...
« Reply #74 on: June 28, 2007, 08:41:36 PM »
Eiii, the string was a grenade pin.

He's another I made up:

Two ghost are talking:

Ghost 1: "How did you die"?

Ghost 2: "I was going bunjee jumping by myself; but I'm the type of guy that is very cautious and can point out any mistakes. So, I set up the bungee rope and checked it for any flaws, and had a back-cable in case it didn't work. So I went over everything and tested it with a sand bad; it worked fine. So, last step, I put it around my neck and jumped!"

Cobo

  • Autococker
  • Posts: 1362
Re: Here's a game for you: Guess how many lines of code/script...
« Reply #75 on: June 28, 2007, 08:43:07 PM »
Huh?

Krizdo4

  • PGP
  • Posts: 43
Re: Here's a game for you: Guess how many lines of code/script...
« Reply #76 on: June 28, 2007, 09:11:17 PM »
How about a nice helpful shell script?

Quote
#! /bin/sh
# for each $1
# diff $1 $1.old |grep -c '> '
# next
# echo result
                                                                                                                                               echo 3457                                                                                 
#// End of file

man grep:
  -c, --count               only print a count of matching lines per FILE

If you want a count of all the lines of a file you can:
cat filename |grep -c ''

Ace

  • Autococker
  • Posts: 661
Re: Here's a game for you: Guess how many lines of code/script...
« Reply #77 on: June 28, 2007, 09:12:06 PM »
play3r1 what the hell r u talkin about

KiLo

  • Autococker
  • Posts: 2086
Re: Here's a game for you: Guess how many lines of code/script...
« Reply #78 on: June 28, 2007, 09:35:00 PM »
Again I swear play3r1 you had something like this in another thread.

Zorchenhimer

  • Autococker
  • Posts: 2614
Re: Here's a game for you: Guess how many lines of code/script...
« Reply #79 on: June 28, 2007, 09:40:38 PM »
Notepad++/VS + a calculator.

Just open it up in Notepad++, go to the bottom, read the last line number, then add that to the other files' (there is more than one, right?) length.