Favourite Programming/Scripting Language

Watch
This discussion is closed.
AT82
Badges: 0
Rep:
?
#21
Report 16 years ago
#21
My favourite is ASP vbscript and C++. I think I will like Java but not done enough in it yet so I am still a novice. I will try and right a simple applet tonight. PHP is pretty easy but I have yet to learn how to get it to work with MySQL.

C++ I just love though as it is so structured however C is annoying when you want to simple stuff like use strings. The only way I know of storing strings in C++ is to use an array and a for loop to populate it.

At least Java has the same nice structure as C++ but also has full support for strings and the like.
0
EI_123
Badges: 0
Rep:
?
#22
Report 16 years ago
#22
(Original post by amazingtrade)
C++ I just love though as it is so structured however C is annoying when you want to simple stuff like use strings. The only way I know of storing strings in C++ is to use an array and a for loop to populate it.
You can use the same array in C as in C++.

Anyway that's not the regular way to deal with strings which is this one:

char *message_string = (char*)malloc(512); //alloc 512 bytes for it
strcpy(message_string,"THIS IS AN EXAMPLE"); //fill it with text
printf(message_string);
strcat(message_string," THAT WOULD RUN UNDER C OR C++"); //add more text
printf(message_string);
free(message_string); //dealloc
0
BossLady
Badges: 0
Rep:
?
#23
Report Thread starter 16 years ago
#23
(Original post by amazingtrade)
My favourite is ASP vbscript and C++. I think I will like Java but not done enough in it yet so I am still a novice. I will try and right a simple applet tonight. PHP is pretty easy but I have yet to learn how to get it to work with MySQL.

C++ I just love though as it is so structured however C is annoying when you want to simple stuff like use strings. The only way I know of storing strings in C++ is to use an array and a for loop to populate it.

At least Java has the same nice structure as C++ but also has full support for strings and the like.
I got a good PHP/MySQL book for ya, which might be useful...

MySQL/PHP Database Applications
by Jay Greenspan and Brad Bulger

btw there is this nice package thing i found with apache and all and php and mysql work lovely together.
http://www.firepages.com.au/
0
AT82
Badges: 0
Rep:
?
#24
Report 16 years ago
#24
Yeah I downloaded apache the otherday but when I stuck an index page in the HTDOCs directory everytime I tried to load it up by typing in my IP address in the URL bar my router configuration screen kept displaying :confused:
0
Alaric
Badges: 1
Rep:
?
#25
Report 16 years ago
#25
(Original post by amazingtrade)
Yeah I downloaded apache the otherday but when I stuck an index page in the HTDOCs directory everytime I tried to load it up by typing in my IP address in the URL bar my router configuration screen kept displaying :confused:
try viewing 127.0.0.1
0
EI_123
Badges: 0
Rep:
?
#26
Report 16 years ago
#26
(Original post by Alaric)
try viewing 127.0.0.1
Yes or localhost
0
Alaric
Badges: 1
Rep:
?
#27
Report 16 years ago
#27
(Original post by Eternal Idol)
Yes or localhost
same thing, except there has to be a localhost definition in the hosts file for that to work...
0
EI_123
Badges: 0
Rep:
?
#28
Report 16 years ago
#28
(Original post by Alaric)
same thing, except there has to be a localhost definition in the hosts file for that to work...
Most probably it would be ...
Have you seen my answer about compiled/linked code in a previous post of yours?
0
Alaric
Badges: 1
Rep:
?
#29
Report 16 years ago
#29
(Original post by Eternal Idol)
Have you seen my answer about compiled/linked code in a previous post of yours?
I think I did, it was a long time ago now, non?
0
AT82
Badges: 0
Rep:
?
#30
Report 16 years ago
#30
127.0.0.1 works fine but how would I get it work on the www and not just locally?
0
EI_123
Badges: 0
Rep:
?
#31
Report 16 years ago
#31
(Original post by Alaric)
I think I did, it was a long time ago now, non?
Yes, you din't answer me reply that's why I was asking.
0
Trousers
Badges: 11
Rep:
?
#32
Report 16 years ago
#32
Does anyone have Java disabled on their school PCs? I know you're all on half term at the moment so you can't check, but has anyone had problems with it in the past?

Nearly finished my site (see sig) and there's a big problem - sent it to a mate and her PC at work has got Javascript disabled so the links don't work! Apparently it's a security thing so I reckon a lot of schools will do this too.

Help?
0
Alaric
Badges: 1
Rep:
?
#33
Report 16 years ago
#33
(Original post by amazingtrade)
127.0.0.1 works fine but how would I get it work on the www and not just locally?
If you're running a NAT set up then get it to forward port 80 to your local network ip.

Your router should only show the config page to the LAN I'd guess, so that shouldn't be available to the outside.

What's your IP we can check for you?
0
Alaric
Badges: 1
Rep:
?
#34
Report 16 years ago
#34
(Original post by Eternal Idol)
Yes, you din't answer me reply that's why I was asking.
Oh, sorry, I don't always reply to everything, I seemed to think it was relatively concluded anyhow. You were working on a different layer of abstraction from me or something, don't really recall what it was now!

Alaric.
0
EI_123
Badges: 0
Rep:
?
#35
Report 16 years ago
#35
(Original post by Alaric)
Oh, sorry, I don't always reply to everything, I seemed to think it was relatively concluded anyhow. You were working on a different layer of abstraction from me or something, don't really recall what it was now!

Alaric.
No problem, I just told you that compiled code already contains machine code.
0
EI_123
Badges: 0
Rep:
?
#36
Report 16 years ago
#36
(Original post by piginapoke)
For me, 'real' programmers don't use bloated IDEs to virtually write code for them. Its all very well using your nice VC++ and JBuilder until you've had to debug something out in the field using only vi (not fancy dan vim either!)
Of course, except when the boss don't let me I just use Windows API's in C\C++ but for my own projects I only use Assembly since I know how to.
0
EI_123
Badges: 0
Rep:
?
#37
Report 16 years ago
#37
(Original post by piginapoke)
Those who can, program assembly. Those who can't, write C
Yeah, anyway I don't call myself a real programmer; I want to be one, I'm a professional programmer with some knowledge, more than the average hehe
0
innitman_uk
Badges: 0
Rep:
?
#38
Report 16 years ago
#38
c++, probably cos its the only one i know
0
ben2111
Badges: 0
Rep:
?
#39
Report 16 years ago
#39
(Original post by Eternal Idol)
Everyone will tell you 'the best language is the one that you can apply to a specific work' and I agree.
But if I have to compare languages, the code produced by C compilers is so much better than the Pascal's one and I don't like the Pascal syntax at all.
Pascal isn't a serious programming language, is just a thing to learn structured programming.

The same goes in the comparing of VC++ and Borland Builder, the code produced by the compilers; VC++ code is so much better than the BB one.

That's my opinion, just mine, not the holy truth.
:cool:
I have doubts about the compiled code. Why do Delphi apps run as fast as VC++ apps? It´s the same compiler,more or less.
0
ben2111
Badges: 0
Rep:
?
#40
Report 16 years ago
#40
(Original post by Eternal Idol)
You can use the same array in C as in C++.

Anyway that's not the regular way to deal with strings which is this one:

char *message_string = (char*)malloc(512); //alloc 512 bytes for it
strcpy(message_string,"THIS IS AN EXAMPLE"); //fill it with text
printf(message_string);
strcat(message_string," THAT WOULD RUN UNDER C OR C++"); //add more text
printf(message_string);
free(message_string); //dealloc
hehehe... that´s exactly why Delphi is so comfortable, cause all this

char *message_string = (char*)malloc(512);

can just be replaced by MyVariable:string; in Delphi! And don´t tell me the memory is not properly allocated or anything, not one byte is wasted this way!
0
X
new posts
Back
to top
Latest
My Feed

See more of what you like on
The Student Room

You can personalise what you see on TSR. Tell us a little about yourself to get started.

Personalise

What are you most likely to do if you don't get the grades you were expecting?

Go through Clearing (101)
37.97%
Take autumn exams (86)
32.33%
Look for a job (8)
3.01%
Consider an apprenticeship (9)
3.38%
Take a year out (45)
16.92%
Something else (let us know in the thread!) (17)
6.39%

Watched Threads

View All