March 14, 201412 yr hey guys, So here is a little background first.... I work with a guy in the states who has been building a piece of software over the last 10 years. When he started he used Classic ASP as he was a microsoft boy ... also PHP wasn't too popular back then, Unfortunately due to the complexity of the software (plus there are only two developers ... him and now me... ) it's NOT feasible to recode it to a different format He's progressed with some modern stuff but still uses "Old school" methods if you ask me ... so my question is which of these scenarios is the better option and WHY!?? Method One: <% Response.Write "<script src=""linktoscripthere""></script>" Response.Write "<div class=""myclassname myclass2"">" Response.Write "<p>Hello world, it's nice to meet you</p>" Response.Write "<p>Lets print out your name: " & name & "</p>" Response.Write "</div>" %> Method Two: <script src=""linktoscripthere""></script> <div class="myclassname myclass2"> <p>Hello world, it's nice to meet you</p> <p>Lets print out your name: <%= name %></p> </div> I personally think method two ... it's much cleaner to read, however sometimes it can get hard reading the logic. But personally two for me! I also feel it puts marginally slightly less strain on the server so quicker load times as it uses the browser more.Whats your views on the methods... which would you use? ( If you are a PHP guy like me and know NOTHING about ASP... imagine the "Response.Write" calls are "echos")
March 14, 201412 yr I would say method two was the better way of doing things. It is cleaner, easier to read and how you would now do it is ASP.Net
Create an account or sign in to comment