Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Best question ever

Best question ever

Scheduled Pinned Locked Moved The Lounge
csharpphpcomtutorialquestion
9 Posts 8 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    jim lahey
    wrote on last edited by
    #1

    how to do PHP obfuscate[^] "please tell me how to do my work" Awesome. So honest. I didn't know that PHP needed to be obfuscated - every time I look at the samples on http://www.php.net/[^] I can hardly read them.

    L P 2 Replies Last reply
    0
    • J jim lahey

      how to do PHP obfuscate[^] "please tell me how to do my work" Awesome. So honest. I didn't know that PHP needed to be obfuscated - every time I look at the samples on http://www.php.net/[^] I can hardly read them.

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Ok, son, why don't you go over to that fast food place over there and start frying some hamburgers? I will come over after I had a quick talk with your boss. :)

      T 1 Reply Last reply
      0
      • J jim lahey

        how to do PHP obfuscate[^] "please tell me how to do my work" Awesome. So honest. I didn't know that PHP needed to be obfuscated - every time I look at the samples on http://www.php.net/[^] I can hardly read them.

        P Offline
        P Offline
        Pete OHanlon
        wrote on last edited by
        #3

        Another day, another "mock the poster" post. This time with the added benefit of mocking PHP as well. While you're at it, my shirt's particularly loud today - perhaps you'd like to go for the tri-defecta.

        *pre-emptive celebratory nipple tassle jiggle* - Sean Ewington

        "Mind bleach! Send me mind bleach!" - Nagy Vilmos

        CodeStash - Online Snippet Management | My blog | MoXAML PowerToys | Mole 2010 - debugging made easier

        B D M 3 Replies Last reply
        0
        • P Pete OHanlon

          Another day, another "mock the poster" post. This time with the added benefit of mocking PHP as well. While you're at it, my shirt's particularly loud today - perhaps you'd like to go for the tri-defecta.

          *pre-emptive celebratory nipple tassle jiggle* - Sean Ewington

          "Mind bleach! Send me mind bleach!" - Nagy Vilmos

          CodeStash - Online Snippet Management | My blog | MoXAML PowerToys | Mole 2010 - debugging made easier

          B Offline
          B Offline
          Bergholt Stuttley Johnson
          wrote on last edited by
          #4

          Pete, call that a shirt it looks like an old pair of curtains (always happy to oblige)

          You cant outrun the world, but there is no harm in getting a head start Real stupidity beats artificial intelligence every time.

          1 Reply Last reply
          0
          • P Pete OHanlon

            Another day, another "mock the poster" post. This time with the added benefit of mocking PHP as well. While you're at it, my shirt's particularly loud today - perhaps you'd like to go for the tri-defecta.

            *pre-emptive celebratory nipple tassle jiggle* - Sean Ewington

            "Mind bleach! Send me mind bleach!" - Nagy Vilmos

            CodeStash - Online Snippet Management | My blog | MoXAML PowerToys | Mole 2010 - debugging made easier

            D Offline
            D Offline
            Dalek Dave
            wrote on last edited by
            #5

            Pete, is This[^] you and Chris Elston at the last meeting of the Young Durham Sex God Association? If so, then that is a fine shirt.

            --------------------------------- I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave CCC Link[^]

            P 1 Reply Last reply
            0
            • P Pete OHanlon

              Another day, another "mock the poster" post. This time with the added benefit of mocking PHP as well. While you're at it, my shirt's particularly loud today - perhaps you'd like to go for the tri-defecta.

              *pre-emptive celebratory nipple tassle jiggle* - Sean Ewington

              "Mind bleach! Send me mind bleach!" - Nagy Vilmos

              CodeStash - Online Snippet Management | My blog | MoXAML PowerToys | Mole 2010 - debugging made easier

              M Offline
              M Offline
              Marc A Brown
              wrote on last edited by
              #6

              What's that, Pete? I can't hear you over your shirt! :laugh:

              1 Reply Last reply
              0
              • L Lost User

                Ok, son, why don't you go over to that fast food place over there and start frying some hamburgers? I will come over after I had a quick talk with your boss. :)

                T Offline
                T Offline
                trønderen
                wrote on last edited by
                #7

                You make it sound as if you will never, ever, accept any sort of critisism of your favorite programming language... First: Any programming language can be (ab)used to write really obfuscated code. Some programmer subcultures tend to write unreadable code, whatever language is used, but if that is PHP, it leads other people to associate unreadable code with that language. Furthermore, if most subcultures (ab)use the language that way, the few programmers that use it properly might not be strong enough to save the reputation of the language. Second: If you don't know/understand the "philosophy" of a language (or of whatever) - the rationale for the mechanisms offered, the inteded usage pattern - then it always looks messy. To the guy who understands the reasoning behind the design, and is trained in the same thought patterns as the programmer of the obfuscated code, the code is not at all obfuscated. Nine out of ten times claims of "obfuscation", "unreadable" or "messy" code (or coding style) really says "I am lacking the background to understand why it is done that way". Surely, some philosophies are easier to grasp than others, and some rather elegant programming languages failed in the marketplace because its protagonists were mostly programmers rather than teachers (of the philosophy of the language). Some languages excel in clean and simple basic mechanisms but rely on the programmer to handle any sort of abstractions, which some programmers do better than others. (Everyone understands that we need higher basic abstractions than Turing machine marks, but many lisp programmers don't understand that we need higher basic abstractions than car and cdr.) And then, some languages offer mechanisms that is an open invitation to obfuscation. My favorite example is Fortran 'return k': A function can take (numeric) labels as arguments. 'return 4' means: Do not return to the statement following the function call, but to the label supplied as the 4th argument. More recent languages provide several comparable mechanisms, such as switch fallthrough and address-of-operators that might have null effect, but none as grave as 'return k'. I have worked some, but not much, with PHP. It will never become my favorite language, but I would never agree than you can't write well structured, readable code in PHP. I don't think obfuscated code is a bigger problem with PHP than with, say, classical C.

                G 1 Reply Last reply
                0
                • T trønderen

                  You make it sound as if you will never, ever, accept any sort of critisism of your favorite programming language... First: Any programming language can be (ab)used to write really obfuscated code. Some programmer subcultures tend to write unreadable code, whatever language is used, but if that is PHP, it leads other people to associate unreadable code with that language. Furthermore, if most subcultures (ab)use the language that way, the few programmers that use it properly might not be strong enough to save the reputation of the language. Second: If you don't know/understand the "philosophy" of a language (or of whatever) - the rationale for the mechanisms offered, the inteded usage pattern - then it always looks messy. To the guy who understands the reasoning behind the design, and is trained in the same thought patterns as the programmer of the obfuscated code, the code is not at all obfuscated. Nine out of ten times claims of "obfuscation", "unreadable" or "messy" code (or coding style) really says "I am lacking the background to understand why it is done that way". Surely, some philosophies are easier to grasp than others, and some rather elegant programming languages failed in the marketplace because its protagonists were mostly programmers rather than teachers (of the philosophy of the language). Some languages excel in clean and simple basic mechanisms but rely on the programmer to handle any sort of abstractions, which some programmers do better than others. (Everyone understands that we need higher basic abstractions than Turing machine marks, but many lisp programmers don't understand that we need higher basic abstractions than car and cdr.) And then, some languages offer mechanisms that is an open invitation to obfuscation. My favorite example is Fortran 'return k': A function can take (numeric) labels as arguments. 'return 4' means: Do not return to the statement following the function call, but to the label supplied as the 4th argument. More recent languages provide several comparable mechanisms, such as switch fallthrough and address-of-operators that might have null effect, but none as grave as 'return k'. I have worked some, but not much, with PHP. It will never become my favorite language, but I would never agree than you can't write well structured, readable code in PHP. I don't think obfuscated code is a bigger problem with PHP than with, say, classical C.

                  G Offline
                  G Offline
                  GenJerDan
                  wrote on last edited by
                  #8

                  Member 8575121 wrote:

                  First: Any programming language can be (ab)used to write really obfuscated code. Some programmer subcultures tend to write unreadable code, whatever language is used, but if that is PHP, it leads other people to associate unreadable code with that language. Furthermore, if most subcultures (ab)use the language that way, the few programmers that use it properly might not be strong enough to save the reputation of the language.

                  And some just come that way out of the box. :p I like this:

                  IX1 D IXDUP ;22*130
                  F DDUCRFE=0:0 S DDUCRFE=$O(^DD(DDUCFI,0,"IX",DDUCXREF,DDUCRFI,DDUCRFE)) Q:DDUCRFE'>0 D
                  . I $D(^DD(DDUCRFI,DDUCRFE,0))[0 D WFI W """IX"" Subscript: "_DDUCXREF_" " D WFE,WMS D:DDUCFIX IX2 Q
                  . I $D(^DD(DDUCRFI,DDUCRFE,1,0))=0,$D(^DD(DDUCRFI,DDUCRFE,1))=10 S:DDUCFIX ^DD(DDUCRFI,DDUCRFE,1,0)="^.1"
                  . S DDUCRFE1=0,DDUCRFEX="" F S DDUCRFE1=$O(^DD(DDUCRFI,DDUCRFE,1,DDUCRFE1)) Q:DDUCRFE1'>0 S DDUCRFEX=$G(^(DDUCRFE1,0)) I $P(DDUCRFEX,U,2)=DDUCXREF K DDUCRFEX Q
                  . I $D(DDUCRFEX) W !?5,"Cross-reference logic is missing for """,DDUCXREF,""" x-ref" D:DDUCFIX IX2 Q
                  K DDUCRFE1 Q

                  Well, when I say "like", I mean No, you will never ever ever get me to program with m-code.

                  No dogs or cats are in the classroom. My Mu[sic] My Films My Windows Programs, etc.

                  1 Reply Last reply
                  0
                  • D Dalek Dave

                    Pete, is This[^] you and Chris Elston at the last meeting of the Young Durham Sex God Association? If so, then that is a fine shirt.

                    --------------------------------- I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave CCC Link[^]

                    P Offline
                    P Offline
                    Pete OHanlon
                    wrote on last edited by
                    #9

                    That's us. It was taken last week - note our stylish haircuts.

                    *pre-emptive celebratory nipple tassle jiggle* - Sean Ewington

                    "Mind bleach! Send me mind bleach!" - Nagy Vilmos

                    CodeStash - Online Snippet Management | My blog | MoXAML PowerToys | Mole 2010 - debugging made easier

                    1 Reply Last reply
                    0
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • World
                    • Users
                    • Groups