ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

For how long have you been working with PHP?

May 19, 2009 1:18pm

Subscribe [12]
  • #31 / May 21, 2009 12:06pm

    Evil Wizard

    223 posts

    I love learning new languages, the more languages, the better equipped you are to find the right one to accomplish the current task, the skill resides in getting these languages to talk and play nice, which isn’t always easy

    It also means (or is it just me) that you end up using the wrong syntax half the time!

    Having been doing lots of PHP lately, I do some Java at work, and put dollar signs everywhere, call my methods ‘function’ and always forget to specify a return type (or void) etc

    Definitely not just you 😊 I’ve been messing with Python alot the last few days and I keep wanting to put stuff in curly braces to denote nesting and keep putting ;‘s at the end of my lines hehe

    The bane of my php errors is the dreaded missing ; from the end of the statement, resulting in such errors as “Unexpected T_BREAK on line xx” .oO( I just love that php monitors my working habits ) hehe

    I tend to adopt different styles of coding depending on what language, but most of the basics are the same, like looping, conditional statements.

    Python only really cares that u tabbed in correctly though doesn’t it lol

  • #32 / May 21, 2009 12:09pm

    jdfwarrior

    444 posts

    Forgetting the ; and things like that are why I looked for an editor with auto completes so I could create auto completes for as many things as possible so I dont make stupid mistakes like that. Otherwise, I do it often. I got cocky once and wrote SEVERAL hundred lines of code in PHP. The server I was working on had errors turned off, so if there was an error, it just showed a blank white screen. I had to go back through several hundred lines of code, starting from the top, to find the missing ; like 3 lines from the bottom 😊

  • #33 / May 21, 2009 1:16pm

    Evil Wizard

    223 posts

    I’ve had similar issues but when designing and building multi-file frameworks as a user control panel for a global company

    if(1) {
        ini_set('display_errors', 'on');
        error_reporting(E_ALL);
    }

    helped a little when developing in the safety of an offline sandbox, but I would never use it on a production server.  That’s why I wrote an application logger that wrote log actions to separate log files for separate registered logger ids, that helps when something breaks but the application has already been working and is in beta testing phase.

  • #34 / May 21, 2009 1:45pm

    IamPrototype

    135 posts

    It’s not really things that I don’t understand in CI. It’s more like some of the codes which is being posted here on the forums everyday. I guess some of them can be a lot more ... advanced than the others. An example could be the DataMapper library. My first look at it was… wtpo wjetoi hoi “#q #T... more or less, then I read the doc and started to understand, “so that’s how it works!” but if I wanted to build such a library myself I wouldn’t know where to start, I’d be totally clueless.

    All the simple libraries such as auth are easy for me and I’m able to code my own. Just not that advanced with captcha, caching etc. I’d really like to code my own libraries and when it’s done release it to the public and receive constructive feedback. I think I’d learn a lot more that way. I guess the only way for me is to try doing it myself and then ask for help.

    I’d like to code advanced applications.

    Also there’s a lot of codeI can’t remember.. I’ll have to check the doc (..or anything liek that) written for the givin library, code etc. but suddenly after I’ve skimmed (read: read very fast) the doc, I’m able to code it without any extra help. Another thing is when I code I don’t stop up and think to myself “Is there a better way on how to do this?” I’d just code it and it would work, haha. Do you guys stop coding and start thinking on how to do it “the right way”, or?

    Forgetting the ; and things like that are why I looked for an editor with auto completes so I could create auto completes for as many things as possible so I dont make stupid mistakes like that. Otherwise, I do it often. I got cocky once and wrote SEVERAL hundred lines of code in PHP. The server I was working on had errors turned off, so if there was an error, it just showed a blank white screen. I had to go back through several hundred lines of code, starting from the top, to find the missing ; like 3 lines from the bottom 😊

    Hahaha, that’s just great 😛

  • #35 / May 21, 2009 2:01pm

    Evil Wizard

    223 posts

    I tend to get the app working, then look more closely at the structure of the objects, the interactivity between them and ways to reduce overhead, like using

    reset($arrBigArray);
    while($arrCurrent = current($arrBigArray)) {
       //use $arrCurrent
       // also get the current key
       $strKey = key($arrBigArray);
       next($arrBigArray);
    }

    while it is widly known that foreach is “quicker”, foreach creates a copy of the array in memory.  Things you have to consider is speed v resources

  • #36 / May 21, 2009 2:10pm

    jdfwarrior

    444 posts

    Do you guys stop coding and start thinking on how to do it “the right way”, or?

    Everyone does it. Maybe not in the middle of writing the code, but they do it. Otherwise, software would never need updates or revisions. If everyone wrote it the best way the first time, every time, all software would be perfect, like Windows Vista 😊 Now if you will excuse me I just spewed coke all over my screen trying to hold back a laugh hehe

  • #37 / May 21, 2009 2:19pm

    IamPrototype

    135 posts

    @Evil Wizard - Ah, yes I see. 😊

    @jdfwarrior - Yes okay, you’re right. Windows Vista… perfect!? HA HA 😊 I hate the security system, everytime I want to do just a little save thing I receive a popup warning, in ma’ face and for Gods sake yes, I want to allow this crap to happen otherwise I wouldn’t have ... opened this little program or whatever it is 😊 What’s so funny anyways? 😛

  • #38 / May 22, 2009 4:12am

    SpooF

    170 posts

    Oh geez, I started doing web design when I was 11 or so, good ol geocities 😊 Not to long after I started messing with PHP after I got a small shared account, that had to be when I was 13. However I really can’t say I was using PHP back then because most of what I did with PHP was include (this) haha. It just made doing web design that much easier. However, not to long after that I started to really take off with PHP and released my first project to the public called Band Scripts (My older brother was in a band and I maintained their webpage). It was pretty simple, just had a simple news system, members page, downloadable content, event scheduler and such. So being basicly 20 now, that puts me at 7 years. Geez!

    Fun stuff, kind wish I stuck with it more through out high school. I took a break for two years and really didn’t do much web development at all.

  • #39 / May 22, 2009 6:20am

    IamPrototype

    135 posts

    So you’re back now? 😊

  • #40 / May 22, 2009 3:37pm

    SpooF

    170 posts

    Forgetting the ; and things like that are why I looked for an editor with auto completes so I could create auto completes for as many things as possible so I dont make stupid mistakes like that. Otherwise, I do it often. I got cocky once and wrote SEVERAL hundred lines of code in PHP. The server I was working on had errors turned off, so if there was an error, it just showed a blank white screen. I had to go back through several hundred lines of code, starting from the top, to find the missing ; like 3 lines from the bottom 😊

    haha, that happened to me once. I normally use PHP Designer which has a built in live debugger so if I screw up the syntax it will highlight the line for me. My first true love 😛

  • #41 / May 22, 2009 3:39pm

    jdfwarrior

    444 posts

    Forgetting the ; and things like that are why I looked for an editor with auto completes so I could create auto completes for as many things as possible so I dont make stupid mistakes like that. Otherwise, I do it often. I got cocky once and wrote SEVERAL hundred lines of code in PHP. The server I was working on had errors turned off, so if there was an error, it just showed a blank white screen. I had to go back through several hundred lines of code, starting from the top, to find the missing ; like 3 lines from the bottom 😊

    haha, that happened to me once. I normally use PHP Designer which has a built in live debugger so if I screw up the syntax it will highlight the line for me. My first true love 😛

    I use PHP Designer now too. Favorite IDE.

  • #42 / May 22, 2009 3:55pm

    IamPrototype

    135 posts

    I’m using PHP Designer too… or actually I’ve just downloaded NetBeans PHP like one week ago - not that many features, but a lot more faster! I’m using Notepad++ when I’ve to edit ONE file in a hurry, otherwise I’m using PHP Designer or NetBeans PHP because of the project feature, much easier.

  • #43 / May 23, 2009 11:19am

    suzukisuv

    1 posts

    Im still newbie with it, learning and stuff.
    Cant code anything, just fix already coded things.

  • #44 / May 26, 2009 4:52am

    Evil Wizard

    223 posts

    I’m using PHP Designer too… or actually I’ve just downloaded NetBeans PHP like one week ago - not that many features, but a lot more faster! I’m using Notepad++ when I’ve to edit ONE file in a hurry, otherwise I’m using PHP Designer or NetBeans PHP because of the project feature, much easier.

    I used php Designer when I was on a windows system, and NetBeans on both win/linux but I prefer Quanta+, it supports multiple language syntax highlighting, multiple file editing and securely saving to remote servers.

  • #45 / May 26, 2009 5:12am

    Dam1an

    2385 posts

    I tried Quanta plus and found it to be very clunky and lacking in all but the most basic functionality (mind you this was some time ago, so it may have improved)

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases