Programmers: How to Incorporate a desktop version and mobile version? Best method?

Jangga

Junior Member
Joined
Aug 8, 2016
Messages
196
Reaction score
11
Please guys. I'm a beginner. I'm starting to code my website in php, js. I am somewhat confused at this point. How do I control the desktop version and mobile version? Do I write the scripts separately? (Oh! My God!) Isnt there a way to write the script once and it will fit into any screen size perfectly(whether PC or mobile? Answers will be deeply appreciated.

One more thing: Must I be a master in object programming before I know I'm good in php? OOP seems difficult to understand... Please don't laugh, advice me.
Any php group for me to join on telegram? Or lets talk on Skype if you like
 
Look up responsive CSS. That is what you use to display not JS or PHP.

OOP is the way to go. Although serial code seems easy at first you will end up with a mess. Once you know OOP it becomes much better.
 
BTW I guarantee your first website will be a failed mess. That said don't give up. It's just like any other skill, the more you do the better you get.
 
Your need to learn advance css or use
Wordpress.

It not that hard it all css and html
 
Buy a mobile-ready template and customize it. Start from an existing mobile-friendly template, go from there.

No object orientation in PHP is not rocket science but you'll need to invest several months time watching videos, practicing and reading lots.
 
OOP (especially in PHP) can be confusing and complicated as a beginner, but if you really want to write clean, efficient and easy to understand code there's no way to do it without an object orientated approach. Take your time to learn everything and you'll for sure become better, that's all not that difficult. It just needs a lot of practice in the beginning.
 
Youtalkmedia, issorc, redarrow, bartosimpsonio et others I salute you all. Thanks. I must learn php.... come what may. I posted the D-day 4years back & today, I'm still struggling with php. Procrastination is a disease!
 
Youtalkmedia, issorc, redarrow, bartosimpsonio et others I salute you all. Thanks. I must learn php.... come what may. I posted the D-day 4years back & today, I'm still struggling with php. Procrastination is a disease!
YouTube is your friend. Find a tutorial you like and go with it.
 
Look up responsive CSS. That is what you use to display not JS or PHP.

OOP is the way to go. Although serial code seems easy at first you will end up with a mess. Once you know OOP it becomes much better.

Html5 and css3 , right?
 
OOP really isn't that hard. Just like everything else it requires a bit of time and practice.
If you haven't worked for at least 3 months on a problem don't even consider giving up.
 
Back
Top