Holy Worlds Christian Forum
https://archive.holyworlds.org/

[Geek Cred Thread] What's your favorite computer language?
https://archive.holyworlds.org/viewtopic.php?f=26&t=2521
Page 1 of 1

Author:  Whythawye [ March 12th, 2011, 6:12 am ]
Post subject:  [Geek Cred Thread] What's your favorite computer language?

Code:
#include <stdio.h>

/* C */
 
int main(void)
{
  printf("Hello world\n");
  return 0;
}


Code:
#!/usr/bin/perl -w

# perl

use strict;

my %geeks = (
  "Jay" => {
    "favlang" => "javascript",
    "knownlangs" => ["html","css","javascript","php","sql","ruby","perl"],
    "learninglangs" => ["lisp","C"] },
  "You all" => {
    "favlang" => "I don't know what",
    "knownlangs" => ["I don't know what", "I don't know what else"],
    "learninglangs" => ["I don't know what", "I don't know what else"] }
);
my $who = undef;

for $who (keys %geeks) {
  print $who . "'s favorite computer language is $geeks{$who}{'favlang'}.\n";
  print "$who knows";
  for (@{$geeks{$who}{'knownlangs'}}) {
    if ($_ eq $geeks{$who}{'knownlangs'}[0]) { print " $_,"}
    elsif ($_ eq $geeks{$who}{'knownlangs'}[-1]) { print " and $_.\n" }
    else { print " $_," }
  }
  print "$who is learning";
  for (@{$geeks{$who}{'learninglangs'}}) {
    if ($_ eq $geeks{$who}{'learninglangs'}[0]) { print " $_,"}
    elsif ($_ eq $geeks{$who}{'learninglangs'}[-1]) { print " and $_.\n" }
    else { print " $_," }
  }
}


Code:
<!-- javascript -->
<script>console.log("Fix that!");</script>

Author:  Constable Jaynin Mimetes [ March 12th, 2011, 10:46 am ]
Post subject:  Re: [Geek Cred Thread] What's your favorite computer languag

:rofl: :rofl: :rofl:

I really have nothing else to say. :rofl:

Author:  Whythawye [ March 12th, 2011, 11:01 am ]
Post subject:  Re: [Geek Cred Thread] What's your favorite computer languag

All of the above programs run without errors too. ;)

Author:  Bethany Faith [ March 12th, 2011, 11:07 am ]
Post subject:  Re: [Geek Cred Thread] What's your favorite computer languag

I'm pretty sure I've read this over about ten times trying to figure out what it does/is/says....So, I have just one question. What is that?

Author:  Lady Elanor [ March 12th, 2011, 11:09 am ]
Post subject:  Re: [Geek Cred Thread] What's your favorite computer languag

Bethany Faith wrote:
I'm pretty sure I've read this over about ten times trying to figure out what it does/is/says....So, I have just one question. What is that?

I'm with you there Beth, I'm just like....looks like a foreign language to me! :)

Author:  Whythawye [ March 12th, 2011, 11:53 am ]
Post subject:  Re: [Geek Cred Thread] What's your favorite computer languag

They are foreign languages. ;)

I want to see if anyone can actually figure 'em out before I tell.

Author:  Bethany Faith [ March 12th, 2011, 12:06 pm ]
Post subject:  Re: [Geek Cred Thread] What's your favorite computer languag

Sir Emeth Mimetes wrote:
They are foreign languages. ;)

I want to see if anyone can actually figure 'em out before I tell.


So...it's a challenge to figure out what is does/says/is?....cool...good luck with that. *hopes someone figures it out*

Author:  Leandra Falconwing [ March 12th, 2011, 1:20 pm ]
Post subject:  Re: [Geek Cred Thread] What's your favorite computer languag

I believe he listed his favorite computer language, the ones he knows, and the ones he's learning. I think the program is also asking which computer languages other people know, but I'm not completely sure.

If I'm right about it asking what computer languages we know, the answer for me is none.

Author:  Whythawye [ March 12th, 2011, 1:25 pm ]
Post subject:  Re: [Geek Cred Thread] What's your favorite computer languag

And there is proof positive that perl is readable, even to non programmers. :D

Yes indeed. :)

(It is also proof that I can actually write legible and self-documenting code, haha!)

Author:  Arien [ March 12th, 2011, 1:40 pm ]
Post subject:  Re: [Geek Cred Thread] What's your favorite computer languag

Ah, nice. I'm not sure what my favorite language would be, so I'll just go with the one I know best.

Code:
my %geeks = (
  "Arien" => {
    "favlang" => "ruby",
    "knownlangs" => ["ruby", "python"],
    "learninglangs" => ["C#"] }
);


:D

Author:  Whythawye [ March 12th, 2011, 1:45 pm ]
Post subject:  Re: [Geek Cred Thread] What's your favorite computer languag

Haha, you might want to escape that # sign, or it will start a comment in the middle of your line there. ;)

Code:
my %geeks = (
  "Arien" => {
    "favlang" => "ruby",
    "knownlangs" => ["ruby", "python"],
    "learninglangs" => ["C\#"] }
);


Do you use RoR at all?

Author:  Arien [ March 12th, 2011, 3:27 pm ]
Post subject:  Re: [Geek Cred Thread] What's your favorite computer languag

Oh, right. I didn't think about that. :blush:

And no, I haven't ever used RoR. I've only actually used Ruby for doing stuff with an RPG maker, so I don't know much about that.

Author:  Whythawye [ March 12th, 2011, 3:30 pm ]
Post subject:  Re: [Geek Cred Thread] What's your favorite computer languag

Arien wrote:
Oh, right. I didn't think about that. :blush:

And no, I haven't ever used RoR. I've only actually used Ruby for doing stuff with an RPG maker, so I don't know much about that.


Haha, forgetting to escape things is a pretty common typo in programming, especially in text manipulation languages like perl where you handle strings a lot.

Ah I see. I have used RoR for some web apps, and it is actually quite an enjoyable framework to use.

Do you make apps with python, or do you just hack?

Author:  Arien [ March 12th, 2011, 3:37 pm ]
Post subject:  Re: [Geek Cred Thread] What's your favorite computer languag

Well, I haven't done much with python since learning it, actually. I should do something with it, but I don't have any ideas right now. It would help me not be lazy, though, so maybe I'll try something. :D

Author:  Constable Jaynin Mimetes [ March 12th, 2011, 11:23 pm ]
Post subject:  Re: [Geek Cred Thread] What's your favorite computer languag

I understood enough to find it incredibly hilarious, but not enough to tell you what it actually was. I'm just kind of... weird that way. :D

Author:  Welt Vormalig [ March 14th, 2011, 12:28 am ]
Post subject:  Re: [Geek Cred Thread] What's your favorite computer languag

Code:
Dim intlangknwn as integer = 2
Dim strquestion as string = "Do you mean languages we know, and ones we might have forgotten how to use"
Dim bolquestanws as boolean = false

If intlangknwn > 1 or bolquestanws = false
    label1.text = "I know " & intlangknwn & "languages, and they are: VB, and python"
else
    label1.text = "I know only " & intlangknwn & "language, and it is: VB"
End if

' Well I took a class a year ago on python...
' and I don't remember that much from it.
' But this semester I'm learning VB

Author:  Whythawye [ March 14th, 2011, 2:39 am ]
Post subject:  Re: [Geek Cred Thread] What's your favorite computer languag

Haha, that is funny Katie. :D

Pretty good Welt. I haven't learned VB, haven't found a ton of use for it, at least not for what I do.

Though I must say, I like perl's syntax better. ;)

Author:  Varon [ March 14th, 2011, 9:00 am ]
Post subject:  Re: [Geek Cred Thread] What's your favorite computer languag

I like my computer to be in English. :D

Author:  Whythawye [ March 14th, 2011, 9:06 am ]
Post subject:  Re: [Geek Cred Thread] What's your favorite computer languag

Varon wrote:
I like my computer to be in English. :D


Almost all are in binary. ;)

Author:  Varon [ March 14th, 2011, 12:30 pm ]
Post subject:  Re: [Geek Cred Thread] What's your favorite computer languag

Mine speaks English.

Page 1 of 1 All times are UTC - 6 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/