Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

Python programmers?

Never touched Python a day in my life before this semester. Been learning it for classes, and I think I already like it a lot better than most other languages I've tried. It is worlds easier than C/C++, a lot easier and cleaner than Java (disclaimer: coming from a novice Java programmer, but I did find Python a lot easier to learn), and, well, worlds cleaner (albeit a tad bit harder) than PHP. 

And PHP has its limitations and its strengths. It is so different from every other programming language that it's not even funny. Well, it looks like C almost. But the nice thing about PHP is it really doesn't complain about very much when it comes to your code. It makes it easy to jump into, and unfortunately, makes it easy for people to make simple mistakes when they are writing their code (using variables that don't exist in ways that aren't intended, or having habits that might lead to poor security practices, etc.)  

Python takes the ease of PHP almost, makes the code a tad bit cleaner (less brackets, forced indentation, etc.), adds a lot of great libraries that are clean and concise, and perhaps a little easier to get a handle on than Java, and, well, Python complains a tad bit more than PHP I've noticed. Not sure if that's a good thing or a bad thing. But in Python, you can't just use a variable out of nowhere or index into an array where there is no index declared. Unlike PHP, you'll get an error, not just a warning. And if you try to cast something to an int when it can't be casted, you'll get an error and kill your program. In other words, you'll probably land more errors, but if your program works, you're less likely to have bugs of functionality and it's more likely to work as expected.  

Overall, I almost want to to do my web development in Python now. Tongue

That being said, still a relatively new Python coder and I have a ways to go before I've mastered it. Anyone else here have any experience with it? Big Grin

Because I'm fairly certain I'm tackling Java next. Tongue - Our next project...
I'd like to learn it at some point, but have only touched PHP and C++. I know what you mean about PHP not complaining much, in fact I think a more stringent language is better in a lot of ways.
[Image: wxBanner?bannertype=wu_clean2day_cond&ai...anguage=EN]
I really like python because I use it fairly heavily when customizing and tinkering with the Graphical interface in linux, it's what allowed me to have that cool looking tron based touch UI I posted a while back, I've also used it in conjunction with PHP to actually make working smart home circuits and stuff with raspi control cores.

so as far as a language that's easy to learn with a ton of info out there, it's great, but it's still a high level language, basic and Assembly are still kinda required if you want to move past it's limitations.
"I reject your reality and subsitute my own." - Adam Savage, Mythbusters
[Image: 5.jpg]
Haha, basic? Don't think that's a low level language my dude. Python's probably got it beat.  Finna

But yeah I agree. Python is ridiculously easy for user interfaces, which I like. It's the only language where I really have managed to succeed. Tried in Java, and Java was noticeably much more challenging. - Our next project...
you'd be surprised, there's no python compiler for stuff like the SNES and the genesis but there's basic compiler's of all things for both, still sorry for my mistake there.

but yeah python assembly and basic, maybe C++ with some java thrown in is probably all you'd need to really make use of hardware and games and stuff.
"I reject your reality and subsitute my own." - Adam Savage, Mythbusters
[Image: 5.jpg]
Updating this after a few years of experience. My verdict? Python is a far better language, but PHP isn't going anywhere.

They are designed for two different things. With web development, pretty much anyone could have a need for a website, and it pays to have at least some experience with the code involved. PHP kind-of has to be beginner-friendly for that reason, and hence it doesn't force you to initialize variables, has multiple ways of doing things first, etc.

Python is also very easy and is a go-to language for doing things quickly, but it's not built for the web. And as a result, has the freedom to do things a little differently than PHP. It can be a little more "proper" without having to worry about whether it's fully "web friendly" for a shared hosting environment such as GoDaddy or Hostgator.

Additionally, PHP has evolved. It likely became as successful as it is now, largely because it was at the right place at the right time. They have had no choice but to expand the language WITHOUT introducing major breaking changes. Some of the language's overall inconsistency stemmed from this. Python is much easier to introduce a new version for, and call it a day. They released Python 3 10 years ago, and Python 2 is still being used today. Virtual environments for Python are easy. (and for PHP, not so much, as you only get one version, and that's the version your host provides. Finna)

So PHP has been forced, in a sense, to be extremely beginner friendly AND to be compatible with older code standards. I believe Python is a better language in terms of programming and its practices, but only because it can be. For web development, PHP is the best language we will ever have, simply because it's so widespread and heavily supported. - Our next project...
[Image: rd64erbk6nj41.jpg]
"I reject your reality and subsitute my own." - Adam Savage, Mythbusters
[Image: 5.jpg]
What's dead, can never die... Finna - Our next project...
(March 8th, 2020 at 6:13 AM)Darth-Apple Wrote: What's dead, can never die... Finna
If you're trying to program something non euclidean wouldn't lisp be a better choice?

"That is not dead which can eternal lie, And with strange aeons even death may die" - Lovecraft

I've only really used python to build and customize Linux interfaces so I don't know a lot about using it beyond thar.
"I reject your reality and subsitute my own." - Adam Savage, Mythbusters
[Image: 5.jpg]

Possibly Related Threads…
Thread Author Replies Views Last Post
  Cython - Python at the Speed of C Darth-Apple 0 300 April 11th, 2020 at 1:07 PM
Last Post: Darth-Apple
  Recursive Sequence of Death [Python] Darth-Apple 7 5,002 April 19th, 2019 at 3:39 PM
Last Post: bestforums

Users browsing this thread: 1 Guest(s)

Makestation Theme/Design Selector

Contact Us | Makestation | Return to Top | Lite (Archive) Mode | RSS Syndication 
Proudly powered by MyBB 1.8, © 2002-2020
Forum design by Makestation Team © 2020 - a modern day time capsule | Makestation Ajax Chat Hosting