There are many ways to learn to code these days. From coding bootcamps like Flatiron School to online courses to totally free beginner resources. The best way to learn to code depends on many factors, but the most important one is you. See what course is best for you.
What the public server does, it creates three NAT policies for you and it also creates a firewall rule.
(The three NAT policies are for 1) inbound traffic, 2) outbound traffic and 3) loopback policy.)
Just run the public server wizard and see what it does.