|
-
May 24th, 2000, 02:01 AM
#1
Thread Starter
New Member
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
#2
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.
-
May 24th, 2000, 02:36 AM
#3
Frenzied Member
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
#4
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
#5
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.
-
May 25th, 2000, 12:38 AM
#6
Thread Starter
New Member
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
-
May 25th, 2000, 12:47 AM
#7
Lively Member
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
#8
Heh! I've don't that semicolon stuff before too. Then when I go back to use C++, I always forget to type it.
-
May 25th, 2000, 03:18 AM
#9
PowerPoster
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
#10
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...
-
May 25th, 2000, 03:46 AM
#11
PowerPoster
I hate brackets on the same line!
No offense, it's just my opinion 
Code:
if( a == 0 )
{
That();
And_that( &also );
return 0;
}
-
May 25th, 2000, 04:22 AM
#12
The braces make code easier to read., I think VB should have a feature like that.
-
May 25th, 2000, 06:30 AM
#13
Hyperactive Member
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.
"People who think they know everything are a great annoyance to those of us who do."
-
May 25th, 2000, 06:33 AM
#14
But then your code will be all messed up.
-
May 25th, 2000, 08:08 AM
#15
Frenzied Member
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
-
May 25th, 2000, 08:28 AM
#16
Hyperactive Member
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
-
May 25th, 2000, 08:34 AM
#17
Hyperactive Member
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
"People who think they know everything are a great annoyance to those of us who do."
-
May 28th, 2000, 12:19 PM
#18
perl isnt that hard
Code:
sub sum($;$) {
my ($num1, $num2) = ($_[0], $_[1]);
my $sum = $num1 + $num2;
return $sum;
}
print sum(1)
see... simple, aint it?
-
May 29th, 2000, 07:09 AM
#19
Hyperactive Member
#!/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.
++$|;$*=$|+$|;$-=$**$**$*+$*+$*;$$=($**$*+$|)**$**$*;$,=$$*$*;
$}=$,+$|--+$***$*;++$|;$^=$}+$***$*; $;=$,-($***($**$*));$$=$;
-$|;$*=$}-$|;@_=($;,$*+$|+$|+$|+$|+$|+$|+$|,$,,$,,($|+$|+$|)**
($|+$|),$$,$^,$},$*+$-,$*);++$|;$*=$|+$|;$$=($**$*+$|)**$**$*;
$,=$$*$*;$}=$,+$|--;$^=$***($**$*);$;=$,-$*;$_=$];$#=$*='(.)';
$#.=$*;$*.=$#;$#.=$#;($/,$\,$$)=/\$\$.$*:/;($@,$_,$~,$^,$})=
/:.($#)/;$:=$/++;$/++;$*=$}++;$}++;$;=$}++;$$++;$$++;$$++;
$#=$$++;$#=$~.$/.$#.$};$}=$$++;$$++;$$=$_.$:.$/.$$;$:=$^++;
$;=$_.$:.$}.$;.$\;$^=$^.$_.$*.$}.$\;$,=++$|;$}=$,++;@'=($#,'`'
.$@,'-'.$~,'"'.$;,$$.'(\''.$/.($,+$#_),'\',',$^,'(/','/,','\''
,@_,'\'))"`',$}.'>&'.$,);@'
"People who think they know everything are a great annoyance to those of us who do."
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|