Submitted by PythonNewb in programming

I hope this isn't a dumb question but I'm pretty new (like really really new) to Python and I want to make web facing apps. The first thing I want to write is a simple blog for myself.

Is it okay to not want to publish my source code public? Being new I don't want someone to take advantage of bad code to do something malicious to my site.

4

Comments

You must log in or register to comment.

txt wrote

Security via obscurity is a terrible idea. If your code is bad, its better to know before your site gets traction.

4

PythonNewb OP wrote (edited )

That makes sense. I'm just shy I guess. I'm still going through the 'learn python the hard way' and haven't written much but I just figured i'd be posting my code to public forums like this and on reddit for people smarter than me to pick apart to help me learn as I go along. I never really figured out how to use github and stuff. I'm really new to all this obviously haha.

2

Rambler wrote

Just additional piece of mind, really.

If it's a personal site with no real way for visitors to interact with it beyond reading it's content, I'd say it's not that big of a deal. But if it's a website that allows users to sign in, stores data about them, etc open source is a good idea. As /u/txt said, it's best to know so it can be fixed and that proper procedures can be done.

But if it's just your personal site, where you publish some posts and that's it... I don't think it's a big deal to not publish the code personally because it's just your site and it'll only impact you if something is done wrong.

2

PythonNewb OP wrote

Well my first project was going to be a pretty basic blog with only an admin backend for me to add new posts but I get what you're saying.

1

Wahaha wrote

I don't know any good argument against open source, but that doesn't mean you have to open source everything you do. Decide for yourself.

There's some good arguments against using Python, though. Might as well read this and figure out for yourself what kind of code you want to write: https://suckless.org/philosophy/

2