No, I'm suggesting avoiding raw PHP in favour of a framework that separates application logic from user interface logic. Sinatra and Dancer provide this brilliantly. Is there such a framework for PHP? I'm also suggesting that a related best practice is to keep code and markup strictly separate, which is contrary to PHP's basic structure.
As for the hackishness of code, that's an orthogonal problem. Looks like PHP finally got real closures in 5.3, though clumsily: due to lexical scoping you still have to explicitly specify which variables fall under the closure. Oh and 5.3 introduced namespaces... with \ as the separator. Brilliant. Maybe PHP is growing up.
Raw PHP makes it far too easy to just throw something together and have it work, for today at least. Be sure to use a framework that encourages better behaviour. Markup and code should never be in the same file — user interface should be kept far, far away from application logic.
I recently returned to web development after a hiatus of a few years and I have been loving Perl Dancer, which is inspired by Ruby Sinatra. http://perldancer.org/... it's a very lightweight framework that just gets out of your way and doesn't prescribe any particular way of doing things. I had a whole pile of back-end application logic set up before I started on the web front-end, and Dancer allowed me to keep that separated from the web logic, and the user interface separated from both, very cleanly.
It's to the point where I can work on application logic and web behaviours in the same sandbox, and check in one or the other very easily, because the two parts of the system don't overlap in any files. A very good sign when I'm not even asking much of the source code management system!
I was just noticing that my hand rests perfectly on the device; that's either good ergonomics or my hand adapting to it over so many years of use.:)
The recliner arm is a great location... here's another one: Those long flights in iron birds... I can still use the trackball if I have to hold it sideways in my lap or against my leg or wherever it might fit. I have even used it upside down!
Logitech should make a Trackman Travel: Bluetooth or USB wire-on-a-coil, curved a bit like a hip flask, with a rubber mat on the concave side so it stays put, and a divot for the little finger on the side so you can grip it.
I also echo the first-responder-to-my-post's appreciation of the fact that the cursor stops and stays when your thumb leaves the ball.:)
I've been using the thumb-ball Logitech TrackMan since the first model, and on the modern optical-ball models, I have no lack of precision and no wrist or hand pain at all after almost 20 years of use. I love these things.
It's not great for first-person shooters, and can't write my signature with it, but I can always get the mouse pointer to the pixel I want. YMMV... but if you're a cellphone text messager your thumb could already be more dexterous than your fingers anyway:)
I'm not surprised to hear that it's possible to run multiple coldfusion processes. There's no good reason for it to be difficult. However, the documentation said it's impossible. I'd hate to hack together a multiple-coldfusion-server *nix system then try to get support for it.:)
Apache JServ worked like that the last time I tried to use it. There is a little 'stub' module in Apache that talks to a multithreaded handler running in a JVM. However, I found JDBC and the JVM in general to be unstable and sluggish.
ColdFusion also runs as a separate process, but for some reason you can only run one of these servers on each machine. Ick.
Re:Review of the Pre-beta
on
Netscape 6
·
· Score: 2
I think the animation in the top right is called the "throbber", in reference to the pulsing, throbbing beveled N in the original Navigator.
Whether Linux and the rest of the open source movement, or the Justice Department and the courts, play the role of America, I leave to history to determine.
I have a client who manages a database in Access, and they upload changes from it via the Windows ODBC drive to the PostgreSQL system that runs the web site. There's a bit of munging involved to reconcile their inconsistently maintained data but it works great and I never have to look at Windows.
For another client I eventually made a web-based editing interface and eliminated their Access database altogether. Works even better:)
No, I'm suggesting avoiding raw PHP in favour of a framework that separates application logic from user interface logic. Sinatra and Dancer provide this brilliantly. Is there such a framework for PHP? I'm also suggesting that a related best practice is to keep code and markup strictly separate, which is contrary to PHP's basic structure.
As for the hackishness of code, that's an orthogonal problem. Looks like PHP finally got real closures in 5.3, though clumsily: due to lexical scoping you still have to explicitly specify which variables fall under the closure. Oh and 5.3 introduced namespaces ... with \ as the separator. Brilliant. Maybe PHP is growing up.
Raw PHP makes it far too easy to just throw something together and have it work, for today at least. Be sure to use a framework that encourages better behaviour. Markup and code should never be in the same file — user interface should be kept far, far away from application logic.
I recently returned to web development after a hiatus of a few years and I have been loving Perl Dancer, which is inspired by Ruby Sinatra. http://perldancer.org/ ... it's a very lightweight framework that just gets out of your way and doesn't prescribe any particular way of doing things. I had a whole pile of back-end application logic set up before I started on the web front-end, and Dancer allowed me to keep that separated from the web logic, and the user interface separated from both, very cleanly.
It's to the point where I can work on application logic and web behaviours in the same sandbox, and check in one or the other very easily, because the two parts of the system don't overlap in any files. A very good sign when I'm not even asking much of the source code management system!
In 1994, coming from DOS, I was surprised to learn that shell globs can span directory trees, e.g.
rm foo*/*/*.bar
Please don't teach them PHP, it's as harmful now as BASIC was 20+ years ago.
HTH.
HAND.
I was just noticing that my hand rests perfectly on the device; that's either good ergonomics or my hand adapting to it over so many years of use. :)
... I can still use the trackball if I have to hold it sideways in my lap or against my leg or wherever it might fit. I have even used it upside down!
:)
The recliner arm is a great location... here's another one: Those long flights in iron birds
Logitech should make a Trackman Travel: Bluetooth or USB wire-on-a-coil, curved a bit like a hip flask, with a rubber mat on the concave side so it stays put, and a divot for the little finger on the side so you can grip it.
I also echo the first-responder-to-my-post's appreciation of the fact that the cursor stops and stays when your thumb leaves the ball.
I've been using the thumb-ball Logitech TrackMan since the first model, and on the modern optical-ball models, I have no lack of precision and no wrist or hand pain at all after almost 20 years of use. I love these things.
... but if you're a cellphone text messager your thumb could already be more dexterous than your fingers anyway :)
It's not great for first-person shooters, and can't write my signature with it, but I can always get the mouse pointer to the pixel I want. YMMV
I only wish I could get it in BlueTooth.
"What has weighed down everything?
What is most extensive?
What is the one thing that has
All under its control?
Name has weighed down everything;
Nothing is more extensive than name.
Name is the one thing that has
All under its control."
Buddha
Why is there a committee to decide this? What purpose does it serve?
http://www.gnu.org/philosophy/why-free.html
http://www.dharmastudent.com/
Perhaps someone should examine all [kernel] updates which have 'bounds' as a substring of their changelog comment.
I'm glad people thought I was being funny, but I wasn't.
Thanks for the tip on the G450 - will keep that in mind. I used to use SGI boxes and miss the proper support for multiple visuals.
I'd really love to run XaoS in 8-bit mode and use colour cycling while still having a 32-bit visual
for everything else. Is this good enough for that?
http://www.mynipple.com/
I'm not surprised to hear that it's possible to run multiple coldfusion processes. There's no good reason for it to be difficult. However, the documentation said it's impossible. I'd hate to hack together a multiple-coldfusion-server *nix system then try to get support for it. :)
ColdFusion also runs as a separate process, but for some reason you can only run one of these servers on each machine. Ick.
I think the animation in the top right is called the "throbber", in reference to the pulsing, throbbing beveled N in the original Navigator.
One of the exhibits mentions that RedHat is buying OpenSource.com.
Yes, I've seen big black IBM desktop keyboard with the red trackpoint in the middle. Good idea.
Is that Trackman Marble on the ADB? I have been trying to figure out how to get the Trackman Marble onto my ADB PowerMac! Please help!
I'm waiting to see who plays the role of Japan.
How about "raises the question".
It's made of Lego ... there's no such word as Legos.
I disagree about your assessment of Perl - I say it's fine for programs of about 500 lines after which you are probably done. Hooray for mod_perl!
For another client I eventually made a web-based editing interface and eliminated their Access database altogether. Works even better :)