also @ TechSpot: Motorola Droid 4 unboxing, hands-on video
Welcome to the TechSpot OpenBoards. Please read the FAQ if you have any questions. Sign up or Login to participate.

Go Back   TechSpot OpenBoards > Software > Software Apps

Collaborate in the cloud with Office, Exchange, SharePoint, and Lync

Programming Language

Page 2 of 3 1 2 3
Thread Tools Search this Thread
  #21  
Old 04-21-2004
Nodsu's Avatar
TechSpot Evangelist
 
Location: Estonia
Member since: Feb 2002, 9,431 posts
System specs
Adding things to the form is not a feature of the programming language - it is the feature of the programming tool. All modern languages have some sort of a visual designer.

For a beginner interested in programming, not making cool stuff fast I also suggest Java.

Pros:
It is a new language so they have had the chance to learn from others' mistakes and make it easy to learn/use.
It was built from ground up so it's neat - no obscure hacks and workarounds (mostly).
Everything's an object - you get OOP stuffed in from your ears from the beginning and you start thinking in the right patterns right away.
It is a lot like C++ so you can easily move on to a "real" programming language.
You don't have to bother with underlying OS and hardware.
Free tools that are actually usable.

Cons:
All the "cool" and "1337" people will make fun of you.
It's slow.
Calling OS APIs is tricky.
  #22  
Old 04-21-2004
MrGaribaldi's Avatar
TechSpot Ambassador
 
Location: Babylon 5, Grid Epsilon
Member since: Feb 2002, 2,802 posts
Nodsu, all the "cool" and "1337" people will make fun of you no matter what programming language you're using (except for assembler), so how that's a "Con" I don't know... (Because if they didn't make fun of you, how could they be "1337" and "cool"?)

And java isn't as slow as it was when it first was announced... Granted, it's not as efficient as C++, but it isn't all that much slower anymore. (Some programs actually runs faster in Java than C++)

No argument on the OS API part. But often it's just a matter of finding a class someone else made who does that for you...
  #23  
Old 04-23-2004
Phantasm66's Avatar
TechSpot Evangelist
 
Location: Glasgow, Scotland
Member since: Feb 2002, 6,504 posts
Yeah, if you are wanting to learn to program then the general consensus seems to be go for Java.

It looks a little daunting at first with all this "public void" and "private static" stuff but it does actually make a great deal of sense when you learn it.

Learning C first would give you a strong background to most forms of modern programming languages, though as Mr G pointed out its not object orientated and so perhaps not worth bothering with right now since it will make OO code seem weirder later.

Yeah, go for Java.
  #24  
Old 04-23-2004
Phantasm66's Avatar
TechSpot Evangelist
 
Location: Glasgow, Scotland
Member since: Feb 2002, 6,504 posts
YOUR FIRST JAVA PRGRAM:


public class Test
{
public static void main(String[] args)
{

System.out.println("Hello from Phantasm66!");

}
}



If you want to compile and run it, then go to

http://www.eclipse.org/

And download their FREE and excellent Java Programming Environment!

Its what I am using right now to code in Java, and its first class. It will help you compile the code and will also tell you where you are going wrong if you make a mistake. You MUST download it. Its free!
  #25  
Old 04-23-2004
TechSpot Member
 
Member since: Mar 2003, 89 posts
Quote:
Originally posted by MrGaribaldi
Java will work on any system with a JVM on it, whereas in C++ you'll have to change your code to port from one platform to another.

Well I wont go into all the reasons why but c++ is far and away the langauge I am most fond of and I have dealt with most of the ones discussed here. I want to just clear up this statement garibaldi, pure c++ does not need to be ported at all. It's when you start to mix into it some platform specific API calls that this need begins to arise. i think that's what you're getting at but i was like "whoa! time to defend my language!" lol =)
  #26  
Old 04-23-2004
Phantasm66's Avatar
TechSpot Evangelist
 
Location: Glasgow, Scotland
Member since: Feb 2002, 6,504 posts
Quote:
Originally posted by filthy_mcnasty
Well I wont go into all the reasons why but c++ is far and away the langauge I am most fond of and I have dealt with most of the ones discussed here. I want to just clear up this statement garibaldi, pure c++ does not need to be ported at all. It's when you start to mix into it some platform specific API calls that this need begins to arise. i think that's what you're getting at but i was like "whoa! time to defend my language!" lol =)

After reading your post I must admit I have to agree with every word.

I prefer Java but many, many programmers prefer C++, as it is possible to do some wonderful things with this that compile into fast running executables. Its a VERY powerful language and where a great deal of the magic is still going on in a big way.

And yes indeed, simple C++ does indeed work on different platforms. And also yes when one starts to use APIs this ceases to be the case, yes. I have programmed using Winsocks for network programming in C++ under UNIX and Windows and they were indeed different in many places. I can only assume other APIs differ much more greatly as well.
  #27  
Old 04-23-2004
Nic's Avatar
Nic Nic is offline
TechSpot Paladin
 
Location: UK
Member since: Jan 2003, 1,918 posts
If you plan on writing useful programs for yourself, and you don't want to spend months/years achieving something useful, then avoid C++. Its more complex and requires more programming effort to do many things supported by extensive class libraries provided in other languages, such as Java, or any of the .NET languages. Java would seem like your best bet, but I have to say that I don't like Java very much as I don't find it as intuitive as C#, or VB.NET for example (check out Microsoft Visual Studio 2003, which itself was entirely written in C# showing that the .NET languages are VERY powerful and feature rich). Java is VERY popular though, so you'll certainly find it useful to pursuing a career in software development, though IT in general isn't as safe a career bet as it once was.

Check out this excellent FREE open source development environment for C# and VB.NET development (it's written in C# and the source code is freely available for download) ...

SharpDevelop

Last edited by Nic; 04-23-2004 at 04:45 PM..
  #28  
Old 04-24-2004
MrGaribaldi's Avatar
TechSpot Ambassador
 
Location: Babylon 5, Grid Epsilon
Member since: Feb 2002, 2,802 posts
Quote:
Originally posted by filthy_mcnasty
Well I wont go into all the reasons why but c++ is far and away the langauge I am most fond of and I have dealt with most of the ones discussed here. I want to just clear up this statement garibaldi, pure c++ does not need to be ported at all. It's when you start to mix into it some platform specific API calls that this need begins to arise. i think that's what you're getting at but i was like "whoa! time to defend my language!" lol =)
Ah, quite true.
Was mixing recompiling for different cpu's (x86, alpha etc) and platform specific API's. Sorry.


Anyways, there seems to be alot of people who's got an interest in programming here, with diff opinions.

I use NetBeans (which is written in Java, and has support for point 'n' click GUI design), whereas Phantasm uses Eclipse... Both are quite good, but I never felt as at home with Ecplise as with NetBeans...

Last edited by MrGaribaldi; 04-24-2004 at 09:44 AM..
  #29  
Old 04-24-2004
Phantasm66's Avatar
TechSpot Evangelist
 
Location: Glasgow, Scotland
Member since: Feb 2002, 6,504 posts
I've got NetBeans installed as well but I've not used it so far, only Eclipse.

Why do you feel that NetBeans is better than Eclipse??
  #30  
Old 04-24-2004
MrGaribaldi's Avatar
TechSpot Ambassador
 
Location: Babylon 5, Grid Epsilon
Member since: Feb 2002, 2,802 posts
There was something about the feel of the program...

I'm downloading eclipse again now to see if I can find anything to put my finger on....

[EDIT]

Hmmm.. So far it crashes my jvm when I try to start it..
Guess I'll have to do a restart, so the feedback will have to wait a bit longer...
[/EDIT]

Last edited by MrGaribaldi; 04-24-2004 at 09:49 AM..
  #31  
Old 04-24-2004
Phantasm66's Avatar
TechSpot Evangelist
 
Location: Glasgow, Scotland
Member since: Feb 2002, 6,504 posts
I had to play with Eclipse a bit to get it the way I liked it, but now it looks for all the world just like Visual Studio 2003 .net only its much better for Java IMHO.

(If you are going to do C# (highly similar to Java) then almost certainly you need Visual Studio 2003 .net, even if its just the C# bit, and certainly you need to be consulting MSDN.)

Eclipse has some really good "quick fixes" - as they are called - for some common programming blunders.

However I have not really tried NetBeans so I think I will if you think its somehow better. What do you really like about it?
  #32  
Old 04-24-2004
Nic's Avatar
Nic Nic is offline
TechSpot Paladin
 
Location: UK
Member since: Jan 2003, 1,918 posts
Quote:
Originally posted by Phantasm66
... If you are going to do C# (highly similar to Java) then almost certainly you need Visual Studio 2003 .net ...
Didn't you read my post regarding the FREE open source dvelopment tool (SharpDevelop). It's very similar to Visual Studio 2003 and supports both VB.Net and C#. Check out the features on the home page.

-------------------------------------------------------------------
SharpDevelop

The features we like most...

- Forms designer for C# and VB.NET
- Code completion for C# and VB.NET
- Code AutoInsert (Ctrl+W) C# to VB.NET converter
- Completely written in C#
- Compile C# and VB.NET in the IDE out-of-the-box
- Open source, GPL licensed
- Lightweight IDE
- Xml documentation preview
- User interface translated to many languages
- Everything templated: add new project or file types, or even compilers to SharpDevelop

And here are some more...

- Write C#, ASP.NET, ADO.NET, XML, HTML code
- Project or File-based development (Project Scout & File Scout)
- Rich project options
- Syntax highlighting for C#, HTML, ASP, ASP.NET, VBScript, VB.NET, XML
- Intelligent braces
- Bookmark your code
- Code template support
- Feature-rich Find & Replace dialogs
- Easily extensible with external tools
- Easily extensible with Plug-Ins

... and much more

If you like to see the features in action, then take our Feature Tour.
-------------------------------------------------------------------


PS: Eclipse looks pretty decent too, and is itself written in Java. Just goes to show what you can do with these languages if you have the skills.

Last edited by Nic; 04-24-2004 at 10:18 AM..
  #33  
Old 04-24-2004
MrGaribaldi's Avatar
TechSpot Ambassador
 
Location: Babylon 5, Grid Epsilon
Member since: Feb 2002, 2,802 posts
Where to start...
It'll reformat my code to Sun's standard, so it's easy to keep the code well structured even if you don't use that structure...

If you've forgotten the code, it'll show you a list after a few secs:
Code:
import javax.swing.*;
import java.awt.BorderFactory.*;

class Example extends JFrame {
 public static void main(String[] args) {
   JPanel panelWithBorder = new JPanel("to show off EmptyBorder");
   
   panelWithBorder.setBorder(BorderFactory.createEmptyBorder()


 }
}
Where it will suggest what is in italics.

You can also get a complete list of all commands that is available for object your working on, with the javadoc comments from the API (if you have that installed).

It'll do the same for any other classes you've got in your working directory, which made it quite easy for me to create a GUI to a program I'd written earlier.

It has point 'n' click GUI creation (like in VB), though I'm not allowed to use that in my classes.
And it has a debug feature, though I haven't had time to mess around with that one yet.

It also has a small CVS client built in, and is easy to configure to use a proper CVS server if you have one up and running.

That's what springs to mind as of right now.

But it also has a feel that reminds me a bit of emacs/notepad/CrimsonEditor which I used before using netBeans, which I like quite a lot
  #34  
Old 04-25-2004
BrownPaper's Avatar
TechSpot Booster
 
Location: Los Angeles, CA USA
Member since: Feb 2003, 467 posts
System specs
oh gee, i probably should learn java too as well. but first i need to fully understand everything about c++.
  #35  
Old 04-25-2004
MrGaribaldi's Avatar
TechSpot Ambassador
 
Location: Babylon 5, Grid Epsilon
Member since: Feb 2002, 2,802 posts
From what I've read of C++ it is very similar to Java in semantics and feel, so if you know one, you won't have any truoble learning the other...


But back to the scheduled IDE war

Here is a short tour of NetBeans, but it is by no means complete. In version 3.6 which was just released, they've added one thing which to me seems very practical...
Quote:
  • Code folding. You can hide method bodies, comments, import statements, and other blocks of code by folding them in the Source Editor.
  • To Do window. You can easily track your tasks and TODO comments using the To Do window. You can view all tasks in a single file or in a selected directory.
  • Automatic insertion of closing bracket/quotes/parentheses. The Source Editor now automatically closes all open parentheses, brackets, and quotes. For example, type System.out.println( and the IDE automatically enters the closing
  • Tooltip error description. Hold the mouse over any text containing compilation errors to view the error in a tooltip.
Which are just a few select features that impressed/looked good to me..
Find more here...


Alas, I've still not gotten Eclipse up and running...
  #36  
Old 04-25-2004
Phantasm66's Avatar
TechSpot Evangelist
 
Location: Glasgow, Scotland
Member since: Feb 2002, 6,504 posts
C++ is lower level than Java. Its not more complex to understand - in a way - its just that it takes more to do certain things, that's all. But that's the key to its power. You've more control but there's more that can, I guess, go wrong.

Java and C# also do what's known as garbage collection. This means that they clean up their use of memory behind them. C++ doesn't do this so you have to do it yourself and if you don't do it properly then memory problems happen.

The code in C++ is also more alien to look at, and less uniform.

However it writes lightening fast applications and the games you are all used to will have been written in C++, using Direct X , open GL, etc that gave the programmer specific commands and functions prebuilt so that he or she could just get down and dirty with writing the game and talking to the graphics card, etc.

A lot of server side applications that are written in places like my work are already moving (and have moved) over to Java in a big way, but the less buggier and better running applications are still written by crazy C++ gurus. For now.

Java is more forward looking than C++ now. Java is really embracing aspect oriented programming which is to do with the way classes interact with each other.
  #37  
Old 04-25-2004
Nic's Avatar
Nic Nic is offline
TechSpot Paladin
 
Location: UK
Member since: Jan 2003, 1,918 posts
You can't write an OS in Java because Java runs on a Virtual Machine, which itself requires to be installed on some kind of OS. Modern OOP languages, such as Java or any of the .NET languages, are both powerful and fast, making software development less likely to suffer from bugs (e.g. memory leaks) and greatly reducing the time required to create an application. Both Java and .NET support DirectX, so 3D accelerated games should pose no problem. For commercial games/software development, then C++ is your best bet.
  #38  
Old 04-25-2004
Nodsu's Avatar
TechSpot Evangelist
 
Location: Estonia
Member since: Feb 2002, 9,431 posts
System specs
Actually you can't write any OS purely in any standard programming language except assembly and Java. Java can be used because there are Java processors out there that can execute Java bytecode directly.
  #39  
Old 04-25-2004
Nic's Avatar
Nic Nic is offline
TechSpot Paladin
 
Location: UK
Member since: Jan 2003, 1,918 posts
Of course we are talking about avoiding the use of classes that use API calls to the OS in that case, so that means a heavily trimmed down version of Java. Let's not forget that no one has produced a full blown OS for desktop computers that is written in anything other than C/C++ (Linux, Windows, Unix, OSX, etc.). Java still needs a virtual machine to run on (as far as I know), though that could be implemented in hardware.

Java Processors Supercharge the Next Generation of Java-Powered Networked Consumer Electronics

Quote:
... Java processors complement the Java language and operating systems to form a complete end-to-end solution ... The picoJava family is a core licensing program designed to be the industry's best price/performance silicon design supporting the Java Virtual Machine specification ...

Last edited by Nic; 04-25-2004 at 07:17 PM..
  #40  
Old 04-25-2004
TechSpot Member
 
Member since: Mar 2003, 89 posts
just an aside on Nodsu's comment on an OS in assembler....


*GASP!* lol even the thought is mind blowing. that said, i shall now be forced to write one! (or not)
Closed Thread
Page 2 of 3 1 2 3

Similar Topics
Topic Replies Forum
BASIC Programming Language? 12 General Discussion
Learning a Programming Language.. Where to start? 3 Software Apps
Microsoft presents a new programming language, F# 0 General Discussion
Which BASIC programming language to use?? 5 Software Apps
Favourite programming language 32 Software Apps

Thread Tools Search this Thread
Search this Thread:

Advanced Search
All times are GMT -4. The time now is 03:56 PM.