Computer Science Canada

Learn it in a day languages

Author:  wtd [ Sun Nov 12, 2006 7:12 pm ]
Post subject:  Learn it in a day languages

List languages you think can be learned very quickly. Smile

Author:  md [ Sun Nov 12, 2006 7:12 pm ]
Post subject: 

Pascal!

Author:  [Gandalf] [ Sun Nov 12, 2006 7:15 pm ]
Post subject: 

Io. Laughing

Author:  wtd [ Sun Nov 12, 2006 7:25 pm ]
Post subject: 

Lua

Author:  Tony [ Sun Nov 12, 2006 10:31 pm ]
Post subject: 

Depends on what you know already. Such as if one already knows
md wrote:
Pascal!

Turing will take no more than a day

Author:  rizzix [ Sun Nov 12, 2006 10:33 pm ]
Post subject: 

AppleScript.

Author:  wtd [ Sun Nov 12, 2006 10:55 pm ]
Post subject: 

Tcl

Author:  md [ Mon Nov 13, 2006 12:44 am ]
Post subject: 

MIPS assembler! Really... it only takes a day to learn it; and forever to be proficient.

Author:  zylum [ Mon Nov 13, 2006 1:48 am ]
Post subject: 

brainf*ck Laughing

Author:  jack [ Mon Nov 13, 2006 2:32 am ]
Post subject: 

<html>
<head>

<title>HTML is the GREATEST!!!!!!!11 LOL</title>

<body bgcolor="#000000" text="#cccccc" link="#ffffff">

<font size=4>
Dont forget HTML!
</font>

</body>
</html>

Author:  Andy [ Mon Nov 13, 2006 4:21 am ]
Post subject: 

wtd wrote:
Lua


hahahha! wana try my custom lua interpretor?

scheme!

Author:  Clayton [ Mon Nov 13, 2006 4:30 pm ]
Post subject: 

What about O'Caml? Didn't take very long for me to learn the basics Very Happy

Author:  MihaiG [ Mon Nov 13, 2006 10:58 pm ]
Post subject: 

assembler for 8088 and 8086




oh wait,


easiest languages, my bad




python

Author:  bugzpodder [ Tue Nov 14, 2006 9:41 pm ]
Post subject: 

python, perl, php (you can get away with basics, but dont expect to be a master at it after a day)

Author:  r.3volved [ Tue Nov 14, 2006 10:38 pm ]
Post subject: 

That all depends on your level to begin with.
IMO, PHP is easy sleazy...but I'm a C/C++ coder so it made sense right away.

Author:  wtd [ Wed Nov 15, 2006 10:15 am ]
Post subject: 

bugzpodder wrote:
python, perl, php (you can get away with basics, but dont expect to be a master at it after a day)


With all due respect, none of these languages are in the same ballpark as those mentioned earlier. At some level, they all have quirky, inconsistent syntax and semantics that takes quite some time to come to grips with.

Author:  wtd [ Wed Nov 15, 2006 5:03 pm ]
Post subject: 

A bit of code, just for fun.

Let's create a variable!

Lua:

code:
foo = 42


Tcl:

code:
set foo 42


Io:

code:
foo := 42


Let's print it!

Lua:

code:
print(foo)


Tcl:

code:
puts $foo


Io:

code:
foo println


Let's read in a string!

Lua:

code:
line = io.read()


Tcl:

code:
set line [gets stdin]


Io:

code:
line := File standardInput readLine


Let's read in a number!

Lua:

code:
num = io.read("*number")


Tcl:

code:
set num [scan [gets stdin] "%f"]


Io:

code:
num := File standardInput readLine asNumber


Let's make it a function!

Lua:

code:
function read_number()
   return io.read("*number")
end


Tcl:

code:
proc read_number {} {
   return [scan [gets stdin] "%f"]
}


Io:

code:
readNumber := method(
   File standardInput readLine asNumber
)


Let's set a minimum number!

Lua:

code:
function read_number(minimum)
   num = io.read("*number")
   if num > minimum then
      return num
   else
      return minimum
   end
end


Tcl:

code:
proc read_number {minimum} {
   set num [scan [gets stdin] "%f"]
   if {$num > $minimum} {
      return $num
   } else {
      return $minimum
   }
}


Io:

code:
readNumber := method(minimum,
   num := File standardInput readLine asNumber
   if(num > minimum, num, minimum)
)

Author:  rdrake [ Wed Nov 15, 2006 5:41 pm ]
Post subject: 

A bit more code, just for fun.

Let's create a variable!

Ruby:

code:
foo = 42


Let's print it!

Ruby:

code:
puts foo


Let's read in a string!

Ruby:

code:
line = gets.chomp


Let's read in a number!

Ruby:

code:
num = gets.chomp.to_i


Let's make it a function!

Ruby:

code:
def read_number()
   gets.chomp.to_i
end


Let's set a minimum number!

Ruby:

code:
def read_number(minimum)
   num = gets.chomp.to_i
   if num > minimum
      num
   else
      minimum
   end
end


: