07-08-2015, 08:09 PM
(07-08-2015, 04:38 PM)ppppenguin Wrote: I'm told the true diehards use NotepadOr the Linux equivalent. I use Context as a general purpose text editor, if only becaue it works on W98 as well as more modern versions of windows. It's quick and easy to use. Couple of quirks such as using CTRL-R for replace rather than the usual CTRL-H.
The default editor on Ubuntu (and many others) is Gedit, and that is quite good. It has syntax highlighting and a few other niceties, and it's fine for most things where you don't need project management as part of the deal...
I started PIC programming with Notepad, but on Windows 9x, it only works reliably while your code is less than 32kB. At that point, I tried about a dozen of the popular text editors at the time (~2001), settling on ConTEXT.
I like ctrl+L to put it into block select mode.
I use search/replace a lot, usually across multiple files. A good example is the date at the bottom of the pages of my website - every new year, I load up all of the HTML files (215 at last count, astonishingly!) and do a search/replace. It takes a while to deal with that many files, but hasn't failed yet.
That's a good reason to move to a PHP solution - such things can be held in a template, and updated once for the whole site. Or, if you're feeling clever, the date can come from the system clock (a good reason to choose a UK host).
Against all that, you can't beat the simplicity of raw HTML for reliability. PHP is a separate module hooking into the web server (usually Apache), so that needs to not fall over. As soon as a database engine is involved, then that's another whole load of complexity. It's not just the risk of random failure, but also what happens if your server is heavily loaded - either through popularity or a DoS attack - there's a lot more CPU loading involved in serving up a page on a database-driven website, and with most hosting deals there is usually a limit on CPU usage as your web server is on shared hardware. A rogue script can max out the CPU and your site gets taken down so that the many other customers on the same machine can continue to work... In short, deciding between the various ways to implement a website is surprisingly complicated







