this was my take
there's also libraries for fricking everything
i was just poking around a conda env i had and there's one to do weird stylistic transformations on arabic text that i have for some reason
A combination of libraries being available for everything and the syntax not being as strict. If I want to automate something quickly I'm not going to use fricking Java.
cython is not that much faster. you mostly use it to link to c libraries. not that it's a bad thing. pypy is probably the fastest you can do with python.
A. It is faster than a human.
B. If most of the runtime is spent waiting for other machines to respond, speed doesn't matter (as much).
C. In some cases, development speed is more important than the speed of the product.
D. You can use C++ or Rust for the parts that require speed, Python binds with these languages well.
>The ease to write encourages messy code.
stockholm syndrome mentality. python can lead to ugly programs but it has nothing to do with python being easy to use
>The ease to write encourages messy code.
but this is why it, perl, and bash are the best for simple little scripts. Why make a perfect program when you can make a quick and messy, good enough script?
Writing bash scripts is all I know how to do and the ones I make are ridiculously convoluted. Figuring out how to do it in the first place has solved so many problems I had for years and made it possible to get my computers to do what I want them to do instead of hoping to find something that already exists to do specific tasks. Now I'm at the point where I can at least modify existing python scripts to make them work how I need them to. Maybe I'll get to the point where I actually learn python.
2 months ago
Anonymous
>Maybe I'll get to the point where I actually learn python.
if you're able to understand bash enough to make complex scripts out of it, python should be much easier. You're just scaring yourself into not doing it, it'll take you an afternoon of googling and reading docs/stackoverflow and you'll have a reasonable grip on the language. Rest comes from application, as with everything.
>beanfactorymanagers
your mistake was either buying a copy of the GoF design patterns books or thinking it’d be a good idea to work at an office in New Bangalore
it's pretty great. it has some technical issues like scoping problems and cached args but in general it's peak comfy.
imo lua > python > ... > javascript
Because it's easy to use, if you look at a working-correctly piece of code, there is a 75% change it was written by someone moronic.
And then you go >WTF python is moronic
on linux >noo, install that specific version for this app >no you cannot do it without virtual env >spend an hour figuring out how to get dependencies right
package managers
Most of IQfy is students and NEETs who program only has a hobby. They don't see the merits of a language beyond how fast and how much "street cred" you get from using it. That being said the dynamic type system is a problem and there would be great benefit from a TS equivalent becoming an industry standard (Mypy isn't one, its a static code analysis tool).
>no you cannot do it without virtual env
Literally as easy as
$ python -m venv venv
$ source venv/bin/activate
$ pip install -r requirements.txt
nothing, except that it allows flabby code to exist. this is great for my glorified shell scripts which just needed to do raw file manipulation or something crazy like syscalls.
but those scripts are not deployed except to my own shit, and i never share them.
when you share python code, the code can be very shitty, flabby and evil. with other languages this is illegal at compile-time usually.
great for prototyping even for something that's complex
great for scripting, especially when it's complex
and great for quick and shitty websites leveraging massive frameworks that needed to be done yesterday
but it's never the best quality. it's like fast food for programming. it's quick and it's flabby. Use something more strict if you're gonna maintain it for long.
i forgot what type my function arguments
typehints exist
typescript has those too
wonder why my coworkers still get so many fricking rollbacks in prod
>the bootcamper fears the static type system
hardware issue
>type system
>hardware issue
so many chucklefricks on IQfy these days
kek, hes mad
imagine getting filtered by static type systems
The hardware issue is your brain dummy
It's easy to write
It can do just about anything, albeit a bit slower
It has lots of jobs
Everything about it literally just werks
this was my take
there's also libraries for fricking everything
i was just poking around a conda env i had and there's one to do weird stylistic transformations on arabic text that i have for some reason
your list is problematic for IQfy tinker trannies
>Everything about it literally just werks
Until it doesn't. Not your problem if you're getting paid tho.
>It's easy to write
What makes it easier than, say, Java?
A combination of libraries being available for everything and the syntax not being as strict. If I want to automate something quickly I'm not going to use fricking Java.
>albeit a bit slower
Isn't there an interpreter now that translates it to C?
cython is not that much faster. you mostly use it to link to c libraries. not that it's a bad thing. pypy is probably the fastest you can do with python.
Python is good because it's not J*va
C# is good because it's not J*va
C++ is good because it's not J*va
Java
It’s SLOOOOOOOOOOWW. WOW LOOK AT ME IM A BIG SNAKE RAWR SSSTHHSS :33 WATCH ME SLITHER
The ease to write encourages messy code.
A. It is faster than a human.
B. If most of the runtime is spent waiting for other machines to respond, speed doesn't matter (as much).
C. In some cases, development speed is more important than the speed of the product.
D. You can use C++ or Rust for the parts that require speed, Python binds with these languages well.
>The ease to write encourages messy code.
stockholm syndrome mentality. python can lead to ugly programs but it has nothing to do with python being easy to use
>The ease to write encourages messy code.
but this is why it, perl, and bash are the best for simple little scripts. Why make a perfect program when you can make a quick and messy, good enough script?
Writing bash scripts is all I know how to do and the ones I make are ridiculously convoluted. Figuring out how to do it in the first place has solved so many problems I had for years and made it possible to get my computers to do what I want them to do instead of hoping to find something that already exists to do specific tasks. Now I'm at the point where I can at least modify existing python scripts to make them work how I need them to. Maybe I'll get to the point where I actually learn python.
>Maybe I'll get to the point where I actually learn python.
if you're able to understand bash enough to make complex scripts out of it, python should be much easier. You're just scaring yourself into not doing it, it'll take you an afternoon of googling and reading docs/stackoverflow and you'll have a reasonable grip on the language. Rest comes from application, as with everything.
bloatmaxx
It has a shitty gradual typing system. Types feel like they are second class. Otherwise its ok
>types feel like a second class citizen
because they are
why not use java and create infinite beanfactorymanagers while you're at it?
>thinking types = objects
Ngmi
>beanfactorymanagers
your mistake was either buying a copy of the GoF design patterns books or thinking it’d be a good idea to work at an office in New Bangalore
>le epic oop exaggeration maymay
it's pretty great. it has some technical issues like scoping problems and cached args but in general it's peak comfy.
imo lua > python > ... > javascript
Nothing.
Because it's easy to use, if you look at a working-correctly piece of code, there is a 75% change it was written by someone moronic.
And then you go
>WTF python is moronic
on linux
>noo, install that specific version for this app
>no you cannot do it without virtual env
>spend an hour figuring out how to get dependencies right
package managers
Figuring out the dependencies usually takes minutes, not an hour. As far as python goes the only package manager I'm interfacing with is pip.
Also I should say using python on Windows isn't really any different. Behaves exactly the same as it does on Linux.
my brother in christ those are the only two places you use python
Most of IQfy is students and NEETs who program only has a hobby. They don't see the merits of a language beyond how fast and how much "street cred" you get from using it. That being said the dynamic type system is a problem and there would be great benefit from a TS equivalent becoming an industry standard (Mypy isn't one, its a static code analysis tool).
>no you cannot do it without virtual env
Literally as easy as
$ python -m venv venv
$ source venv/bin/activate
$ pip install -r requirements.txt
Indentation determining code blocks rather than curly braces was the biggest mistake in computing history. Literally unreadable nonsense.
also you're blind
nothing
nothing, except that it allows flabby code to exist. this is great for my glorified shell scripts which just needed to do raw file manipulation or something crazy like syscalls.
but those scripts are not deployed except to my own shit, and i never share them.
when you share python code, the code can be very shitty, flabby and evil. with other languages this is illegal at compile-time usually.
great for prototyping even for something that's complex
great for scripting, especially when it's complex
and great for quick and shitty websites leveraging massive frameworks that needed to be done yesterday
but it's never the best quality. it's like fast food for programming. it's quick and it's flabby. Use something more strict if you're gonna maintain it for long.
my autistic friend doesn't like it because the syntax is weird
https://openpsychometrics.org/tests/FSIQ/1.php
python filters low spatial iq homies
esl btw (yes i'm coping)