GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   when your write perl / php (https://gfy.com/showthread.php?t=595045)

s9ann0 04-06-2006 09:50 AM

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 04-06-2006 09:58 AM

a lot do that to save time

pstation 04-06-2006 09:59 AM

hmm, nope

woj 04-06-2006 10:00 AM

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...

Remastered 04-06-2006 10:06 AM

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

HorseShit 04-06-2006 10:10 AM

"why reinvent the wheel"

Tom_PM 04-06-2006 10:12 AM

Oh hell yes. Absolutely. All the more reason to write good code the first time.

Fetish Gimp 04-06-2006 10:13 AM

Quote:

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.

BlueWire 04-06-2006 10:13 AM

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 :winkwink:

grumpy 04-06-2006 10:14 AM

you are better of creating libraries with your most used functions.

fris 04-06-2006 10:14 AM

Quote:

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?

fuzebox 04-06-2006 10:18 AM

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.

Tom_PM 04-06-2006 10:22 AM

Quote:

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.

Brujah 04-06-2006 10:25 AM

I write everything in assembly, from scratch each time. :)

Remastered, any tips on organizing your code templates?

u-Bob 04-06-2006 10:31 AM

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

AcidMax 04-06-2006 10:38 AM

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.

s9ann0 04-06-2006 11:10 AM

Quote:

Originally Posted by u-Bob
first lesson my university prof taught me: "a real programmer is lazy".

I like that :o))


All times are GMT -7. The time now is 03:45 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123