Your preferred programming language, and why?

09/05/2008 23:02 purplehaze#1
I am not sure if i am allowed to ask this in this section,
but figured why not, if not then remove this :p

I was wondering what your preferred programming language is, but more importantly is the "Why?" behind it and I guess for some it depends on the goal they try to achieve so I would like that listed too :)

1) Language.

2) Goal.

3) Reason.

Thank you in advance.
09/05/2008 23:05 InfamousNoone#2
If it's for myself
C#, The ability to write a complex application very fast not needing to waste time worrying about garbage collection

If it's being used by other people
C++, Multi-platform, doesn't require the .NET framework, uberly fast at run-time, extremely flexible, and you can do pretty much anything with it.
09/06/2008 00:19 evanxxxm#3
purplehaze@
1) Autohotkey
2) Waste some of my boring time with the least energy
3) Personally i do know few languages, including C++ & Java & ASM (learnt from college COSC classes), AHK (recommended by my C++ professor). And i found AHK is the most user friendly and easy to write.
its like using a 4 button calculator (C++, ASM, Java) and a TI-89 scientific calculator (AHK). Once u know how to use the TI-89, u just dont want to bother with all the long equation that u need to type in the 4 button calculator.
well, dont get me wrong, C++, ASM, Java can do exactly what AHK can do, but AHK (written in C++) just makes all the declaration, syntax, equations shorter and easier.
In a more IT explanation way:
Machine code (First generation, microprocessor can understand directly without a OS)
ASM (Second generation, suppose to be fastest unless u know how to use 01010101 machine code but still very hard to understand & code)
C#, C++ (high level language to make life simpler than ASM)
AHK (very high level language with a very high level of abstraction to make life even simpler in coding)

let me give u an example how short AHK compare to others:
Code:
WinGet,pid, PID, ProgramName
ProcessHandle := DllCall("OpenProcess", "int", 2035711, "char", 0, "UInt", pid, "UInt")
DllCall("ReadProcessMemory", "UInt", ProcessHandle, "UInt", 0x111111, "Uint*", Output, "Uint", 4, "Uint *", 0) 
msgbox, the value in 0x111111 is %Output%.
no need to declare or include any module, u can just compile 4 lines and go output a memory address value in a program
if u are using asm, vb, C++...etc languages, lets just say at least 10-20 lines+
(it isnt very obvious here, but when u compile a hundreds lines program, it does make a lot of difference)
and more importantly, user friendly, u can just read the line independently and figure out what that line does:
1. get the desire program PID
2. hook the DLLcall function to the chosen PID
3. use the DLL to read memory at a certain address
4. pop out a messagebox to display the value


PS* if C++ can do it, AHK can do it. but i dont think anyone will ever use AHK such a high level language to code a server because
1. not popular and acceptable in the computer business yet.
2. since its a high level language, its slightly slower because need to extract

so depends on your purpose why u want to learn coding
09/06/2008 00:33 purplehaze#4
I like the responses hope to see more coming :)
This is just a personal interest to see why 1 prefers 'that' language over the other,
and the reasons behind it :)
09/06/2008 09:22 *M*#5
masm for size
09/06/2008 09:54 purplehaze#6
Quote:
Originally Posted by *M* View Post
masm for size
I thought chicks only say size matters :p
kidding, thanks for your reply :p
09/06/2008 13:16 NovaCygni#7
Quote:
Originally Posted by purplehaze View Post
I thought chicks only say size matters :p
kidding, thanks for your reply :p
C# of course, though im not as profficiant as i am in Vb.Net the lanquage is still easy to use, structured logically, and doesnt take long to get simple but effective programs working... Though I originally learnt BASIC on a ZX Spectrum (* I even had the 16k RAM exspansion called "Cheeteh", about the size of a old fashioned mobile hanging out the back that would spark every now and then :D *) I found moving from Basic to VB6 to VB.Net then C# a simple and obvious course of action...

(* I steared clear of the c++ cause i dislike the "Fish out of water" syndrome when You get problems with a unknown lanquage *)

Why C#? simple, I like the knowledge that It can run advanced programs with alot more stability than VB and is still incredibly user friendly (* Though Intellisense in VS2008 still leaves alot to be desired *), The fact other people would need the relevant .Net enviroments doesnt seem to deter me as im more than capable of using the Macromedia InstallShield to make a custom installer that includes the .Net framework using the Macromedia patch for VS to make a program Compile straight into a installer (* oh and as ive discovered I can make the Installer check for the Framework, and then Download it so the original package doesnt include a possibly unneeded Framework *)...


For flexibility I like the C#... for user friendlyness VB6, for the interim stage from VB6 to C# the obvious course is to learn Vb.Net
09/06/2008 19:24 ChingChong23#8
Java, multi platform + huge shared class libraries.
09/08/2008 09:49 amiral#9
Language : C
Goal : :p
Reasons : multiplateforme, simple syntax, powerfull, you can do everything you want with no limit.
09/08/2008 12:45 purplehaze#10
Quote:
Originally Posted by amiral View Post
Language : C
Goal : :p
Reasons : multiplateforme, simple syntax, powerfull, you can do everything you want with no limit.
uhm, well when you make statements like those "you can do everything you want with no limit." atleast give me something to back that up ;)
I will wait for your reply :)
09/09/2008 02:33 clipper#11
By now even use VB6. I returned from vb.net by using a vb6 portable version (usb flash) but have no unsigneds or inline asm I will change soon...
09/10/2008 01:14 GeneralMcLean#12
I started out in C++ but it's really a daunting task to make even the simplest programs, so I'm gonna learn C# first. I hear it's a bit easier.

I'll go from there ;)
09/10/2008 15:15 joek#13
Languages are tools so to put it in that context, don't use a hammer(script languages) to work on a job that requires a precision instrument(assembler).
In the same vain you would have to be insane or committed to write GUI in assembler.
Personally I consider VB6 strikes a nice balance, easy to learn, low overheads, flexibility, integration methods if you need to switch tools for the tricky stuff.
But then I've always had a soft spot for BASIC since it was my first language and I've played with it for 30 odd years in its various forms.
09/10/2008 23:19 iliveoncaffiene#14
C++/Java

Java for the simplicity of sockets, and because it makes some things a heck of a lot simpler to do than write it in C++ - OH, and exception handling is a plus as well.

C++ I use when I wish to make something very optimized and opensource.
09/11/2008 03:20 UPSman2#15
C# since i only program for personal use (and since i use windows) its a great language for me. I do like OOP but at the same time i don't like it, because i feel like i lose some control of my program... but its all good.