For PHP & WordPress, Code or Apache NetBeans 11.0?

Hi All,

Summary : Which code editor is preferable for PHP / WordPress develompent, VSCode or Apache NetBeans 11?

I had been using Bracket for the “live preview” and switched to Code a couple of months ago and had the live preview working in a round about way. Last week I started going through the book “PHP and Algorithmic Thinking” and was introduced to NetBeans. The interface is ancient but the IDE does have some nice features.
Now I am unable to decide if I should continue to use NetBeans or go back to Code.
NetBeans does not seem to have a choice of themes and good fonts to use for coding, but does make it easy to run console type PHP apps within.
Any suggestions? Personal reasons for sticking to one or the other?
Is anybody even using NetBeans for PHP? I do see it listed in Stack Overflow surveys and “best editor” lists. Just wanted some input.

Appreciate it guys,

I don’t know about VSCode or NetBeans, but I use Sublime Text.

1 Like

Sublime has been a long-time favorite for developers. I didn’t use it because I was hooked on the live preview of Brackets.

How is Sublime to use with WordPress development? You do PHP / WordPress or something else?

HTML / CSS / PHP and a little JS

I’m not sure how code editing for WordPress would be different from vanilla HTML/PHP.

1 Like

HTML pages look awful in NetBeans. Looks like I will have to figure out how to use xdebug in Code!

I also use Sublime and find that once changes are committed they are instantly available in the refreshed browser window so find it unnecessary for any previews.

I do not program for Windows and mostly do PHP backend sites.

Sublime is not good at inspecting variable values and have found it necessary to introduce numerous breakpoints… which on occasions can be quite tedious :frowning:

I have used xdebug but find that PHP 7 has an excellent tool which fails fast when errors are encountered. Unlike error reporting, which applies to the calling page and all included files, declaring strict types only applies to the current page. Give it a try, I am sure you will like it:

declare( strict_types = 1 ); // must be first declaration

// Also try declaring all parameter types and function return types
function testing
  string $val = '',
  int $id = 12345,
  array $aRows = []
:array // return type must be array

return $aResult;

It is also possible to declare a few other types such as objects.

Using the above strict declarations eliminates PHP’s sloppy type juggling and less code will make the programs run faster!

1 Like

Valuable information John, thank you.
You do “back-end PHP sites”. Sounds like something I would want to do. Good to know people who are doing that … so I know where to look for help.
Thanks once again.

1 Like

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.