PHP cheatsheet

This post is for PHP stuff that I needed to use, but couldn’t easily find on the web

‘pass’ in PHP

Maybe it’s bad to start using conventions from other languages, but I find that sometimes the code is more readable if you write an if statement so that nothing happens if the conditon is true and then put the code that will get run often in the else block.  In python, if you don’t want anything to happen in a block, you use the pass statement.  In PHP, you can just leave the block empty:


if ( $condition == true) {
// do nothing. note that other than the comment
// there are no statements in this block
}
else {
// do stuff

}

Feedback for sexual assault prevention in indiana

Reposted from Chiara:

i know i am kind of a broken record because i talk about the same things all the time, but here is the deal:
indiana is finally trying to implement a broad sexual asssault prevention plan, and insted of having random “professionals” decide what is best, they are asking hoosiers to fill out this survey to get an idea of what really affects people in their life and how to push for positive change.

it’s all online at : http://www. in. gov/isdh/23820. htm

even if you fill out a couple of questions it’s still helpful///

ok, hope to see ya all soon!
chiara

Perfunctory Healthcare

Since getting some semblance of health insurance, I’ve felt like the doctors I’ve dealt with have been competent, but curt, and I felt like my primary physician is just a dispatcher to a specialist.  Last night, I heard a story on All Things Considered that suggested that I wasn’t alone in my experience and that there are reasons (of course) why the care I get is the way that it is.

“You have someone on your hands with five separate medical problems, 15 minutes to see them. If you spend the extra half hour, you don’t get paid for it, so the pressure is to refer them to a subspecialist,” Levy explains. “It takes a lot of the pleasure and fun out of doing medicine.”

Check out the rest of Mass. Health Care Reform Reveals Doctor Shortage.