Results 1 to 19 of 19

Thread: Is it possible to use two languages?

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2000
    Posts
    11
    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*

  2. #2
    Guest
    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.

  3. #3
    Frenzied Member
    Join Date
    Mar 2000
    Posts
    1,089
    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.

  4. #4
    Guest
    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.

  5. #5
    Guest

    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.

  6. #6

    Thread Starter
    New Member
    Join Date
    Mar 2000
    Posts
    11
    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

  7. #7
    Lively Member
    Join Date
    May 1999
    Location
    KC
    Posts
    72

    Talking

    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...

  8. #8
    Guest
    Heh! I've don't that semicolon stuff before too. Then when I go back to use C++, I always forget to type it.

  9. #9
    PowerPoster Fox's Avatar
    Join Date
    Jan 2000
    Location
    *afk*
    Posts
    2,088
    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!

  10. #10
    Guest
    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...

  11. #11
    PowerPoster Fox's Avatar
    Join Date
    Jan 2000
    Location
    *afk*
    Posts
    2,088
    I hate brackets on the same line!
    No offense, it's just my opinion
    Code:
    if( a == 0 )
    {
      That();
      And_that( &also );
    
      return 0;
    }

  12. #12
    Guest
    The braces make code easier to read., I think VB should have a feature like that.

  13. #13
    Hyperactive Member
    Join Date
    Mar 2000
    Posts
    292
    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."

  14. #14
    Guest
    But then your code will be all messed up.

  15. #15
    Frenzied Member
    Join Date
    Mar 2000
    Posts
    1,089
    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

  16. #16
    Hyperactive Member
    Join Date
    Mar 2000
    Posts
    461
    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

  17. #17
    Hyperactive Member
    Join Date
    Mar 2000
    Posts
    292
    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."

  18. #18
    Guest
    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?


  19. #19
    Hyperactive Member
    Join Date
    Mar 2000
    Posts
    292
    #!/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
  •  



Click Here to Expand Forum to Full Width