www.webdeveloper.com

Search:

Type: Posts; User: Jeff Mott

Page 1 of 20 1 2 3 4

Search: Search took 0.10 seconds.

  1. Replies
    5
    Views
    584

    It would mean that the expression ...

    It would mean that the expression

    this._config.connectionHandler.bind(this)

    returns a function, and that returned function is then invoked by

    (socket)
  2. Since PHP 5.5, there are built-in password...

    Since PHP 5.5, there are built-in password hashing functions that do things the right way. And if you're not on 5.5, then you can use this forward compatibility library.

    This is probably your best...
  3. Replies
    6
    Views
    1,060

    You meant to type "==" for comparison. Otherwise,...

    You meant to type "==" for comparison. Otherwise, a single "=" means assignment. That's why illegalChar is always true.
  4. Replies
    2
    Views
    896

    If you used C++ a lot, then you probably know...

    If you used C++ a lot, then you probably know about objects. They're passed and assigned by reference (by pointer). In your JavaScript, you only ever created one object, and you're assigning the same...
  5. According to the spec, only block elements -- not...

    According to the spec, only block elements -- not inline -- can be direct children of the body.
  6. This code below also fails to turn the background...

    This code below also fails to turn the background color black.


    <!doctype html>
    <html>
    <head>
    <script type="text/javascript">
    ...
  7. Nope, still optional. ;)

    Nope, still optional. ;)
  8. Though, in this case, it wouldn't be an error....

    Though, in this case, it wouldn't be an error. The spec explicitly says the HTML, HEAD and BODY tags are optional.
  9. There are probably a few edge cases where it...

    There are probably a few edge cases where it matters, but by and large you're right, you can leave off those tags, plus the <head> tag as well, and not suffer any consequences.
  10. Replies
    4
    Views
    2,268

    If the file has been uploaded, then it will in...

    If the file has been uploaded, then it will in fact be on your server. It will be saved at $_FILES['form_control_name']['tmp_name']. (See...
  11. Replies
    4
    Views
    2,268

    require_once 'lib/swift_required.php'; //...

    require_once 'lib/swift_required.php';

    // Create the Transport
    $transport = Swift_SmtpTransport::newInstance('smtp.example.org', 25)
    ->setUsername('your username')
    ->setPassword('your...
  12. Replies
    15
    Views
    2,678

    The first half of the article From Flat PHP to...

    The first half of the article From Flat PHP to Symfony2 could help you. It takes you step by step from the kind of code you have now to a more structured and organized architecture.
  13. Replies
    4
    Views
    1,552

    It sounds like your new developer, however good...

    It sounds like your new developer, however good he may be, lacks people skills. If he believes your existing codebase could be better, then he should present to the rest of you his proposed changes...
  14. Replies
    3
    Views
    1,207

    I would think that your development environment...

    I would think that your development environment could be your own local machine. Your test site, on the other hand, should be hosted on a machine identical to the live host, in terms of both hardware...
  15. Replies
    17
    Views
    2,623

    That's an unfortunate abbreviation. Should this...

    That's an unfortunate abbreviation. Should this function name be labelled NSFW? :p
  16. Replies
    17
    Views
    2,623

    Smells like homework.

    Smells like homework.
  17. Thread: OOP - a rant

    by Jeff Mott
    Replies
    3
    Views
    901

    Sorry for being months late to the conversation....

    Sorry for being months late to the conversation. I wanted to say I wholeheartedly agree. I became more aware of this when I started reading about C++, and I got a more low-level insight into classes...
  18. Thread: Education

    by Jeff Mott
    Replies
    4
    Views
    1,596

    I highly recommend...

    I highly recommend https://developer.mozilla.org/en-US/learn
  19. Replies
    23
    Views
    8,574

    Poll: I think you misunderstood the argument everyone...

    I think you misunderstood the argument everyone made. No one said you can't do the same without classes, but that's not the same as saying it's better without classes. Like NogDog's example: Just...
  20. Replies
    23
    Views
    8,574

    Poll: Also, you can do absolutely the same with C as...

    Also, you can do absolutely the same with C as you can with PHP, so there's no reason to use PHP, right? But we do use PHP, and we do use classes, because both come with benefits.

    OOP emphasizes...
  21. Replies
    7
    Views
    472

    Actually... my first suggestion for improvement...

    Actually... my first suggestion for improvement is not about the inheritance mechanism, but about code readability. Right from the beginning, in your extends function, variable names such as "b" and...
  22. Replies
    7
    Views
    472

    In your example code, you have a method on...

    In your example code, you have a method on Dog.prototype, but if you had a method on Animal.prototype, how does that inherit? In the pattern you're describing, I think it only works if the methods...
  23. Replies
    7
    Views
    472

    JavaScript doesn't support method overloading....

    JavaScript doesn't support method overloading. Plus, since it's a loosely typed language, your ability to detect different forms of invocation is limited. The best you could do is something like...
  24. I highly recommend...

    I highly recommend https://developer.mozilla.org/en-US/learn
  25. You can add this before loading the document. It...

    You can add this before loading the document. It will allow DOMDocument to continue parsing through malformed markup in the same fashion as browsers that error correct.
    ...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4
HTML5 Development Center



Recent Articles