Jim Lawrence
accessd at shaw.ca
Tue Jun 23 16:54:34 CDT 2009
Good enough Max... Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Tuesday, June 23, 2009 1:49 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Learning .Net -- PHP Instead? No, I haven't explained it very well. In a module, I might want to do a very simple test and then jump out. Now I could do "EXIT SUB" but I might also want to run some code in the OnExit: bit before exiting. So instead of If <condition> Some code Else Lots of code Endif Exithere: Some code Exit sub I will use the goto. Its there, its handy. It is quite clear what it is doing. I like it, I understand it. I will continue to use it, regardless of ANY reasons why it is bad practice. For me, it is good practice. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: 23 June 2009 21:28 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Learning .Net -- PHP Instead? Hi Max: Edsger Dijkstra one of the fathers of programming, was credited with eliminating the GOTO and GOSUB use as just bad programming. ;-) http://www.creativesystemdesigns.com/projects/relational.asp#edsger You can always just use the Return statement. If you functions are large enough to require lots of conditional statement maybe it is time to start splitting up your code blocks. There was an excellent article that Shamil introduced on the subject of coding methods... but I can not find the link again. (Age related I suspect) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Tuesday, June 23, 2009 8:31 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Learning .Net -- PHP Instead? I use GOTO all the time, as in.. If <condition> then Do something Goto exithere Endif Code Code Exithere: Wind up and exit Errhandler: Etc Much easier to read then.. If <condition> then Do something Else Do something else which is the main coding and stretched on and on. Endif Dont much care about standards, care more about what works for me... Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: 23 June 2009 16:03 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Learning .Net -- PHP Instead? There are always nostalga buffs out there ... LOL Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Monday, June 22, 2009 10:06 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Learning .Net -- PHP Instead? I thought GOTO and GOSUB functions were a thing of the past. |-P Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Monday, June 22, 2009 7:17 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Learning .Net -- PHP Instead? Quite frankly I don't see the addition of a GOTO feature to be something to look forward to in any programming language. -----Original Message----- On Mon, Jun 22, 2009 at 12:37 PM, Kenneth Ismert <kismert at gmail.com> wrote: > If you are interested in Web programming, I would suggest PHP. Per > unit of effort, I think most VBA programmers would get further with > PHP than with ASPX, especially if you are starting out from scratch. > <snipped the rest> > Python or Ruby, and make it a much more expressive language than VBA. > * There is an enormous ecosystem of open-source libraries, IDEs, CMS > sytems, and MVC frameworks to choose from. > * Projects developed under Windows/IIS should work with little or no > changes under Linux/Apache. > > PHP Drawbacks: > > * PHP is a web-specific language. If you want something > general-purpose, use something else. > * PHP's libraries are extensive and rapidly improving, but it doesn't > have the monolithic library integration that .NET enjoys with the CLR. > * Comprehensive, transparent support for Unicode is still lacking, as > it is with most scripting languages. PHP 6 will rectify this. > > -Ken > aseadvisors.com <http://www.databaseadvisors.com> > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com