when your write perl / php

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • s9ann0
    Confirmed User
    • Sep 2001
    • 4873

    #1

    when your write perl / php

    coders be honest do you constantly go back to stuff you have done before and cut and paste about 50% of it and modify it a bit ?

    or do I just suck ?
  • HorseShit
    Too lazy to set a custom title
    • Dec 2004
    • 17513

    #2
    a lot do that to save time

    Comment

    • pstation
      Confirmed User
      • Jul 2003
      • 1135

      #3
      hmm, nope

      Comment

      • woj
        <&(©¿©)&>
        • Jul 2002
        • 47882

        #4
        there is nothing wrong with reusing old code, but it's best to package up stuff into functions/classes and then just drop those into new projects... only a fool would rewrite everything from scratch each time...
        Last edited by woj; 04-06-2006, 09:01 AM.
        Custom Software Development, email: woj#at#wojfun#.#com to discuss details or skype: wojl2000 or gchat: wojfun or telegram: wojl2000
        Affiliate program tools: Hosted Galleries Manager Banner Manager Video Manager
        Wordpress Affiliate Plugin Pic/Movie of the Day Fansign Generator Zip Manager

        Comment

        • Remastered
          Confirmed User
          • Mar 2006
          • 182

          #5
          Yes, it's called code templates and I have 1,000s of them.

          Comment

          • HorseShit
            Too lazy to set a custom title
            • Dec 2004
            • 17513

            #6
            "why reinvent the wheel"

            Comment

            • Tom_PM
              Porn Meister
              • Feb 2005
              • 16443

              #7
              Oh hell yes. Absolutely. All the more reason to write good code the first time.
              43-922-863 Shut up and play your guitar.

              Comment

              • Fetish Gimp
                Confirmed User
                • Feb 2005
                • 1699

                #8
                Originally posted by woj
                there is nothing wrong with reusing old code, but it's best to package up stuff into functions/classes and then just drop those into new projects... only a fool would rewrite everything from scratch each time...
                Preach the fuck on.
                Strapon Seduction - femdom blog | Twitter

                Comment

                • BlueWire
                  Confirmed User
                  • Nov 2004
                  • 4628

                  #9
                  If you were a teacher and you wrote the best lesson plan in the WORLD for your 8th grade British Literature class one year....would you start over the next year

                  Comment

                  • grumpy
                    Too lazy to set a custom title
                    • Jan 2002
                    • 9870

                    #10
                    you are better of creating libraries with your most used functions.
                    Don't let greediness blur your vision | You gotta let some shit slide
                    icq - 441-456-888

                    Comment

                    • fris
                      Too lazy to set a custom title
                      • Aug 2002
                      • 55696

                      #11
                      Originally posted by PR_Tom
                      Oh hell yes. Absolutely. All the more reason to write good code the first time.
                      i was talking to a friend nathan about coding, did he do some work for you a while back?
                      Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.

                      Comment

                      • fuzebox
                        making it rain
                        • Oct 2003
                        • 22353

                        #12
                        I try not to copy and paste... Maybe I might resuse an old function once in a blue moon, but it is so unlikely. Most the shit I write is fresh, even if I had just reinveinted the wheel.

                        Comment

                        • Tom_PM
                          Porn Meister
                          • Feb 2005
                          • 16443

                          #13
                          Originally posted by fris
                          i was talking to a friend nathan about coding, did he do some work for you a while back?
                          Not for me personally. For the company, maybe. I dont do the hiring of programmers/designers and the like. So it's possible I guess.
                          43-922-863 Shut up and play your guitar.

                          Comment

                          • Brujah
                            Beer Money Baron
                            • Jan 2001
                            • 22157

                            #14
                            I write everything in assembly, from scratch each time.

                            Remastered, any tips on organizing your code templates?

                            Comment

                            • u-Bob
                              there's no $$$ in porn
                              • Jul 2005
                              • 33063

                              #15
                              first lesson my university prof taught me: "a real programmer is lazy".
                              so yes, i reuse a lot of code.

                              Comment

                              • AcidMax
                                Confirmed User
                                • May 2002
                                • 1827

                                #16
                                Definitely use classes. Inheritance and shit can save you a ton of time. Why write code to send emails everytime when you can do it in a single class and include, or form checking, database handling etc. Just a waste of time if you don't use classes imho.
                                Latest MMA news. http://www.mmawrapup.com

                                Comment

                                • s9ann0
                                  Confirmed User
                                  • Sep 2001
                                  • 4873

                                  #17
                                  Originally posted by u-Bob
                                  first lesson my university prof taught me: "a real programmer is lazy".
                                  I like that :o))

                                  Comment

                                  Working...