4 ms·
In Java: Alphabet.getGoogle().use(Alphabet.getGoogle().getGooglePlus(). getCommentFactory(), Alphabet.getGoogle().getYouTube(). getVideos(c
by kzhahou 11y ago
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!)
- jinst8gmi 11y agoAlmost, just change the getters to lowercase 'g'et and add a bunch of unnecessary Spring boilerplate on top of it all.
- aidenn0 11y agoAlphabet.subsidarySingletonFactoryFactory("Google").singletonSubsidary("YouTube")
- petarb 11y agoIn some ES6 JavaScript: import {google} from 'alphabet'; let {google_plus, youtube} = google; google.apply(google_plus.comments, youtube.videos(youtube.RED));