
-----------------------------------
wtd
Sun Nov 12, 2006 7:12 pm

Learn it in a day languages
-----------------------------------
List languages you think can be learned very quickly.  :)

-----------------------------------
md
Sun Nov 12, 2006 7:12 pm


-----------------------------------
Pascal!

-----------------------------------
[Gandalf]
Sun Nov 12, 2006 7:15 pm


-----------------------------------
Io.  :lol:

-----------------------------------
wtd
Sun Nov 12, 2006 7:25 pm


-----------------------------------
Lua

-----------------------------------
Tony
Sun Nov 12, 2006 10:31 pm


-----------------------------------
Depends on what you know already. Such as if one already knows
Pascal!
Turing will take no more than a day

-----------------------------------
rizzix
Sun Nov 12, 2006 10:33 pm


-----------------------------------
AppleScript.

-----------------------------------
wtd
Sun Nov 12, 2006 10:55 pm


-----------------------------------
Tcl

-----------------------------------
md
Mon Nov 13, 2006 12:44 am


-----------------------------------
MIPS assembler! Really... it only takes a day to learn it; and forever to be proficient.

-----------------------------------
zylum
Mon Nov 13, 2006 1:48 am


-----------------------------------
brainf*ck  :lol:

-----------------------------------
jack
Mon Nov 13, 2006 2:32 am


-----------------------------------



HTML is the GREATEST!!!!!!!11 LOL




Dont forget HTML!





-----------------------------------
Andy
Mon Nov 13, 2006 4:21 am


-----------------------------------
Lua

hahahha! wana try my custom lua interpretor?

scheme!

-----------------------------------
Clayton
Mon Nov 13, 2006 4:30 pm


-----------------------------------
What about O'Caml? Didn't take very long for me to learn the basics :D

-----------------------------------
MihaiG
Mon Nov 13, 2006 10:58 pm


-----------------------------------
assembler for 8088 and 8086




oh wait,


easiest languages, my bad




python

-----------------------------------
bugzpodder
Tue Nov 14, 2006 9:41 pm


-----------------------------------
python, perl, php (you can get away with basics, but dont expect to be a master at it after a day)

-----------------------------------
r.3volved
Tue Nov 14, 2006 10:38 pm


-----------------------------------
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.

-----------------------------------
wtd
Wed Nov 15, 2006 10:15 am


-----------------------------------
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.

-----------------------------------
wtd
Wed Nov 15, 2006 5:03 pm


-----------------------------------
A bit of code, just for fun.

Let's create a variable!

Lua:

foo = 42

Tcl:

set foo 42

Io:

foo := 42

Let's print it!

Lua:

print(foo)

Tcl:

puts $foo

Io:

foo println

Let's read in a string!

Lua:

line = io.read()

Tcl:

set line [gets stdin]

Io:

line := File standardInput readLine

Let's read in a number!

Lua:

num = io.read("*number")

Tcl:

set num [scan [gets stdin] "%f"]

Io:

num := File standardInput readLine asNumber

Let's make it a function!

Lua:

function read_number()
   return io.read("*number")
end

Tcl:

proc read_number {} {
   return [scan [gets stdin] "%f"]
}

Io:

readNumber := method(
   File standardInput readLine asNumber
)
   
Let's set a minimum number!

Lua:

function read_number(minimum)
   num = io.read("*number")
   if num > minimum then
      return num
   else
      return minimum
   end
end

Tcl:

proc read_number {minimum} {
   set num [scan [gets stdin] "%f"]
   if {$num > $minimum} { 
      return $num
   } else {
      return $minimum
   }
}

Io:

readNumber := method(minimum,
   num := File standardInput readLine asNumber
   if(num > minimum, num, minimum)
)

-----------------------------------
rdrake
Wed Nov 15, 2006 5:41 pm


-----------------------------------
A bit more code, just for fun.

Let's create a variable!

Ruby:

foo = 42

Let's print it!

Ruby:

puts foo

Let's read in a string!

Ruby:

line = gets.chomp

Let's read in a number!

Ruby:

num = gets.chomp.to_i

Let's make it a function!

Ruby:

def read_number()
   gets.chomp.to_i
end
   
Let's set a minimum number!

Ruby:

def read_number(minimum)
   num = gets.chomp.to_i
   if num > minimum
      num
   else
      minimum
   end
end
