Irish SEO,  Marketing & Webmaster Discussion

 

ASP versus PHP

This is a discussion on ASP versus PHP within the Webmaster Discussion forums, part of the Webmaster Help category; David (Behan) do you use VBscript with ASP pages? I've been going over VBscript and I can't fathom why the ...


Go Back   Irish SEO, Marketing & Webmaster Discussion > Webmaster Help > Webmaster Discussion

Register Forum Rules FAQDonate Members List Calendar Search Today's Posts Mark Forums Read


Notices

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 22-12-2006, 01:02 PM
daviddoran's Avatar
Wannabe Geek
Recent Blog: Joost
 
Join Date: Aug 2006
Location: Meath, Ireland
Posts: 342
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
daviddoran will become famous soon enough
Default

David (Behan) do you use VBscript with ASP pages?

I've been going over VBscript and I can't fathom why the language was designed as it was.
Why does it have to be so verbose? "dim","sub","end if". I don't know why they had to rewrite the book on how to declare functions, and why not use good old braces?

Also, the worst thing I believe is that they use single quotes ' for comments! How ridiculous!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 22-12-2006, 01:14 PM
louie's Avatar
Senior Member
 
Join Date: Jan 2006
Location: Dublin, Ireland
Posts: 2,009
Nominated 5 Times in 3 Posts
TOTW/F/M Award(s): 0
louie has much to be proud oflouie has much to be proud oflouie has much to be proud oflouie has much to be proud oflouie has much to be proud oflouie has much to be proud oflouie has much to be proud oflouie has much to be proud of
Send a message via Yahoo to louie Send a message via Skype™ to louie
Default

asp is different from php by those things mentioned by you above.
they do make sense outlined below
dim in asp is setting a variable in php $str=NULL; or a value otherwise you get a php error

sub is similar with functions
end if is equal to closing } bracket.
It makes sense.
Now in asp you don't have to close every line with ; where in php you get an error if you don't.

I thing those things makes the 2 languages different.
The principles are the same.
__________________
:. Web Design & Development Web Design Ireland
:. Search Engines Optimization Search Engines Optimization
:. Directory Submission Directory Submission
:. News & Press Release Ireland GiveItSocks.com
:. Used Cars Ireland, Car Parts & Car Audio Cars For Sale, Car Parts & Accessories
:. I Have 2 Find It Directory SEF Directory
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 22-12-2006, 01:23 PM
daviddoran's Avatar
Wannabe Geek
Recent Blog: Joost
 
Join Date: Aug 2006
Location: Meath, Ireland
Posts: 342
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
daviddoran will become famous soon enough
Default

I understand the language perfectly, and what their purpose is.
What I'm questioning is the actual theory behind using these things as opposed to more standard language conventions.

Why shoud you need to use dim if you are not type-setting?
It makes sense in C/C++ to use
Code:
int myint;string s("init");
because you are initialising the variable with a type, but with dim it's simply a redundant keyword.

As for using the single-quote as a comment I don't know why a language designer would go against all standard language conventions and choose that.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4 (permalink)  
Old 22-12-2006, 01:34 PM
louie's Avatar
Senior Member
 
Join Date: Jan 2006
Location: Dublin, Ireland
Posts: 2,009
Nominated 5 Times in 3 Posts
TOTW/F/M Award(s): 0
louie has much to be proud oflouie has much to be proud oflouie has much to be proud oflouie has much to be proud oflouie has much to be proud oflouie has much to be proud oflouie has much to be proud oflouie has much to be proud of
Send a message via Yahoo to louie Send a message via Skype™ to louie
Default

They are trying to be different and make the two of them distinct in their own way.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5 (permalink)  
Old 22-12-2006, 01:51 PM
TheMenace's Avatar
Hardcore Geek
 
Join Date: Nov 2006
Posts: 741
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
TheMenace will become famous soon enough
Send a message via MSN to TheMenace
Default

I've seen more subtle hijackings in The Middle East to be honest.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6 (permalink)  
Old 22-12-2006, 02:44 PM
daviddoran's Avatar
Wannabe Geek
Recent Blog: Joost
 
Join Date: Aug 2006
Location: Meath, Ireland
Posts: 342
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
daviddoran will become famous soon enough
Default

Thanks for moving the thread, whoever did. For the record it's not a PHP vs ASP question, I was having a look into ASP(VBscript) to see about learning another web language but some of the design choices seem counter-intuitive.
Not just compared to PHP, but compared to C/C++/Javascript etc.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7 (permalink)  
Old 22-12-2006, 03:57 PM
louie's Avatar
Senior Member
 
Join Date: Jan 2006
Location: Dublin, Ireland
Posts: 2,009
Nominated 5 Times in 3 Posts
TOTW/F/M Award(s): 0
louie has much to be proud oflouie has much to be proud oflouie has much to be proud oflouie has much to be proud oflouie has much to be proud oflouie has much to be proud oflouie has much to be proud oflouie has much to be proud of
Send a message via Yahoo to louie Send a message via Skype™ to louie
Default

I moved it.
About the name was the first thing that came into my mind.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8 (permalink)  
Old 22-12-2006, 04:33 PM
richardo's Avatar
Senior Senile Member
Recent Blog: Make my day
 
Join Date: Feb 2006
Location: Co Wicklow
Posts: 395
Nominated 1 Time in 1 Post
TOTW/F/M Award(s): 0
richardo has a spectacular aura about
Send a message via ICQ to richardo
Default

Quote:
I've been going over VBscript and I can't fathom why the language was designed as it was.
It wasn't designed as such AFAIK. It just evolved.

First there was BASIC [God bless it!]. Then Microsft produced their own version - QBasic which was included in DOS. That became Quick Basic which was a standalone product. That in turn became Visual Basic, when Windows became more widespread.

Microsoft then modified Visual Basic to run as the programming language for Office, and it became known as VBasic.

This in turn was modified into VBscript for use as a serverside language,

Hence, you will find a LOT of old BASICy things in the language.

There again, I might be wrong!

Anyone still able to program in BASIC?
__________________
curratech.ie | enniskerry.ie | Grandad's Blog
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9 (permalink)  
Old 22-12-2006, 04:53 PM
TheMenace's Avatar
Hardcore Geek
 
Join Date: Nov 2006
Posts: 741
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
TheMenace will become famous soon enough
Send a message via MSN to TheMenace
Default

I use ASP as I needed to learn it in my first job with an e-learning company. Even though I know PHP is better and more versatile, I can't quite bring myself to learn it for the want to learn something a little more powerful like Ruby on Rails or Java. Mind you, I haven't made much of a dent in either of them.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #10 (permalink)  
Old 22-12-2006, 05:04 PM
daviddoran's Avatar
Wannabe Geek
Recent Blog: Joost
 
Join Date: Aug 2006
Location: Meath, Ireland
Posts: 342
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
daviddoran will become famous soon enough
Default

I'm looking to expand into another language. PHP is great and because it's almost universally supported there's no problem pitching a project in PHP.
However, I'd still like to have JSP or ASP or the like for "corporate" jobs.

Python seems to be on the up at the moment. Despite its unconventional style, the lack of braces does actually improve readability.

PHP is very easy to use though, it's very easy to pick up if you had to modify a script or add to it etc.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
asp, php, versus

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads

Thread Thread Starter Forum Replies Last Post
php compare date louie Coding Help 4 08-12-2006 09:50 AM
php, mysql & .asp from same laptop alex Server / Technical Administration Tips and Queries 11 16-10-2006 06:01 PM
Do Php Accelerators Make Any Difference? blacknight Coding Help 2 13-09-2006 11:28 PM
Ioncube encoded PHP Scripts georgiecasey Coding Help 3 29-08-2006 11:49 AM
PHP on windows louie Coding Help 20 22-02-2006 05:25 PM


All times are GMT +1. The time now is 08:58 AM.


Powered by: vBulletin Version 3.7.3, Copyright ©2000 - 2008, Jelsoft Enterprises Limited.
Hosted in Ireland by Blacknight - Test your ISP |Irish Hosting Directory| Armchair.ie|Logo by Eden Web Design|Avatars by Afterglow |Latest Blog Entries | VPS HostingAd Management by RedTyger

Search Engine Friendly URLs by vBSEO 3.2.0