Posts by fredwu

78 posts
  • Has been part of the Envato Community for over 4 years
  • Located in Australia
  • Has been a beta tester for an Envato feature
  • Has collected 1+ items on Envato Market
+1 more
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. :/

78 posts
  • Has been part of the Envato Community for over 4 years
  • Located in Australia
  • Has been a beta tester for an Envato feature
  • Has collected 1+ items on Envato Market
+1 more
fredwu says

I will be lurking around! ;-)

Fred

78 posts
  • Has been part of the Envato Community for over 4 years
  • Located in Australia
  • Has been a beta tester for an Envato feature
  • Has collected 1+ items on Envato Market
+1 more
fredwu says

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

78 posts
  • Has been part of the Envato Community for over 4 years
  • Located in Australia
  • Has been a beta tester for an Envato feature
  • Has collected 1+ items on Envato Market
+1 more
fredwu says

Mine: http://fredwu.me/

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

78 posts
  • Has been part of the Envato Community for over 4 years
  • Located in Australia
  • Has been a beta tester for an Envato feature
  • Has collected 1+ items on Envato Market
+1 more
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.

78 posts
  • Has been part of the Envato Community for over 4 years
  • Located in Australia
  • Has been a beta tester for an Envato feature
  • Has collected 1+ items on Envato Market
+1 more
fredwu says

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

78 posts
  • Has been part of the Envato Community for over 4 years
  • Located in Australia
  • Has been a beta tester for an Envato feature
  • Has collected 1+ items on Envato Market
+1 more
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.

78 posts
  • Has been part of the Envato Community for over 4 years
  • Located in Australia
  • Has been a beta tester for an Envato feature
  • Has collected 1+ items on Envato Market
+1 more
fredwu says

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

78 posts
  • Has been part of the Envato Community for over 4 years
  • Located in Australia
  • Has been a beta tester for an Envato feature
  • Has collected 1+ items on Envato Market
+1 more
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

;)

78 posts
  • Has been part of the Envato Community for over 4 years
  • Located in Australia
  • Has been a beta tester for an Envato feature
  • Has collected 1+ items on Envato Market
+1 more
fredwu says

And hopefully no PHP 4 scripts!

by
by
by
by
by
by