Jump to content

Hardcore Programmer?

  • Please log in to reply
4 replies to this topic

#1 Guest_askjames01_*

  • Guests

Posted 30 April 2006 - 01:36 PM

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?


#2 Guest_askjames01_*

  • Guests

Posted 01 May 2006 - 04:55 AM

i must be losing my mind that i wrote this thread.

am i?

#3 neylitalo

  • Staff Alumni
  • Advanced Member
  • 1,854 posts
  • LocationMichigan, USA

Posted 01 May 2006 - 04:00 PM

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:
  • 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.
And I'm sure there are several other habits, theories, and ideas that you can learn from a computer science class.

http://nealylitalo.net - My personal website, and home of The Netizen's Journal.

#4 Barand

  • Moderators
  • Sen . ( ile || sei )
  • 18,015 posts

Posted 13 May 2006 - 06:22 PM

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

switch ($_POST['action']) {

        case 'add' :
        case 'edit' :       
                  displayItemForm ($id); 
        case 'insert' :    
        case 'change' :
                  updateRecord ($id);
        case 'delete' :

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

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

// etc.

If you are still using mysql_ functions, STOP! Use mysqli_ or PDO. The longer you leave it the more you will have to rewrite.

Donations gratefully received


|baaGrid| easy data tables - and more
|baaChart| easy line, column and pie charts

#5 Guest_askjames01_*

  • Guests

Posted 13 May 2006 - 06:59 PM

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

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... :)

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users