News for hackers. Stuff that matters.
Re:Google to Fold Chrome Operating System into Android by nostromo on Thursday October 29, 2015 @05:26PM (#10474435)
It'd like to see them do a story about Alphabet's Google's YouTube.
Re:Google to Fold Chrome Operating System into Android by jinst8gmi on Thursday October 29, 2015 @05:31PM (#10474475)
Or one about Alphabet's Google's use of Alphabet's Google's Google+ for comments on Alphabet's Google's YouTube Red videos.
Re:Google to Fold Chrome Operating System into Android by nostrademons on Thursday October 29, 2015 @06:00PM (#10474668)
Somehow this feels like I'm writing C code but am unable to take a pointer to anything but the top-level object.
Re:Google to Fold Chrome Operating System into Android by kzhahou on Thursday October 29, 2015 @06:17PM (#10474770)
In Java:

    Alphabet.getGoogle().use(Alphabet.getGoogle().getGooglePlus().
        getCommentFactory(), Alphabet.getGoogle().getYouTube().
        getVideos(com.alphabet.google.youtube.RED))
In python:

    import alphabet.google as google
    google.apply(google.google_plus.comments,
        google.youtube.videos(google.youtube.RED))
Am i doing it right?

(edited for javaness!)

Re:Google to Fold Chrome Operating System into Android by jinst8gmi on Thursday October 29, 2015 @06:25PM (#10474816)
Almost, just change the getters to lowercase 'g'et and add a bunch of unnecessary Spring boilerplate on top of it all.
Re:Google to Fold Chrome Operating System into Android by aidenn0 on Thursday October 29, 2015 @06:55PM (#10474995)
Alphabet.subsidarySingletonFactoryFactory("Google").singletonSubsidary("YouTube")
Re:Google to Fold Chrome Operating System into Android by petarb on Friday October 30, 2015 @12:25PM (#10478767)
In some ES6 JavaScript:

   import {google} from 'alphabet';
   let {google_plus, youtube} = google;
   google.apply(google_plus.comments, youtube.videos(youtube.RED));
Re:Google to Fold Chrome Operating System into Android by steckerbrett on Thursday October 29, 2015 @06:04PM (#10474699)

    GOOGLE PLUS
    GOOGLE
    ALPHABET
Re:Google to Fold Chrome Operating System into Android by HillaryBriss on Thursday October 29, 2015 @09:03PM (#10475562)
It's much more beautiful if you use Android SDK:

  private boolean googleSubsidiaryConnectionSuccess = false;
  private boolean googleSubsidiaryConnectionInProgress = false;
  private GoogleSubsidiary googleSubsidiary = null;
  private GoogleVideoHostingManager googleVideoHostingService = null;

  @Override
  protected void onCreate(Bundle savedInstanceState) {
     GoogleApiClient.Builder builder = new GoogleApiClient.Builder(this)
          .addSubsidiary(AlphabetSubsidiaries.GOOGLE_SUBSIDIARY);
     GoogleApiClient client = builder.build();
     client.connect();
     googleSubsidiaryConnectionInProgress = true;
  }
  
  @Override
  protected void onActivityResult(int requestCode, int resultCode, Intent data /* ignored */) {
     if (requestCode == GoogleSubsidiary.EXISTS_AND_IS_PROFITABLE) { // actual value is -11
          if (responseCode != Activity.RESULT_OK) {
              Log.w(TAG, "could not get subsidiary");
              googleSubsidiaryConnectionSuccess = false;
              if (!client.isConnecting()) {
                  Log.v(TAG, "calling googleApiClient.connect again");
                  client.connect();
              }
          }
      } else {
          Log.w(TAG, "Google subsidiary may be out of business. Not sure.");
          if (!googleSubsidiaryConnectionInProgress && !client.isConnecting()) {
               client.connect();
          }
      }
  }
  
  @Override
  public void onConnected(Bundle connectionHint) {
     googleSubsidiaryConnectionSuccess = true;
     googleSubsidiaryConnectionInProgress = false;
     GoogleSubsidiaryToken googleSubsidiaryToken = GoogleSubsidiaryUtil.getToken(activity, GOOGLE_SUBSIDIARY_TOKEN_REQUEST_SCOPE);
     try {
          googleSubsidiary = (GoogleSubsidiary)GoogleSubsidiaryUtil.getSubsidiaryObjectFromToken(googleSubsidiaryToken);
          googleVideoHostingService = (GoogleVideoHostingManager)googleSubsidiary.getService(GoogleSubsidiary.YOU_TUBE_SERVICE);
          if (googleVideoHostingService == null && !client.isConnecting()) {
               client.connect();
          }
     } catch (SubsidiaryTokenOutOfDateException ex) {
          googleSubsidiaryConnectionSuccess = false;
          if (!client.isConnecting()) {
               client.connect();
          }
     }
  }
Re:Google to Fold Chrome Operating System into Android by saturdaysaint on Thursday October 29, 2015 @06:08PM (#10474729)
Have you tried Alphabet's Google's YouTube's Youtube Red?
Re:Google to Fold Chrome Operating System into Android by zbyte64 on Thursday October 29, 2015 @06:52PM (#10474978)
Isn't that the paid version of redtube?
Re:Google to Fold Chrome Operating System into Android by dsmithatx on Thursday October 29, 2015 @07:23PM (#10475170)
I'm pretty sure he means redtube where free porn comes from.
Re:Google to Fold Chrome Operating System into Android by munificent on Thursday October 29, 2015 @07:50PM (#10475318)
Don't forget Alphabet's Google's Google Music All Access.
Re:Google to Fold Chrome Operating System into Android by contravert on Thursday October 29, 2015 @09:16PM (#10475594)
You missed a word! It's actually Alphabet's Google's Google PLAY Music All Access
Re:Google to Fold Chrome Operating System into Android by onedev on Thursday October 29, 2015 @05:32PM (#10474487)
There's a funny chrome extension to be made here. I'll let someone else take the initiative.
Re:Google to Fold Chrome Operating System into Android by dchest on Thursday October 29, 2015 @05:49PM (#10474604)
You mean, Alphabet Inc.'s Google's Google Chrome operating system's Google Chrome browser extension?
Re:Google to Fold Chrome Operating System into Android by obel1x on Thursday October 29, 2015 @07:55PM (#10475344)
Re:Google to Fold Chrome Operating System into Android by mintplant on Thursday October 29, 2015 @09:41PM (#10475678)
But does it handle "Google Chrome" and "Google+" correctly? Clearly, these should be written as "Alphabet Inc's Google's Chrome"† and "Alphabet Inc's Google's Google+", respectively.

† Or "Alphabet Inc's Google's Google Chrome".

Re:Google to Fold Chrome Operating System into Android by onedev on Friday October 30, 2015 @01:33AM (#10476296)
This is a fantastic interview question.