• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

What was the first programming language you learned?

Status
Not open for further replies.
Level 7
Joined
Dec 8, 2008
Messages
243
Tell me about it here. I just started learning C# and I'm interested in hearing peoples experiences and stories related to their first programming language.

:smile:
 
Last edited:

Deleted member 157129

D

Deleted member 157129

Depends on what counts as learned and also how broad "programming language" is.. I'd go out on a limb and call XHTML, XML and HTML programming languages; thus HTML was my first. Otherwise the first language I truly learned is Java, and the first I used was LUA.
 
Level 22
Joined
Dec 31, 2006
Messages
2,216
The first I used and learned is HTML/XML/JavaScript(not that good on that one)/CSS.
The first I used but didn't learn, or almost learned (I understand it pretty good) was LUA.
Then came JASS if you can call that a programming language. After that vJASS then C++, and last but not least Java.
 
Level 7
Joined
Dec 8, 2008
Messages
243
I'm downloading Visual Studio at the moment. :) So I'll be using C# and XHTML.
HTML (and such) aren't programming languages, but scripts/codes. (I'm pretty sure thats what I was taught in college).

[edit]

I don't consider markup languages to be programming languages. They are formats, really.

As such, JavaScript.

Ah, markup text, thats what I'm thinking of :p
 
Level 22
Joined
Dec 31, 2006
Messages
2,216
HTML basically stands for HyperText Markup Language, so it's just a markup language.
But it got a strict syntax you need to follow, so it can definitely be nice to have known when you move to other languages.
 

Deleted member 157129

D

Deleted member 157129

Which is why I said I'd go out on a limb and name them as such. :p

Anyway, I never learned LUA, and I could never write a piece of code that would do anything all by myself in LUA. I only understand how to interpret what it does, and to manipulate the code into doing what I desire it to do. I also went along the Batch-hype, which again isn't a programming language, but more of an advanced do-this-and-that list. Later I actually studied Java, which is the only language I can claim to know. After that I've been learning C and C++.

Oh, and as for HTML having a strict syntax, eh.. only XHTML-Strict has a strict syntax. >:)
 
Level 4
Joined
Jan 9, 2010
Messages
89
Currently learning java by internet tutorials. (Well, slow progress but it's something).

Really fun and I'll propably keep programming.
 
Level 9
Joined
Apr 11, 2008
Messages
515
HTML basically stands for HyperText Markup Language, so it's just a markup language.
But it got a strict syntax you need to follow, so it can definitely be nice to have known when you move to other languages.
Indeed it is a "bonus" since it would most likely be a hell of a lot easier for any person to learn a programming language if they can HTML(And such like it).
 
Level 7
Joined
Dec 8, 2008
Messages
243
Dosnt he mean CSS? o_O

Cascade Style Sheet. It's like a website data document which formats the website.

Also lulz. I made a crappy text adventure ^_^


using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Text_Adventure
{ //A1
class Program
{ //A2
public static void Main(string[] args)
{ //A3
//Player Details////////////////
string Gender = " ";////////////
string YourName = " ";//////////
string Age = " ";///////////////
string Town = " ";//////////////
//Player Stats//////////////////
int lvl = 0;////////////////////
int Strength = 7 + (lvl * 2);///So... your level * 2 + 7 = player strength.
int HP = Strength * 2;//////////
int MP = 5;/////////////////////
int XP = 0;/////////////////////
int Weapon = 0; //0= fists, 2=Goblin Spear, 3=Bronze Sword, 4=Sturdy Bronze Sword, 5=Rusted Iron Sword
int Armour = 0;
int MaxDamage = Strength + Weapon + 7; //7 is your players Max base damage.
int MinDamage = Strength + Weapon + 3; //3 is your players Min base damage.
int q = 0 - Armour; // Damage Recieved
int x = 0; // x = last amount of damage delt. This is forever changing.
int y = 0; // y = This number changes when you kill a monster, it rolls for what item loot you'll obtain.
//Goblin Stats//////////////////
int GoblinHP = 25;//////////////
int GoblinMaxDamage = 3;////////
int GoblinMinDamage = 1;////////
int TEMPint = 0;////////////////
//Locations/////////////////////
string TEMP = " ";//////////////
string MyLocation = " ";////////
string Tunnel1 = " ";///////////
string Tunnel2 = " ";///////////
string Tunnel3 = " ";///////////
string Tunnel4 = " ";///////////

Console.WriteLine("Type your Gender (Male/Female)");
Gender = Console.ReadLine();
if ((Gender != "Male") || (Gender != "Female"))
{

}
else
{

}
Console.WriteLine("Type your name");
YourName = Console.ReadLine();
Console.WriteLine("Type your Age");
Age = Console.ReadLine();
Console.WriteLine("Type your Home Town");
Town = Console.ReadLine();
Console.WriteLine("Are you ready to begin? (Available Options: <Yes>, <No>)");
TEMP = Console.ReadLine();
if (TEMP == "Yes")
{

}
else
{
Console.WriteLine("ERROR: Tough Luck, I haven't worked out how to go back and amend mistakes yet");
Console.ReadLine();
}
Console.WriteLine("");
Console.WriteLine("Opening your eyes you find yourself underground in a dungeon.");
Console.WriteLine("Click Enter to continue...");
Console.ReadLine();
Console.WriteLine("The air is damp and visibility is poor. The smell of death surrounds you.");
Console.WriteLine("Click Enter to continue...");
Console.ReadLine();
Console.WriteLine("Reaching for your sword you find it missing.");
Console.WriteLine("Click Enter to continue...");
Console.ReadLine();
Console.WriteLine("A goblin jousts his spear in your direction. You brace yourself for combat.");
Console.WriteLine("Click Enter to continue...");
Console.ReadLine();

{//starting combat
Console.WriteLine("Combat Options: <Punch>");
TEMP = Console.ReadLine();
if (TEMP == "Punch")
{
Random Random_Number = new Random();
x = Random_Number.Next(MinDamage, MaxDamage);
GoblinHP = GoblinHP - x;
}
else
{
Console.WriteLine("ERROR: Tough Luck, I haven't worked out how to go back and amend mistakes yet");
Console.ReadLine();
} //the line below this is Goblin Hitpoints = Goblin Hitpoints - Damage.
Console.WriteLine("You deal " + x + " damage leaving the enemy with " + GoblinHP + " life");
Console.WriteLine("Click Enter to continue...");
Console.ReadLine();
Console.WriteLine("The goblin dashes in your direction");
Console.WriteLine("Click Enter to continue...");
Console.ReadLine();
Random Random_Number1 = new Random();
q = Random_Number1.Next(GoblinMinDamage, GoblinMaxDamage);
HP = HP - q;
Console.WriteLine("Piercing your leather rags, the Goblin deals " + q + " damage leaving you with " + HP + "HP");
Console.WriteLine("Click Enter to continue...");
Console.ReadLine();
Console.WriteLine("Combat Options: <Punch>");
TEMP = Console.ReadLine();
if (TEMP == "Punch")
{
Random Random_Number2 = new Random();
x = Random_Number2.Next(MinDamage, MaxDamage);
GoblinHP = GoblinHP - x;
}
else
{

}
Console.WriteLine("You deal " + x + " damage leaving the enemy with " + GoblinHP + " life");
if (GoblinHP < 1)
{
Console.WriteLine("Congratulations. You defeated the Goblin!");
Console.WriteLine("Click Enter to continue...");
Console.ReadLine();
Random ItemReward = new Random();
y = ItemReward.Next(1, 3);
if (y == 1)
{
Console.WriteLine("+10 xp");
Console.WriteLine("Click Enter to continue...");
Console.ReadLine();
Console.WriteLine(YourName + " looted Bronze Sword.");
Console.WriteLine("Click Enter to continue...");
Console.ReadLine();
Weapon = 3;
XP = 10;
}
if (y == 2)
{
Console.WriteLine("+10 xp");
Console.WriteLine("Click Enter to continue...");
Console.ReadLine();
Console.WriteLine(YourName + " looted Goblin Spear.");
Console.WriteLine("Click Enter to continue...");
Console.ReadLine();
Weapon = 2;
XP = 10;
}
if (y == 3)
{
Console.WriteLine("+10 xp");
Console.WriteLine("Click Enter to continue...");
Console.ReadLine();
Console.WriteLine(YourName + " looted Goblin Chainmail.");
Console.WriteLine("Click Enter to continue...");
Console.ReadLine();
Armour = 1;
XP = 10;
}
}
Console.WriteLine("Click Enter to continue...");
Console.ReadLine();
Console.WriteLine("The Goblin, dazed; dashed once again.");
Console.WriteLine("Click Enter to continue...");
Console.ReadLine();
Random Random_Number3 = new Random();
q = Random_Number3.Next(GoblinMinDamage, GoblinMaxDamage);
HP = HP - q;
Console.WriteLine("Piercing your leather rags, the Goblin deals " + q + " damage leaving you with " + HP + "HP");
Console.WriteLine("Click Enter to continue...");
Console.ReadLine();
Console.WriteLine("Combat Options: <Punch>");
TEMP = Console.ReadLine();
if (TEMP == "Punch")
{
Random Random_Number4 = new Random();
x = Random_Number4.Next(MinDamage, MaxDamage);
GoblinHP = GoblinHP - x;
}
else
{
Console.WriteLine("ERROR: Tough Luck, I haven't worked out how to go back and amend mistakes yet");
Console.ReadLine();
} //the line below this is Goblin Hitpoints = Goblin Hitpoints - Damage.
Console.WriteLine("You deal " + x + " damage leaving the enemy with " + GoblinHP + " life");
if (GoblinHP < 1)
{
Console.WriteLine("Congratulations. You defeated the Goblin!");
Console.WriteLine("Click Enter to continue...");
Console.ReadLine();
Random ItemReward = new Random();
y = ItemReward.Next(1, 3);
if (y == 1)
{
Console.WriteLine("+10 xp");
Console.WriteLine("Click Enter to continue...");
Console.ReadLine();
Console.WriteLine(YourName + " looted Bronze Sword.");
Console.WriteLine("Click Enter to continue...");
Console.ReadLine();
Weapon = 3;
XP = 10;
}
if (y == 2)
{
Console.WriteLine("+10 xp");
Console.WriteLine("Click Enter to continue...");
Console.ReadLine();
Console.WriteLine(YourName + " looted Goblin Spear.");
Console.WriteLine("Click Enter to continue...");
Console.ReadLine();
Weapon = 2;
XP = 10;
}
if (y == 3)
{
Console.WriteLine("+10 xp");
Console.WriteLine("Click Enter to continue...");
Console.ReadLine();
Console.WriteLine(YourName + " looted Goblin Chainmail.");
Console.WriteLine("Click Enter to continue...");
Console.ReadLine();
Armour = 1;
XP = 10;
}
}
}//Finishing Combat
} //A3
} //A2
} //A1


[edit] keeping it relevant, I'm still interested in hearing about peoples experiences when they learned their first program language. :)
 

Deleted member 157129

D

Deleted member 157129

Cascade Style Sheet. It's like a website data document which formats the website.

Also lulz. I made a crappy text adventure ^_^


using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Text_Adventure
{ //A1
class Program
{ //A2
public static void Main(string[] args)
{ //A3
//Player Details////////////////
string Gender = " ";////////////
string YourName = " ";//////////
string Age = " ";///////////////
string Town = " ";//////////////
//Player Stats//////////////////
int lvl = 0;////////////////////
int Strength = 7 + (lvl * 2);///So... your level * 2 + 7 = player strength.
int HP = Strength * 2;//////////
int MP = 5;/////////////////////
int XP = 0;/////////////////////
int Weapon = 0; //0= fists, 2=Goblin Spear, 3=Bronze Sword, 4=Sturdy Bronze Sword, 5=Rusted Iron Sword
int Armour = 0;
int MaxDamage = Strength + Weapon + 7; //7 is your players Max base damage.
int MinDamage = Strength + Weapon + 3; //3 is your players Min base damage.
int q = 0 - Armour; // Damage Recieved
int x = 0; // x = last amount of damage delt. This is forever changing.
int y = 0; // y = This number changes when you kill a monster, it rolls for what item loot you'll obtain.
//Goblin Stats//////////////////
int GoblinHP = 25;//////////////
int GoblinMaxDamage = 3;////////
int GoblinMinDamage = 1;////////
int TEMPint = 0;////////////////
//Locations/////////////////////
string TEMP = " ";//////////////
string MyLocation = " ";////////
string Tunnel1 = " ";///////////
string Tunnel2 = " ";///////////
string Tunnel3 = " ";///////////
string Tunnel4 = " ";///////////

Console.WriteLine("Type your Gender (Male/Female)");
Gender = Console.ReadLine();
if ((Gender != "Male") || (Gender != "Female"))
{

}
else
{

}
Console.WriteLine("Type your name");
YourName = Console.ReadLine();
Console.WriteLine("Type your Age");
Age = Console.ReadLine();
Console.WriteLine("Type your Home Town");
Town = Console.ReadLine();
Console.WriteLine("Are you ready to begin? (Available Options: <Yes>, <No>)");
TEMP = Console.ReadLine();
if (TEMP == "Yes")
{

}
else
{
Console.WriteLine("ERROR: Tough Luck, I haven't worked out how to go back and amend mistakes yet");
Console.ReadLine();
}
Console.WriteLine("");
Console.WriteLine("Opening your eyes you find yourself underground in a dungeon.");
Console.WriteLine("Click Enter to continue...");
Console.ReadLine();
Console.WriteLine("The air is damp and visibility is poor. The smell of death surrounds you.");
Console.WriteLine("Click Enter to continue...");
Console.ReadLine();
Console.WriteLine("Reaching for your sword you find it missing.");
Console.WriteLine("Click Enter to continue...");
Console.ReadLine();
Console.WriteLine("A goblin jousts his spear in your direction. You brace yourself for combat.");
Console.WriteLine("Click Enter to continue...");
Console.ReadLine();

{//starting combat
Console.WriteLine("Combat Options: <Punch>");
TEMP = Console.ReadLine();
if (TEMP == "Punch")
{
Random Random_Number = new Random();
x = Random_Number.Next(MinDamage, MaxDamage);
GoblinHP = GoblinHP - x;
}
else
{
Console.WriteLine("ERROR: Tough Luck, I haven't worked out how to go back and amend mistakes yet");
Console.ReadLine();
} //the line below this is Goblin Hitpoints = Goblin Hitpoints - Damage.
Console.WriteLine("You deal " + x + " damage leaving the enemy with " + GoblinHP + " life");
Console.WriteLine("Click Enter to continue...");
Console.ReadLine();
Console.WriteLine("The goblin dashes in your direction");
Console.WriteLine("Click Enter to continue...");
Console.ReadLine();
Random Random_Number1 = new Random();
q = Random_Number1.Next(GoblinMinDamage, GoblinMaxDamage);
HP = HP - q;
Console.WriteLine("Piercing your leather rags, the Goblin deals " + q + " damage leaving you with " + HP + "HP");
Console.WriteLine("Click Enter to continue...");
Console.ReadLine();
Console.WriteLine("Combat Options: <Punch>");
TEMP = Console.ReadLine();
if (TEMP == "Punch")
{
Random Random_Number2 = new Random();
x = Random_Number2.Next(MinDamage, MaxDamage);
GoblinHP = GoblinHP - x;
}
else
{

}
Console.WriteLine("You deal " + x + " damage leaving the enemy with " + GoblinHP + " life");
if (GoblinHP < 1)
{
Console.WriteLine("Congratulations. You defeated the Goblin!");
Console.WriteLine("Click Enter to continue...");
Console.ReadLine();
Random ItemReward = new Random();
y = ItemReward.Next(1, 3);
if (y == 1)
{
Console.WriteLine("+10 xp");
Console.WriteLine("Click Enter to continue...");
Console.ReadLine();
Console.WriteLine(YourName + " looted Bronze Sword.");
Console.WriteLine("Click Enter to continue...");
Console.ReadLine();
Weapon = 3;
XP = 10;
}
if (y == 2)
{
Console.WriteLine("+10 xp");
Console.WriteLine("Click Enter to continue...");
Console.ReadLine();
Console.WriteLine(YourName + " looted Goblin Spear.");
Console.WriteLine("Click Enter to continue...");
Console.ReadLine();
Weapon = 2;
XP = 10;
}
if (y == 3)
{
Console.WriteLine("+10 xp");
Console.WriteLine("Click Enter to continue...");
Console.ReadLine();
Console.WriteLine(YourName + " looted Goblin Chainmail.");
Console.WriteLine("Click Enter to continue...");
Console.ReadLine();
Armour = 1;
XP = 10;
}
}
Console.WriteLine("Click Enter to continue...");
Console.ReadLine();
Console.WriteLine("The Goblin, dazed; dashed once again.");
Console.WriteLine("Click Enter to continue...");
Console.ReadLine();
Random Random_Number3 = new Random();
q = Random_Number3.Next(GoblinMinDamage, GoblinMaxDamage);
HP = HP - q;
Console.WriteLine("Piercing your leather rags, the Goblin deals " + q + " damage leaving you with " + HP + "HP");
Console.WriteLine("Click Enter to continue...");
Console.ReadLine();
Console.WriteLine("Combat Options: <Punch>");
TEMP = Console.ReadLine();
if (TEMP == "Punch")
{
Random Random_Number4 = new Random();
x = Random_Number4.Next(MinDamage, MaxDamage);
GoblinHP = GoblinHP - x;
}
else
{
Console.WriteLine("ERROR: Tough Luck, I haven't worked out how to go back and amend mistakes yet");
Console.ReadLine();
} //the line below this is Goblin Hitpoints = Goblin Hitpoints - Damage.
Console.WriteLine("You deal " + x + " damage leaving the enemy with " + GoblinHP + " life");
if (GoblinHP < 1)
{
Console.WriteLine("Congratulations. You defeated the Goblin!");
Console.WriteLine("Click Enter to continue...");
Console.ReadLine();
Random ItemReward = new Random();
y = ItemReward.Next(1, 3);
if (y == 1)
{
Console.WriteLine("+10 xp");
Console.WriteLine("Click Enter to continue...");
Console.ReadLine();
Console.WriteLine(YourName + " looted Bronze Sword.");
Console.WriteLine("Click Enter to continue...");
Console.ReadLine();
Weapon = 3;
XP = 10;
}
if (y == 2)
{
Console.WriteLine("+10 xp");
Console.WriteLine("Click Enter to continue...");
Console.ReadLine();
Console.WriteLine(YourName + " looted Goblin Spear.");
Console.WriteLine("Click Enter to continue...");
Console.ReadLine();
Weapon = 2;
XP = 10;
}
if (y == 3)
{
Console.WriteLine("+10 xp");
Console.WriteLine("Click Enter to continue...");
Console.ReadLine();
Console.WriteLine(YourName + " looted Goblin Chainmail.");
Console.WriteLine("Click Enter to continue...");
Console.ReadLine();
Armour = 1;
XP = 10;
}
}
}//Finishing Combat
} //A3
} //A2
} //A1


[edit] keeping it relevant, I'm still interested in hearing about peoples experiences when they learned their first program language. :)

Well, this isn't exactly a thread about your adventure game, but seeing as you're posting it and that it is relevant to learning to program, I'll try to give you a few tips.

First of all, everything that in the real world would be considered an object with variables (like weight) should in all probability also be considered objects in a program (given you're writing in a language that supports it, and you're using Java, which does support objects). Thus I suggest at least your monster(s), for instance the Goblin, to be an instance of a monster class. Meaning it will be a class with the necessary variables (those you've labelled with Goblin~) and to generalize it, Goblin could just be the name (and possibly if you ever go graphical about it, a set of graphics).

This way you can create many various monsters, and many of the same, without having to make variables for each and every instance in the code (eg Goblin1HP, Goblin2HP, Goblin3HP ..etc). I would also make the character such an object, because it is much easier to handle when you get used to it. Items, like weapons and armour, should also be objects. The functions for dealing and taking damage would be implemented within the object as well, so whenever you want to hurt the goblin, you just send the character's damage to the goblin's int takeDamage(int damage), where the goblin will find out, based on armour, how much damage it will take, and do the necessary changes to itself, and return the result back for the player to know.

Secondly, it's a very tedious task to hard-code nearly every part of the game (like you've done now by writing a code for every step of the battle). You should find out how to use loops to your advantage, so that for instance a battle between the character and goblin loops until one of them die, or if you ever implement a flee option, until one part decides to flee. That way the code will become much, much shorter.

Good luck with learning Java. :)
 
Level 3
Joined
Jun 4, 2009
Messages
38
I started with HTML, but as Hakeem stated, really isn't a "Language".
I would have to say I truly started with PHP.
As far as schooling, Visual Basic.
 
Level 7
Joined
Dec 8, 2008
Messages
243
It's C# which runs on a black Dos-like window. :p I'm not involving this with objects since I've really only just started and I can't draw for crap, although thanks for the input.
 

Deleted member 157129

D

Deleted member 157129

It's C# which runs on a black Dos-like window. :p I'm not involving this with objects since I've really only just started and I can't draw for crap, although thanks for the input.

Oh right, I wasn't aware C# and Java were so similar. I see now though, that there are some segments that are not part of Java. Good luck anyway!
 
Level 3
Joined
Mar 20, 2008
Messages
27
My first "real" programming language was C, i had bought a book about it, it was easy to understand imo, then i moved on to C++, also purchased a book for that. I think that C is easiest to learn, but C++ give more possibilities, but ofcourse that depends on what your going to create :)
 
Level 23
Joined
Nov 29, 2006
Messages
2,482
Jass is considered more like a scripting language, like Galaxy, Lua and Python for instance.

First real programming for me was in Java although it was a very long time. I'm programming in C++ nowadays
 
Level 3
Joined
Apr 11, 2010
Messages
35
well if that counts, HTML, then css, then php with mySQL and now I'm trying to learn JASS. Neither of them is a real programming language, but I like it :)
 
Status
Not open for further replies.
Top