Share Something Really Useful!

Discussion in 'Web Design and Development' started by dopey220, Dec 16, 2011.

  1. dopey220 macrumors 6502

    dopey220

    Joined:
    Jul 19, 2006
    #1
  2. digitalField macrumors regular

    Joined:
    May 21, 2004
    Location:
    portland
    #2
    its a pretty opened ended question... and i know the idea is to spur conversations but, sadly, opinionated assertions are what usually get people going.. like if you had posted 'The most useful thing in the world!' then im sure you would have gotten lots of responses from people with 'more useful things' ;)

    but ill share my useful thing.
    To make your cakephp app detect mobile visitors add
    Code:
    $this->RequestHandler->isMobile()
    it will return true if the viewer is on a mobile device, then you can serve up mobile friendly content.
     
  3. dopey220 thread starter macrumors 6502

    dopey220

    Joined:
    Jul 19, 2006
    #3
    Here's another thing I like to do:

    /*

    colors:

    orange: #f57319
    red: #e13741
    green: #91c84b
    aqua: #3cdcc8

    */

    List my color palette at the very bottom of my CSS file, for quick reference.
     
  4. John444, Jan 2, 2012
    Last edited: Jan 3, 2012

    John444 macrumors member

    Joined:
    Feb 10, 2011
    #4
    Something I find useful is to make your footer and menu (if its not a drop down) iframes, so that you only need to update the one page instead of changing the update on each page.
     
  5. lucidmedia macrumors 6502a

    Joined:
    Oct 13, 2008
    Location:
    Wellington, New Zealand
    #5
    Learn LESS or Sass or similar dynamic style sheet language.

    http://lesscss.org/

    http://sass-lang.com/

    The ability to use variables and mixins will make your CSS quicker to write and more consistent.
     
  6. digitalField macrumors regular

    Joined:
    May 21, 2004
    Location:
    portland
    #7
    the idea of reusable code is great but frames are less than great.
    you should switch to something more dynamic in nature. like php. then you can 'include' your header/footer/navigation code.

    much better than using frames.
     
  7. Apple Key macrumors 6502a

    Apple Key

    Joined:
    Jan 4, 2012
    #8
    You guys may already know this, but Safari's Develop menu and web inspector is amazing!

    You can enable it by going to Preferences > Advanced > and checking Show Develop menu in menu bar.

    Then you can right click on an element on any webpage, and click "inspect element".
     
  8. John444 macrumors member

    Joined:
    Feb 10, 2011
    #9
    Wow I never knew about this, what a great feature!! I will definitely be using Safari more often. Thanks!
     
  9. ibennetch macrumors member

    Joined:
    Aug 9, 2008
    #10
    Not to be pedantic, but most webservers allow you to include files even without PHP. No need to install PHP and burn processor cycles passing every page through the interpreter just to include another file. But yeah, it's a much better idea than manually changing every page. Couldn't agree more.

    Also, now that I think about it, some web development software will build the menus, footers, etc. It generates static pages, but you don't need to do each one by hand, you just tell it to put the content on every page. But I tend not to use them.
     
  10. -pete- macrumors member

    Joined:
    Apr 20, 2011
    #11
    Nice idea for a post, I'm sure we've all bookmarked some useful stuff in the past.

    I'm going to recommend caniuse.com/ whilst its becoming less of an issue following the death of IE6 and the push for IE9, this site does an excellent job of tracking new HTML5 and CSS3 technologies and what browsers actually support them.

    I'm also going to give a shout to the Designing for the Web ebook / site, this site helped me learn a ton of stuff about typography, typesetting, colour balance and grid systems, I whole heartedly recommend it to anyone who is just getting started in web design.
     
  11. digitalField macrumors regular

    Joined:
    May 21, 2004
    Location:
    portland
    #12
    wha wha wha? really? ::googling::
    ibennetch is right! here is a nice wiki article on the various Server Side Includes you can use http://en.wikipedia.org/wiki/Server_Side_Includes
    i never realized there were so many.

    very cool.

    M
     

Share This Page