curriculum icon indicating copy to clipboard operation
curriculum copied to clipboard

Object Basics: <Should include information about deep copy vs. shallow copy>

Open tman2747 opened this issue 1 year ago • 3 comments

Checks

Describe your suggestion

It would be helpful to introduce the concepts of deep copy vs. shallow copy before starting the 4th assignment in this chapter, particularly the assignment on palindromes. This is because some users might attempt to clean the array and then assign the cleaned array to another variable, subsequently calling reverse() on it.

https://developer.mozilla.org/en-US/docs/Glossary/Shallow_copy https://developer.mozilla.org/en-US/docs/Glossary/Deep_copy

Path

Foundations

Lesson Url

https://www.theodinproject.com/lessons/foundations-object-basics

(Optional) Discord Name

tman2747

(Optional) Additional Comments

No response

tman2747 avatar Aug 09 '24 08:08 tman2747

@TheOdinProject/foundations Any thoughts on this?

CouchofTomato avatar Aug 10 '24 14:08 CouchofTomato

I recently completed this lesson and while doing the exercises stumbled upon resources discussing a deep vs shallow copy, so I definitely agree it would make sense to include something on it.

TheSeagullDev avatar Aug 14 '24 21:08 TheSeagullDev

This issue is stale because it has had no activity for the last 30 days.

github-actions[bot] avatar Sep 14 '24 01:09 github-actions[bot]

Need more team input, but at this point in the curriculum this does not feel right to cover. There could probably be mention of it somewhere later in the curriculum, before to-do but after foundations.

ManonLef avatar Aug 16 '25 11:08 ManonLef

Closing - see https://github.com/TheOdinProject/curriculum/pull/29554#issuecomment-3288960662

mao-sz avatar Sep 13 '25 23:09 mao-sz