Just a quick thought. In Chapter 7 (I don’t have the book in front of me right now) where the book talks about the calendars and how to set them up. There is a paragraph talking about how you can’t stop a customer from putting in the date manually. I’m writing to point out that actually you can stop them. Make the input area readonly. To ensure that the color doesn’t change to the off grey color some browsers change a readonly area to - change that color to black. Now the user can’t muck up the calendar entry and they have to use the calendars.
Savvier users can pretty much change anything with access to a text editor. Dunno if the book was talking about them.
I personally like the idea of Postel’s law when it comes to dates. So long as it’s not retardedly ambiguous, let the user put in any number of (good enough for your system) date formats and let the back-end transform to what your DB needs, as you said with PHP.
Best usability : ) Plus then you’re not forcing people into an obnoxious date picker (I keyboard through forms but even though for example Opera’s HTML5 date input type works with keyboard, the popping-up of a graphical calendar makes me reach for the mouse… then I stupidly try to click on these tiny little day buttons. Aaaaaaah!).
I figure if I do this type of retardosity, moms who use mice to fill in forms do too. I like graphical date pickers as a friendly option for people who really need to see calendars to choose dates (but still allow a plain-text input for the rest of us).
I did get this Novice->Ninja book in anticipation of needing to make a big switch from vanilla JS to jQuery, but then that site got taken down But it looks like I’ll be needing it soon anyways. It seemed a decent book when I flipped through it.
I’m also working on a speedometer. Not a graphic odometer, but a way to test the speed of the incoming request which I will need for a game I am also working on.
Oh, like a steam-powered internets pressure gauge http://handley.org.uk/fzz/?p=63
And, anyone who says “Oh jQuery’s not that big” is just being silly. There’s always versions of it like jQuip.
No - I mean - everyone has a different connection to the internet. So I want my game to sync between them. This is mainly a strategy game so moves are every X number of minutes. So it isn’t real time. This is mainly because you can command large groups and it takes time to send all of those commands out to the various members of your command. I’m trying to sync everything together so my computer sends out commands once every X minutes and I need to make sure everyone is on the same turn. What I’m trying to prevent is one person jumping in after someone has killed a monster and taking the treasure. By syncing the turns I can give precedence to whoever killed the monster so they move before the other person does.
Whoever said “Oh jQuery’s not that big”? In usage it’s either #1 or #2 around the world. Size-wise it is approximately 15K. (Unless you use the UI which is 235K I believe?) The reason I wrote my own library was because there just wasn’t any kind of thing like jQuery when I started my own library. (Think Netscape v3.0 - I was working at NASA at the time when that came out.) I also have friends who live in the country that only have dial-up. Some of them still have Windows v3.1. It works for them so they use it. I know - very old technology. So I use my library because it works all the way back to Netscape v3.0.
No - I mean - everyone has a different connection to the internet. So I want my game to sync between them. This is mainly a strategy game so moves are every X number of minutes. So it isn’t real time.
Ah! Neat. There was a game they made which is hosted in America where you are able to watch other players play games in real time and we were pretty awed that it was as fast as it was. We never heard how they did that. We suspected the likes of voodoo.
Whoever said “Oh jQuery’s not that big”?
Oh, people in general. I didn’t mean you. I should have said “Those who say”. I find that a lot of people download a lot of jQuery to do pretty simple things, and I wonder why the heck they bother. Stuff like hide and show kind of things.
The reason I wrote my own library was because there just wasn’t any kind of thing like jQuery when I started my own library.
As you said, a lot of developers have their own library for this reason. I have my own because a) I’m not good enough to write all the event handling basics that work in IE on my own anyway, and b) I like that that’s kinda all it does (deal with events and “this”). So I know that it doesn’t do a lot of other things that I’m probably not using it for anyway, whereas with jQuery (or any of the other popular ones out there), there’s a whole lot of code there to do things I’m not doing.
I also have friends who live in the country that only have dial-up. Some of them still have Windows v3.1. It works for them so they use it. I know - very old technology.
The current generation of developers seems to have forgotten these people exist. Or assume they don’t use the internets.
Originally I used Perl like everyone else and C/C++ and only in the last six or seven years have I switched to PHP. (Which was a real pain because of all of the re-writing I had to do.)
Have you looked back at Perl at all? It’s awesome what’s going on in Perl today. For the C stuff there’s XS, though I dunno if working with XS is a pain in the butt or not.
But I don’t do AJAX a lot so my AJAX stuff is just enough to get what I need done whereas jQuery has a whole slue of things it can do with AJAX.
That’s exactly the issue with jQuery (and the likes): they’re build to deal with anything some dev may want to do, meaning there’s usually a big bunch of code in the library not even getting used, yet users have to load it.
Using your own library where it does only what you need ++
Or - as small as I can get it.
Users thank you for pages that don’t take days to load. I remember dial-up just fine. And Netscape. Hoo, I can’t imagine trying to open any popular page using that today. Last time I looked at the Video for everybody page, it was dedicated to helping a friend of his get a better than 32bps connection or something.