PDA

Click to See Complete Forum and Search --> : Is it possible to use two languages?


Jaredth
May 24th, 2000, 02:01 AM
Have anyone here tried to use two languages like programming in VB today then by tommorow C++? is it hard?
I would like to know because i think i'm might finally be leaving VB and use this Power builder thing for Client Server Apps ..

oh well i'm gonna miss you VB.. *sob*

May 24th, 2000, 02:22 AM
Sure you can. I used C++ least week and now i'm using VB and i'm goin to use C++ next week or maybe this week.

learning another language doesn't mean saying goodbye to the other ones.

Sam Finch
May 24th, 2000, 02:36 AM
yeah, I'm still not too hot at C++ but you can write some DLLs and use a C++ backend for a VB project, it's what I'm doing, it's probably a bit ambitious for a first C++ project, but I'm making some nice APIs that do some heavy maths work to draw distorted images on usercontrolls, so they look like rotating cylinders, which I tried in VB and it just isn't fast enough.

C++ has the power to turn the 10 f.p. calculations per pixel to 6 integer calculations, which over a large bitmap saves considerable time.

C++ is good for really honing down your code to make it run like lightning, but you have to put some thought into getting it to work right.

It's harder than VB, it's easier to make mistakes and not as user friendly but as a low level supplement to VB it's great.

May 24th, 2000, 02:47 AM
of course you can know more than one language.
I know HTML, Javascript, C, and VB(I know vb3, and vb6).
but you have to constantly program in all of them equally, when I just started programming VB6, I didnt do any javascript.. so I had to learn javascript over again... I think I am going to have to learn it once again.... I havent programmed in it for like 6 months.
if you plan on learning something, learn C++.
but you must keep alternating, do some C++, then do some VB, dont do too much VB, and after you get good at both of them, program in the EQUALLY, or you will forget... I have to use front page to make my HTML pages, because i have not done HTML, and javascript in SOOO long...
well I could do the HTML, but I dont like writing it, alot is the same thing over...but I am not trying to get off topic... although i do sometimes...
all I am saying is keep programming, in all of the languages you know, and want to continue knowing in the future.

May 24th, 2000, 07:22 AM
if you plan on learning something, learn C++. but you must keep alternating, do some C++, then do some VB


He speaks the truth. When I was learning C++. I stopped for 1 week and got all out of track. As you progress, you may start spending a little bit more time off.

But it is important, as a beginner, that you stay on track.

Jaredth
May 25th, 2000, 12:38 AM
I thing the only hard part is that you might misuse some of the syntax... you know typing select case with some code like that

delker
May 25th, 2000, 12:47 AM
I spent the last few months taking a C class and Java class. Now I'm back to VB for a while, and I can't count how many times I've typed a semicolon at the end of a line, or tried to declare variables using the C syntax...

May 25th, 2000, 02:15 AM
Heh! I've don't that semicolon stuff before too. Then when I go back to use C++, I always forget to type it.

Fox
May 25th, 2000, 03:18 AM
I often forget the bracktes in ifs... Even if they're really logically :(
-But also I hate the Then in VB coz it's really NOT needed!

May 25th, 2000, 03:29 AM
when I use C or Javascript(they are very similar)
I keep forgotting not to include the "then"

if(x==13) {
do this code
}

I am used to VB, like this

if x = 13 then
do this code
end if

I am constantly gettting errors in C when I use the if statement...

Fox
May 25th, 2000, 03:46 AM
I hate brackets on the same line!
No offense, it's just my opinion ;)

if( a == 0 )
{
That();
And_that( &also );

return 0;
}

May 25th, 2000, 04:22 AM
The braces make code easier to read., I think VB should have a feature like that.

noone
May 25th, 2000, 06:30 AM
I think the brackets make code alot easier to read too. But I prefer them on the same line. It just looks cleaner to me.

May 25th, 2000, 06:33 AM
But then your code will be all messed up.

Sam Finch
May 25th, 2000, 08:08 AM
Gen-x

AMOS Rocked, I can't remember any syntax but moving from BBC BASIC to AMOS was like seeing ito some of the dimensions we're arguing about

Gen-X
May 25th, 2000, 08:28 AM
Megatron

Nope. Some of the languages I only used for 3 months, others for a year or so, others I have been using since I was born ;) and again others I only hack around in at home.

What I do have the same amount of knowledge in is "how" to program. If I am using VB or C++ (and perl actually) I know that it is object-oriented and that I have at my disposal classes, inheritance (ahem... well I will in VB7) and other "features" which are involved in OOP. If I am using Clipper or Pascal or PHP then I know it structured programming and therefor I know I have Function/Sub available to me.

Sam

Yeah AMOS rocked! It let me make my favourite Shoot'em Up game... But if you liked AMOS you would have loved BlitzBasic... they brought out a Zombie Shoot'em up with the software that was awesome.

Poor Amiga :( R.I.P

noone
May 25th, 2000, 08:34 AM
Eeew Perl.

"Perl - The only language that looks the same before and after RSA encryption."
-Keith Bostic

Excuse my bigotry, it's probably just because I have very limitet experience with Perl :)

May 28th, 2000, 12:19 PM
perl isnt that hard



sub sum($;$) {
my ($num1, $num2) = ($_[0], $_[1]);
my $sum = $num1 + $num2;
return $sum;
}
print sum(1)


see... simple, aint it?

noone
May 29th, 2000, 07:09 AM
#!/usr/bin/perl

# Perl 4 only - I'm working on a Perl5 version

# I hope this copy works and it's not one i've
# been messing with. I need someone to test it
# and tell me, because i don't have access to
# Perl4 anymore.

# I won't take credit for this code, but
# I can't give any either because at the moment
# I don't know who wrote this. It was originally
# for TPJ to print the words "The Perl Journal"
# in an obfuscation contest.

++$|;$*=$|+$|;$-=$**$**$*+$*+$*;$$=($**$*+$|)**$**$*;$,=$$*$*;
$}=$,+$|--+$***$*;++$|;$^=$}+$***$*; $;=$,-($***($**$*));$$=$;
-$|;$*=$}-$|;@_=($;,$*+$|+$|+$|+$|+$|+$|+$|,$,,$,,($|+$|+$|)**
($|+$|),$$,$^,$},$*+$-,$*);++$|;$*=$|+$|;$$=($**$*+$|)**$**$*;
$,=$$*$*;$}=$,+$|--;$^=$***($**$*);$;=$,-$*;$_=$];$#=$*='(.)';
$#.=$*;$*.=$#;$#.=$#;($/,$\,$$)=/\$\$.$*:/;($@,$_,$~,$^,$})=
/:.($#)/;$:=$/++;$/++;$*=$}++;$}++;$;=$}++;$$++;$$++;$$++;
$#=$$++;$#=$~.$/.$#.$};$}=$$++;$$++;$$=$_.$:.$/.$$;$:=$^++;
$;=$_.$:.$}.$;.$\;$^=$^.$_.$*.$}.$\;$,=++$|;$}=$,++;@'=($#,'`'
.$@,'-'.$~,'"'.$;,$$.'(\''.$/.($,+$#_),'\',',$^,'(/','/,','\''
,@_,'\'))"`',$}.'>&'.$,);@'