I love this. This is a perfect exemplar of the absurdities of code, from the nonsensical boilerplate overhead of OOP styles to utter ennui.https://twitter.com/16kbps/status/912319298684772352 …
Lead Data Scientist, activist, survivor. Was actually assaulted by an actual right-wing terrorist. Opinions belong only to me, especially the bad ones. she/they
You can add location information to your Tweets, such as your city or precise location, from the web and via third-party applications. You always have the option to delete your Tweet location history. Learn more
Add this Tweet to your website by copying the code below. Learn more
Add this video to your website by copying the code below. Learn more
By embedding Twitter content in your website or app, you are agreeing to the Twitter Developer Agreement and Developer Policy.
| Country | Code | For customers of |
|---|---|---|
| United States | 40404 | (any) |
| Canada | 21212 | (any) |
| United Kingdom | 86444 | Vodafone, Orange, 3, O2 |
| Brazil | 40404 | Nextel, TIM |
| Haiti | 40404 | Digicel, Voila |
| Ireland | 51210 | Vodafone, O2 |
| India | 53000 | Bharti Airtel, Videocon, Reliance |
| Indonesia | 89887 | AXIS, 3, Telkomsel, Indosat, XL Axiata |
| Italy | 4880804 | Wind |
| 3424486444 | Vodafone | |
| » See SMS short codes for other countries | ||
This timeline is where you’ll spend most of your time, getting instant updates about what matters to you.
Hover over the profile pic and click the Following button to unfollow any account.
When you see a Tweet you love, tap the heart — it lets the person who wrote it know you shared the love.
The fastest way to share someone else’s Tweet with your followers is with a Retweet. Tap the icon to send it instantly.
Add your thoughts about any Tweet with a Reply. Find a topic you’re passionate about, and jump right in.
Get instant insight into what people are talking about now.
Follow more accounts to get instant updates about topics you care about.
See the latest conversations about any topic instantly.
Catch up instantly on the best stories happening as they unfold.
Emily G Retweeted 576 px wife
I love this. This is a perfect exemplar of the absurdities of code, from the nonsensical boilerplate overhead of OOP styles to utter ennui.https://twitter.com/16kbps/status/912319298684772352 …
Emily G added,
private int myVar; public MyClass(int myVar) { this.myVar = myVar; } This was never, ever a good idea, stylistically or otherwise.
It's 4x more loc than it needs to be and couples the class to whatever's constructing it.
What's the difference (I thought dep injection was "passing in values for member vars as part of the constructor")?
That's one (weak) way to accomplish it. In this case, it's irrelevant as the int type is a platform type and DI is unnecessary.
But more generally Dependency Injection's benefit is to accomplish inversion of control. So it's the control paradigm that matters.
IoC basically means "don't `new` off classes," and one way to accomplish this is to provide a reference to the object that needs that class
But putting it in the constructor is the weakest way, imo, because you just trade one refactorability problem for it's mirror image.
As you can prob tell, I'm not great with OOP (I have a pdf of GoF thought). This gives me something to chew on, so thanks!
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.