New screencast: Building Forms from Scratch

Login or register to post comments
5 replies [Last post]
alex94040's picture
Offline
Joined: 11/06/2008

Just published a new screencast: http://qcu.be/files/screencasts/qcubed_login_form/qcubed_login_form.html.

Looking forward to your feedback!

Up next: debugging QCubed applications.

Offline
Joined: 03/31/2008

Looks pretty good. :)

I'm curious why you didn't just put the entire user object in the session?

It may also be worth mentioning that in any real app, the passwords should be hashed with the username and a salt value to keep them secure.

Offline
Joined: 03/31/2008

Ok, off-topic reply, because we're looking at IDEs again. It seems like autocomplete isn't working with constructor? Have you noticed other issues with autocomplete in your IDE, or is that really the only place it breaks?

alex94040's picture
Offline
Joined: 11/06/2008

Why not put the entire object into the session: i'm a fan of keeping the session state extremely lean. Also, by force-refreshing it on every page load, I get to pick up stuff like "this user account is disabled" in the middle of a session :-).

On hashing passwords: definitely. Editing an existing screencast is a pain, but I'll do it in the next one.

alex94040's picture
Offline
Joined: 11/06/2008

On autocomplete: it's spotty in Komodo at best. In other editors, I've seen it to be even worse (i.e. $this->txtTextBox-> would autocomplete to nothing - because the IDE is not smart enough to look up the properties of a QTextBox/QTextBoxBase/QControl/QControlBase chain).

I'm yet to find a good IDE with good autocomplete for PHP, that would deal well with a complex class structure.

enzo's picture
Offline
Joined: 03/31/2008

Great Screencast

Now I related a voice with a smile face.

Thanks for your effort.

enzo