Slashdot Mirror


User: Tommer

Tommer's activity in the archive.

Stories
0
Comments
26
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 26

  1. Re:Be careful — PHP is a trap! on Ask Slashdot: Which Web Platform Would You Use? · · Score: 1

    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.

  2. Be careful — PHP is a trap! on Ask Slashdot: Which Web Platform Would You Use? · · Score: 1

    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!

  3. File globbing through directory trees on (Useful) Stupid Unix Tricks? · · Score: 1

    In 1994, coming from DOS, I was surprised to learn that shell globs can span directory trees, e.g.

    rm foo*/*/*.bar

  4. !PHP on How Should I Teach a Basic Programming Course? · · Score: 1

    Please don't teach them PHP, it's as harmful now as BASIC was 20+ years ago.

  5. ITYM "has led" on Hans Reiser Leads Police To Nina's Body · · Score: 1

    HTH.
    HAND.

  6. Re:My thumb isn't tired on Mouse or Trackball? · · Score: 1

    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. :)

  7. My thumb isn't tired on Mouse or Trackball? · · Score: 1

    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 only wish I could get it in BlueTooth.

  8. Is this important? on How Would You Define a Planet? · · Score: 1

    "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?

  9. Just ask RMS. on Converting Users to Open Source- Why Do You Care? · · Score: 1

    http://www.gnu.org/philosophy/why-free.html

  10. Differently Geeky on Sources of Intelligent Audio for Commute? · · Score: 1

    http://www.dharmastudent.com/

  11. Re:The kernel patch... on Kernel Exploit Cause Of Debian Compromise · · Score: 1

    Perhaps someone should examine all [kernel] updates which have 'bounds' as a substring of their changelog comment.

  12. Re:Does this mean I get colour cycling in 32-bit? on RandR Support on XFree86 4.3 · · Score: 2

    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.

  13. Does this mean I get colour cycling in 32-bit? on RandR Support on XFree86 4.3 · · Score: 3, Funny

    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?

  14. The 911 people do that too! on When The FBI Knocks, A First-Person Account · · Score: 2

    http://www.mynipple.com/

  15. Re:coldfusion--ick... on Which CGI Language For Which Purpose? · · Score: 2

    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. :)

  16. Re:Some language, any language on Which CGI Language For Which Purpose? · · Score: 2
    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.

  17. 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.

  18. OpenSource.com on Red Hat Files For Followup Stock Offering · · Score: 2

    One of the exhibits mentions that RedHat is buying OpenSource.com.

  19. Re:trackpoint? on On Using X w/o the Rodent · · Score: 2

    Yes, I've seen big black IBM desktop keyboard with the red trackpoint in the middle. Good idea.

  20. Re:Logitech Marble rather than mouse.. on On Using X w/o the Rodent · · Score: 2

    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!

  21. World War II on How The Web Was Almost Won · · Score: 2
    Tim's last sentence:
    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'm waiting to see who plays the role of Japan.

  22. Re:begging the question on Online Romance - For Good or Evil? · · Score: 1

    How about "raises the question".

  23. It's "Lego" on Quickie Fu · · Score: 1

    It's made of Lego ... there's no such word as Legos.

  24. Re:Comments on web-applications on E-commerce and Linux · · Score: 1
    As of v6.5 (or 6.4.2+patch) PostgreSQL also has LIMIT/OFFSET.

    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!

  25. Access to ODBC to PostgreSQL on E-commerce and Linux · · Score: 1
    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 :)