ThemeForest

Posts by fredwu

78 posts
  • Has been a member for 2-3 years
  • Beta Tester
  • Exclusive Author
  • Bought between 1 and 9 items
  • Australia
fredwu says

I returned to Firefox after Firefox 4 (beta/RC and now official) was released.

Chrome was good, but it was too restrictive – for instance, an addon dev has no control whatsoever to the tabs, so no tabs scrolling until the Chrome team decides to add it. :/

1 year ago in thread Mozilla Firefox or Google Chrome ?
78 posts
  • Has been a member for 2-3 years
  • Beta Tester
  • Exclusive Author
  • Bought between 1 and 9 items
  • Australia
fredwu says

I will be lurking around! ;-)

Fred

1 year ago via ThemeForest | in thread Dev Team Staff Changes
78 posts
  • Has been a member for 2-3 years
  • Beta Tester
  • Exclusive Author
  • Bought between 1 and 9 items
  • Australia
fredwu says

I’d rather code ‘right’ than code fast.

2 years ago in thread How to Write Fast Code?
78 posts
  • Has been a member for 2-3 years
  • Beta Tester
  • Exclusive Author
  • Bought between 1 and 9 items
  • Australia
fredwu says

Mine: http://fredwu.me/

Mostly Ruby/Rails and PHP tips and rants, with occasionally web design / UI / UX topics. :-)

2 years ago in thread Who has a blog about web design or development?
78 posts
  • Has been a member for 2-3 years
  • Beta Tester
  • Exclusive Author
  • Bought between 1 and 9 items
  • Australia
fredwu says

Accidental assignment within if statement:

This happens all to often, I just found one today in some code I’m fixing.

The error looks like this:

if($_REQUEST['action'] = 'delete'){  // run the delete code...

Of course, delete will run every time. This should be:

if($_REQUEST['action'] == 'delete'){  // run the delete code..

An even better practice to get into is swapping the variables around:

if('delete' == $_REQUEST['action']){  // run the delete code..

This way if you do accidentally use = instead of == you will get a PHP error.
It’s a hard practice to get into, but well worth it in the long run.

Destructive actions should not be mapped onto GET requests, so instead of using $_REQUEST, one should always stick to using $_POST.

2 years ago in thread Bad PHP coding practices
78 posts
  • Has been a member for 2-3 years
  • Beta Tester
  • Exclusive Author
  • Bought between 1 and 9 items
  • Australia
fredwu says

I should clarify that my opinion was towards the GPL license itself, not Wordpress or Matt. :-)

2 years ago in thread Want Matt Mullenweg to buy you a WordPress theme?
78 posts
  • Has been a member for 2-3 years
  • Beta Tester
  • Exclusive Author
  • Bought between 1 and 9 items
  • Australia
fredwu says

Here’s my personal opinion: http://fuckgpl.com/

Disclaimer: I work for Envato, so that’s just my personal opinion, it doesn’t represent Envato’s view in any way.

2 years ago in thread Want Matt Mullenweg to buy you a WordPress theme?
78 posts
  • Has been a member for 2-3 years
  • Beta Tester
  • Exclusive Author
  • Bought between 1 and 9 items
  • Australia
fredwu says

The requirement doesn’t sound ‘enterprisy’ at all. Why don’t you upload the videos to blip.tv?

2 years ago in thread enterprise hosting advice
78 posts
  • Has been a member for 2-3 years
  • Beta Tester
  • Exclusive Author
  • Bought between 1 and 9 items
  • Australia
fredwu says

I didn’t read all the posts in this thread, but if you haven’t seen this, you should:

http://www.youtube.com/watch?v=3hqFTx8rLsg

;)

2 years ago via ThemeForest | in thread Open Letter to Steve Jobs
78 posts
  • Has been a member for 2-3 years
  • Beta Tester
  • Exclusive Author
  • Bought between 1 and 9 items
  • Australia
fredwu says

And hopefully no PHP 4 scripts!

2 years ago in thread PHP Templates Category
by
by
by
by
by