Saturday, November 5, 2016

yet more RANDOM notes from trying to find a job

a lot of this is shamelessly stolen from other stuff I found online...

  • var x = y.OrderByDescending(z =>
          z.Date).ThenByDescending(z => z.Name).Skip(5).Take(8);

          ...is an example of .ThenByDescending/.Take/.Skip in a Lambdaland.
  • cookies are a long-standing way of maintaining state at the browser while sessionStorage and localStorage are new to HTML5. localStorage lasts until you get rid of it, cookies may be set to last X number of days or minutes, and sessionStorage only lasts until the browser closes
  • data- attributes in HTML! You may invent your own "legitimate" inline parameter at an HTML tag to make it easy to latch onto the tag in JavaScript or communicate things in JavaScript.
  • The Discovery web service is a tool used to determine the organizations that a user is a member of in Microsoft Dynamics CRM.
  • Use both yield return and yield break TOGETHER...
    while (true)
    {
       if (i < 5)
       {
          yield return i;
       }
       else
       {
          yield break;
       }
       i++;
    }

No comments:

Post a Comment