Blind taste test

of programming

Page 1 of 1

14 Replies - 1695 Views - Last Post: 26 June 2009 - 05:50 PM

#1 Pwn   User is offline

  • D.I.C Regular

Reputation: 19
  • View blog
  • Posts: 458
  • Joined: 25-November 07

Blind taste test

Posted 20 June 2009 - 08:23 PM

Everybody's seen or heard of the blind taste tests, pepsi vs coke, burger vs burger, etc. How's about we do a blind taste test of programs. Somebody make a program (java excluded for obvious reasons) and see which language people tend to prefer without actually knowing what language it is.
Is This A Good Question/Topic? 0
  • +

Replies To: Blind taste test

#2 chris772   User is offline

  • D.I.C Head

Reputation: 5
  • View blog
  • Posts: 190
  • Joined: 13-March 09

Re: Blind taste test

Posted 20 June 2009 - 10:18 PM

"Tasting" the source code or the compiled program? I like the idea though, people could rate based on speed, reliability, user-friendliness/user interface, et cetera.
Was This Post Helpful? 0
  • +
  • -

#3 firebolt   User is offline

  • D.I.C Lover
  • member icon

Reputation: 93
  • View blog
  • Posts: 5,561
  • Joined: 20-February 09

Re: Blind taste test

Posted 21 June 2009 - 12:41 AM

and of course color syntax. :)
Was This Post Helpful? 0
  • +
  • -

#4 Raynes   User is offline

  • D.I.C Lover
  • member icon

Reputation: 615
  • View blog
  • Posts: 2,815
  • Joined: 05-January 09

Re: Blind taste test

Posted 21 June 2009 - 04:20 PM

View Postchris772, on 20 Jun, 2009 - 09:18 PM, said:

"Tasting" the source code or the compiled program? I like the idea though, people could rate based on speed, reliability, user-friendliness/user interface, et cetera.


That would be a "best program" competition, not a "best language to /make/ the program" competition. It would all come down to who writes the best program. What it's written in wouldn't really matter.
Was This Post Helpful? 0
  • +
  • -

#5 stayscrisp   User is offline

  • フカユ
  • member icon

Reputation: 1040
  • View blog
  • Posts: 4,326
  • Joined: 14-February 08

Re: Blind taste test

Posted 21 June 2009 - 04:36 PM

Heres one
#include <stdio.h>
#include <objpak.h>
int main(int argc,char **argv)
{
	id set = [Set new];
	argv++;while (--argc) [set add:[String str:*argv++]];
	[set do:{ :each | printf("hello, %s!\n",[each str]); }];
	return 0;
}


Was This Post Helpful? 0
  • +
  • -

#6 Raynes   User is offline

  • D.I.C Lover
  • member icon

Reputation: 615
  • View blog
  • Posts: 2,815
  • Joined: 05-January 09

Re: Blind taste test

Posted 21 June 2009 - 06:03 PM

View Poststayscrisp, on 21 Jun, 2009 - 03:36 PM, said:

Heres one
#include <stdio.h>
#include <objpak.h>
int main(int argc,char **argv)
{
	id set = [Set new];
	argv++;while (--argc) [set add:[String str:*argv++]];
	[set do:{ :each | printf("hello, %s!\n",[each str]); }];
	return 0;
}



What exactly does that do? I don't speak C :\.

Also, Songbird's awesome isn't it? :D
Was This Post Helpful? 0
  • +
  • -

#7 stayscrisp   User is offline

  • フカユ
  • member icon

Reputation: 1040
  • View blog
  • Posts: 4,326
  • Joined: 14-February 08

Re: Blind taste test

Posted 21 June 2009 - 06:05 PM

Songbird is great yes :D

That is a hello world, but I wont say the language as that defeats the point of the thread :P
Was This Post Helpful? 0
  • +
  • -

#8 Raynes   User is offline

  • D.I.C Lover
  • member icon

Reputation: 615
  • View blog
  • Posts: 2,815
  • Joined: 05-January 09

Re: Blind taste test

Posted 21 June 2009 - 07:03 PM

 
module Main(main) where

import System.Environment(getArgs)

main = do
  args <- getArgs
  putStrLn $ "Hello, " ++ (head args) ++ "!"


[email protected]:~/Hello$ <compiler name removed> Hello.<extention removed> -o hello
[email protected]:~/Hello$ ls
hello  Hello.hi  Hello.<extension removed>  Hello.o
[email protected]:~/Hello$ ./hello Rayne
Hello, Rayne!
[email protected]:~/Hello$ 


I'll thank the first person to guess this language.

This post has been edited by Raynes: 21 June 2009 - 07:04 PM

Was This Post Helpful? 0
  • +
  • -

#9 stayscrisp   User is offline

  • フカユ
  • member icon

Reputation: 1040
  • View blog
  • Posts: 4,326
  • Joined: 14-February 08

Re: Blind taste test

Posted 21 June 2009 - 07:06 PM

Its in your sig ;)
Was This Post Helpful? 1
  • +
  • -

#10 Raynes   User is offline

  • D.I.C Lover
  • member icon

Reputation: 615
  • View blog
  • Posts: 2,815
  • Joined: 05-January 09

Re: Blind taste test

Posted 21 June 2009 - 07:09 PM

Oops. :|
Was This Post Helpful? 0
  • +
  • -

#11 Pwn   User is offline

  • D.I.C Regular

Reputation: 19
  • View blog
  • Posts: 458
  • Joined: 25-November 07

Re: Blind taste test

Posted 21 June 2009 - 08:55 PM

well, it doesn't have to be a "who codes better" thing. You can make the same program in several different languages, compile and distribute. People can test, then take a survey or something like that.
Was This Post Helpful? 0
  • +
  • -

#12 cfoley   User is online

  • Cabbage
  • member icon

Reputation: 2397
  • View blog
  • Posts: 5,030
  • Joined: 11-December 07

Re: Blind taste test

Posted 22 June 2009 - 04:39 AM

@echo Hello %1


C:\hello>hello chris
Hello chris

C:\hello>


Best language ever. :D

This post has been edited by cfoley: 22 June 2009 - 04:40 AM

Was This Post Helpful? 0
  • +
  • -

#13 code_m   User is offline

  • D.I.C Head
  • member icon

Reputation: 24
  • View blog
  • Posts: 202
  • Joined: 21-April 09

Re: Blind taste test

Posted 25 June 2009 - 08:52 PM

Ok, so wouldn't the best way to test this to have a single person write a the same program in two or three different langages, have users seeing which is best?
Was This Post Helpful? 0
  • +
  • -

#14 Pwn   User is offline

  • D.I.C Regular

Reputation: 19
  • View blog
  • Posts: 458
  • Joined: 25-November 07

Re: Blind taste test

Posted 26 June 2009 - 03:01 PM

View PostPwn, on 21 Jun, 2009 - 09:55 PM, said:

well, it doesn't have to be a "who codes better" thing. You can make the same program in several different languages, compile and distribute. People can test, then take a survey or something like that.



View Postcode_m, on 25 Jun, 2009 - 09:52 PM, said:

Ok, so wouldn't the best way to test this to have a single person write a the same program in two or three different langages, have users seeing which is best?


I'd have to agree with you.
Was This Post Helpful? 0
  • +
  • -

#15 DoubleFission   User is offline

  • D.I.C Head
  • member icon

Reputation: 24
  • View blog
  • Posts: 223
  • Joined: 20-September 08

Re: Blind taste test

Posted 26 June 2009 - 05:50 PM

And I do believe it is Objective-C in Stayscrisp's example :P
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1