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

Develop PHP Applications Faster

Discussion in 'General Programming Chat' started by lancis, Sep 8, 2011.

  1. lancis

    lancis Elite Member

    Joined:
    Jul 31, 2010
    Messages:
    1,632
    Likes Received:
    2,384
    Occupation:
    Entrepreneur
    Location:
    Milky Way
    Home Page:
    Hello fellow blackhatters,

    I've been writing programs my entire life, starting from C/C++ and ending with PHP.

    I code fast, but I want it faster. And my question to you is what works for you best when it comes to PHP+AJAX?

    I use EditPlus 2 for almost everything, and about 3 years ago I was trying to switch to a more convenient environment without much of success. Did something change from back then?

    Cheers,
     
  2. thedorf

    thedorf Senior Member

    Joined:
    Oct 1, 2008
    Messages:
    1,193
    Likes Received:
    700
    Occupation:
    what? I gotta have a job?
    Location:
    BHW - Where else?
    Old school programmer here I work in my ftp editor for php, javascript, Ajax and everything else. I have worked with IDE's and other tools but I have yet to find something that did not have a steep learning curve that provided a trade-off worthwhile.

    If you find something good let me know I am interested too.
     
  3. artizhay

    artizhay BANNED BANNED

    Joined:
    Nov 21, 2010
    Messages:
    1,867
    Likes Received:
    1,335
    Oh goodness coding PHP with AJAX is the slowest, most mundane task I've ever done in my life. Please, for the love of God, if you find anything to make it go faster, please save us all.
     
  4. judson

    judson Power Member

    Joined:
    Nov 29, 2009
    Messages:
    530
    Likes Received:
    319
    Occupation:
    Fulltime Newbie IM
    Location:
    Sub Ubi
    what do you mean you want it faster?

    Is your IDE too slow?
    Should you be using a framework to speed up your app development?
    Do you need to learn to type faster?
    Do you need some PHP exercises to get more proficient with the language?

    Your OP post is too slow.
     
  5. ijof9

    ijof9 Power Member

    Joined:
    Mar 27, 2010
    Messages:
    536
    Likes Received:
    594
    Occupation:
    CTO
    Location:
    Western Europe
    I work with Wordpress exclusively. Past 6 months no problem to the day. If I need custom system I just wrap it in a plugin or directly within the theme's functions.php

    My IDE is Dreamweaver with most of the websites have FTP accounts and there's an option to upload on save but for project deployment I use CuteFTP and Navicat.
     
  6. icycool

    icycool Newbie

    Joined:
    Mar 13, 2011
    Messages:
    16
    Likes Received:
    3
    You are right boss. WP plugin is life saver!
     
  7. swarupreddy

    swarupreddy Newbie

    Joined:
    Sep 12, 2010
    Messages:
    34
    Likes Received:
    9
    Edit plus is the best editor these days..Frameworks are better only when the project is a little bigger.For small application they are just a time waste..
     
  8. lancis

    lancis Elite Member

    Joined:
    Jul 31, 2010
    Messages:
    1,632
    Likes Received:
    2,384
    Occupation:
    Entrepreneur
    Location:
    Milky Way
    Home Page:
    Well ideally I want 100 programmers writing code 24/7 without asking for a penny. But when it comes to _good_ applications I don't trust these hard working bastards, and will have to settle for a better IDE. :)
     
  9. lancis

    lancis Elite Member

    Joined:
    Jul 31, 2010
    Messages:
    1,632
    Likes Received:
    2,384
    Occupation:
    Entrepreneur
    Location:
    Milky Way
    Home Page:
    How is Dreamweaver? I tried it once and didnt like it much, but I suppose since then the things has changed.

    p.s. Navicat rules :)
     
  10. javablues

    javablues Newbie

    Joined:
    Feb 4, 2009
    Messages:
    31
    Likes Received:
    9
    Home Page:
    Use codecharge
     
    • Thanks Thanks x 1
  11. madoctopus

    madoctopus Supreme Member

    Joined:
    Apr 4, 2010
    Messages:
    1,249
    Likes Received:
    3,498
    Occupation:
    Full time IM
    Netbeans IDE
    Firefox with addons:
    - Web developer toolbar
    - Firebug
    - ColorZilla

    Use a framework like Yii (recommended) or CodeIgniter or Kohana or whatever so you don't have to code everything yourself but reuse what others did.

    Use the code templates functionality in Netbeans so for example you write "fore" press TAB and get the code for a foreach. Or write "myiter" (mysql iterator) hit TAB and get the whole mysql_query... while($row=mysql_fetch_assoc) ...

    Good coders code 10 times as fast than average coders. Trust me on that.
     
    • Thanks Thanks x 1
  12. wickedguy

    wickedguy Supreme Member

    Joined:
    Jul 22, 2009
    Messages:
    1,402
    Likes Received:
    1,379
    Location:
    BHW--> South Africa
    Home Page:
    I use notepad, my brain, and my fingers, AND I code very fast :D
     
  13. lancis

    lancis Elite Member

    Joined:
    Jul 31, 2010
    Messages:
    1,632
    Likes Received:
    2,384
    Occupation:
    Entrepreneur
    Location:
    Milky Way
    Home Page:
    Should look into Netbeans, any idea how it compares to Aptana Studio 3?
     
  14. lancis

    lancis Elite Member

    Joined:
    Jul 31, 2010
    Messages:
    1,632
    Likes Received:
    2,384
    Occupation:
    Entrepreneur
    Location:
    Milky Way
    Home Page:
    Now imagine how fast you would code with a good IDE. :)
     
    • Thanks Thanks x 1
  15. thedorf

    thedorf Senior Member

    Joined:
    Oct 1, 2008
    Messages:
    1,193
    Likes Received:
    700
    Occupation:
    what? I gotta have a job?
    Location:
    BHW - Where else?
    I tried the below 6 months back and was not impressed but I did not know about the keyboard shortcuts.

    Will probably try again with Yii

     
  16. madoctopus

    madoctopus Supreme Member

    Joined:
    Apr 4, 2010
    Messages:
    1,249
    Likes Received:
    3,498
    Occupation:
    Full time IM
    They are pretty similar I guess. Last time I used Aptana was a while back (2-3 years). These days NB is all I need. I'm a power user I don't need visual crap. I need is to hand code fast. I even use Notepad++ for quick script, but for projects i stick to NB because it is more organized.
     
    • Thanks Thanks x 1
  17. madoctopus

    madoctopus Supreme Member

    Joined:
    Apr 4, 2010
    Messages:
    1,249
    Likes Received:
    3,498
    Occupation:
    Full time IM
    OMG really? First time when I started coding there were no good IDEs. I used WordPad which is worse than Notepad when you select strings and stuff like that it always selects one extra quote lol. Was a fking pain in the ass. At least use Notepad++ if not a proper IDE. Coding large apps in notepad is like building the Hoover dam with just a shovel.
     
  18. xenon2010

    xenon2010 Regular Member

    Joined:
    Apr 27, 2010
    Messages:
    231
    Likes Received:
    48
    Occupation:
    web and desktop apps programmer
    Location:
    prison
    Home Page:
    you have dreamweaver and microsoft expression web 4....
    personally I'm an old school programmer. I only use notepad++ and maybe ready to use functions library I developed earlier...
     
  19. saxgod

    saxgod Regular Member

    Joined:
    Sep 19, 2010
    Messages:
    351
    Likes Received:
    337
    I use Zend For Eclipse and I have started with a framework (symfony) for a few weeks now and it has a learning curve because you need to know where everything fits, but once you get the hang of it it really develops faster then coding everything from scratch.
    The hardest to learn about framework is the MVC style of building applications.
    In a classic app you mostly have a .php file for every page, and you have some sort of global.php that holds the header and footer of your site. with MVC (Model, View, Controller) you have 1 index.php that is talking to the outside (the controller) that uses a 'router' that determines what you are trying to view (l ooks at the requested url), a bit like mod_rewrite but easier and better, then you have the View that uses a template to build the webpages you want to 'view'. The Model is a representation from the DB in php and is build in doctrine or propel, which make using the DB very easy. You don't really need to know SQL anymore (but it always is nice if you do :))

    So I think the best way to speed it up is use a IDE that has code completion and also recognizes the functions etc from the other php files. And learn to use an MVC framework like symfony, zend framework, cakephp, ....

    Also, always try to be a 'lazy programmer' and only code everything only once. My apps are always modular and the code as generic as can be, so I can easily pick modules from one app and use them in a new app without reinventing the wheel over and over.
     
    • Thanks Thanks x 2
    Last edited: Sep 8, 2011
  20. HatIsBlack

    HatIsBlack Regular Member

    Joined:
    Sep 17, 2010
    Messages:
    265
    Likes Received:
    187
    Location:
    Where i belong
    I use phpDesigner all the way. I like the intellisense system and it has support for a lot of things including debugging of running code.
     
    • Thanks Thanks x 1