r/learnpython • • Feb 20 '21

What are you having difficulty learning or are currently struggling to learn?

I'm curious what the community here has difficulty with when it comes to learning Python. Partly because I want to see if the more experienced community here (or myself) can help point you into the right direction. . . but also because I'm trying to come up with video tutorial ideas for future content and would love to hear from Python learners what would be most useful to dedicate our time on.

I'm looking forward to hearing what you guys have to say!

417 Upvotes

324 comments sorted by

View all comments

Show parent comments

4

u/[deleted] Feb 20 '21 edited Feb 20 '21

Lol well now you're talking about the entire field of Systems/Networks/Servers and so on. Entire teams of people exist (like me in networks) to get an application OUT there. Where I am no less than 2 dozen people manage networks, servers, databases, and the "pipeline" for a medium data center and a long list of web pages.

The folks who can write code and deploy it are usually called DevOps, but they usually aren't like...writing applications. It's more scripting usually. They just (in theory) understand the pipe from layer 7 (your code) to Layer 1 (the wire). Google "infrastructure as code" for more on that stuff.

Of course cloud providers skip much of that or do it for you. Easy for a single web server, complex when you start to scale up (clusters, orchestration, load balancing, etc.)

1

u/TheRealDangerPaws Feb 21 '21

Good point, and I agree sys/devops is a whole additional role/job. But taking a small step back towards the app code aspect I think there are still things that should be taken into account when moving from dev to prod. I see a lot of tutorials saying "of course you wouldn't do this in production... " or the likes, or even instances where they should say it but don't :P so what SHOULD you do then? Simple things like not to forget to change your app secret to something other than 'mysecret" or make make sure you've set your flask app to prod instead of dev, basically all the things that would be obvious to a hardened developer but might not be so obvious for someone who learning or even still at a junior level. Knowing about and getting these simple things right early on sets developers up for a much better experience.

1

u/[deleted] Feb 21 '21

I totally agree, and I hope future programmers do end up a bit more well-rounded. Ops and Coders speak different languages (heck network and server guys speak different languages). Being well-rounded will help you a lot in your career.

so what SHOULD you do then?

Yeah that's a big topic, but some things that come to mind is: a much larger focus on security (don't rely on network/firewall to protect your app - the brunt is on your to secure it). Centralized authentication (LDAP/RADIUS) is preferable to local databases. SSL certs/SSH keys/all that stuff should be used and carefully guarded.

In fact much of it centers around security. The rest I'd say is more about availability and scaling - so using a load balancer, understand the hardware and network and I/O limitations and how they affect the experience, stuff like that.

And then maybe reliability, both of the code and infrastructure. The code needs to be thoroughly examined, peer reviewed, even penetration tested for deployment. Security should be baked into the deployment process. Then with infrastructure we're talking redundancy/failovers/uptime stuff, because downtime means lost $$$ for most businesses (and even governments).

There's more of course but if you work as a software dev, others will handle most of this for in all likelihood. Still, learning some networking, linux, servers, virtualization, basics of firewalls/NAT...all will be good to learn. Understanding them conceptually is usually enough, honestly, for someone who doesn't really work in IT but only on the App/Layer 7 end.

1

u/TheRealDangerPaws Feb 21 '21

Yep, all very valid points!