jueves, 8 de abril de 2010

iPhone and the copy and paste programming

I was reading this post: Resize a UIImage the right way where is mentioned the copy and paste programming.
I agree this is a big problem when downloading code from the web without testing, but, copy and paste make things easier when developing similar functionality. The existence of code libraries makes us copy and paste code snippets to reproduce functionality.
Programs in the big picture are different, but in its internal functionality are similar. Database access is “barely” the same and don’t make sense to rewrite all the database access code, it is easier (and practical) to copy that code from a library or other sample we previously create.
At the bottom line, I really like the article and support copy and paste programming when doing the right way.

No hay comentarios: