Login | Register







Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 20 posts ] 
Author Message
 Post subject: [Geek Cred Thread] What's your favorite computer language?
PostPosted: March 12th, 2011, 6:12 am 
Foundational Member
Foundational Member

Joined: September 14th, 2008, 10:00 pm
Posts: 4753
Location: Dublin, Co. Dublin, Ireland
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>


Top
 Offline Profile  
 
 Post subject: Re: [Geek Cred Thread] What's your favorite computer languag
PostPosted: March 12th, 2011, 10:46 am 
Grease Monkeys
Grease Monkeys
User avatar

Joined: June 18th, 2010, 10:37 pm
Posts: 5545
Location: Kentucky
:rofl: :rofl: :rofl:

I really have nothing else to say. :rofl:

_________________
Floyd was frozen where he stood. He struggled to breathe, but the air smelled of blood and death and guilt. He tried to formulate a name, to ask, but language was meaningless, and words would not come. He tried to scream but the sound got stuck in his heart, shattered into a million pieces, and scattered to the wind.

In a world without superheroes, who will stand against the forces of evil?


Top
 Offline Profile  
 
 Post subject: Re: [Geek Cred Thread] What's your favorite computer languag
PostPosted: March 12th, 2011, 11:01 am 
Foundational Member
Foundational Member

Joined: September 14th, 2008, 10:00 pm
Posts: 4753
Location: Dublin, Co. Dublin, Ireland
All of the above programs run without errors too. ;)


Top
 Offline Profile  
 
 Post subject: Re: [Geek Cred Thread] What's your favorite computer languag
PostPosted: March 12th, 2011, 11:07 am 
Foundational Member
Foundational Member
User avatar

Joined: January 27th, 2011, 2:13 pm
Posts: 3226
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?


Top
 Offline Profile  
 
 Post subject: Re: [Geek Cred Thread] What's your favorite computer languag
PostPosted: March 12th, 2011, 11:09 am 
Captain
Captain
User avatar

Joined: October 22nd, 2010, 11:31 am
Posts: 10120
Location: UK
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! :)

_________________

All that is gold does not glitter,
Not all those who wander are lost;
The old that is strong does not wither,
Deep roots are not reached by the frost.

From the ashes a fire shall be woken,
A light from the shadows shall spring;
Renewed shall be blade that was broken,
The crownless again shall be king

J. R. R. Tolkien


My favourite quote: "God will give His kindness for you to use when your own runs out."

Pippin's Waggy Tales

Autumn Leaves


Top
 Offline Profile  
 
 Post subject: Re: [Geek Cred Thread] What's your favorite computer languag
PostPosted: March 12th, 2011, 11:53 am 
Foundational Member
Foundational Member

Joined: September 14th, 2008, 10:00 pm
Posts: 4753
Location: Dublin, Co. Dublin, Ireland
They are foreign languages. ;)

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


Top
 Offline Profile  
 
 Post subject: Re: [Geek Cred Thread] What's your favorite computer languag
PostPosted: March 12th, 2011, 12:06 pm 
Foundational Member
Foundational Member
User avatar

Joined: January 27th, 2011, 2:13 pm
Posts: 3226
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*


Top
 Offline Profile  
 
 Post subject: Re: [Geek Cred Thread] What's your favorite computer languag
PostPosted: March 12th, 2011, 1:20 pm 
Writer
Writer
User avatar

Joined: November 30th, 2010, 7:05 pm
Posts: 1175
Location: Somewhere in the Seven Universes
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.

_________________
You have blue skin with orange polka dots. Four eyes, one red, one yellow, one green, and one blue. You have four arms, two are furry and two are scaly. One ear is a floppy dog's ear and the other is a pointy dog's ear. Your hair is a mess of tentacles. You have the body of a centaur, with four wings and two tails (both with feathers on the end). Two wings are pink. The other two are green and black, respectively. You have a row of sharp spines going down your back (very sharp). You also hiccup rainbow bubbles... ~Vili
So, now you all know what I look like.

We're creating a HW RPG! Come check it out!


Top
 Offline Profile  
 
 Post subject: Re: [Geek Cred Thread] What's your favorite computer languag
PostPosted: March 12th, 2011, 1:25 pm 
Foundational Member
Foundational Member

Joined: September 14th, 2008, 10:00 pm
Posts: 4753
Location: Dublin, Co. Dublin, Ireland
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!)


Top
 Offline Profile  
 
 Post subject: Re: [Geek Cred Thread] What's your favorite computer languag
PostPosted: March 12th, 2011, 1:40 pm 
Foundational Member
Foundational Member
User avatar

Joined: February 9th, 2011, 1:08 pm
Posts: 531
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

_________________
Sir Arien, Guy of the Rounded Table

Because Holy Worlds really is that awesome: Clicky! (You know you want to!)


Top
 Offline Profile  
 
 Post subject: Re: [Geek Cred Thread] What's your favorite computer languag
PostPosted: March 12th, 2011, 1:45 pm 
Foundational Member
Foundational Member

Joined: September 14th, 2008, 10:00 pm
Posts: 4753
Location: Dublin, Co. Dublin, Ireland
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?


Top
 Offline Profile  
 
 Post subject: Re: [Geek Cred Thread] What's your favorite computer languag
PostPosted: March 12th, 2011, 3:27 pm 
Foundational Member
Foundational Member
User avatar

Joined: February 9th, 2011, 1:08 pm
Posts: 531
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.

_________________
Sir Arien, Guy of the Rounded Table

Because Holy Worlds really is that awesome: Clicky! (You know you want to!)


Top
 Offline Profile  
 
 Post subject: Re: [Geek Cred Thread] What's your favorite computer languag
PostPosted: March 12th, 2011, 3:30 pm 
Foundational Member
Foundational Member

Joined: September 14th, 2008, 10:00 pm
Posts: 4753
Location: Dublin, Co. Dublin, Ireland
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?


Top
 Offline Profile  
 
 Post subject: Re: [Geek Cred Thread] What's your favorite computer languag
PostPosted: March 12th, 2011, 3:37 pm 
Foundational Member
Foundational Member
User avatar

Joined: February 9th, 2011, 1:08 pm
Posts: 531
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

_________________
Sir Arien, Guy of the Rounded Table

Because Holy Worlds really is that awesome: Clicky! (You know you want to!)


Top
 Offline Profile  
 
 Post subject: Re: [Geek Cred Thread] What's your favorite computer languag
PostPosted: March 12th, 2011, 11:23 pm 
Grease Monkeys
Grease Monkeys
User avatar

Joined: June 18th, 2010, 10:37 pm
Posts: 5545
Location: Kentucky
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

_________________
Floyd was frozen where he stood. He struggled to breathe, but the air smelled of blood and death and guilt. He tried to formulate a name, to ask, but language was meaningless, and words would not come. He tried to scream but the sound got stuck in his heart, shattered into a million pieces, and scattered to the wind.

In a world without superheroes, who will stand against the forces of evil?


Top
 Offline Profile  
 
 Post subject: Re: [Geek Cred Thread] What's your favorite computer languag
PostPosted: March 14th, 2011, 12:28 am 
Writer
Writer

Joined: December 27th, 2010, 4:48 pm
Posts: 90
Location: Next to the flowerpot.
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

_________________

░░░░█░░███░░█░░░█░████░░░███░░░░░███░░████░█████░░░████░░███░░░███░░████░░░░█░░
░░░█░░█░░░░░█░░░█░█░░░█░█░░░█░░░█░░░░░█░░░░░░█░░░░░█░░░░█░░░█░█░░░█░█░░░█░░░█░░
░░█░░░░███░░█░░░█░█░░░█░█░░░█░░░█░███░████░░░█░░░░░████░█░░░█░█░░░█░█░░░█░░░█░░
░█░░░░░░░░█░█░░░█░█░░░█░█░░░█░░░█░░█░░█░░░░░░█░░░░░█░░░░█░░░█░█░░░█░█░░░█░░░░░░
█░░░░░░███░░░███░░████░░░███░░░░░███░░████░░░█░░░░░█░░░░░███░░░███░░████░░░░█░░
Is this small enough for ya? I mean really I could type anything down here now! Hehehehe *smile* But where are my manners? Hello there, you have found my secret line. now that you have found me let me go for the sake of peter. Roses are red, my fingers are blue. If I don't die of cold, someday I'll find you. Jk lol that was fun. Here is some more filler letters


Top
 Offline Profile  
 
 Post subject: Re: [Geek Cred Thread] What's your favorite computer languag
PostPosted: March 14th, 2011, 2:39 am 
Foundational Member
Foundational Member

Joined: September 14th, 2008, 10:00 pm
Posts: 4753
Location: Dublin, Co. Dublin, Ireland
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. ;)


Top
 Offline Profile  
 
 Post subject: Re: [Geek Cred Thread] What's your favorite computer languag
PostPosted: March 14th, 2011, 9:00 am 
Captain
Captain
User avatar

Joined: January 19th, 2011, 10:06 am
Posts: 3652
Location: Colorado, currently
Discord Username: Varon
I like my computer to be in English. :D

_________________
I have not come to raise hell, but to bring your false Eden crashing down around your ears- Undecided project


Top
 Offline Profile  
 
 Post subject: Re: [Geek Cred Thread] What's your favorite computer languag
PostPosted: March 14th, 2011, 9:06 am 
Foundational Member
Foundational Member

Joined: September 14th, 2008, 10:00 pm
Posts: 4753
Location: Dublin, Co. Dublin, Ireland
Varon wrote:
I like my computer to be in English. :D


Almost all are in binary. ;)


Top
 Offline Profile  
 
 Post subject: Re: [Geek Cred Thread] What's your favorite computer languag
PostPosted: March 14th, 2011, 12:30 pm 
Captain
Captain
User avatar

Joined: January 19th, 2011, 10:06 am
Posts: 3652
Location: Colorado, currently
Discord Username: Varon
Mine speaks English.

_________________
I have not come to raise hell, but to bring your false Eden crashing down around your ears- Undecided project


Top
 Offline Profile  
 
Display posts from previous:  Sort by  
Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 20 posts ] 


Who is online

Users browsing this forum: No registered users and 11 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:  
cron