Sibelius’s Newsletter

Share this post
Smart Copy and Paste
sibelius.substack.com

Smart Copy and Paste

Following patterns

Sibelius Seraphini
Apr 22, 2021
14
1
Share this post
Smart Copy and Paste
sibelius.substack.com

Pictures of Julia and Mandelbrot sets

Most intern/juniors developers have a lot of energy and if you let them they would rewrite your application every day.

However, this is not the best way to be productive when learning a new codebase.

The best way to learn a new codebase is to imitate the current code patterns.

I call this smart copy and paste. Instead of building the new feature using all new code, you should find what is the closest code to what you are trying to do and just start from it.

If you copy a working code it has more chances of keep working, even though it is harder to read and understand at first, I bet it passed the test of time and it has almost all edge cases covered.

1
Share this post
Smart Copy and Paste
sibelius.substack.com
1 Comment

Create your profile

0 subscriptions will be displayed on your profile (edit)

Skip for now

Only paid subscribers can comment on this post

Already a paid subscriber? Sign in

Check your email

For your security, we need to re-authenticate you.

Click the link we sent to , or click here to sign in.

Leonardo Furtado
Apr 23, 2021

I always had this doubt, if copying the way some codes were written in my job was good practice or bad practice.

Expand full comment
ReplyGive giftCollapse
TopNewCommunity

No posts

Ready for more?

© 2022 Sibelius Seraphini
Privacy ∙ Terms ∙ Collection notice
Publish on Substack Get the app
Substack is the home for great writing