[STUFF] How To Write Unmaintainable Code

Colapsar
X
 
  • Tiempo
  • Mostrar
Limpiar Todo
nuevos mensajes
  • MoaLaiSkirulais
    ^^(V)^^
    • 08-07-2003
    • 23268

    #1

    [STUFF] How To Write Unmaintainable Code

    [img]/carne/diablo/media/guiso.jpg[/img]



    “Never ascribe to malice, that which can be explained by incompetence.”
    ~ Napoleon

    • General Principles
    • Naming
    • Camouflage
    • Documentation
    • Program Design
    • Coding Obfuscation
    • Testing
    • Choice Of Language
    • Dealing With Others
    • Roll Your Own
    • Tricks In Offbeat
    • Miscellaneous Techniques
    • Ambiguity
    • Philosophy
    • The Shoemaker Has No Shoes




    Nota: Pueden leer el desarrollo completo acá... btw la idea es ir pegando los items de a poco y comentar algunos...
    Editado por última vez por MoaLaiSkirulais; 24-01-2007, 11:16 AM.
  • MoaLaiSkirulais
    ^^(V)^^
    • 08-07-2003
    • 23268

    #2
    General Principles


    “Quidquid latine dictum sit, altum sonatur.”
    “Whatever is said in Latin sounds profound.”


    To foil the maintenance programmer, you have to understand how he thinks. He has your giant program. He has no time to read it all, much less understand it. He wants to rapidly find the place to make his change, make it and get out and have no unexpected side effects from the change.

    He views your code through a toilet paper tube. He can only see a tiny piece of your program at a time. You want to make sure he can never get at the big picture from doing that. You want to make it as hard as possible for him to find the code he is looking for. But even more important, you want to make it as awkward as possible for him to safely ignore anything.

    Programmers are lulled into complacency by conventions. By every once in a while, by subtly violating convention, you force him to read every line of your code with a magnifying glass.

    You might get the idea that every language feature makes code unmaintainable -- not so, only if properly misused.

    Comentario

    • Piluex
      Away
      • 10-10-2004
      • 3038

      #3
      Viejo conocido.

      Comentario

      • Netscape
        Scotty doesn't know...
        • 24-08-2004
        • 18704

        #4
        Che, de lo que entendí, la idea es hacer las cosas sin estandarización para asegurarte el laburo?

        Comentario

        • MoaLaiSkirulais
          ^^(V)^^
          • 08-07-2003
          • 23268

          #5
          auaj nop, es mas bien irónico....

          Comentario

          • Netscape
            Scotty doesn't know...
            • 24-08-2004
            • 18704

            #6
            Bah, es que estaba entre dos opciones:

            1) Hacerlo desestandarizadamente para que nadie pudiera arreglar nada r&#225idamente sin ser el programador original

            2) Forzar al coder de reemplazo a que se esmere en su trabajo y sepa exactamente cómo funciona todo para que no se mande cagadas y rompa pedazos del programa

            Comentario

            • MoaLaiSkirulais
              ^^(V)^^
              • 08-07-2003
              • 23268

              #7
              Es que en cualkiera de los 2 casos es negativo para el cliente...

              Comentario

              • Netscape
                Scotty doesn't know...
                • 24-08-2004
                • 18704

                #8
                Pero positivo para el coder original...

                Comentario

                • MoaLaiSkirulais
                  ^^(V)^^
                  • 08-07-2003
                  • 23268

                  #9

                  Comentario

                  • Netscape
                    Scotty doesn't know...
                    • 24-08-2004
                    • 18704

                    #10
                    Ay ay no me peguen

                    </gespi>

                    Comentario

                    • SAMUEL
                      TÎo PâSTãFLöRÄ
                      • 27-08-2003
                      • 3689

                      #11
                      postea en castellano no se una goma de ingles

                      COCINERO

                      Esta es la luz de cristo

                      Comentario

                      • Piluex
                        Away
                        • 10-10-2004
                        • 3038

                        #12
                        Juajauaj Nah es la posta, hay que programar asi todo lo q sea exploits asi los niubis progrmadores de bolsillo no entienden nada.

                        Comentario

                        • Piluex
                          Away
                          • 10-10-2004
                          • 3038

                          #13
                          Juajauaj Nah es la posta, hay que programar asi todo lo q sea exploits asi los niubis progrmadores de bolsillo no entienden nada.

                          Comentario

                          • MoaLaiSkirulais
                            ^^(V)^^
                            • 08-07-2003
                            • 23268

                            #14
                            recuperando palitos, corriendo a lo bobo
                            Por qu&#233;, si es su rock'n roll?

                            Comentario

                            • Nagual Bones
                              Son of the Bard
                              • 14-04-2003
                              • 21698

                              #15
                              juaju si, lo conocia

                              y cual es tu postura con respecto a eso tincho?


                              El camino del nagual...

                              You become what you believe.

                              Comentario

                              Trabajando...