Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #7055

Re: Never log deprecation warnings

From Jerry Stuckle <jstucklex@attglobal.net>
Newsgroups comp.lang.php
Subject Re: Never log deprecation warnings
Date 2012-09-13 20:13 -0400
Organization A noiseless patient Spider
Message-ID <k2tsrs$nmb$3@dont-email.me> (permalink)
References (15 earlier) <k2t376$m65$2@dont-email.me> <k2t4sf$349$1@dont-email.me> <k2tali$a9p$1@dont-email.me> <k2tb69$dl3$1@dont-email.me> <4379924.HGdlBzTZBh@PointedEars.de>

Show all headers | View raw


On 9/13/2012 4:20 PM, Thomas 'PointedEars' Lahn wrote:
> Shake wrote:
>
>> Using an IDE you can do both things: some regexp search and replace, or
>> some watching and writing to get a few php that do the work (not
>> blindly, just after watching).
>
> And I have found Eclipse PHP Development Tools (PDT) to be an excellent tool
> for that (optionally recursive, optionally filtered, optionally interactive
> optionally regexp, search-and-replace).  (As a result, this works with Zend
> Studio, which is based on PDT, as well.)
>

And how do you write PHP code to do the search/replace in Eclipse?

> However, it would be interesting, indeed, to find out whether and if, to
> what extent, it was reasonably possible to automate the process.  (Analysis
> and results can be written to stderr and stdout or another file, so that the
> original is not necessarily lost.)
>

Yes, once again you suggest a blind search and replace.

> When the language changed radically from Python 2.x to 3.x, and programs had
> to be made compliant with the new version efficiently, the Python people did
> something very similar to what I suggest here (2to3) – and it does work.
> Because, if you know your computer science, you know that an algorithm can
> be devised, thus a program can be written, that transforms a program written
> in one programming language into another, where the result is an approximate
> simulation (Turing equivalence).  (We all do that in our heads when we are
> refactoring or porting code.)  It would be nice to have something like that
> for PHP versions.
>
>
> PointedEars
>

Sure, it *can* work for the trinket code you write.  But if you ever 
wrote any serious code, you'd understand just how dangerous it could be.

However, we all know that is well beyond your capabilities.

-- 
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Never log deprecation warnings Jonathan Stein <jstein@image.dk> - 2012-09-06 11:51 +0200
  Re: Never log deprecation warnings Jerry Stuckle <jstucklex@attglobal.net> - 2012-09-06 09:10 -0400
    Re: Never log deprecation warnings Jonathan Stein <jstein@image.dk> - 2012-09-06 15:42 +0200
      Re: Never log deprecation warnings Jerry Stuckle <jstucklex@attglobal.net> - 2012-09-06 11:26 -0400
  Re: Never log deprecation warnings Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-09-06 15:48 +0200
    Re: Never log deprecation warnings "J.O. Aho" <user@example.net> - 2012-09-06 18:04 +0200
      Re: Never log deprecation warnings The Natural Philosopher <tnp@invalid.invalid> - 2012-09-06 17:33 +0100
        Re: Never log deprecation warnings Scott Johnson <noonehome@chalupasworld.com> - 2012-09-06 10:37 -0700
          Re: Never log deprecation warnings Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-09-06 19:49 +0200
            Re: Never log deprecation warnings The Natural Philosopher <tnp@invalid.invalid> - 2012-09-06 18:56 +0100
              Re: Never log deprecation warnings Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-09-06 21:53 +0200
        Re: Never log deprecation warnings "J.O. Aho" <user@example.net> - 2012-09-06 20:41 +0200
          Re: Never log deprecation warnings The Natural Philosopher <tnp@invalid.invalid> - 2012-09-06 19:52 +0100
  Re: Never log deprecation warnings Denis McMahon <denismfmcmahon@gmail.com> - 2012-09-06 19:59 +0000
    Re: Never log deprecation warnings The Natural Philosopher <tnp@invalid.invalid> - 2012-09-06 23:34 +0100
  Re: Never log deprecation warnings Jonathan Stein <jstein@image.dk> - 2012-09-07 00:53 +0200
    Re: Never log deprecation warnings Jerry Stuckle <jstucklex@attglobal.net> - 2012-09-06 20:09 -0400
    Re: Never log deprecation warnings Scott Johnson <noonehome@chalupasworld.com> - 2012-09-06 18:41 -0700
      Re: Never log deprecation warnings Jonathan Stein <jstein@image.dk> - 2012-09-10 12:43 +0200
        Re: Never log deprecation warnings Jerry Stuckle <jstucklex@attglobal.net> - 2012-09-10 07:43 -0400
          Re: Never log deprecation warnings Jonathan Stein <jstein@image.dk> - 2012-09-11 10:38 +0200
            Re: Never log deprecation warnings Jerry Stuckle <jstucklex@attglobal.net> - 2012-09-11 08:34 -0400
              Re: Never log deprecation warnings Jonathan Stein <jstein@image.dk> - 2012-09-11 15:06 +0200
                Re: Never log deprecation warnings Jerry Stuckle <jstucklex@attglobal.net> - 2012-09-11 09:32 -0400
                Re: Never log deprecation warnings Jonathan Stein <jstein@image.dk> - 2012-09-11 21:53 +0200
                Re: Never log deprecation warnings Jerry Stuckle <jstucklex@attglobal.net> - 2012-09-11 16:16 -0400
                Re: Never log deprecation warnings Jonathan Stein <jstein@image.dk> - 2012-09-13 11:31 +0200
                Re: Never log deprecation warnings Jerry Stuckle <jstucklex@attglobal.net> - 2012-09-13 13:01 -0400
                Re: Never log deprecation warnings Jonathan Stein <jstein@image.dk> - 2012-09-13 21:33 +0200
                Re: Never log deprecation warnings Jerry Stuckle <jstucklex@attglobal.net> - 2012-09-13 20:08 -0400
                Re: Never log deprecation warnings Michael Fesser <netizen@gmx.de> - 2012-09-14 15:41 +0200
                Re: Never log deprecation warnings Christoph Becker <cmbecker69@gmx.de> - 2012-09-12 02:28 +0200
                Re: Never log deprecation warnings Jerry Stuckle <jstucklex@attglobal.net> - 2012-09-11 21:08 -0400
            Re: Never log deprecation warnings Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-09-12 01:16 +0200
              Re: Never log deprecation warnings Jerry Stuckle <jstucklex@attglobal.net> - 2012-09-11 20:18 -0400
                Re: Never log deprecation warnings Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-09-12 12:09 +0200
                Re: Never log deprecation warnings Jerry Stuckle <jstucklex@attglobal.net> - 2012-09-12 08:26 -0400
                Re: Never log deprecation warnings Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-09-12 15:42 +0200
                Re: Never log deprecation warnings The Natural Philosopher <tnp@invalid.invalid> - 2012-09-12 15:07 +0100
                Re: Never log deprecation warnings Jerry Stuckle <jstucklex@attglobal.net> - 2012-09-12 12:08 -0400
                Re: Never log deprecation warnings Shake <QUITAESTO@QUITAESTO.NOES> - 2012-09-12 18:13 +0200
                Re: Never log deprecation warnings The Natural Philosopher <tnp@invalid.invalid> - 2012-09-12 17:28 +0100
                Re: Never log deprecation warnings Shake <QUITAESTO@QUITAESTO.NOES> - 2012-09-12 18:37 +0200
                Re: Never log deprecation warnings Jerry Stuckle <jstucklex@attglobal.net> - 2012-09-12 15:01 -0400
                Re: Never log deprecation warnings Anders Wegge Keller <wegge@wegge.dk> - 2012-09-12 21:35 +0200
                Re: Never log deprecation warnings Jerry Stuckle <jstucklex@attglobal.net> - 2012-09-13 12:53 -0400
                Re: Never log deprecation warnings Shake <alex.estevezQUENO@QUENOfilnet.es> - 2012-09-12 21:39 +0200
                Re: Never log deprecation warnings Jerry Stuckle <jstucklex@attglobal.net> - 2012-09-13 12:55 -0400
                Re: Never log deprecation warnings Shake <QUITAESTO@QUITAESTO.NOES> - 2012-09-13 19:24 +0200
                Re: Never log deprecation warnings Jerry Stuckle <jstucklex@attglobal.net> - 2012-09-13 15:02 -0400
                Re: Never log deprecation warnings Shake <QUITAESTO@QUITAESTO.NOES> - 2012-09-13 21:12 +0200
                Re: Never log deprecation warnings Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-09-13 22:20 +0200
                Re: Never log deprecation warnings Jerry Stuckle <jstucklex@attglobal.net> - 2012-09-13 20:13 -0400
                Re: Never log deprecation warnings Jerry Stuckle <jstucklex@attglobal.net> - 2012-09-13 20:10 -0400
                Re: Never log deprecation warnings Tim Streater <timstreater@greenbee.net> - 2012-09-12 23:13 +0100

csiph-web