76 Matching Annotations
  1. Nov 2020
    1. Maar denk eens verder. Gaan we de wereld beter maken door verder te groeien? Dat willen ondernemers. En daar zijn neveneffecten aan verbonden. Uber is zogenaamd idealistisch. Ze willen de klant een betere en goedkopere taxirit bieden, maar hun chauffeurs worden uitgebuit. Met Airbnb kun je een leuk zakcentje verdienen, maar woonwijken worden hotels zonder sociale patronen. Facebook is één grote fake-news-show. Amazon is zo goedkoop dat ze alle kleine ondernemers van de weg drukken. Musk wil ons naar Mars brengen. Dat gaat zeker gebeuren, maar wat gaan we daar doen? Maakt het ons gelukkig? Waarom kiezen we er niet voor om elkaar en onze natuur op deze planeet vooruit te helpen?

      Alef Arendsen

  2. Jul 2020
  3. Jun 2020
  4. Mar 2019
    1. Airbnb lets people rent out part or all of their homes for short stays,

      Explains Airbnb

    Tags

    Annotators

  5. Nov 2018
    1. Contrast that with an idea that came to me about five years ago. A young man by the name of Brian Chesky came up to me and had this idea that he was going to have an air mattress in his apartment that he rented to people. It would be an air bed and breakfast and I immediately thought: wow, that’s a horrible, horrible idea. Who would want to rent an air mattress out to somebody’s apartment like probably a serial killer?

      Initial impressions of an idea can seem outrageous, bad, horrible. Experiments in the real world can validate or provide surprising evidence of something good.

      Requires deep research, work and perseverance to go against common advice. This is where you can unlock secrets

  6. Jul 2018
    1. Sometimes you want to introduce a new variable scope—for example, to prevent a variable from becoming global. In JavaScript, you can’t use a block to do so; you must use a function.
    2. (function () { // open IIFE var tmp = ...; // not a global variable }()); // close IIFE

      2.3 Note that both let and const are block-scoped. You can replace an IIFE that looks like:

      // bad
      (function () {
         var tmp = ...;
         ...
      })());
      

      with just:

      // good
      {
        const tmp = ...;
        ...
      }
      
    3. for (var i=0; i < 5; i++) { (function () { var i2 = i; // copy current i result.push(function () { return i2 }); }()); }

      2.3 Note that both let and const are block-scoped. You can replace an IIFE that looks like:

      // bad
      for (var i=0; i < 5; i++) {
          (function () {
              var i2 = i; // copy current i
              result.push(function () { return i2 });
          }());
      }
      

      with just:

      // good
      for (let i=0; i < 5; i++) {
          // copy current i
          const i2 = i;
          result.push(() => i2);
      }
      
    4. var
    5. var
    6. var
    7. var
    8. var
    9. var
    10. var
    11. var
    12. var
    13. var
    14. var
    15. var
    16. function
    17. This chapter is about “Basic JavaScript,”

      The highlighted annotations with the airbnb tag were made to illustrate where Basic Javascript differs from the Airbnb Javascript Style Guide and typescript tag for differences from Typescript Deep Dive TIPs.

    18. Math.pow
    19. Math.pow
    20. function
    21. function
    22. Function expressions are often used as arguments in function calls in JavaScript. Always be careful when you refer to this from one of those function expressions.
    23. First, we could store this in a different variable:logHiToFriends: function () { 'use strict'; var that = this; this.friends.forEach(function (friend) { console.log(that.name+' says hi to '+friend); }); }
    24. Every function has its own special variable this. This is inconvenient if you nest a function inside a method, because you can’t access the method’s this from the function
    25. This section does not fully explain how JavaScript inheritance works, but it shows you a simple pattern to get you started. Consult Chapter 17 if you want to know more.In addition to being “real” functions and methods, functions play another role in JavaScript: they become constructors—factories for objects—if invoked via the new operator. Constructors are thus a rough analog to classes in other languages. By convention, the names of constructors start with capital letters. For example:// Set up instance data function Point(x, y) { this.x = x; this.y = y; } // Methods Point.prototype.dist = function () { return Math.sqrt(this.x*this.x + this.y*this.y); };We can see that a constructor has two parts. First, the function Point sets up the instance data. Second, the property Point.prototype contains an object with the methods. The former data is specific to each instance, while the latter data is shared among all instances.To use Point, we invoke it via the new operator:> var p = new Point(3, 5); > p.x 3 > p.dist() 5.830951894845301p is an instance of Point:> p instanceof Point true
    26. Variables Are Function-ScopedThe scope of a variable is always the complete function (as opposed to the current block). For example:function foo() { var x = -512; if (x < 0) { // (1) var tmp = -x; ... } console.log(tmp); // 512 }We can see that the variable tmp is not restricted to the block starting in line (1); it exists until the end of the function.
    27. var
    28. In JavaScript, you declare variables via var before using them:> var x; > x undefined > y ReferenceError: y is not defined
    29. var
    30. You can declare and initialize several variables with a single var statement:var x = 1, y = 2, z = 3;
    31. function
    32. function
    33. var
    34. To concatenate strings in multiple steps, use the += operator:> var str = ''; > str += 'Multiple '; > str += 'pieces '; > str += 'are concatenated.';
    35. 'You have ' + messageCount + ' messages'
    36. "That's nice!"
    37. "Did she say \"Hello\"?"
    38. == and !=
    39. ==, !=
    40. Increment: ++variable, variable++ Decrement: --variable, variable--
    41. Binary logical operators: && (And), || (Or)

      Note that these operators do not necessarily produce booleans, as described below, && returns the first Falsy operand and || returns the last Truthy operand, short-circuited.

    42. Boolean(), called as a function, converts its parameter to a boolean. You can use it to test how a value is interpreted:> Boolean(undefined) false > Boolean(0) false > Boolean(3) true > Boolean({}) // empty object true > Boolean([]) // empty array true
    43. var
    44. var
    45. var
    46. var
    47. var
    48. var
    49. var
    50. var
    51. var
    52. "abc"
    53. var
    54. var
    55. var
    56. var
    57. var
    58. function
    59. var
    60. var
    61. var
    62. var
    63. var
    64. var
    65. // single-line comment
  7. Jul 2017
    1. renting one's property out as an Airbnb rental home sounds entrepreneurial but one must be mindful of the tax considerations

    2. Thanks to Airbnb, everyone can find that affordable night's sleep, and anyone can become a landlord. But there's more to renting out your extra space than making some cash, meeting interesting people, and then watching them slowly succumb to your H.H. Holmes-inspired hostel of horrors. There are, of course, taxes to consider.

      The pluses and minuses of airbnb rentals

  8. Jun 2017
    1. The benefits that Airbnb and Uber pioneered go beyond convenience. They allow people to make human connections in an era that has become much more institutionalized in the decades since family-run bed-and-breakfasts began being replaced by standardized hotel chains.

      Interesting point...but nore sure I buy it. There's probably more human connection in renting a hotel, interacting with the staff and possibly other guests, then the often automater entry one has to an Airbnb property. Only on a couple of occasions have I had genuine interaction with my rentee.

  9. May 2017
  10. Mar 2017
    1. The listing represented an extraordinary opportunity in American history, one facilitated by both modern technology and a president with a large real estate portfolio: a chance for travelers to book a room in a building housing the president’s family — one of the most secure buildings in New York City, if not the world — with nothing more than the click of a mouse.

      Crazy!

  11. Feb 2014