Dipping Toes Into Programming
-
I am liking PHP more than Python. PHP seems so much easier in every way so far... but I'm not very far with either.
-
@tim_g said in Dipping Toes Into Programming:
I am liking PHP more than Python. PHP seems so much easier in every way so far... but I'm not very far with either.
If you are mostly focused on websites logic go php. This is the very application field for php. Python is a general purpouse lang. Still useful but for simple web stuff php is the entry point. Let say that if you have to do website jobs for the most, path could be php-> any framework of any general purpouse -> node.js
-
@tim_g said in Dipping Toes Into Programming:
I am liking PHP more than Python. PHP seems so much easier in every way so far... but I'm not very far with either.
I feel that PHP is the easiest language to learn. It was completely designed around simplicity from the very beginning, and was the first language designed specifically around the needs of making web apps.
-
And since PHP 7 the performance has really leapt forward.
-
-
@popester said in Dipping Toes Into Programming:
Might be worth a scan. https://www.codementor.io/blog/worst-languages-to-learn-3phycr98zk?utm_content=posts&utm_source=sendgrid&utm_medium=email&utm_term=post-3phycr98zk&utm_campaign=newsletter20180307
It doesn't list so many key languages, though. Doesn't really make sense as a list. And community engagement and jobs are both bad indicators - since community engagement is at best loosely related to value and jobs is a reflection of legacy support more than anything. Things like "utility for making products" aren't even considered, nor are some of the most important languages like JavaScript, Python, PHP or the ones that are obviously the worst, like VB.
-
@scottalanmiller said in Dipping Toes Into Programming:
And since PHP 7 the performance has really leapt forward.
I've seen that. I pushed all my servers to PHP 7 a while ago.
-
I'm sticking with PHP for now no matter what. I'm getting a bit in to it now, and it's really easy for me to understand and pick up.
I don't know if that's because I'm already used to loops and that type of logic already from PowerShell and BASH, but it's way easier for me to catch on than it was with Python.
But the differences are so small. I took a quick look at Python last night to compare it to PHP, and it was SO MUCH EASIER after I had done the same stuff with PHP.
So PHP is definitely going to be my gateway language, I've been wanting to learn PHP anyways, becuase it's just everywhere and I will get a lot of personal benefits from knowing it.
I'd rather do Python, but I feel learning PHP first will be better for me when I get into Python.
-
I actually prefer PHP. I've tried some dot net, Java, and even some node.js (I haven't completely ruled this one out yet as I'm still learning what I like / not like about it).
-
@dafyre said in Dipping Toes Into Programming:
I actually prefer PHP. I've tried some dot net, Java, and even some node.js (I haven't completely ruled this one out yet as I'm still learning what I like / not like about it).
PHP is quite good, I like it a lot.
-
I really like Ruby, though.
-
@tim_g said in Dipping Toes Into Programming:
But the differences are so small. I took a quick look at Python last night to compare it to PHP, and it was SO MUCH EASIER after I had done the same stuff with PHP.
Lots of programming is very cumulative that way. You should also be able to apply what you're learning back to powershell
-
@scottalanmiller said in Dipping Toes Into Programming:
I really like Ruby, though.
I had to write a quick little code snippet in Ruby once, was not as intuitive |for| me as I expected.
Part of the problem is that I didn't believe the syntax my google searches were showing me.
-
@flaxking said in Dipping Toes Into Programming:
@scottalanmiller said in Dipping Toes Into Programming:
I really like Ruby, though.
I had to write a quick little code snippet in Ruby once, was not as intuitive for=>me as I expected.
I think you mean the above...
-
@scottalanmiller said in Dipping Toes Into Programming:
I really like Ruby, though.
I've not done much with that one. I tried a few things, but never really took off with it.
-
I actually find it faster to build the interface in straight HTML, CSS, & Javascript and then let PHP or whatever handle the data transports and such.
-
I've been digging through WordPress a little bit in the evenings to see how it's really set up, starting with index.php and following it.
It's freakin huge with so many moving parts and gears, I can see why there's so many devs lol.
But it's very interesting to see how it works at that level, and helps to learn a little too.
-
@tim_g said in Dipping Toes Into Programming:
I've been digging through WordPress a little bit in the evenings to see how it's really set up, starting with index.php and following it.
It's freakin huge with so many moving parts and gears, I can see why there's so many devs lol.
But it's very interesting to see how it works at that level, and helps to learn a little too.
That will actually help if you ever find yourself having to clean up a hacked Wordpress site.
-
I came across this link:
Usage of server-side programming languages for websites
https://w3techs.com/technologies/overview/programming_language/all -
PHP definitely rules the roost by number of deployments. Just keep it in perspective that that is mostly WordPress, Drupal, Joomla and similar, simple frameworks that are widely deployed. And lots of free apps like vTiger, SugarCRM, SuiteCRM, you name it were always PHP apps. And most web hosts only offer PHP. So PHP does insane numbers of simple "personal websites". That's its name, Personal Home Page.
Then things like Erlang or Java might have small numbers of deployments, but they tend to be things like big financial transaction systems or whatever. Things that aren't deployed very often, but are really significant on a "per deployment" model.