Quantcast

Maximum PC

It is currently Thu Jul 31, 2014 5:42 am

All times are UTC - 8 hours




Post new topic Reply to topic  [ 51 posts ]  Go to page Previous  1, 2, 3
Author Message
 Post subject:
PostPosted: Thu Aug 19, 2004 8:32 am 
Bitchin' Fast 3D Z8000*
Bitchin' Fast 3D Z8000*
User avatar

Joined: Tue Jun 29, 2004 11:32 pm
Posts: 2555
Location: Somewhere between compilation and linking
DJSPIN80 wrote:
Gadget wrote:
DJSPIN80 wrote:
So when are we going to see the nominations? Best do it now, I'm not known for my patience. :P


I went to the chatroom to see about having dudex do them.... he's not there. Maybe you should do them.... you could do a runner up and a winner for each category that seems appropriate.



:lol: But I'd win every category, even the bad ones!!! ;)

Sure, why not, give me a day or two to look at the code once more.

EDIT: I'd have to decline actually, I like to judge things fairly hence I might insert some of my own bias towards my code. I'll try the maxPC chat and see if I can find Dude-X.


It dawned on me late last night that I was writing to you and not Jipstyle.... :)

I'll find Dudex today - see if he can do it.


Top
  Profile  
 
 Post subject: And now the awards...
PostPosted: Mon Aug 23, 2004 9:10 pm 
I judge you GUILTY!
I judge you GUILTY!
User avatar

Joined: Tue May 25, 2004 4:38 pm
Posts: 162
Location: New York City
Best Readability: Code Poet
Mantabase
Most Concise
Mantabase - Python
Most Unique Language
Dargon - Visual FoxPro

Some comments:
I can't rate the speed of the programs since I don't have a reliable way to bench these little snippets of code. So the speed categories will not be awarded. Anyhow these programs should run sufficiently fast on any modern PC.

I will provide my opinion of everyone's code here:

DaBrain - PHP
I like this code a lot, it's pretty clean and readable. However, PHP isn't a systems level programming language. Your implementation of the above rules is pretty accurarte as far as I understand how regex works.

Dargon - Visaul FoxPro
I have to say that the syntax of VFP is pretty ugly. But as far as I can decipher, your program seems to implement the rules correctly. Very interesting nevertheless.

DJSpin - C#
I find it unusual to make each rule it's own function. The code looks correct, but I find that style rather ugly. However, I would give points that you used descriptive function names. It helps in the readability department. My approach would have been similar to Gadget's code.

Mantabase - Python
I really like the Python implementation. However, your code does not follow some of the rules correctly for other cases. I am impressed with how Python makes annoying tasks a lot easier though.

Gadget - Java
Your code looks pretty good. I think if I were to write it in C++ using the STL, it would look somewhat similar to this. I will try this later though.


Last edited by Dude-X on Tue Aug 24, 2004 6:49 am, edited 1 time in total.

Top
  Profile  
 
 Post subject: Re: And now the awards...
PostPosted: Tue Aug 24, 2004 4:50 am 
I'd rather be modding!
I'd rather be modding!
User avatar

Joined: Fri Jun 25, 2004 3:47 pm
Posts: 3731
Location: Las Vegas
[quote="Dude-X"][/quote]

Wow, Are you sure??

Sorry if I sound a bit in disbelief.

Thanx Dude-x and everyone

Manta *wonders if there has been a mistake*


Top
  Profile  
 
 Post subject:
PostPosted: Tue Aug 24, 2004 11:47 am 
Bitchin' Fast 3D Z8000*
Bitchin' Fast 3D Z8000*
User avatar

Joined: Tue Jun 29, 2004 11:32 pm
Posts: 2555
Location: Somewhere between compilation and linking
There might be a bit of Python bias going on here.... :)

I think your submission is certainly deserving of a most readable award. I believe that mine starts out better, but it gets a bit uglier at the end. Because of the php syntax, Brain's submission isn't the easiest on the eyes, but it was probably the most writable - you can see how the replace methods that use regex to both match and replace are very powerful.

I'm not sure what criteria Dudex used to award the most concise implementation, but I would have probably made that a co-winner between Brain and myself. Brain's solution is 1 loc shorter, but he failed to remove some loc that are close to redundant. I try to base loc off of loc the person has to think about and write. For example, most Java IDE's will fill in the following when you create a new file....

Code:
class Filename {
  public Filename() {
  //
  }

  public static void main (String args[]) {
  //
  }
}


... so I don't count these lines in my concise evaluation. The same for main's in most languages because even if you do write it, you don't actually have to stop and think about it so it only takes a few seconds to type, which is insignificant compared to the amount of time it takes to think about and solve a problem.

I am pretty swamped right now, but when I get a chance, I'll post a Groovy submission.


Top
  Profile  
 
 Post subject:
PostPosted: Tue Aug 24, 2004 1:43 pm 
I'd rather be modding!
I'd rather be modding!
User avatar

Joined: Fri Jun 25, 2004 3:47 pm
Posts: 3731
Location: Las Vegas
[quote="Gadget"][/quote]

Well, I guess $20 goes further than it used too :)


Manta


Last edited by MantaBase on Thu Aug 26, 2004 8:49 am, edited 1 time in total.

Top
  Profile  
 
 Post subject:
PostPosted: Thu Aug 26, 2004 1:58 am 
Bitchin' Fast 3D Z8000*
Bitchin' Fast 3D Z8000*
User avatar

Joined: Tue Jun 29, 2004 11:32 pm
Posts: 2555
Location: Somewhere between compilation and linking
:)

What's up with the broken bbcodes lately?


Top
  Profile  
 
 Post subject:
PostPosted: Thu Aug 26, 2004 5:56 am 
Thunderbird
Thunderbird
User avatar

Joined: Wed Jul 07, 2004 1:13 pm
Posts: 817
Location: Missouri
Gadget wrote:
:)

What's up with the broken bbcodes lately?


Could be something as simple as a typo. All that is missing is the / in the ending tag. BBCode is so similar to HTML I find it simple.


Top
  Profile  
 
 Post subject:
PostPosted: Thu Aug 26, 2004 8:50 am 
I'd rather be modding!
I'd rather be modding!
User avatar

Joined: Fri Jun 25, 2004 3:47 pm
Posts: 3731
Location: Las Vegas
Gadget wrote:
:)

What's up with the broken bbcodes lately?


Typos - I am typing at speed of light - This week is killing me so I mess up - and then don't edit. Next week will be better (I hope)



Manta


Top
  Profile  
 
 Post subject:
PostPosted: Thu Aug 26, 2004 2:34 pm 
Bitchin' Fast 3D Z8000*
Bitchin' Fast 3D Z8000*
User avatar

Joined: Tue Jun 29, 2004 11:32 pm
Posts: 2555
Location: Somewhere between compilation and linking
MantaBase wrote:
Gadget wrote:
:)

What's up with the broken bbcodes lately?


Typos - I am typing at speed of light - This week is killing me so I mess up - and then don't edit. Next week will be better (I hope)

Manta

Grab the BBCode extension for FireFox - works great!


Top
  Profile  
 
 Post subject:
PostPosted: Thu Aug 26, 2004 2:54 pm 
Bitchin' Fast 3D Z8000*
Bitchin' Fast 3D Z8000*
User avatar

Joined: Tue Jun 29, 2004 11:32 pm
Posts: 2555
Location: Somewhere between compilation and linking
MantaBase wrote:
Gadget wrote:
:)

What's up with the broken bbcodes lately?


Typos - I am typing at speed of light - This week is killing me so I mess up - and then don't edit. Next week will be better (I hope)

That's a good math/physics problem: If someone types at the speed of light, how many words per nanosecond does this amount to? :)


Top
  Profile  
 
 Post subject:
PostPosted: Thu Aug 26, 2004 5:43 pm 
I'd rather be modding!
I'd rather be modding!
User avatar

Joined: Fri Jun 25, 2004 3:47 pm
Posts: 3731
Location: Las Vegas
Gadget wrote:
MantaBase wrote:
Gadget wrote:
:)

What's up with the broken bbcodes lately?


Typos - I am typing at speed of light - This week is killing me so I mess up - and then don't edit. Next week will be better (I hope)

That's a good math/physics problem: If someone types at the speed of light, how many words per nanosecond does this amount to? :)


There may be some relativity issues involved. Like everyones relatively slow links

Manta


Top
  Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 51 posts ]  Go to page Previous  1, 2, 3

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group