Pages: 1 ... 167 [168] 169 ... 589

Say What's On Your Mind
Posts: 8823 Views: 768741

Wintermoot
  • Regional Stability Squad
  • The Greyscale Magi-Monk

  • I've no clue what that means, so I'll take it as a yes. :P
    1 person likes this post: Michi


    I went all the way to Cassadega to commune with the dead
    They said "You'd better look alive"
    Wintermoot
    • The Greyscale Magi-Monk
    • Posts: 19,453
    • Karma: 9,677
    • Weather: ❄️
    • Regional Stability Squad
    • Pronouns
      He/Him/His
      Orientation
      Demisexual
      Wintreath Nation
      Logged
    PB
  • Paragons
  • You disappoint me, mootles.

    Sauce.
    PB
    • Posts: 1,760
    • Karma: 373
    • Paragons
    • Pronouns
      He/Him/His
      Wintreath Nation
      Logged
    Wintermoot
  • Regional Stability Squad
  • The Greyscale Magi-Monk
  • I'm not a movie person...you can't blame me. :P

    So...you want me to find you some high school girls? :P


    I went all the way to Cassadega to commune with the dead
    They said "You'd better look alive"
    Wintermoot
    • The Greyscale Magi-Monk
    • Posts: 19,453
    • Karma: 9,677
    • Weather: ❄️
    • Regional Stability Squad
    • Pronouns
      He/Him/His
      Orientation
      Demisexual
      Wintreath Nation
      Logged
    Wintermoot
  • Regional Stability Squad
  • The Greyscale Magi-Monk
  • There's no better feeling than waking up in the morning, coming on here, and seeing that there were posts and discussions going on while I was sleeping. I love how the region has returned to constant activity, even when I'm not around, and I love everyone that contributes to that activity...we have some awesome people. :)


    I went all the way to Cassadega to commune with the dead
    They said "You'd better look alive"
    Wintermoot
    • The Greyscale Magi-Monk
    • Posts: 19,453
    • Karma: 9,677
    • Weather: ❄️
    • Regional Stability Squad
    • Pronouns
      He/Him/His
      Orientation
      Demisexual
      Wintreath Nation
      Logged
    Reon
  • Former Citizen
  • We do have awesome people! Wintreath is so hella!
    Fuck yeah!
    Face the facts of being what you are, for that is what changes what you are.
    Reon
    • Posts: 2,089
    • Karma: 254
    • Follow the Truth, whoever that may be.
    • Former Citizen
    • Pronouns
      He/Him/His
      Wintreath Nation
      Logged
    Drexyl Nox
  • Citizen
  • Official Unofficial Wintreath Mascot
  • As it stands, I may or may not return to activity, sorry.
    Drexyl Nox
    • Official Unofficial Wintreath Mascot
    • Posts: 1,468
    • Karma: 222
    • Axolotl Friend
    • Citizen
    • Pronouns
      She/Her/Hers
      Wintreath Nation
      Logged
    Reon
  • Former Citizen
  • Just make it through everything alive, Nox. Be well, you pretty thing.
    Face the facts of being what you are, for that is what changes what you are.
    Reon
    • Posts: 2,089
    • Karma: 254
    • Follow the Truth, whoever that may be.
    • Former Citizen
    • Pronouns
      He/Him/His
      Wintreath Nation
      Logged
    Wintermoot
  • Regional Stability Squad
  • The Greyscale Magi-Monk
  • You will make it, Nox...I have faith in you. :)

    So, tonight I'm aiming to learn jQuery, because apparently it's a lot easier to do things in it than with plain old javascript, which I've been a faithful coder of for many years. Some of it seems neat, but some of it eh...I don't get the obsession in the tutorials with anonymous functions. Why would you code this...?

    Code: [Select]
    $(document).ready(function(){
    $('div').hide()
    });

    When you can code this?

    Code: [Select]
    $(document).ready($('div').hide());
    I've even seen examples where functions were put into functions into functions...that's just not the way I do things. I like neat, easily maintained code, not a clusterfuck. I suspect that's going to make it harder for me to learn jQuery...


    I went all the way to Cassadega to commune with the dead
    They said "You'd better look alive"
    Wintermoot
    • The Greyscale Magi-Monk
    • Posts: 19,453
    • Karma: 9,677
    • Weather: ❄️
    • Regional Stability Squad
    • Pronouns
      He/Him/His
      Orientation
      Demisexual
      Wintreath Nation
      Logged
    Wuufu
  • Citizen
  • Being someone who codes jQuery on a fairly regular basis (seriously, I love it!) and having not seen any instances where you would code using the second code block you provide, Wintermoot, I'm not entirely sure where you got the idea that you could code using that shorthand.

    I believe the reason you use anonymous functions is that you are passing the function as an argument to the ready function. That means you can have multiple instances of code all calling the ready function with their own anonymous blocks of code they want to execute, and when the website fully loads, they will all execute one after another.

    However, if you want a shorthand version, you can use this:
    Code: [Select]
    $(function(){

       // jQuery methods go here...

    });
    Oh, and the way I would see you code the ready function is to have it appear in one place where you can put all of the code you want executed when things are ready (usually in the footer that gets put on every page).
    Wuufu
    • Posts: 655
    • Karma: 280
    • Peace comes from within. Do not seek it without.
    • Citizen
    • Pronouns
      He/Him/His
      Wintreath Nation
      Logged
    Wintermoot
  • Regional Stability Squad
  • The Greyscale Magi-Monk
  • I got the idea from putting it together, trying it out, and seeing it work. I also looked up some articles from people who agree with me on that. :P

    I've been coding things for about ten years now, and I've just developed ideas on how I want my code to be structured. I was once told I have very neat coding, lol...but jQuery code looks horrific and violates all my standards, lol.



    I went all the way to Cassadega to commune with the dead
    They said "You'd better look alive"
    Wintermoot
    • The Greyscale Magi-Monk
    • Posts: 19,453
    • Karma: 9,677
    • Weather: ❄️
    • Regional Stability Squad
    • Pronouns
      He/Him/His
      Orientation
      Demisexual
      Wintreath Nation
      Logged
    Wuufu
  • Citizen
  • I'd be interested to see your articles, only to learn more of the shorthand style.

    But yeah, if you have coding standards that go against what jQuery provides, perhaps put the jQuery into a separate JavaScript file...
    Wuufu
    • Posts: 655
    • Karma: 280
    • Peace comes from within. Do not seek it without.
    • Citizen
    • Pronouns
      He/Him/His
      Wintreath Nation
      Logged
    Aubrey
  • Former Citizen
  • I think I am beginning to prefer this region over my home region.
    Aubrey
    • Posts: 267
    • Karma: 19
    • Former Citizen
    • Wintreath Nation
      Logged
    Wintermoot
  • Regional Stability Squad
  • The Greyscale Magi-Monk
  • I'd be interested to see your articles, only to learn more of the shorthand style.

    But yeah, if you have coding standards that go against what jQuery provides, perhaps put the jQuery into a separate JavaScript file...

    I feel like I've struck a nerve against your programming sensibilities. :P

    I think I am beginning to prefer this region over my home region.

    All regions have their bouts of drama...even Wintreath has in the past. I'm sure Ainur will recover and be fine in the long run. :)


    I went all the way to Cassadega to commune with the dead
    They said "You'd better look alive"
    Wintermoot
    • The Greyscale Magi-Monk
    • Posts: 19,453
    • Karma: 9,677
    • Weather: ❄️
    • Regional Stability Squad
    • Pronouns
      He/Him/His
      Orientation
      Demisexual
      Wintreath Nation
      Logged
    Wuufu
  • Citizen
  • I think I am beginning to prefer this region over my home region.
    I always enjoy my visits here :)
    I feel like I've struck a nerve against your programming sensibilities. :P
    When it comes to jQuery, I don't really have any coding styles, so usually just stick to the default suggested way of coding things.

    So it's interesting to hear from someone who is really into JavaScript to learn more about the coding styles out there. I see JavaScript as more of a side language I have to delve into every now and then to achieve something more than anything else...
    Wuufu
    • Posts: 655
    • Karma: 280
    • Peace comes from within. Do not seek it without.
    • Citizen
    • Pronouns
      He/Him/His
      Wintreath Nation
      Logged
    Aubrey
  • Former Citizen
  • Oh winter... I am sure Ainur will be fine, I just said what on my mind at the moment

    Now I am thinking about smearing whip cream on that guy from big bang.
    Aubrey
    • Posts: 267
    • Karma: 19
    • Former Citizen
    • Wintreath Nation
      Logged
     
    Pages: 1 ... 167 [168] 169 ... 589