Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. From C++ to ASP

From C++ to ASP

Scheduled Pinned Locked Moved The Lounge
csharpc++comquestion
36 Posts 19 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Noam Ben Haim

    Hello, just wanted to share my feelings... I was a C++ developer for almost 3 years but now moved to another position where I need to do most of the stuff in ASP. I can't describe how much I miss C++... the mess of ASP... I am now holding my breath till MY company will give an OK to the .NET so I can start work in C# (not as good as C++ but on the way. it gives back most of the important things to web developing, IMHO) response (.Write...) anyone? N Noam Ben Haim Systems Developer Intel noam.ben.chaim@intel.com

    K Offline
    K Offline
    Klaus Probst
    wrote on last edited by
    #20

    Remember to turn on Option Explicit :laugh: But seriously though, you can still code server-side JScript. At least it looks more like C++ than VBScript :) ___________ Klaus [www.vbbox.com]

    1 Reply Last reply
    0
    • P Paul Watson

      Michael P Butler wrote: Because it is the default language when IIS is installed Amen! Most non-techy people I know still have MSN as their homepage for Internet Explorer. The power of a Default setting :) regards, Paul Watson Bluegrass Cape Town, South Africa Do you Sonork? I do! 100.9903 Stormfront "The greatest thing you will ever learn is to love, and be loved in return" - Moulin Rouge

      D Offline
      D Offline
      David Wulff
      wrote on last edited by
      #21

      Ah, but do most non-techy people you know run web servers. I hope not. Any admin who is prepared to force his programmers to use an inferior language just because he can't be bothered to change the setting, does not deserver the job title. Just imagine, if the whole world accepted the default settings all the time, everybody would be 6'6", have blond hair and blue eyes. Not to mention that the common language would be Afghan and we'd all count in base 2... 1001 1011 0011 0111 1110 1101 1010 1101 0010. ________________ David Wulff http://www.davidwulff.co.uk "I loathe people who keep dogs. They are cowards who haven't got the guts to bite people themselves" - August Strindberg

      P 1 Reply Last reply
      0
      • P Paul Watson

        Michael P Butler wrote: Because it is the default language when IIS is installed Amen! Most non-techy people I know still have MSN as their homepage for Internet Explorer. The power of a Default setting :) regards, Paul Watson Bluegrass Cape Town, South Africa Do you Sonork? I do! 100.9903 Stormfront "The greatest thing you will ever learn is to love, and be loved in return" - Moulin Rouge

        M Offline
        M Offline
        Michael P Butler
        wrote on last edited by
        #22

        Paul Watson wrote: Most non-techy people I know still have MSN as their homepage for Internet Explorer. Oops. Even my laptop that I'm current working on still as MSN as the default home page :-) Must change it to something else, but then I hardly ever start browsing by clicking on IE. Michael :-)

        1 Reply Last reply
        0
        • P Paul Watson

          Michael P Butler wrote: Because it is the default language when IIS is installed Amen! Most non-techy people I know still have MSN as their homepage for Internet Explorer. The power of a Default setting :) regards, Paul Watson Bluegrass Cape Town, South Africa Do you Sonork? I do! 100.9903 Stormfront "The greatest thing you will ever learn is to love, and be loved in return" - Moulin Rouge

          C Offline
          C Offline
          CMFC6 0VS NETUser
          wrote on last edited by
          #23

          Is you homepage a your website(yourserver.com/yourpage.html), another site(notyourserver.com/notyourpage.html), the about protocal(about:blank or about:<B>Hello World...</B>), your a page you built on you harddrive that is useful(file://C:/mypage.html). I started with about:blank because any site I would have wanted to be homepage has updated content(like codeproject.com) and it takes to long for my connection. I just made a page for Favorite Site Links. Real World Coding:      POP& BuyAPop(Money ADollar){...};

          P 1 Reply Last reply
          0
          • P Paul Watson

            Graham Douglas wrote: In other words, if I left they'd be stuck! i.e. demand a raise. You are in a good position, exploit it. Graham Douglas wrote: I too am holding out for the great .NET to save me from the ASP and VB I'm now doing Muwahahahaha! Save you? *evil grin* oh but Graham, it will enslave you further. Enter the C# fold little one... Muwahahahaha!* * I am not sure how Bill Gates laughs, but this is the best approximation I could type :-D regards, Paul Watson Bluegrass Cape Town, South Africa Do you Sonork? I do! 100.9903 Stormfront "The greatest thing you will ever learn is to love, and be loved in return" - Moulin Rouge

            G Offline
            G Offline
            Graham Douglas
            wrote on last edited by
            #24

            Ah, but here lies the downside. I raise my head and ask for a raise and I'll be out of a job faster than a greased whippet! And with the state of the job market as it is I'd rather dig in and sit tight thanks! Graham *Watching the Sword of Damocles slowly moving around the office!*

            1 Reply Last reply
            0
            • D David Wulff

              Ah, but do most non-techy people you know run web servers. I hope not. Any admin who is prepared to force his programmers to use an inferior language just because he can't be bothered to change the setting, does not deserver the job title. Just imagine, if the whole world accepted the default settings all the time, everybody would be 6'6", have blond hair and blue eyes. Not to mention that the common language would be Afghan and we'd all count in base 2... 1001 1011 0011 0111 1110 1101 1010 1101 0010. ________________ David Wulff http://www.davidwulff.co.uk "I loathe people who keep dogs. They are cowards who haven't got the guts to bite people themselves" - August Strindberg

              P Offline
              P Offline
              Paul Watson
              wrote on last edited by
              #25

              David Wulff wrote: Just imagine, if the whole world accepted the default settings all the time, everybody would be 6'6", have blond hair and blue eyes Errrr so you are saying keeping the defaults is a good thing? I wouldn't mind being by default 6'6", blond haired and blue eyed. Leave those defaults alone! :-D Though the Afghan thing is bad, I will create a country called Aaaaaaaaaaargghhh so that it is the default :laugh: David Wulff wrote: we'd all count in base 2... 1001 1011 0011 0111 1110 1101 1010 1101 0010 Interesting default that.. where is it from? regards, Paul Watson Bluegrass Cape Town, South Africa Do you Sonork? I do! 100.9903 Stormfront "The greatest thing you will ever learn is to love, and be loved in return" - Moulin Rouge

              D 1 Reply Last reply
              0
              • A Alvaro Mendez

                I've done my share of Web development with ASP and I have to say that I actually like it. Sure, it's not as challenging as C++, but it's got enough complications to keep it interesting. For one thing, you have the Server side. That's done in VBScript. You may say, "VBScript, yuck!", to which I agree; the syntax is kind of ugly. But VBScript is a pretty powerful little language, especially if you consider that you can create classes with constructors, destructors, properties, etc. After a couple of ASP projects I actually went back and wrapped all my ADO-related code inside a class. That was fun and it made the code a lot cleaner and more maintainable. Then there's the Client side of things. There you end up having to deal with HTML and it's intricacies. If you have to support IE and Netscape, it's a pain in the rear. If you only worry about IE, then life is actually pretty nice. You can so much with DHTML on IE that your web page can behave a lot like regular dialog box. And for DHTML, the language of choice is JavaScript -- another cool little language which also allows you to create your own classes, and actually extend exiting ones! Case in point: I was doing some client-side validations on a field to ensure that the user had entered something. I wanted to check the trimmed version of the value and noticed that the JavaScript String class does not have a trim function. So I added this code to a js file, included it in my page, and viola, the String class now had a trim function:

                var TRIM_LEADING = 1;
                var TRIM_TRAILING = 2;
                var TRIM_BOTH = 3;

                // Returns a copy of self's string with no leading and/or trailing spaces.
                String.prototype.trim = function(nFlags)
                {
                var strResult = this;

                // If nFlags wasn't passed trim both sides	
                if (!nFlags)		
                	nFlags = TRIM\_BOTH;			
                
                var iPos = 0;	
                if (nFlags & TRIM\_LEADING)	
                {		
                	while (iPos < strResult.length && strResult.charAt(iPos) == ' ')			
                		iPos++;		
                
                	strResult = strResult.substr(iPos, strResult.length - iPos);	
                }		
                
                if (nFlags & TRIM\_TRAILING)	
                {		
                	for (iPos = strResult.length - 1; iPos >= 0 && strResult.charAt(iPos) == ' '; )			
                		--iPos;		
                
                	strResult = strResult.substr(0, iPos + 1);	
                }		
                
                return strResult;
                

                }

                Pretty cool, ha? I don't know of any other language that lets you do this. Another cool thing I discovered with ASP pages is remote scripting. You can actually execute code on the server without submitting the page. That's pretty neat stuff and, again, makes the page behave more

                D Offline
                D Offline
                David Wulff
                wrote on last edited by
                #26

                Alvaro Mendez wrote: For one thing, you have the Server side. That's done in VBScript. You can use Microsoft's JScript language too, which executes faster ninety nine times out a hundred, and is just as easy to use, especially if you also use C/C++. Alvaro Mendez wrote: You may say, "VBScript, yuck!" I do, but only because it is IE specific client-side, and slower server-side than guess what - yes, JScript. That and I can't get used to not ending all my lines with a semicolon! Alvaro Mendez wrote: Pretty cool, ha? I don't know of any other language that lets you do this. Even more reason to use it server-side as well! Gee, I wonder if anybody has started to catch my drift yet? (hint, it begins with a 'J'). ________________ David Wulff http://www.davidwulff.co.uk "I loathe people who keep dogs. They are cowards who haven't got the guts to bite people themselves" - August Strindberg

                K 1 Reply Last reply
                0
                • C CMFC6 0VS NETUser

                  Is you homepage a your website(yourserver.com/yourpage.html), another site(notyourserver.com/notyourpage.html), the about protocal(about:blank or about:<B>Hello World...</B>), your a page you built on you harddrive that is useful(file://C:/mypage.html). I started with about:blank because any site I would have wanted to be homepage has updated content(like codeproject.com) and it takes to long for my connection. I just made a page for Favorite Site Links. Real World Coding:      POP& BuyAPop(Money ADollar){...};

                  P Offline
                  P Offline
                  Paul Watson
                  wrote on last edited by
                  #27

                  Mine is also about:blank. Fastest one to load. regards, Paul Watson Bluegrass Cape Town, South Africa Do you Sonork? I do! 100.9903 Stormfront "The greatest thing you will ever learn is to love, and be loved in return" - Moulin Rouge

                  H 1 Reply Last reply
                  0
                  • P Paul Watson

                    David Wulff wrote: Just imagine, if the whole world accepted the default settings all the time, everybody would be 6'6", have blond hair and blue eyes Errrr so you are saying keeping the defaults is a good thing? I wouldn't mind being by default 6'6", blond haired and blue eyed. Leave those defaults alone! :-D Though the Afghan thing is bad, I will create a country called Aaaaaaaaaaargghhh so that it is the default :laugh: David Wulff wrote: we'd all count in base 2... 1001 1011 0011 0111 1110 1101 1010 1101 0010 Interesting default that.. where is it from? regards, Paul Watson Bluegrass Cape Town, South Africa Do you Sonork? I do! 100.9903 Stormfront "The greatest thing you will ever learn is to love, and be loved in return" - Moulin Rouge

                    D Offline
                    D Offline
                    David Wulff
                    wrote on last edited by
                    #28

                    Paul Watson wrote: Interesting default that.. where is it from? I was thinking more along the lines of "well, base 2 comes before base 10, so logically the first would be the default". Of course, humans started counting in base 10 before base 2, but that is beside the point... Is there are base 1? ________________ David Wulff http://www.davidwulff.co.uk "I loathe people who keep dogs. They are cowards who haven't got the guts to bite people themselves" - August Strindberg

                    P 1 Reply Last reply
                    0
                    • D David Wulff

                      Paul Watson wrote: Interesting default that.. where is it from? I was thinking more along the lines of "well, base 2 comes before base 10, so logically the first would be the default". Of course, humans started counting in base 10 before base 2, but that is beside the point... Is there are base 1? ________________ David Wulff http://www.davidwulff.co.uk "I loathe people who keep dogs. They are cowards who haven't got the guts to bite people themselves" - August Strindberg

                      P Offline
                      P Offline
                      Paul Watson
                      wrote on last edited by
                      #29

                      David Wulff wrote: Is there are base 1? *scratches my head* is that possible? or rather useful? I remember laughing when I found out that the number 0 is quite a recent invention compared to other numbers. Apparently it was introduced by the Arabs when they still kicked ass. David Wulff wrote: logically the first would be the default". Of course, humans started counting in base 10 before base 2, but that is beside the point... Well logically I would like to see base 10 as the default. It is a more common default option. That brings up a gripe I have with websites. Why put Afghanistan at the top of the country list? I mean how many web-users do they expect to come from Afghanistan? For instance a UK website should have UK as the first country. Much more logical. regards, Paul Watson Bluegrass Cape Town, South Africa Do you Sonork? I do! 100.9903 Stormfront "The greatest thing you will ever learn is to love, and be loved in return" - Moulin Rouge

                      D 1 Reply Last reply
                      0
                      • D David Wulff

                        VBScript? VBScript? You use VBScript? You should be ashamed of yourself. Call yourself a respectable ASP developer? See the light - use JScript. It executes faster and is easier to use if you also write client-side scripts (as client-side VBScript only works in IE). I never have figured out why the majority of ASP enabled sites choose to use VBScript. Any ideas? Is it purely because the developers conceive it to be more related to VB, and thus easier to use? ________________ David Wulff http://www.davidwulff.co.uk Tom Jones once sang: "What's new pussycat?" But he's a twat so let's ignore that shall we? - Craig Pilling

                        S Offline
                        S Offline
                        Steven Hicks n 1
                        wrote on last edited by
                        #30

                        I find Javascript better to use also. That is the only client site scripting i do on my web site (besides the HTML). It works well. -Steven Visit Ltpb.8m.com
                        Looking for more tutorials? Ltpb.8m.com/Tutorial
                        3D Image Library: Ltpb.8m.com/Image
                        Surf the web faster than ever: http://www.404Browser.com

                        D 1 Reply Last reply
                        0
                        • P Paul Watson

                          David Wulff wrote: Is there are base 1? *scratches my head* is that possible? or rather useful? I remember laughing when I found out that the number 0 is quite a recent invention compared to other numbers. Apparently it was introduced by the Arabs when they still kicked ass. David Wulff wrote: logically the first would be the default". Of course, humans started counting in base 10 before base 2, but that is beside the point... Well logically I would like to see base 10 as the default. It is a more common default option. That brings up a gripe I have with websites. Why put Afghanistan at the top of the country list? I mean how many web-users do they expect to come from Afghanistan? For instance a UK website should have UK as the first country. Much more logical. regards, Paul Watson Bluegrass Cape Town, South Africa Do you Sonork? I do! 100.9903 Stormfront "The greatest thing you will ever learn is to love, and be loved in return" - Moulin Rouge

                          D Offline
                          D Offline
                          David Wulff
                          wrote on last edited by
                          #31

                          Paul Watson wrote: Apparently it was introduced by the Arabs when they still kicked ass. They kicked their donkeys? I'll have to get on to the RSPCA about that... :cool: Paul Watson wrote: For instance a UK website should have UK as the first country. Much more logical Some sites have the top ten or so countries at the top of the list, and then the rest underneath. That is the best solution IMHO. (Though of course, setting UK as the default all over the world would be much more useful to me!) ________________ David Wulff http://www.davidwulff.co.uk "I loathe people who keep dogs. They are cowards who haven't got the guts to bite people themselves" - August Strindberg

                          1 Reply Last reply
                          0
                          • S Steven Hicks n 1

                            I find Javascript better to use also. That is the only client site scripting i do on my web site (besides the HTML). It works well. -Steven Visit Ltpb.8m.com
                            Looking for more tutorials? Ltpb.8m.com/Tutorial
                            3D Image Library: Ltpb.8m.com/Image
                            Surf the web faster than ever: http://www.404Browser.com

                            D Offline
                            D Offline
                            David Wulff
                            wrote on last edited by
                            #32

                            Javascript and JScript are different things, though still very similar. JScript is the Microsoft implementation of ECMAScript Edition 3. With only a few minor exceptions, JScript is a full implementation of the ECMA standard #262. (http://www.ecma.ch/ecma1/STAND/ECMA-262.HTM) JavaScript is Netscape's cross-platform, object-based scripting language for client and server applications. I couldn't find if this was based on ECMA-262, was the source for ECMA-262, or is unrelated. Maybe someone could help me with this? That is the only client site scripting i do on my web site (besides the HTML). I should hope so, as using VBScript limits the viewers of your web site to Internet Explorer users. Whilst that would only affect a few visitors, you cna bet they'd kick up a fuss. ________________ David Wulff http://www.davidwulff.co.uk "I loathe people who keep dogs. They are cowards who haven't got the guts to bite people themselves" - August Strindberg

                            1 Reply Last reply
                            0
                            • D David Wulff

                              Alvaro Mendez wrote: For one thing, you have the Server side. That's done in VBScript. You can use Microsoft's JScript language too, which executes faster ninety nine times out a hundred, and is just as easy to use, especially if you also use C/C++. Alvaro Mendez wrote: You may say, "VBScript, yuck!" I do, but only because it is IE specific client-side, and slower server-side than guess what - yes, JScript. That and I can't get used to not ending all my lines with a semicolon! Alvaro Mendez wrote: Pretty cool, ha? I don't know of any other language that lets you do this. Even more reason to use it server-side as well! Gee, I wonder if anybody has started to catch my drift yet? (hint, it begins with a 'J'). ________________ David Wulff http://www.davidwulff.co.uk "I loathe people who keep dogs. They are cowards who haven't got the guts to bite people themselves" - August Strindberg

                              K Offline
                              K Offline
                              Konstantin Vasserman
                              wrote on last edited by
                              #33

                              I just wonder where is this information about JavaScript (or JScript) being faster than VBScript coming from. Can you point me (us) to any sources? The reason I am asking is that I cannot seems to locate any information about it right now, but I remember reading a long time ago that it was the other way around - VBScript was actually a little faster than JScript (at least the server side)... Thank you.

                              D 1 Reply Last reply
                              0
                              • K Konstantin Vasserman

                                I just wonder where is this information about JavaScript (or JScript) being faster than VBScript coming from. Can you point me (us) to any sources? The reason I am asking is that I cannot seems to locate any information about it right now, but I remember reading a long time ago that it was the other way around - VBScript was actually a little faster than JScript (at least the server side)... Thank you.

                                D Offline
                                D Offline
                                David Wulff
                                wrote on last edited by
                                #34

                                Konstantin Vasserman wrote: I just wonder where is this information about JavaScript (or JScript) being faster than VBScript coming from. Can you point me (us) to any sources? It's no secret, even though I can't seem to locate any documentation at the moment - especially the very detailed performance statistics I can remember viewing before - though i've only briefly searched. In the meantime, try setting up a few test scripts to see for yourself. Just write a few similar statements in each language and use a performance timing application to execute each one, say, 2000 times in succession and calculate the average execution time. Bear in mind that we are talking about milliseconds of difference here, not minutes. You would only notice improvements if you were designing a high-traffic site where losts of simultaneous requests are executed at the same time. (I seem to vaguely remember it had something to do with the fact that the JSCript interpretation engine required less overhead-per-operation - though don't quote me on that) I will try to locate this information for you. ________________ David Wulff http://www.davidwulff.co.uk "I loathe people who keep dogs. They are cowards who haven't got the guts to bite people themselves" - August Strindberg

                                1 Reply Last reply
                                0
                                • N Noam Ben Haim

                                  Hello, just wanted to share my feelings... I was a C++ developer for almost 3 years but now moved to another position where I need to do most of the stuff in ASP. I can't describe how much I miss C++... the mess of ASP... I am now holding my breath till MY company will give an OK to the .NET so I can start work in C# (not as good as C++ but on the way. it gives back most of the important things to web developing, IMHO) response (.Write...) anyone? N Noam Ben Haim Systems Developer Intel noam.ben.chaim@intel.com

                                  P Offline
                                  P Offline
                                  Paul Wolfensberger
                                  wrote on last edited by
                                  #35

                                  Ummmm.....I've been writing COM objects in C++ for the last 3 years which I use in our ASP pages. Not only am I able to write Object-Oriented code, but I can debug a C++ COM object in the fraction of the time that it takes me to debug an ASP page written with script. Another benefit: The COM object executes very quickly compared to script. Paul

                                  1 Reply Last reply
                                  0
                                  • P Paul Watson

                                    Mine is also about:blank. Fastest one to load. regards, Paul Watson Bluegrass Cape Town, South Africa Do you Sonork? I do! 100.9903 Stormfront "The greatest thing you will ever learn is to love, and be loved in return" - Moulin Rouge

                                    H Offline
                                    H Offline
                                    Henry Jacobs
                                    wrote on last edited by
                                    #36

                                    Ditto. Also turned off “Automatically check for Internet Explorer updates.”

                                    1 Reply Last reply
                                    0
                                    Reply
                                    • Reply as topic
                                    Log in to reply
                                    • Oldest to Newest
                                    • Newest to Oldest
                                    • Most Votes


                                    • Login

                                    • Don't have an account? Register

                                    • Login or register to search.
                                    • First post
                                      Last post
                                    0
                                    • Categories
                                    • Recent
                                    • Tags
                                    • Popular
                                    • World
                                    • Users
                                    • Groups