TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: Why not use Python?

5 pointsby pygixabout 8 years ago

3 comments

odonnellryanabout 8 years ago
I&#x27;m mostly a Python dev who dabbles in random languages. Few things that aren&#x27;t-so-great with traditional Python:<p>1) Not statically typed 2) Not compiled 3) Super-cross-platform is cool, and not cool.<p>1: This one is obvious: it doesn&#x27;t stop you from writing awesome code, but the type-hinting in Python still has a way to go. And what&#x27;s type-hinting without #2?<p>2: You lose out a lot on a language that isn&#x27;t compiled. It&#x27;s nice to just be able to execute the code, but compiler warnings are awesome. Binaries are actually cool in a lot of circumstances.<p>3: It&#x27;s good to know, in general, that you have the _ability_ to run on many systems. However, in the real world you still have to test extensively on all the platforms you want to run the code on, and you have to ensure the tech you&#x27;re using is supported, of course.<p>Python is an awesome language for many, many things: but sometimes a language like C# or Go or Rust or.... makes more sense. Performance, statically typed, or pure-functional-programming is sometimes desired: these things are often harder in Python.<p>One thing Python has over many of its contemporaries is the _vast_ and helpful (fun) community. There&#x27;s a million libraries (like from the JavaScript world) but unlike JS (in my experience, this is just because of the &quot;newness&quot; of the ecosystem) these libraries are very, very mature. And the tooling is actually really good, check out Conda for example!
评论 #14070383 未加载
iEchoicabout 8 years ago
There are too many other mainstream backend languages with important advantages over Python. I&#x27;m having a hard time thinking of a problem space where I wouldn&#x27;t rather pick something else.<p>C# has static types, far better tooling, and is generally more maintainable. Go and C++ are way faster. Node has the benefit of allowing you to (share) code in the same language on the frontend and the backend. Every other language has &quot;not having to deal with a broken inheritance model that makes me pass `self` around everywhere&quot; and &quot;doesn&#x27;t silently turn things into tuples when I add an extra comma somewhere&quot;.<p>I will say that Python is one of the easiest backend languages to throw new people into and have them contributing quickly - but I think the gap has narrowed substantially recently. JavaScript has become so pervasive that Node might actually have the advantage now.
bottenabout 8 years ago
Python is slow. Sometimes this matters (pypy can improve speed in many but not all cases).