Should I be getting into programming/PHP?

Status
Not open for further replies.
First, a bit of background: I am 32 and have been tinkering with computers since age 6. I have reasonable understanding of various techy things, so configuring and maintaining a web server stack on FreeBSD is trivial. I work in an IT-related field, but I don't do programming. Over the years of dealing with various techy things, I've had to look and make some tiny adjustments to code (I even fixed a trivial bug in MPlayer back in the day), but I don't actually have the slightest clue on coding things from scratch, I just understand the basics and can (sometimes) connect the dots in what I am looking at.

For some time now, I've had an idea for a web project and this year I've decided to actually give it a go. This is basically a website running on FreeBSD/nginx/mysql/wordpress with an assortment of various plugins. The thing is, at this point, I've run into somewhat of a brick wall: I need to have the functionality of some of the wordpress plugins I am using to be extended (there are no alternatives that do what I do want to do). This brings us to my actual question:

Should I be hiring the plugin authors and/or people on places like Upwork to make the changes I need or should I be learning to do it myself?

I should note that I have previously tried to learn coding (C and Python), but abandoned my attempts due to the following reasons:

* there is a huge gap between "Hello World" and a project that I could find interesting and/or fun to do, basically I got bored during that gap
* compilers/interpreters complaining about the tiniest syntax errors drove me up the wall
 
* there is a huge gap between "Hello World" and a project that I could find interesting and/or fun to do, basically I got bored during that gap
* compilers/interpreters complaining about the tiniest syntax errors drove me up the wall

The first one is fair enough, it's hard to be motivated to build up the skills for what you really want to do when you're looking at a learning cliff that seems straight up. Learning a language by tweaking existing plugins to do what you want can be very approachable for some people.

The second issue is a major impediment to learning to program. Languages like php is worse in many respects due to the fact it isn't as strict as pascal or c, but that only comes back later to bite you in the ass with bugs.
 
[url=http:/civis/viewtopic.php?p=31445835#p31445835:1lxdou14 said:
KrispyK[/url]":1lxdou14]You should probably learn a little regular PHP before delving into wordpress plugin authoring. As a newbie editing and modifying existing code is always easier than writing from scracth, so i'd just say go for it!

Also: Use a proper editor like JetBrains or Eclipse PDT to save yourself from syntax errors.
"PHP The Right Way" looks like a decent collection of links, but it really needs a better "Getting Started" section. As of now, "Initial Configuration" looks like a more suitable name for the section.
 

GohanIYIan

Ars Legatus Legionis
10,192
[url=http:/civis/viewtopic.php?p=31457857#p31457857:23w8a44n said:
dmitriyk[/url]":23w8a44n]
[url=http:/civis/viewtopic.php?p=31446949#p31446949:23w8a44n said:
Jago[/url]":23w8a44n]
"PHP The Right Way"
Oxymoron.

OP is dealing with a wordpress site. How is this useful? You could snarkily say the same thing "Javascript: the Good Parts" but attempting to follow best practices is probably more productive than trying to somehow alter history so that flawed languages are no longer popular/prominent.
 

dmitriyk

Ars Tribunus Angusticlavius
8,804
[url=http:/civis/viewtopic.php?p=31458233#p31458233:2vngosor said:
GohanIYIan[/url]":2vngosor]
OP is dealing with a wordpress site. How is this useful? You could snarkily say the same thing "Javascript: the Good Parts" but attempting to follow best practices is probably more productive than trying to somehow alter history so that flawed languages are no longer popular/prominent.
Broken languages are still popular / prominent because of bullshit just like this.
 
[url=http:/civis/viewtopic.php?p=31458259#p31458259:sw7qfbtw said:
dmitriyk[/url]":sw7qfbtw]
[url=http:/civis/viewtopic.php?p=31458233#p31458233:sw7qfbtw said:
GohanIYIan[/url]":sw7qfbtw]
OP is dealing with a wordpress site. How is this useful? You could snarkily say the same thing "Javascript: the Good Parts" but attempting to follow best practices is probably more productive than trying to somehow alter history so that flawed languages are no longer popular/prominent.
Broken languages are still popular / prominent because of bullshit just like this.
Php isn't fundamentally broken. Or, if it is, so is Ruby/on rails.

Php can, and is badly implemented in a day to day basis, and does have its own WTFs, but it isn't fundamentally the problem.
 

dmitriyk

Ars Tribunus Angusticlavius
8,804
Php isn't fundamentally broken. Or, if it is, so is Ruby/on rails.
¯\_(ツ)_/¯

Php can, and is badly implemented in a day to day basis, and does have its own WTFs, but it isn't fundamentally the problem.
I don't mean to pick a fight here, because you seem to be one of the more reasonable people here, but that's exactly the problem. PHP is a language that, if it must be learned, must be learned in a structured way because of the sheer number of ways in which one can 1) totally cock it up and 2) see some success and assume that the implementation that "works" is correct. Let's carefully distinguish between three paths that are implied by the OP and the responses: hacking around on WP plugins, learning PHP, and learning programming. All are largely orthogonal to each other.
 

dmitriyk

Ars Tribunus Angusticlavius
8,804
I'm not disagreeing that ROR is broken. That's one of the reasons, but the basic design itself is flawed.
What makes PHP special in its own hellish way is being encouraged to learn from WP plugin writers, hobbyist developers, and Stack Overflow commenters with 20 years of experience writing utterly broken code. THAT is orthogonal to learning programming.

[url=http:/civis/viewtopic.php?p=31445835#p31445835:ee1548kx said:
KrispyK[/url]":ee1548kx]As a newbie editing and modifying existing code is always easier than writing from scracth, so i'd just say go for it!.
scared.gif


Edit: Okay, if you're not looking to make a career out of it or not even just learn programming, go for it. If you are, you'd certainly be better off in a more structured environment.
 
[url=http:/civis/viewtopic.php?p=31458309#p31458309:1fniyomv said:
dmitriyk[/url]":1fniyomv]
Php can, and is badly implemented in a day to day basis, and does have its own WTFs, but it isn't fundamentally the problem.
I don't mean to pick a fight here, because you seem to be one of the more reasonable people here, but that's exactly the problem. PHP is a language that, if it must be learned, must be learned in a structured way because of the sheer number of ways in which one can 1) totally cock it up and 2) see some success and assume that the implementation that "works" is correct. Let's carefully distinguish between three paths that are implied by the OP and the responses: hacking around on WP plugins, learning PHP, and learning programming. All are largely orthogonal to each other.

That's fair. However, I'd still argue a one word "oxymoron" reply is just snark, not this more nuanced reply. Some people who've seen and laughed at fractal of bad design probably understand what you're getting at but it's entirely unhelpful to a novice OP.
 

MilleniX

Ars Tribunus Angusticlavius
8,138
Subscriptor++
Besides the "PHP is a Fractal of Bad Design" article, I'll also refer the more experienced readers to the OWASP PHP Security Cheat Sheet. They call out several issues with examples of exactly how it induces people to write insecure code.

For the OP: doing this project yourself could be a good way to both achieve the functionality you want, and learn more about programming. Please just be aware that the resulting product is very likely to contain security vulnerabilities, beyond those present in the original code. Those vulnerabilities may even be of a type that can be exploited by automated tools, without someone explicitly targeting you and your site. Thus, I suggest you take some or all of the following measures:
  • run the project on a server that's isolated from the internet (if it's purely for personal use)
  • don't run anything else you care about on the same server
  • take frequent backups of any stored data
  • not let the site work with any data that could be even remotely sensitive (including 'safely' stored passwords)
 

C0rinthian

Ars Tribunus Angusticlavius
6,858
Ignoring all the specifics of PHP/Wordpress/etc. If you work in IT, I would *highly* recommend learning at least some programming. Why? Because the current path forward in the industry is very heavily focused on automation. You know how to stand up a typical web stack? Great. Now figure out how to get a provisioning tool to do it for you. Then figure out how to get your provisioning tool to manage multiples in an interconnected cluster. Now figure out a system that dynamically scales the number of web server instances in said cluster based on load. Congrats, you're a programmer.

I think one of the major difficulties shops are running into when trying to transition into a devops mentality is that many experienced sysadmins are terrible coders, and they treat modern provisioning tools like bash script executors. This works okay at first, but as complexity grows, poor design and implementation come back and bite them in the ass. Admins who can programmatically approach infrastructure are a hot commodity as a result.
 
D

Deleted member 43669

Guest
If you have the itch to program and you have the time, by all means try.

However, learning by hacking Wordpress is not what I would recommend. The approach of just changing stuff until it works is pretty similar to what you've done in the past- you will learn stuff but it's hard to get a complete understanding of the complete system and can be frustrating- Wordpress is a complex beast and if you are tweaking third party plugins you might find that some are *hellish* to work with.

It shouldn't be too complex to throw some money at a PHP developer and get things working. However note that once you go down that road, every Wordpress update (which you need to apply, botnets attack Wordpress vulnerabilities pretty intensively so if you do not patch Wordpress you *will* be hacked) and every plugin update is a chance that your customizations will cease working and you will be back to square one. Of course this also applies if you do the customizations yourself.

...

Not that the Wordpress approach is not the right solution for you- every road has its drawbacks and it very might well be that Wordpress is the shortest path to what you need.
 

thomahawk

Ars Tribunus Militum
2,147
Subscriptor++
I'd say overall it certainly can't hurt to at least try hacking on the plugins to try to get them to do what you want. But what's your ultimate objective — do you want to learn to program because you think it could be useful elsewhere, and this seems like a good excuse? Or do you just want the website to do what you want?

If you just want the website to do what you want, I'd pay someone. Otherwise it's a bit like being Mr. DIY at home — you'll insist on doing it yourself, because if they can do it why can't I, and think of all the money I'll save, and it would be fun to learn how anyway, and wow what do you know it's 3 years later and I have made zero progress… Speaking from 1st-hand experience on both the programming side and the DIY at home side :)

If you want to learn to program, this is probably not really an especially good way. While you would learn something, PHP is a complex, fickle and obtuse beast, and that's before it becomes a wordpress plugin — I've known 2 seasoned software devs who've lost years off their life from attempting wordpress projects.

You'll definitely learn a lot while you're doing it, but it probably won't be transferable to e.g. "hey I need to create 3 VMs with a slightly different version of this software", or "I need to send 1500 emails with slightly different numbers from a database", or whatever other ad-hoc reasons you might want to be able to program might be. Certainly not as transferable as e.g. Python or similar. On the other hand, you will become "the wordpress guy" among your friends and family — and for that reason alone I'd suggest not knowing how :D
 
Status
Not open for further replies.