From C++ to ASP
-
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
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]
-
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
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
-
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
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 :-)
-
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
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){...};
-
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
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!*
-
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
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
-
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
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
-
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){...};
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
-
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
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
-
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
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
-
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
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 -
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
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
-
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.comJavascript 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
-
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
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.
-
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.
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
-
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
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
-
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
Ditto. Also turned off “Automatically check for Internet Explorer updates.”