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.
[ Parent
| on HN ]
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.
I agree that Python works well for just about everything but wish there was a framework between Django & Flask.
The most popular framework that fits this description might be Pyramid [1].
Have you looked at:
http://www.django-rest-framework.org/
and the Lightweight Django book: http://shop.oreilly.com/product/0636920032502.do
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/).
Use Django and strip out the middleware and admin/authentication addons.
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.
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.
Pyramid is exactly that.
Which is the first?
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.