Page 2 of 3

Posted: Thu Jul 28, 2011 8:42 am
by Quarko
Trem is coded in C (without ++). I wouldn't recommend C nor C++ as your first language.
Basically these are the languages I'd recommend for a newbie:
1. If you want to write bleeding-edge games you should start with C# (easier to learn) or C++ (considered best for writing games, but that is debated).
2. If you want to write simple games (for example various arcades, mobile games, minecraft style game, etc) - I'd go with Java or C# (C# wont work on mobiles though). C++ is totally not an option here.
3. If you want to write desktop applications (for example some text editor, browser, media player) you should choose C# or Java. Java is better as it is cross-platform (and works on mobiles + Android phones), C# is better as it has better support for hardware (for example writing disk defragmentator, CD burner, etc..)
4. If you want to write server applications (the ones that have no user interface and run somewhere deep in the system), for example banking system, or some clustering software or anything huge and deep - C# and Java are on same level.
5. If you want to write webpages of any kind, then almost any language will doo fairly well: Java, C#, Python, Ruby, Groovy etc etc etc...

Posted: Thu Jul 28, 2011 12:17 pm
by Castyo
:o many thanks!

Posted: Thu Jul 28, 2011 1:36 pm
by PPNL
Quarko wrote:Trem is coded in C (without ++). I wouldn't recommend C nor C++ as your first language.
Basically these are the languages I'd recommend for a newbie:
1. If you want to write bleeding-edge games you should start with C# (easier to learn) or C++ (considered best for writing games, but that is debated).
2. If you want to write simple games (for example various arcades, mobile games, minecraft style game, etc) - I'd go with Java or C# (C# wont work on mobiles though). C++ is totally not an option here.
3. If you want to write desktop applications (for example some text editor, browser, media player) you should choose C# or Java. Java is better as it is cross-platform (and works on mobiles + Android phones), C# is better as it has better support for hardware (for example writing disk defragmentator, CD burner, etc..)
4. If you want to write server applications (the ones that have no user interface and run somewhere deep in the system), for example banking system, or some clustering software or anything huge and deep - C# and Java are on same level.
5. If you want to write webpages of any kind, then almost any language will doo fairly well: Java, C#, Python, Ruby, Groovy etc etc etc...
damn,,

tl;dr x_x

Posted: Thu Jul 28, 2011 1:39 pm
by pmd
c and c++ isnt for beginners
c# arent cross platform => only m$ windows programming.
java - crossplatform, but java on pc, java on mobile(j2me) and java on android is different java's

my advice: start from easy languages - basic or pascal variations.
java and c# might corupt you,
c or c++ just hurt your brain

Posted: Thu Jul 28, 2011 1:46 pm
by Quarko
Omfg, don't listen to pmd and don't start with basic or pascal. Java or C# is as good for beginner as anything else. While basic and pascal will definitely make you shitty programmer.

Posted: Thu Jul 28, 2011 3:53 pm
by Loki
I never learned C because it was brain-hurting as pmd said. I started with pascal, then C and i understood many things.

Posted: Thu Jul 28, 2011 4:06 pm
by Quarko
You would've skipped both if you started with Java >.>

Posted: Thu Jul 28, 2011 9:26 pm
by pmd
While basic and pascal will definitely make you shitty programmer.
pure basic and pascal can made it, but look at code:

java:

Code: Select all

public class HelloWorld {
    public static void main(String[] args) {
        System.out.println("Hello, world!");
    }
}
c#:

Code: Select all

using System;
namespace Example
{
    class Program
    {
        static void Main()
        {
            Console.WriteLine("Hello World!"); 
            Console.ReadKey(); 
        }
    }
}
c++:

Code: Select all

#include <iostream>
int main&#40;&#41;
&#123;
    std&#58;&#58;cout << "Hello, world!\n";
&#125;
pascal:

Code: Select all

begin
 WriteLn &#40;'Hello, world!'&#41;;
end.
matlab(i love this language, but it for mathematics):

Code: Select all

'Hello,world!'
feel difference? first noobish exercises can be easily done with pascal(like factorial,prime numbers), for more serious tasks like gui's, graphics, genetic algorithms - more serious languages.

Posted: Thu Jul 28, 2011 9:31 pm
by pmd
Quarko wrote:You would've skipped both if you started with Java >.>
skip structure and functional programming, may be i dont understand something, may be it can be skipped(and learned only object-oriented programming), but how u can skip low level of c with java? in c written operating systems, drivers, it cant be replaced by java

Posted: Thu Jul 28, 2011 9:40 pm
by Quarko
Having more code does not mean it is harder for newbies. Java and C# are strictly OO languages and they enforce OO even for Hello World program. Functional programming is very old school and is not used in big projects anymore (well, maybe in drivers and stuff).

Yes, people write drivers and operating systems in C. So you think Castyo is making his own OS now? Or maybe he's making a driver?

Posted: Fri Jul 29, 2011 6:43 am
by Castyo
wtf!
btw i've started with dos at 14 yo. At 16 with shitty pascal. At 17 with c#.
After...nothing :o
Now i'm 27 and i want to make some stuff....i decided to start with android because i think is the best mobile os :D .

Posted: Fri Jul 29, 2011 6:44 am
by Castyo
pmd wrote:
While basic and pascal will definitely make you shitty programmer.
pure basic and pascal can made it, but look at code:

java:

Code: Select all

public class HelloWorld &#123;
    public static void main&#40;String&#91;&#93; args&#41; &#123;
        System.out.println&#40;"Hello, world!"&#41;;
    &#125;
&#125;
c#:

Code: Select all

using System;
namespace Example
&#123;
    class Program
    &#123;
        static void Main&#40;&#41;
        &#123;
            Console.WriteLine&#40;"Hello World!"&#41;; 
            Console.ReadKey&#40;&#41;; 
        &#125;
    &#125;
&#125;
c++:

Code: Select all

#include <iostream>
int main&#40;&#41;
&#123;
    std&#58;&#58;cout << "Hello, world!\n";
&#125;
pascal:

Code: Select all

begin
 WriteLn &#40;'Hello, world!'&#41;;
end.
matlab(i love this language, but it for mathematics):

Code: Select all

'Hello,world!'
feel difference? first noobish exercises can be easily done with pascal(like factorial,prime numbers), for more serious tasks like gui's, graphics, genetic algorithms - more serious languages.
have you eat wikipedia? :D

Posted: Fri Jul 29, 2011 7:17 am
by Quarko
{DELETED}

Posted: Fri Jul 29, 2011 7:27 am
by Quarko
He's noob. He forgot to mention most influental and modern languages, you should start with them:

"Hello world" program in:

Brainfuck:

Code: Select all

++++++++++&#91;>+++++++>++++++++++>+++>+<<<<-&#93;>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.
LOLCODE:

Code: Select all

HAI
CAN HAS STDIO?
VISIBLE "HAI WORLD!"
KTHXBYE
CHEF:

Code: Select all

Hello World Souffle.
 
 Ingredients.
 72 g haricot beans
 101 eggs
 108 g lard
 111 cups oil
 32 zucchinis
 119 ml water
 114 g red salmon
 100 g dijon mustard
 33 potatoes
 
 Method.
 Put potatoes into the mixing bowl.
 Put dijon mustard into the mixing bowl.
 Put lard into the mixing bowl.
 Put red salmon into the mixing bowl.
 Put oil into the mixing bowl.
 Put water into the mixing bowl.
 Put zucchinis into the mixing bowl.
 Put oil into the mixing bowl.
 Put lard into the mixing bowl.
 Put lard into the mixing bowl.
 Put eggs into the mixing bowl.
 Put haricot beans into the mixing bowl.
 Liquefy contents of the mixing bowl.
 Pour contents of the mixing bowl into the baking dish.
 
 Serves 1.
Piet:
Image

Shakespeare code:

Code: Select all

Romeo, a young man with a remarkable patience.
Juliet, a likewise young woman of remarkable grace.
Ophelia, a remarkable woman much in dispute with Hamlet.
Hamlet, the flatterer of Andersen Insulting A/S.

                   Act I&#58; Hamlet's insults and flattery.
                   Scene I&#58; The insulting of Romeo.
&#91;Enter Hamlet and Romeo&#93;
Hamlet&#58;
You lying stupid fatherless big smelly half-witted coward! You are as
stupid as the difference between a handsome rich brave hero and thyself!
Speak your mind!
You are as brave as the sum of your fat little stuffed misused dusty
old rotten codpiece and a beautiful fair warm peaceful sunny summer's
day. You are as healthy as the difference between the sum of the
sweetest reddest rose and my father and yourself! Speak your mind!
You are as cowardly as the sum of yourself and the difference
between a big mighty proud kingdom and a horse. Speak your mind.
Speak your mind!
&#91;Exit Romeo&#93;
                   Scene II&#58; The praising of Juliet.
&#91;Enter Juliet&#93;
Hamlet&#58;
Thou art as sweet as the sum of the sum of Romeo and his horse and his
black cat! Speak thy mind!
&#91;Exit Juliet&#93;
                   Scene III&#58; The praising of Ophelia.
&#91;Enter Ophelia&#93;
Hamlet&#58;
Thou art as lovely as the product of a large rural town and my amazing
bottomless embroidered purse. Speak thy mind!
Thou art as loving as the product of the bluest clearest sweetest sky
and the sum of a squirrel and a white horse. Thou art as beautiful as
the difference between Juliet and thyself. Speak thy mind!
&#91;Exeunt Ophelia and Hamlet&#93;

                   Act II&#58; Behind Hamlet's back.
                   Scene I&#58; Romeo and Juliet's conversation.
&#91;Enter Romeo and Juliet&#93;
Romeo&#58;
Speak your mind. You are as worried as the sum of yourself and the
difference between my small smooth hamster and my nose. Speak your
mind!
Juliet&#58;
Speak YOUR mind! You are as bad as Hamlet! You are as small as the
difference between the square of the difference between my little pony
and your big hairy hound and the cube of your sorry little
codpiece. Speak your mind!
&#91;Exit Romeo&#93;
                   Scene II&#58; Juliet and Ophelia's conversation.
&#91;Enter Ophelia&#93;
Juliet&#58;
Thou art as good as the quotient between Romeo and the sum of a small
furry animal and a leech. Speak your mind!
Ophelia&#58;
Thou art as disgusting as the quotient between Romeo and twice the
difference between a mistletoe and an oozing infected blister! Speak
your mind!
&#91;Exeunt&#93;
Whitespace:

Code: Select all

    
   	  	   
		    	
   		  	 	
		    	 
   		 		  
		    		
   		 		  
		    	  
   		 				
		    	 	
   	 		  
		    		 
   	     
		    			
   			 			
		    	   
   		 				
		    	  	
   			  	 
		    	 	 
   		 		  
		    	 		
   		  	  
		    		  
   	     
		    		 	
   		 				
		    			 
   		  		 
		    				
   	     
		    	    
   			  		
		    	   	
   			    
		    	  	 
   		    	
		    	  		
   		   		
		    	 	  
   		  	 	
		    	 	 	
   			  		
		    	 		 
   	    	
		    	 			
    
		     

 	 			 			 			  	  		 	  	 			 	   		  	 	

 	 		 			  		  	 	 			 			 		 		   		 	  	 		 			  		  	 	




   		    	 		  	   		  	  
	   
	

   			 			 			  	  		 	  	 			 	   		  	 	
 
 			 
 
	  			 			 			  	  		 	  	 			 	   		  	 	 	 					 		  	 	 		 			  		  	  
	
     	
	   
 
 			 			 			  	  		 	  	 			 	   		  	 	

   			 			 			  	  		 	  	 			 	   		  	 	 	 					 		  	 	 		 			  		  	  
 

 


	

   			  	  		  	 	 		    	 		  	  
 
  
 	
	 			 
    	 	 
	  	
	  			  	  		  	 	 		    	 		  	   	 					 		  	 	 		 			  		  	  
 

   	
	   
 
 			  	  		  	 	 		    	 		  	  

   			  	  		  	 	 		    	 		  	   	 					 		  	 	 		 			  		  	  
 

   	
	       
		 
	

   		 			  		  	 	 			 			 		 		   		 	  	 		 			  		  	 	
   	 	 
   		 	
	
  	
  
	
[/size]

Malbolge (the hardest programming language ever created):

Code: Select all

 &#40;'&%&#58;9&#93;!~&#125;|z2Vxwv-,POqponl$Hjig%eB@@>&#125;=<M&#58;9wv6WsU2T|nm-,jcL&#40;I&%$#"
 `CB&#93;V?Tx<uVtT`Rpo3NlF.Jh++FdbCBA@?&#93;!~|4XzyTT43Qsqq&#40;Lnmkj"Fhg$&#123;z@>

Posted: Fri Jul 29, 2011 11:20 am
by loldretch
C# sux bkoz it only supports OS Windowz