PorkyThePaladin
Arcane
- Joined
- Dec 17, 2013
- Messages
- 5,415
Pattern matching as in regular expressions? Python has a great re library that will do anything you need.
This is amusing. You insulted many people in this thread claiming that Java and C# are only suitable for cheap outsourced developers while Python is designed for 1ee7 haxx0rz. Yet I and Rincewind have proven that you understand neither simple concepts like default function arguments nor advanced ones like pattern matching. Is this thread a bad joke?
It is indeed amusing. Because I clearly got you pretty butthurt my friend. Let me guess, you are a cheap outsourced developer, always insecure about your skills, eh?
Also, I didn't really claim the above. What I actually said is that Python is what's everything cool is built in, by brilliant people with ideas. And then, once that cool stuff establishes itself, and those companies grow huge, then they often switch to languages with better performance and more idiot-proof features. That's the truth, bro, and if it hurts, well...
As far as default function arguments, I didn't come up agains that characteristic of lists in Python recently (I kinda vaguely remember something like that years ago), so I was just confused as to what you were doing, since it seemed like your method was basically replicating the functionality of the list's append method. That's why I called it spaghetti code. And pattern matching, I work with regex all the time, but never used pattern language on programs themselves. Oh well.
Lol, are you still so butthurt from the Elden Ring thread you have to come here and say silly stuff about Python to compensate? You will just cry some more...
It is not minor, it shows the fact that Python designers confuse local variables (function arguments) with global variables (default values of function arguments are implemented as global variables and in Python those values may be mutable).My point is if you look at any language closely enough, you can find a ton of stuff to complain about. All the stuff you mentioned is fairly minor.
They don't confuse anything, local and global variables are generally distinct in Python, it's just a thing with lists in certain situations, I am too lazy to google why they did it this way right now, but again, once you get used to it, it's not a big deal. Every language has some silly shit like this.
By this logic assembly is a viable language because programs written in it work correctly as long as developers test them thoroughly.The first example if it's true, ok so you get used to that, and adjust your code. If you are testing your code as you should, it won't ever cause any real issues.
Assembly is not unviable in most cases because of this, it's just really painful to code in. Python is the exact opposite.
And if migrating from Python 2 from Python 3 was such a big deal, why has the language become even more popular since then?
Python is popular for the same reason PHP was popular in 2000s: it is easy to learn and therefore there is abundance of cheap developers. Are you claiming that PHP is a great language?
Migration from Python 2 to 3 was bad because for years some libraries only supported Python 2 while others only supported Python 3, making it impossible to combine them in a single Python program. Even Guido admitted that the transition was poorly handled: https://medium.com/codex/python-4-0-will-never-arrive-3d994dce54f1
Nope, this is nonsense from Python haters. It is very easy to learn, but so are lots of languages. Python is very easy to work in, which contrary to what people like you might think, is an extremely important benefit in real world programming. It also has a ton of libraries, great community and support, and so on. Great language bre.
As I said, I will prepare some code examples later this week.
I am already falling asleep...
I wonder is there a single program written in Python that's useful for something. I'm not against Python in any way, just asking. We can keep talking about language features, but they don't really matter in the end. Only what you can produce with that language.
Lol: https://www.botreetechnologies.com/blog/top-15-websites-built-with-python/