dcsimg
www.webdeveloper.com

Search:

Type: Posts; User: Jeff Mott

Page 1 of 20 1 2 3 4

Search: Search took 0.07 seconds.

  1. Replies
    1
    Views
    311

    When we say avoid globals, we mean that your...

    When we say avoid globals, we mean that your library should introduce one -- and only one -- symbol into the global scope, and that one symbol is the entry point to your library. You'll need to name...
  2. Replies
    16
    Views
    1,770

    Among those "illiterate dummies" who never...

    Among those "illiterate dummies" who never learned JavaScript are Mozilla, Doug Crockford, the rest of the YUI team, Google, and basically the rest of the entire professional JavaScript community....
  3. Replies
    16
    Views
    1,770

    The "with" statement is considered ambiguous and...

    The "with" statement is considered ambiguous and error prone. You should avoid it. And it's a good thing that strict slaps you down for using it.



    "strict" has nothing to do with turning JS...
  4. Replies
    16
    Views
    1,770

    For what it's worth, I agree with you. You'll...

    For what it's worth, I agree with you. You'll write better code with strict.
  5. Replies
    4
    Views
    843

    > You are modifying the shared function which is...

    > You are modifying the shared function which is on prototype

    You're *supposed* to be able to modify the subtype's prototype. Otherwise the subtype could never have any methods of its own.

    > As...
  6. Replies
    2
    Views
    645

    There are a couple purposes. One is to ensure...

    There are a couple purposes.

    One is to ensure that undefined is truly undefined. Anywhere, in any script, some silly person could write undefined = 're-define undefined cause im evil';. But within...
  7. There are actually two concepts here that are...

    There are actually two concepts here that are getting mixed together: the lexical environment and the prototype chain.

    The lexical environment is what we traditionally think of as "scope". If you...
  8. Replies
    5
    Views
    802

    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)
  9. 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...
  10. Replies
    6
    Views
    1,299

    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.
  11. Replies
    2
    Views
    975

    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...
  12. According to the spec, only block elements -- not...

    According to the spec, only block elements -- not inline -- can be direct children of the body.
  13. 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">
    ...
  14. Nope, still optional. ;)

    Nope, still optional. ;)
  15. 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.
  16. 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.
  17. Replies
    4
    Views
    2,653

    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...
  18. Replies
    4
    Views
    2,653

    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...
  19. Replies
    15
    Views
    3,148

    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.
  20. Replies
    4
    Views
    1,716

    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...
  21. Replies
    3
    Views
    1,338

    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...
  22. Replies
    17
    Views
    3,326

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

    That's an unfortunate abbreviation. Should this function name be labelled NSFW? :p
  23. Replies
    17
    Views
    3,326

    Smells like homework.

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

    by Jeff Mott
    Replies
    3
    Views
    1,057

    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...
  25. Thread: Education

    by Jeff Mott
    Replies
    4
    Views
    1,776

    I highly recommend...

    I highly recommend https://developer.mozilla.org/en-US/learn
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4
HTML5 Development Center



Recent Articles