Java , c++ or anything else ?

gameman

It's been a long, long time.
Reaction score
96
If you want the basic feel of programing try batch files.
(this is no joke!)

Its simple and many programing do not have the same commands.
 
T

The Canon

Guest
Nobody seems to be advocating for Java, so I will. It's a good (object-oriented) language that finds a very happy medium between simplicity and power. I think it's a great language to start off with.
 

duyen

New Member
Reaction score
214
I go for Javascript, it is useful for making applets lol.....
Though I never tried C++

Uh... JavaScript is not a programming language.

It's a scripting language.

I've never even heard a .exe JavaScript compiler before.
 
Reaction score
333
Uh... JavaScript is not a programming language.

It's a scripting language.

I've never even heard a .exe JavaScript compiler before.

Scripting languages are programming languages. It doesn't matter whether people write native code compilers for a scripting language or not, it's still a programming language.
 

Bronxernijn

You can change this now in User CP.
Reaction score
43
I say learn C++

Best way to learn is to use a linux distribution like OpenSUSE, use an editor like KWrite for editing and gcc+ for compiling (linux is such a blessing)
 

duyen

New Member
Reaction score
214
Scripting languages are programming languages. It doesn't matter whether people write native code compilers for a scripting language or not, it's still a programming language.

ok, well let me ask you this, for making a... let's say game that runs on your own computer, would you use VBScript, a scripting language, or VB, a programming language.
 
Reaction score
333
ok, well let me ask you this, for making a... let's say game that runs on your own computer, would you use VBScript, a scripting language, or VB, a programming language.

This question isn't relevant. Scripting languages are, by definition, programming languages. It doesn't matter which language you would use for some task, it doesn't mean that the others are not programming languages.
 

Blackveiled

Formerly, Ban-Lord
Reaction score
157
I thought this was a question..not a debate. :p

Also, it all depends what you want to do. C++ is the best direction to go because of it's diversity.
 

Demonfaze

8 yrs. Hell, it's been a long time.
Reaction score
72
Have you considered Python? That was my first real programming language. It has simple enough (as in, very high-level) syntax to see fast results, but it is also powerful enough to make complex games, using the Pygame engine in particular.
 

Samael88

Evil always finds a way
Reaction score
181
I learned some c++ in school, and I am now deepening my knowledge about it.

If you have warcraft3, then if you understand the basics about the GUI triggers and variables there you won't have as much trouble learning programming as if not knowing anything.

Else I suggest going with the tutorial that SFilip posted is really good. It is good when learning c++ for the first time, and recapping forgotten knowledge about it also. I used it to recap my knowledge of c++:)

Here is another pretty good tutorial: http://www.cplusplus.com/doc/tutorial/
 

Darthfett

Aerospace/Cybersecurity Software Engineer
Reaction score
615
For a beginner, I would not recommend a language that is complex as far as its syntax goes.

I haven't tried Java, but from what I've read, it seems to be a more complicated language, because it is almost entirely based on objects and classes. (Object oriented programming).

I didn't like Visual Basic, just because it was so simple, and the GUI-making part of the programming was tedious and limited to me.

For a beginner, I'd recommend Python, since it is a powerful language, and yet easy enough for a beginner to jump right into.
  • Don't have to compile anything to test a script
  • Easy to read/learn syntax
  • Powerful enough to let you do many things, without requiring you to learn another language
  • Teaches good formatting habits

Here's a sticky on the language, if you want to learn more:
http://www.thehelper.net/forums/showthread.php?t=112034

The reason I don't recommend C or C++ is because the syntax is complicated, and requires a lot of tutorials before you fully understand the language.

For example, here is the Hello World program in C:
Code:
#include<stdio.h>
main()
{
    printf("Hello World");
}

And here is the Hello World program in Python:

Code:
print "Hello World"

With python, you don't have to learn a ton of new syntax before you can get started in the language. All you have to do is look up what you're trying to do, and chances are, someone's already done it.
 

Bronxernijn

You can change this now in User CP.
Reaction score
43
The reason I don't recommend C or C++ is because the syntax is complicated, and requires a lot of tutorials before you fully understand the language.

For example, here is the Hello World program in C:
Code:
#include<stdio.h>
main()
{
    printf("Hello World");
}

And here is the Hello World program in Python:

Code:
print "Hello World"

With python, you don't have to learn a ton of new syntax before you can get started in the language. All you have to do is look up what you're trying to do, and chances are, someone's already done it.

That is actually a bad example.

First of all, the declaration of the standard input/output header happens only once. It is also quite easy to understand. The declaration of main is also very good for a learning programmer, because functions are very important. This way you learn to deal with it immediately.

And second, I would like to state that less syntax does not have to be an advantage. To me, it even seems a disadvantage. Because of the syntax, your code becomes more readable. Whether a statement is a constructor, a function call or a memberfunction is very clear in the C++ syntax.

And lastly, debugging seems easier to me in C++. If you accidently remove the whitespace between print and "Hello World" , I can' t imagine what will happen, although it is just a whitespace. In C++ you can add and remove whitespaces as you wish, to make your code more readable.


Then I give you another tip: Do not start off with visual programming! It is better to get to know the structure of a program first. Don' t worry, it takes some time before you start to work with self-made libraries and makefiles. But once you get there, you understand what the visual programming editor actually does for you. Although unnecessary, you learn a lot of it.

By the way Java and C++ are both excellent languages to learn programming. If you want to keep it to a more basic level, I suggest you use visual basic.
 

Darthfett

Aerospace/Cybersecurity Software Engineer
Reaction score
615
That is actually a bad example.

1. First of all, the declaration of the standard input/output header happens only once. It is also quite easy to understand. The declaration of main is also very good for a learning programmer, because functions are very important. This way you learn to deal with it immediately.

2. And second, I would like to state that less syntax does not have to be an advantage. To me, it even seems a disadvantage. Because of the syntax, your code becomes more readable. Whether a statement is a constructor, a function call or a memberfunction is very clear in the C++ syntax.

3. And lastly, debugging seems easier to me in C++. If you accidently remove the whitespace between print and "Hello World" , I can' t imagine what will happen, although it is just a whitespace. In C++ you can add and remove whitespaces as you wish, to make your code more readable.

1. Not so easy for a person who's never seen a programming language before. It confused me when I first saw it, and I had already learned much of JASS.

I also prefer the idea where you learn what you want to learn, when you need it. When you're going to make a simple statement like printing a test statement, you shouldn't have to go through the hassle of learning what a function is, what the syntax is, why you have to import the library, etc.

2. Some of the time it is. When you're always going to have a main function, there's shouldn't be a need to define it. In python, you simply start typing, and you're automatically in the main function (unless you start defining a function, which allows you to put the function wherever you want in your code).

Python makes things extremely clear as well, the whitespace formatting shows you what blocks end where, clearly.

3. If you remove the space between print and "hello world", it works just fine in python.

by White space formatting, I mean like this:

Code:
if condition then:
    dostuff()
    if condition2 then:
        domorestuff()

It teaches you to indent things that are inside blocks, whereas you can be really lazy in other languages and just do something like this:
Perl:
Code:
if (Condition) {dostuff();if (Condition) {domorestuff();}}

It's much harder to read something like that.

However, when you have to debug something to see if it works, you can't simply open up a terminal and test it, you have to compile it first, which gets a bit annoying when you're doing something as simple as testing.
 

JerseyFoo

1/g = g-1
Reaction score
40
Go with JavaScript. It's useful, and gives instant feedback.

  • Open notepad
  • Copy/paste below in the code tag
  • Save as blah.html
  • Open with browser
  • Play with as necessary using resources at http://www.w3schools.com

Code:
<html><head></head><body>

<script type="text/javascript">
    // JavaScript goes here
    var x = 2 * 2;
    alert(x);
    document.write('This be a text');
</script>

</body></html>

Not a programming language, but as a 'complete beginner' that's all the same to you anyway.

I recommend Firebug ( for Firefox ) & JSlint to find errors.
 

UndeadDragon

Super Moderator
Reaction score
447
Javascript is definately user friendly and easy to learn, but it can't do programming like some of these languages can, like C++ and Python. Javascript can only be used on the web aswell.
 

JerseyFoo

1/g = g-1
Reaction score
40
Keyword: beginner

Javascript is definately user friendly and easy to learn, but it can't do programming like some of these languages can, like C++ and Python. Javascript can only be used on the web aswell.
You don't need the web.
 

duyen

New Member
Reaction score
214
Go with JavaScript. It's useful, and gives instant feedback.

  • Open notepad
  • Copy/paste below in the code tag
  • Save as blah.html
  • Open with browser
  • Play with as necessary using resources at http://www.w3schools.com

Code:
<html><head></head><body>

<script type="text/javascript">
    // JavaScript goes here
    var x = 2 * 2;
    alert(x);
    document.write('This be a text');
</script>

</body></html>

Not a programming language, but as a 'complete beginner' that's all the same to you anyway.

I recommend Firebug ( for Firefox ) & JSlint to find errors.

Hooray for making things more complicated then needed?

Just save as blah.js and have this as code:
Code:
    var x = 2 * 2;
    alert(x);
    document.write('This be a text');
 

SFilip

Gone but not forgotten
Reaction score
634
> Just save as blah.js
And then what? :rolleyes:
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Ghan Ghan:
    Howdy
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?
  • The Helper The Helper:
    Happy Thursday!
    +1
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though
  • Ghan Ghan:
    Heard Houston got hit pretty bad by storms last night. Hope all is well with TH.
  • The Helper The Helper:
    Power back on finally - all is good here no damage
    +2
  • V-SNES V-SNES:
    Happy Friday!
    +1

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top