Jump to content

Hardcore Programmer?


Recommended Posts

Guest askjames01
Before i'll start asking questions i would like to inform you that this thread is exclusive for people
that has advance coding ability and comprehension regarding PHP programming.

-You must know how to read large coding and complicated and advance codes written
by some other programmers.
-You must know how to modify large coding the same above.
-You must know how to analyze large project and know how to organize the project.
-you must be knowledgeable to implement large coding.
-you must be skillful to divide the large project into modules.
-and many more...

so here it goes...
so Real Hardcore Gurus of programming.
Can you share to me some of your good habits on how to be like with you?

1. What attitudes that a programmer must have?

2. What habits should a programmer must adopt to be a hardcore?


Everyday, every hour i'm trying to think only programming and coding php.
i seat down in the front of my computer every morning, every night, if i have ample time to do coding.
and i'm trying to not to watch t.v. as often as i can avoid it.

'i'm going to smash that t.v. it's evil!' :)

so what must a simple programmer should do?


-/james/
Link to comment
https://forums.phpfreaks.com/topic/8760-hardcore-programmer/
Share on other sites

I don't think there are really any particular attitudes that you need to have, but you certainly do need to develop good habits. Some habits that are good to get into:
[list][*]Always, always make your code portable. Use <?php instead of <? (in the case of PHP), don't depend on register_globals, etc.[*]If your code could be reused, put it in a function. Don't even copy and paste, unless you are going to make substantial changes.[*]Indent code when you can - it makes it sooo much easier to read.[*]Use HEREDOC syntax for quoting instead of escaping quotes, if you can - it's much easier to read that way, too.[/list]And I'm sure there are several other habits, theories, and ideas that you can learn from a computer science class.

Link to comment
https://forums.phpfreaks.com/topic/8760-hardcore-programmer/#findComment-32365
Share on other sites

  • 2 weeks later...
As well as for code used in several places, I use functions/methods to break the problem down into smaller chunks eg

[code]switch ($_POST['action']) {

        case 'add' :
                  displayItemForm();
                  break;
        case 'edit' :      
                  displayItemForm ($id);
                  break;
        case 'insert' :    
                  addNewRecord();
                  break;
        case 'change' :
                  updateRecord ($id);
                  break;
        case 'delete' :
                  deleteSelectedRecords();
                  break;
}

function displayItemForm($id=0) {
          // echo form code here
}

function addNewRecord() {
         // insert form data into new record
}

// etc.[/code]
Link to comment
https://forums.phpfreaks.com/topic/8760-hardcore-programmer/#findComment-35526
Share on other sites

Guest askjames01
[img src=\"style_emoticons/[#EMO_DIR#]/laugh.gif\" style=\"vertical-align:middle\" emoid=\":laugh:\" border=\"0\" alt=\"laugh.gif\" /]

Yahoooooooooooooo...!
thanks GOD Barand replied i know you are a hardcore programmer.
i saw your personal website and the projects that you have done are really amazing.... :)

I knew it!, you are really a hardcore programmer, no doubt...
because i noticed that when it comes to this forum you don't say too many blah, blah and
just simply solve the problem...

Mr. Exalted "Eric Rosebrock" i recommend Barand to be the admin too... his the true SUPER GURU
here... :)
Link to comment
https://forums.phpfreaks.com/topic/8760-hardcore-programmer/#findComment-35534
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.