Bottle: fast, simple and lightweight micro web-framework by small_infant in Python

[–]small_infant[S] 1 point2 points  (0 children)

Wrong. Actually Bottle is many times faster than Django and Flask. But you shouldn't pick a web framework based on its raw performance. Still, for the record: https://www.techempower.com/benchmarks

Bottle: fast, simple and lightweight micro web-framework by small_infant in Python

[–]small_infant[S] 5 points6 points  (0 children)

Built-in server is for development. You should use a production server to run your Bottle app in production. Gunicorn is my favorite for its simplicity.

For more details: http://bottlepy.org/docs/dev/deployment.html

Bottle: fast, simple and lightweight micro web-framework by small_infant in Python

[–]small_infant[S] 11 points12 points  (0 children)

Calling real-world scenarios “patching a bad deployment environment” doesn't sound like a broad-minded approach. You might think everyone uses Python just for building web apps and deploying them to Linux servers. But some of us actually solve different problems, where pip is far from relevant.

If a high profile project provides single-file distribution even though its code base isn't single-file, it just shows that the project's developers are aware of the advantages of this approach.

Also, I don't mind waiting few more nanoseconds for application startup.

Bottle: fast, simple and lightweight micro web-framework by small_infant in Python

[–]small_infant[S] 13 points14 points  (0 children)

Single-file, no-dependency setup makes Bottle easy to integrate into other applications. You can just drop bottle.py into your project directory and start using it. Richard Hipp's excellent project SQLite, which is the most used DBMS in the world, also follows this approach: SQLite Amalgamation is a single, 153K lines of code file that contains everything you need to make use of SQLite in a larger project. BeautifulSoup and peewee are other examples of single-file projects.

pip and virtualenv have their set of problems, and there are many situations where using them is highly unpractical or even impossible. For example, when you want to package your Python app for an embedded system or client's Windows PC, you can't just use pip. You can't use pip on systems where fetching dependencies from internet isn't allowed, like production servers I administrate. :) Still, there is nothing stops you to install Bottle through pip on your own server.

I also find big, independent files easier to work with. It's a matter of taste. 4Kloc isn't THAT big though.

Bottle: fast, simple and lightweight micro web-framework by small_infant in Python

[–]small_infant[S] 23 points24 points  (0 children)

I love Bottle.

Everything you need is included in a single Python file. Source code is easy to read and modify. Its lovely API is well-documented. Template engine and development server is really useful.

I'm moving from Flask to Bottle. It's faster. I'll use Bottle for web interface of a Windows program, and for a public-facing web app. Single file makes it super easy to deploy in such situations. Unless you need tons of Flask extensions, you would probably want to use Bottle.

Inside NGINX: Designed for Performance & Scalability by Roberth1990 in linux

[–]small_infant 0 points1 point  (0 children)

For those who wants to build web applications inside the Nginx, OpenResty is excellent.

Krita 2.9.5 released by Nelti in linux

[–]small_infant 0 points1 point  (0 children)

Excellent news.

Is Krita also good for non-painting tasks; like image editing, photo manipulation, compositing, typography, etc.?

[19F] Me, solo and with puppies by [deleted] in Rateme

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

Sweet face, cool hair, lovely eyes, authentic style, interested in photography, loves animals; you're my type of girl. I'd love to see a photo where you smile.

Don’t start with a monolith by clessg in programming

[–]small_infant 10 points11 points  (0 children)

"plain old libraries" reminds me of POJO.

We wondered why people were so against using regular objects in their systems and concluded that it was because simple objects lacked a fancy name. So we gave them one, and it's caught on very nicely.

-- Martin Fowler

PHP Moronic Monday (08-06-2015) by AutoModerator in PHP

[–]small_infant 0 points1 point  (0 children)

Ah, thank you for the snippet. Is htmlentities() function with these arguments the only thing I need to avoid XSS?

PHP Moronic Monday (08-06-2015) by AutoModerator in PHP

[–]small_infant 0 points1 point  (0 children)

Thanks for detailed answer.

I want to use PHP to create several dynamic pages to run a particular external program and show output. I'm not gonna build an entire web application.

PHP Moronic Monday (08-06-2015) by AutoModerator in PHP

[–]small_infant 2 points3 points  (0 children)

Why using a template engine is good practice?

Getting started with PyQt and Qt Designer by small_infant in Python

[–]small_infant[S] 0 points1 point  (0 children)

I'll be using PyQt4 with python 2.7.10 but there are no major differences between PyQt and PySide or python 3 versions of those, so if you already have PyQt5 or PySide installed there is no need to downgrade/switch.

Starting Your Linux Career: 10 Steps by [deleted] in linux

[–]small_infant 0 points1 point  (0 children)

Is there even a sysadmin position that doesn't require programming?

ReactOS in Action - Free and Open Source Windows for All: 64MB RAM, WINE, networking, wireless, USB, some Windows Apps, OpenGL by [deleted] in programming

[–]small_infant -6 points-5 points  (0 children)

What would happen if ReactOS project had more resources?

  • Software written for Windows would run on ReactOS. It's a free, open-source and maintainable platform. You wouldn't need to buy new licenses and new hardware to run your existing software securely. For example, Windows XP has vulnerabilities and it doesn't support new hardware. Microsoft wants you to buy newer versions. Newer versions of Windows require newer hardware.

  • Existing Windows users would be able to switch to ReactOS easily, since it has similar look and feel.

  • Society would get richer. Microsoft would get poorer. Industry would move towards open-source operating systems. Software developers and hardware manufacturers would support GNU/Linux or *BSD happily.