Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Copypasta is evil

Name: Anonymous 2007-01-12 11:25

I declare copypasta and design patterns, save for very rare exceptions, are sign of a sucky programmer or a sucky non-functional language at work. Programmer editors should have an option to produce a warning when you paste more than two lines or 80 non-whitespace characters, telling you that you are doing something wrong.

When working with a decent language, and by decent I mean anything that allows you to barely work with dynamic functions, so anything from PHP counts, I can hardly think of a situation where you'd need to copypasta your code, let alone use a professional enterprise best-practices design pattern.

Name: Anonymous 2007-01-12 12:58

>>1
How does this work for GUI development? Is it reasonable, if you want two similar frames, NOT to copypasta the code, but instead try to create both frames with the same code?

(For instance one about page with a close button, and one information page with a yes and a no button. Basically the same setup, lots of copypastad code)

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List