Generally speaking, 4GB RAM is not enough for most tasks required in modern-day programming. You’re looking at 8GB minimum to run Xcode alone, and that is if you don’t embark on anything too heavy. For more intense projects that need additional tools, consider investing in 16GB or more.