r/Web_Development • u/my_data_repository • Sep 30 '20
I Can’t Imagine Benefits of Developing a Website vs. Using WordPress (or any CMS)
Premise: I have some digital marketing skills and would like to start freelancing a more comprehensive service that would also include building a website in addition to marketing it. I want to know whether I should invest some time learning basic coding to help in using a CMS or a lot of time to learn advanced coding that would be required for building it from the ground up.
What I Don’t Understand: Even if you were really good at coding, why would you spend all of the extra time writing code for building a website from the ground up instead of using a CMS which would accomplish the same task in a fraction of the time? Am I missing something? Even for clients with nuanced specifications, why not just use a CMS and then modify the CMS code with coding knowledge.
Related question: What types of website development are impossible with only a CMS?
View all comments
Show parent comment
2
u/ChadstangAlpha Oct 01 '20 edited Oct 01 '20
You can get started with basic customization just by learning html and css. Assuming the themes you use offer an interface for editing elements in raw format. (Many do)
They’re both considered declarative languages and even complete novices to coding can typically become productive with them pretty quickly.
JavaScript (at least in PHP world) is used as a tool to create interactive and dynamic experiences in the browser. You can use it to analyze and modify the contents of html and css files, data retrieved from a database through a backend api, and even send any modifications made back to the database to be stored again.
PHP is what we call a server side, or backend language. Applications built with PHP often serve as the API that the front end JavaScript code requests database access through. PHP can communicate directly with the database (historically because it was installed on the same computer), whereas JavaScript usually doesn’t because the code is being executed in a remotely located browser.
They’re both considered imperative languages and can take a good amount of time to wrap your mind around. You can think of the difference in difficulty between learning declarative and imperative languages like learning to count to 100 in a foreign language, and learning how to functionally communicate in that same language.
It’s a great parallel. With early html you’re really just remembering a bunch of unfamiliar words and placing them in specific orders. With js and PHP, you are learning to actually communicate with the computer directly.
It’s a fucking awesome journey and if you have even the slightest inclination to do so, I’d encourage you to take on the challenge of learning. I taught myself to code 4 years ago and outside my kids and business, it’s the thing I’m most proud of in this world. I started right where you’re at now, trying to figure out how I can better utilize Wordpress as a tool.