News for hackers. Stuff that matters.
Re:The Incredible Growth of Python by goodoldboys on Wednesday September 06, 2017 @05:34PM (#15187308)
As someone who works with Python every day, this isn't surprising. I forget where I heard/read it, but someone made the claim that Python is the "second best language for everything" (paraphrasing) and I couldn't agree more. Need to create a web app that interfaces with a data pipeline? Python/Django/Flask is perfect. There are countless other examples too.
Re:The Incredible Growth of Python by real-hacker on Friday September 08, 2017 @01:50AM (#15198145)
Why second best? I think it is the best for almost everything. One reason is that its grammar is so intuitive, that you only need to think about the problem to solve. With other languages, you always need to look out for grammar issues.
Re:The Incredible Growth of Python by pbreit on Thursday September 07, 2017 @02:08AM (#15189474)
I agree that Python works well for just about everything but wish there was a framework between Django & Flask.
Re:The Incredible Growth of Python by denisw on Thursday September 07, 2017 @02:53AM (#15189638)
The most popular framework that fits this description might be Pyramid [1].

[1]: https://trypyramid.com/

Re:The Incredible Growth of Python by dagw on Thursday September 07, 2017 @04:27AM (#15189980)
Re:The Incredible Growth of Python by hurtmyknee on Saturday September 09, 2017 @06:33AM (#15206434)
I like to keep things modular, if you're looking for API development Falcon is a lightweight DIY solution (https://falconframework.org/).
Re:The Incredible Growth of Python by abledon on Friday September 08, 2017 @12:30PM (#15201627)
Use Django and strip out the middleware and admin/authentication addons.

see https://github.com/lightweightdjango

Re:The Incredible Growth of Python by pbreit on Saturday September 09, 2017 @12:35AM (#15205574)
auth is a must-have (i've never written an app that did not need basic auth) and admin is a very, very nice to have. It still feels "thick" to me in other areas.
Re:The Incredible Growth of Python by joaodlf on Thursday September 07, 2017 @04:15AM (#15189943)
Agreed! I lean much more towards Flask (I'd rather have too much simplicity than too much complexity), but something in the middle would be fantastic.

A simple application structure with loose enough rules and a strong standard library is what I would like. Flask can be too little, Django can be too big.

Re:The Incredible Growth of Python by Walkman on Friday September 08, 2017 @02:28AM (#15198251)
Pyramid is exactly that.
Re:The Incredible Growth of Python by rmuratov on Thursday September 07, 2017 @08:35AM (#15191228)
Which is the first?
Re:The Incredible Growth of Python by lucozade on Thursday September 07, 2017 @09:17AM (#15191508)
I believe the idea is that the best language for any given situation will vary depending on the situation.

The point, I guess, is that Python isn't really optimal at anything but is very good at a lot of things.

Realistically, there are enough software fields that Python just isn't applicable for this to be taken with a pinch of salt. However, as a language, it does have quite a large sweet spot: easy to pick up, expressive, integrates well with low level languages for heavy lifting and almost perl quantities of libraries.

IMO its popularity is justified although I'm not a fan myself.

Re:The Incredible Growth of Python by kerbalspacepro on Thursday September 07, 2017 @09:38AM (#15191706)
It depends on the context. The joke is that everything has a most optimal language and Python is never the most optimal language- but it has got breadth.