Simple Pseudocode -> Complex Code

April 3, 2002 by  
Filed under Code Snippets

When programming, I usually write out what I want my program to do. Then as I’m coding, I know how to make my program do what I want it to. :)

Daynah’s Pseudocode:
1) Submit request
2) Get dept. of that request -> $myuser_dept_id
3) Find the manager of that department
4) Check he manager’s email preference
5) Get the email address of the manager
6) Email the manager IF email preference is set on yes

Daynah’s Real PHP/mySQL Code

Yup, sometimes it takes a lot of code to do something small. ;)

Related Posts Plugin for WordPress, Blogger...
  • http://privatebliss.secrethoughts.com Linda

    wow! Interesting….*can’t think of anything to say but* what type of software/program do you use to write the codes?

  • http://privatebliss.secrethoughts.com Linda

    wow! Interesting….*can’t think of anything to say but* what type of software/program do you use to write the codes?

  • http://daynah.net Daynah

    I use Homesite. :) I like the color coding.

  • http://daynah.net Daynah

    I use Homesite. :) I like the color coding.

  • http://turtelina.net Connie

    Ugh Daynah, that looks REALLY complicating. *admires*

  • http://turtelina.net Connie

    Ugh Daynah, that looks REALLY complicating. *admires*

  • http://pure-essence.net dodo

    cool!

  • http://pure-essence.net dodo

    cool!

  • http://dreamwulf.org Pete

    Hi Daynah,
    glancing at that pic in your blog… what editor are you using for writing PHP code?
    Now don’t ya dare to say editor or pico :-P~~

  • http://dreamwulf.org Pete

    Hi Daynah,
    glancing at that pic in your blog… what editor are you using for writing PHP code?
    Now don’t ya dare to say editor or pico :-P~~

  • Pete

    oh.. lol never mind me, I really should be reading other’s follow ups before posting something :)

  • Pete

    oh.. lol never mind me, I really should be reading other’s follow ups before posting something :)

  • http://daynah.net Daynah

    Yea, I use Homesite. Sometimes Pico if it’s a quick edit. :) And there at times where I use nano and emacs too. :)

  • http://daynah.net Daynah

    Yea, I use Homesite. Sometimes Pico if it’s a quick edit. :) And there at times where I use nano and emacs too. :)

  • http://dreamwulf.org Pete

    hehehe thank god you did not say you’re using Vi regularily or else I’d drop dead *wicked laugh* =)

  • http://dreamwulf.org Pete

    hehehe thank god you did not say you’re using Vi regularily or else I’d drop dead *wicked laugh* =)

  • http://daynah.net Daynah

    hehe, nope. I can’t seem to figure out the keys to vi. Vi looks funny. *shudders*

  • http://daynah.net Daynah

    hehe, nope. I can’t seem to figure out the keys to vi. Vi looks funny. *shudders*

  • http://glitch-ed.org Christina

    I hate writing out pseudocode. I’m very impatient. The person who’s teaching me intermediate php keeps telling me over and over again to write first then code later. The more he tells me the more I hate doing it. ^^;;

  • http://glitch-ed.org Christina

    I hate writing out pseudocode. I’m very impatient. The person who’s teaching me intermediate php keeps telling me over and over again to write first then code later. The more he tells me the more I hate doing it. ^^;;