1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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

Discussion in 'Other Languages' started by Jangga, Nov 20, 2016.

Tags:
  1. Jangga

    Jangga Junior Member

    Joined:
    Aug 8, 2016
    Messages:
    149
    Likes Received:
    5
    Gender:
    Male
    Occupation:
    Freelancer: A reWriter
    Location:
    Africa
    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
     
  2. youtalkmedia

    youtalkmedia Senior Member

    Joined:
    Dec 5, 2011
    Messages:
    850
    Likes Received:
    382
    Occupation:
    Web Developer
    Location:
    Toronto
    Home Page:
    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.
     
    • Thanks Thanks x 1
  3. youtalkmedia

    youtalkmedia Senior Member

    Joined:
    Dec 5, 2011
    Messages:
    850
    Likes Received:
    382
    Occupation:
    Web Developer
    Location:
    Toronto
    Home Page:
    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.
     
    • Thanks Thanks x 1
  4. redarrow

    redarrow Elite Member

    Joined:
    Apr 1, 2013
    Messages:
    5,944
    Likes Received:
    1,433
    Your need to learn advance css or use
    Wordpress.

    It not that hard it all css and html
     
  5. bartosimpsonio

    bartosimpsonio Jr. VIP Jr. VIP Premium Member

    Joined:
    Mar 21, 2013
    Messages:
    12,748
    Likes Received:
    11,414
    Occupation:
    COINZ
    Location:
    BUYAH
    Home Page:
    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.
     
    • Thanks Thanks x 1
  6. redarrow

    redarrow Elite Member

    Joined:
    Apr 1, 2013
    Messages:
    5,944
    Likes Received:
    1,433
    • Thanks Thanks x 1
  7. issorc

    issorc Jr. VIP Jr. VIP

    Joined:
    Feb 20, 2016
    Messages:
    712
    Likes Received:
    575
    Gender:
    Male
    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.
     
  8. Jangga

    Jangga Junior Member

    Joined:
    Aug 8, 2016
    Messages:
    149
    Likes Received:
    5
    Gender:
    Male
    Occupation:
    Freelancer: A reWriter
    Location:
    Africa
    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!
     
  9. Jangga

    Jangga Junior Member

    Joined:
    Aug 8, 2016
    Messages:
    149
    Likes Received:
    5
    Gender:
    Male
    Occupation:
    Freelancer: A reWriter
    Location:
    Africa
  10. youtalkmedia

    youtalkmedia Senior Member

    Joined:
    Dec 5, 2011
    Messages:
    850
    Likes Received:
    382
    Occupation:
    Web Developer
    Location:
    Toronto
    Home Page:
    YouTube is your friend. Find a tutorial you like and go with it.
     
    • Thanks Thanks x 1
  11. Jangga

    Jangga Junior Member

    Joined:
    Aug 8, 2016
    Messages:
    149
    Likes Received:
    5
    Gender:
    Male
    Occupation:
    Freelancer: A reWriter
    Location:
    Africa
    Html5 and css3 , right?
     
  12. Taegn

    Taegn Junior Member

    Joined:
    Jul 22, 2016
    Messages:
    180
    Likes Received:
    32
    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.
     
    • Thanks Thanks x 1