Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (498)
Games in Android Showcase (117)
games submitted by our members
Games in WIP (564)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: 1 [2]
  ignore  |  Print  
  Longest program you have written?  (Read 2237 times)
0 Members and 1 Guest are viewing this topic.
Offline JVallius
« Reply #30 - Posted 2014-06-16 20:40:02 »

Naku The Cat has about 3k lines. Though during the last weeks before release my code started to get very messy. I guess I could shave line count a lot if I ever happen to bother.

Offline princec

JGO Kernel


Medals: 380
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #31 - Posted 2014-06-16 21:16:04 »

Once upon a time on my Vic-20 (with 16K RAM expansion) I wrote a program that took 19 seconds to list. It was a Logo interpreter (with a smattering of machine code to draw hires lines, which I cribbed from a book). And who said Commodore BASIC was rubbish  Cool

Cas Smiley

Offline Cero
« Reply #32 - Posted 2014-06-16 21:26:58 »

Vic-20
Thats what I call old school.

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Online kingroka123

JGO Ninja


Medals: 29
Projects: 5
Exp: 1 year


Gamer's Helmet


« Reply #33 - Posted 2014-06-17 02:04:57 »

A lot

Offline princec

JGO Kernel


Medals: 380
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #34 - Posted 2014-06-17 07:55:32 »

Well, it was about 1981 or so.

Cas Smiley

Offline Endos
« Reply #35 - Posted 2014-06-17 08:40:34 »

The longest code I wrote was in my old job, while porting a very old ERP to something "more visual". Around 200K lines or so, with the worst and more obfuscated language that exists in the universe Cranky

And as the longest personal work, there where 2 and I'm not sure which where longer (around 20K lines). One was something like a Windows OS I wrote more than 20 years back in C, and the other a shooter for the Nintendo GameBoy Color.

Bored Birds - End with your boredom for Android
Retroships - Space Shooter for Android
Ultimate - 2D Side-Scrolling Platformer project
Offline cylab

JGO Ninja


Medals: 49



« Reply #36 - Posted 2014-06-17 12:29:53 »

LOC means nothing. My current work-project is 105k of java, xml, jelly and groovy...

Mathias - I Know What [you] Did Last Summer!
Offline SHC
« Reply #37 - Posted 2014-06-17 14:00:35 »

A Hello World program!!!!  Grin Grin

Online SwordsMiner

JGO Coder


Medals: 3
Projects: 2
Exp: 1 year


The one and only.


« Reply #38 - Posted 2014-06-17 19:01:56 »

As ray said, lines of code are only a hint of whats really going inside, and more or less shows just how many times you have pressed enter.

I had metrics on my eclipse, and my biggest project is Project NAH, which functions in a mere 6,044 lines of code.

If I made you laugh, helped you at all, or did something cool, I only ask that you smash that appreciate button with your nose.
Offline AppleSauce
« Reply #39 - Posted 2014-06-18 00:57:17 »

A Hello World program!!!!  Grin Grin

Ha, an interesting project would to write as many lines of code, outputting "hello world".  Tongue
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Screem
« Reply #40 - Posted 2014-06-18 01:00:32 »

You'd end up with something similar to FizzBuzzEnterpriseEdition. Cheesy

Offline AppleSauce
« Reply #41 - Posted 2014-06-18 01:03:53 »

You'd end up with something similar to FizzBuzzEnterpriseEdition. Cheesy

Nice, I'm gonna use this  Grin
Offline ra4king

JGO Kernel


Medals: 346
Projects: 3
Exp: 5 years


I'm the King!


« Reply #42 - Posted 2014-06-18 02:52:29 »

You'd end up with something similar to FizzBuzzEnterpriseEdition. Cheesy
I can't stop laughing! I also can't stop crying, as I've seen code like this at my corporate internship Emo

Offline ctomni231

JGO Wizard


Medals: 99
Projects: 1
Exp: 7 years


Not a glitch. Just have a lil' pixelexia...


« Reply #43 - Posted 2014-06-18 06:29:48 »

200K and counting...

Yeah, LOC is peanuts, it is all about how fast you can get things to work.

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
for(int i = 1; i < 101; i++){
     if(i%15 == 0)
         System.out.println("FizzBuzz");
     else if(i%3 == 0)
         System.out.println("Fizz");
     else if(i%5 == 0)
         System.out.println("Buzz");
     else
         System.out.println(i);
}


I can't concentrate with all that Fizz Buzz...  Pointing

Offline Riven
« League of Dukes »

JGO Overlord


Medals: 800
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #44 - Posted 2014-06-18 07:43:40 »

1  
2  
3  
4  
5  
   for(int i=1;i<101;i++) {
      int a=((528>>i%15-1)&1)*4;
      int b=((-2128340926>>(i%15)*2)&3)*4;
      System.out.println("FizzBuzz".substring(a,b)+(a==b?i:""));
   }

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
Online HeroesGraveDev

JGO Kernel


Medals: 254
Projects: 11
Exp: 2 years


┬─┬ノ(ಠ_ಠノ)(╯°□°)╯︵ ┻━┻


« Reply #45 - Posted 2014-06-18 08:02:31 »

Guardian is currently 9084 (excluding my personal libraries. Personal libraries included I get 14451 LOC)
The archived 'Guardian II' was about 15233 lines. Just as well I rewrote it.

Paint.JAVA is currently ~13000 lines, although some amount of those were written by Longor1996, BurntPizza, and some other contributors.

My voxel engine is a mere 2481 lines.

My Ludum Dare entries are all around 2500 LOC, with the exception of the 7dRTS which was 6069. (Which you'd expect from a longer competition)

Of course, a fair number of those lines aren't technically code.

Offline StumpyStrust
« Reply #46 - Posted 2014-06-18 19:45:58 »

hmmm...almost all of the stuff I have posted would be in the range of 500-2k. I try and be clean with code...try.  Cranky

Offline Longor1996
« Reply #47 - Posted 2014-06-18 21:48:21 »

My current project is rather small then with its 10'272 lines of code.
That is, exluding the libraries I am using (LWJGL, KryoNET, EventBus).

At least according to SourceMonitor...

All that just for a Voxel-Engine!

- Longor1996

Sorry for my bad English! That's because i am from Germany.
Offline robocos987

Junior Newbie


Exp: 3 years



« Reply #48 - Posted 2014-07-12 02:07:38 »

I would say the longest I've written so far is my RTS game(its not even finished yet).
It's currently:
5515+

Your mom is so fat, the recursive function calculating her mass caused a stack overflow Tongue
Pages: 1 [2]
  ignore  |  Print  
 
 

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

Grunnt (20 views)
2014-09-23 14:38:19

radar3301 (14 views)
2014-09-21 23:33:17

BurntPizza (31 views)
2014-09-21 02:42:18

BurntPizza (22 views)
2014-09-21 01:30:30

moogie (20 views)
2014-09-21 00:26:15

UprightPath (29 views)
2014-09-20 20:14:06

BurntPizza (33 views)
2014-09-19 03:14:18

Dwinin (48 views)
2014-09-12 09:08:26

Norakomi (75 views)
2014-09-10 13:57:51

TehJavaDev (108 views)
2014-09-10 06:39:09
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!