Shoutbox

Good programming language.. - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Skype & Technology (/forumdisplay.php?fid=9)
+---- Forum: Tech Talk (/forumdisplay.php?fid=17)
+----- Thread: Good programming language.. (/showthread.php?tid=75678)

Good programming language.. by Jhrono on 06-27-2007 at 12:03 AM

..to start desktop coding?

I've learned a bit of PHP, but I ain't that good at it.. I would like to give another shot at other languages but I don't know what to pick, and, most importantly, I don't know what guides to follow.. I've been browsing the web for C++ but I haven't found a good guide yet, I guess.

Can anyone direct me from here? Thanks


RE: Good programming language.. by Knucks on 06-27-2007 at 12:11 AM

Some people might shoot me for this but I find C# a really easy language to learn and have found plenty of video tutorials for it located on MSDN. The fact that Visual C# 2005 Express Edition is free and helps you a lot with programming as the IDE practically does it for you. ;)

Hope this helps.


RE: Good programming language.. by Jhrono on 06-27-2007 at 12:13 AM

Hm. I'll take a look into C# then. Thanks!

Any other suggestions?


RE: Good programming language.. by TheSteve on 06-27-2007 at 12:17 AM

Let me add that Visual C++ 2005 Express and Visual Basic .NET 2005 Express are also available for free.

If you plan to go in to programming as a profession, you'd be better off learning as many languages as you can.  Learn the .NET aspects, and also learn the basic Win32 programming so that if the opportunity arises you are good to go. :)


RE: Good programming language.. by Jhrono on 06-27-2007 at 12:19 AM

No, actually I pretend to follow economics :) Nevertheless, whatever I can learn will surely be useful on the future, you never know what you're going to get.. :D

Could you be a bit more specific? :$


RE: Good programming language.. by albert on 06-27-2007 at 01:14 AM

I'm sorry but may I ask what "Desktop Coding" is?


RE: Good programming language.. by Jhrono on 06-27-2007 at 01:22 AM

It was the only way I found to name something that wasn't related to web coding. It's one of the few times in the year I'll have to spend time with this, I'm looking forward for new suggestions.


RE: Good programming language.. by albert on 06-27-2007 at 01:34 AM

Oh, well, I am still a noob in coding, but honestly, I wouldn't start with C++ since it's pretty low level language.

C# isn't bad, since it combines the nice things of Java and the nice things of the C language.

Personally I've started with JAVA, and to be quite honest I believe it's a nice way to start.


RE: Good programming language.. by lopardo on 06-27-2007 at 02:38 AM

You should give Delphi a try. :P

It's easy to use and very powerful.


RE: Good programming language.. by NanaFreak on 06-27-2007 at 03:28 AM

i think you should start with JScript... i started there ;o

then once you know the codes good and can understand coding quite well i would move to another one... maybe VB or C/C++/C# =p

but thats just me!

and also PHP has a similar syntax to JScript ;)


RE: Good programming language.. by foaly on 06-27-2007 at 08:12 AM

quote:
Originally posted by NanaFreak
i think you should start with JScript... i started there ;o

then once you know the codes good and can understand coding quite well i would move to another one... maybe VB or C/C++/C# =p

but thats just me!

and also PHP has a similar syntax to JScript ;)
Well if you start with Jscript the easiest thing to do is move to JAVA...
RE: RE: Good programming language.. by Verte on 06-27-2007 at 08:59 AM

quote:
Originally posted by alby
Oh, well, I am still a noob in coding, but honestly, I wouldn't start with C++ since it's pretty low level language.


What?! It's just another OO C, which is almost exactly what Java and C# are. The only thing you -MAY- miss in C++ is garbage collection, which IMO is more trouble than it's worth [you know better than some dumb algorithm when you don't need your data anymore]. If you love your GC, try D, which is like C++ with all the warts removed. Also, C is much much nicer than C++.

Whatever you do, don't get into Java. The world can do with a few less Java programmers. Java isn't strongly typed, which is painful [recently a friend couldn't work out how to convert a string to an integer- turns out you can subtract zero to do this. Just too strange].

Erm, if you feel like having some fun, try LISP. It's probably a good idea to learn LISP even if you plan to program something else. If you're a mad genius, you could learn something wacky like Haskell, but depending what you plan to do, that might not be that useful to you. This is a very good LISP book.

But my recommendations, for most heavy coding, are C and D. If you don't need blistering graphics or that Schrödinger's equation solved yesterday, Python is a very good language. Yes, even for games.
RE: Good programming language.. by ShawnZ on 06-27-2007 at 09:06 AM

quote:
Originally posted by Verte
[you know better than some dumb algorithm when you don't need your data anymore]

err... garbage collection disposes of objects when they aren't referenced anywhere anymore, meaning they can't possibly ever be accessed :p
RE: RE: Good programming language.. by Verte on 06-27-2007 at 09:33 AM

quote:
Originally posted by ShawnZ
quote:
Originally posted by Verte
[you know better than some dumb algorithm when you don't need your data anymore]

err... garbage collection disposes of objects when they aren't referenced anywhere anymore, meaning they can't possibly ever be accessed :p


That's what they should do. But, if you use pointers anywhere, you've got to be very careful with GC. For example, if you pass a pointer variable to a subroutine, and the subroutine uses a temp variable to represent that variable inside, assigns a new object on the heap to the temp variable, and then the temp variable goes out of scope, most GCs will free the object. In cases such as these, you've got to increment the reference counter by hand, which is to say that you're essentially doing manual garbage collection anyway. This is because Garbage collection typically only tracks direct assignments, and where one variable may reference an object indirectly [such as through an array of pointers or references] the GC will not count the [second-order] reference.

IMO, you know when you're done with data, you deal with it.
RE: Good programming language.. by ShawnZ on 06-27-2007 at 09:39 AM

quote:
Originally posted by Verte
That's what they should do. But, if you use pointers anywhere, you've got to be very careful with GC. For example, if you pass a pointer variable to a subroutine, and the subroutine uses a temp variable to represent that variable inside, assigns a new object on the heap to the temp variable, and then the temp variable goes out of scope, most GCs will free the object. In cases such as these, you've got to increment the reference counter by hand, which is to say that you're essentially doing manual garbage collection anyway. This is because Garbage collection typically only tracks direct assignments, and where one variable may reference an object indirectly [such as through an array of pointers or references] the GC will not count the [second-order] reference.

IMO, you know when you're done with data, you deal with it.

thats why GC languages don't use pointers, they use references :p
RE: Good programming language.. by Jarrod on 06-27-2007 at 09:41 AM

pyhton
if you just want get used to something


RE: RE: Good programming language.. by Verte on 06-27-2007 at 10:17 AM

quote:
Originally posted by ShawnZ
quote:
Originally posted by Verte
That's what they should do. But, if you use pointers anywhere, you've got to be very careful with GC. For example, if you pass a pointer variable to a subroutine, and the subroutine uses a temp variable to represent that variable inside, assigns a new object on the heap to the temp variable, and then the temp variable goes out of scope, most GCs will free the object. In cases such as these, you've got to increment the reference counter by hand, which is to say that you're essentially doing manual garbage collection anyway. This is because Garbage collection typically only tracks direct assignments, and where one variable may reference an object indirectly [such as through an array of pointers or references] the GC will not count the [second-order] reference.

IMO, you know when you're done with data, you deal with it.

thats why GC languages don't use pointers, they use references :p


A reference is treated much as a pointer internally. Compiled code only contains memory locations, not variable names. References are often more convenient, but they suffer the same problems with GC.

How about overlapping reference arrays, which are often the easiest and most sane way to hold data that needs to be viewed in two different ways? Again, the references aren't distinct but they aren't direct, so when the array they were created in [which was possibly intentionally temporary] passes out of scope, they disappear, and the big array you were holding them in now has a heap of invalid references that will segfault when you try to use them.
RE: RE: RE: Good programming language.. by TheSteve on 06-27-2007 at 11:05 AM

quote:
Originally posted by Verte
[recently a friend couldn't work out how to convert a string to an integer- turns out you can subtract zero to do this. Just too strange].


That would be subtracting the character '0'. That's possible in C/C++ as well.

For example:
code:
int atoi(const char * pstr) {
    int i;
    int nRet = 0;
    for (i = 0; ; i++) {
        if (pstr[i]==0)
            break;
        if (pstr[i]>='0' && pstr[i]<='9') {
            nRet*=10;
            nRet+=pstr[i]-'0';
        }
        else return 0;
    }
    return nRet;
}

RE: RE: RE: RE: Good programming language.. by Verte on 06-27-2007 at 12:01 PM

quote:
Originally posted by TheSteve
quote:
Originally posted by Verte
[recently a friend couldn't work out how to convert a string to an integer- turns out you can subtract zero to do this. Just too strange].


That would be subtracting the character '0'. That's possible in C/C++ as well.


It may be possible, but there are also conversion functions, or where one is not required, a direct cast.
RE: Good programming language.. by Jhrono on 06-27-2007 at 03:08 PM

quote:
Originally posted by Knuckles

Some people might shoot me for this but I find C# a really easy language to learn and have found plenty of video tutorials for it located on MSDN. The fact that Visual C# 2005 Express Edition is free and helps you a lot with programming as the IDE practically does it for you.

Hope this helps.

I've been going there,  but I've only found one C# video tutorial :$ entitled "Introduction to the C# Programming Language"

I've learned quite a bit with the video (and the additional integral article).. Can you link me to any other video tutorials? Or even just text tutorials but that start from the bottom.. I can only find more advanced stuff on the MSDN library :\  Thanks
RE: Good programming language.. by markee on 06-28-2007 at 09:59 AM

quote:
Originally posted by Verte
recently a friend couldn't work out how to convert a string to an integer- turns out you can subtract zero to do this. Just too strange
well I know in both javascript and JScript you can also try multiplying but 1 or using parseInt() method.  If you want to try out JScript then have a go at javascript in webpages or plus! scripts, they are both places where you can learn a lot (Plus! scripts are probably better though because you can learn where all the fancy DLL tricks are and stuff :P)