Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 Response.Write() vs <% %>
 New Topic  Topic Locked
 Printer Friendly
Previous Page
Author Previous Topic Topic Next Topic
Page: of 2

Dan Martin
Average Member

USA
528 Posts

Posted - 20 July 2001 :  16:58:38  Show Profile  Visit Dan Martin's Homepage  Send Dan Martin an AOL message  Send Dan Martin an ICQ Message  Send Dan Martin a Yahoo! Message
quote:
Yes much and much. There must be an interpreter behind it, taking all the strings, parsing them into tokens, making calls to OS subroutines, sending messages, waiting for the result, etc. If you guys have taken cources on computer language/compiler design must know that.


Obviously I have not. I was going from inferred knoweledge, but obviously, I'm mistaken on how the ASP/IIS engines operate.

-Dan
Go to Top of Page

Deleted
deleted

4116 Posts

Posted - 20 July 2001 :  18:10:29  Show Profile
quote:

I think what Dan's trying to say, is that on today's typical server machine you're not going to notice a difference between Method A for creating a query and Method B. Now on a benchmark test, there would be a few milliseconds of difference, but to the normal viewer, they won't know any better, and that's what matters



I second that by part. And let this old guy tell you something, as a man who's first PC was a 8086 based machine (after Commodore 64), and had to implement programs under 640KB limit, a lot of firmware which had to fit in 1 KB and had to run in real time limits to control machines. I'll try to keep it short .

The problem is "the cost". In software engineering economics each step in the software cycle has its own costs (starting from requirements definition, through design, prototyping, implementation, test stages upto documentation and maintanence steps). There are a lot of related issues which are off topic here (commenting, versioning, use of CASE tools, etc).

But, one critical decision is the use of methodology. Depending on the application in hand one may implement the software using assembly language or Visual Basic. Why does a person choose assembly language? Because its incredible fast ! But the cost pf implementation AND maintanence is too high!

Most of the SW companies use Object Oriented coding environments and thus wasting resources of HW (Memory, processing time etc). This is also the case for MS$. As you know the requirements of each OS they publish doubles. But others will pay for them! This methodology will be OK if used on client machines, but on servers things will be different, as each connection will use the same machine.

Same applies here. Just to visualize it: If one page wastes 10 msec on each page, and there are 10,000 page views/day for this website, and there are 100 websites running on this machine... The total loss will be (0.01sec * 10,000 *. 100 = 10,000 sec) 2.7 hours of server processing time. Same applies for memory, connections, HDD access, bandwidth of any channel etc. Thus if you make a program that will run 10,000 times a day (even not in a loop :) you have to take care of these resources. Thats the "art of programming", thats the challenge and nice part of it.

On the other hand, there are other costs: cost of implementation, cost of testing, debugging, maintanence etc. If your webpage design is highy changing in time (anywhere inbetween static and dynamic website) you will not be able to use web design tools if you use response.written html. You have to look at the code and and see how large an image is and design another one etc.

There is a trade-off and you have to decide for the best cost.

Thank you for your time.

Think Pink
Go to Top of Page

Id
Junior Member

USA
129 Posts

Posted - 20 July 2001 :  18:17:20  Show Profile  Visit Id's Homepage
I'll agree with all of that, and I think it all comes down to just two things really, time and money. I mean sure it's great that you have a 100% effecient webpage, but it probably took you twice as long to develop, so you just have to find a happy medium, cut corners where you can to increase efficiency, but don't spend so much time that you decrease overall productivity

(god i've gone cross eye )

Anyway, my two cents

Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Previous Page
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.36 seconds. Powered By: Snitz Forums 2000 Version 3.4.07