4 ms·
Don't. Just do not do this Python has a place in scripting Because you can, does not mean you should, build full applications with it It is a colossal waste
by worik 4y ago
Don't. Just do not do this
Python has a place in scripting
Because you can, does not mean you should, build full applications with it
It is a colossal waste of resources. It leads to genuine problems as it gets bigger that you will only find when you have considerable sunk costs.
This is a terrible idea, it was a terrible idea in 1995 when people did this with Perl, it is a terrible idea now
Use Python for what it is good at, not for what it is dreadful at
- mixmastamyk 4y agoThis is "premature optimization," IMHO. No, get the idea working first. Talk to customers... pivot... repeat. After finding a fit and portions are too slow look into Cython or offload to services in golang, etc. This looks like a great productivity booster.
- siva7 4y agoPeople also said similar things when Node.js crossed backed then the boundaries of our imagination. Nonetheless i agree that it can lead to genuine problems once it gets complex enough.
- worik 4y agoNode.js is very bad It amplifies all the bad desicions ever made in software Because you can does not mean you should,
- slmjkdbtl 4y agoFor this software if you change to any language it will still use the same architecture and technology, setup a http server and generate HTML and some client JS code to run on browser, just syntax difference or maybe performance. Curious what exactly is the part you think Python is dreadful at that this software contains? You can definitely say there are better performance language but I'm curious about if other factors.
- worik 4y ago> Curious what exactly is the part you think Python is dreadful at • A large memory foot print ▪ Inefficient execution That's two out of the top of my head I have been badly burnt by Mailman3, pure Python, pretty front end, 2G needed to install it. That cost me real money. The difference between a cheap, and a very cheap, VPS
- abraxas 4y agoWell then, people should also stop doing that with Typescript because it's often as slow as Python and much slower than JavaScript.
- yamtaddle 4y ago> Well then, people should also stop doing that with Typescript because it's [...] much slower than JavaScript. Wuh?
- abraxas 4y agoTypescript transpiles to JS with a bunch of runtime checks woven in resulting in much slower code than equivalent barebones JS. There are benchmarks that show this.
- fredrikholm 4y agoCould you share some of these benchmarks? This is news to me; AFAIK TS transpiles into minimized JS and has 1:1 runtime characteristics.
- yokljo 4y agoThis is false. TypeScript does not add any run time checks, but it does encourage you to add some yourself.
- barapa 4y agoDon't. Just do not write this comment.
- hakanderyal 4y agoThis is an area where there is no right answer. There are a lot of success stories, big and small, with apps built with Python, Ruby, PHP. So, if you are already familiar with the language and build something now, go with it. On the other hand, also be aware of the other side of the coin. It'll probably be much more productive to build long lived applications in a better language more suited to it. I've built 30+ apps and wrote hundreds of thousands of lines of code with Python for ~10 years. I've switched to C#/.NET now, and couldn't be happier. It allows me to almost all the dynamic things I had done in Python, in a type safe way, thus making everything easier. I wish the modern, cross-platform .NET existing when I've started my journey in Python.