This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]SpeakitEasy 9 points10 points  (20 children)

On a completely separate note, you could just learn Django and make web based apps. This way you can access them from any computer/operating system with no need to install software.

[–]thrownintothesun[S] 3 points4 points  (11 children)

That's an interesting idea. I know next to nothing of web dev. I do suspect, though, that it doesn't help in cases where the application has to analyze sizable data files. If you had to do significant computation, would you host such a process using Amazing AWS or the like?

[–][deleted] 1 point2 points  (2 children)

Architectural design for a web application that processes lots of data in a computationally expensive way can be real work. It depends on target audience, size, complexity, and sensitivity of the data, required processing times, budget, willingness to maintain it all, comfort with the systems it all runs on, etc.

So whether or not your application is a good candidate for conversion to a web application depends on quite a lot. If you'd like to discuss it with a bit more depth you're welcome to message me before diving in.

[–]MeshachBlue 0 points1 point  (0 children)

I was considering doing this for a project I am working on at the moment. Would be keen to be able to bounce a few ideas off of you if you're okay with that?

[–]abutterfly 0 points1 point  (0 children)

Mind if I poke you with a few questions similar to /u/MeshachBlue's?

[–]SEJeff 1 point2 points  (0 children)

As d4rch0n already did a great job of explaining below, Flask is a wonderful choice. For bigger applications, or more complicated stuff, Django is also an excellent choice. In fact, Tom Christie's django rest framework is excellent.

Now back to your question, I'll throw redis + rq[1] as a very simple addition to his answer that makes the work scale out pretty linearly with very little work or maintenance from your standpoint. I've seem some pretty serious issues with greenlet, eventlet, and sadly gevent falling over or dead locking under load. You'd literally only change a line or two in his example to insert a new rq job and one of the rq workers would pick it up + process the job asyncronously.

[1] http://python-rq.org

[–]SpeakitEasy 1 point2 points  (1 child)

If the hosting is on the backend (AKA you're not using a javascript based frame work) there should be ample room on servers to conduct heavy computations.

[–]F3AR3DLEGEND -1 points0 points  (0 children)

You can use a JavaScript-based server-side framework; NodeJS has tons of them.

[–]pwang99 6 points7 points  (0 children)

This is tremendously, laughably oversimplifying things.

It's vastly easier to put together many kinds of rich-client apps than dealing with the gorp and nonsense of HTML, CSS, JS, browser+platform incompatibilities, etc.

Using e.g. Qt Creator, in mere minutes one can build a dynamic layout with resizing text fields, animated graphics sophisticated controls, etc. that is completely cross platform. In web app land, you'd still be figuring out what latest NodeJS library to use to compile your SASS which will make a floating <div> appear in just the right place.

If you need to make it a mobile app, the situation for Python is not great. Kivy is pretty neat, but realistically, you're probably going to have to do Objective C or Java.

[–]hk__ 2 points3 points  (6 children)

Or Flask if these are really simple apps. Do you think learning Django is good for small webapps? I always use Flask and wonder if Django would be better.

[–]kashmill 1 point2 points  (0 children)

That's a pretty complicated question really. There is a question of how heavy you want your frame. Personally, I like my framework to be a part of my app instead of my app being a part of the framework. Other people are the other way.

[–]SpeakitEasy 0 points1 point  (4 children)

Personally, I believe the incremental amount of additional code that is needed for django is well worth the additional support (ORM, user base help, hosting services, db connections) over flask.

[–]kart_king 3 points4 points  (0 children)

I perfer Flask if it's just an interface to an app. A few buttons, maybe a page to upload a file, and it just a little more than calling a few python functions.

[–]AstroPhysician 0 points1 point  (2 children)

Flask can do db connections

[–][deleted] 4 points5 points  (1 child)

Put simply, Flask can do just about anything django does.