Who will give them money now?
The FRIENDS from Russia? China?
Who will invest inside a country that is broken and is inefficient from all perspective?
Russian speculative capital that started the Greek problems and leave at first sign of problems?
Or maybe go to foreign banks and get paying exorbitant fees and print more money and leave this bill for the maybe next generations pay?
Learn with Europe how to be efficient and produce and will be a big win.
Still like a 4000 years state where everyone live from the state and the state cant produce . good luck for everyone.
Portugal is learning how to leave their PAST crazy millennia state like Greek ones to be more efficient.
Look Argentina or Venezuela... It's your future outside eurozone Greece.
What it means for your Activities
So we've all heard the suggestion that we should prefer composition over inheritance. For those that haven't, the idea is classes should only inherit from classes if they can fully stand in for their parent class, not just to share some behavior (more information at ). Despite this, I can't count how many Android projects I've been on/seen that had some BaseActivity that all of their Activities must extend from.
This can be problematic on a few fronts. The most obvious is that when Joe Newguy comes in and adds ShinyFeatureActivity, there's nothing forcing him to make sure it extends BaseActivity. Hopefully it's caught in code review. Additionally, it prevents you from extending from any other Activity class (E.g. PreferenceActivity, ListActivity...). Many of these Activity subtypes have been replaced by Fragment subtypes, but not all. Some libraries might also need their own Activity subtype.
Somewhat more insidious is that you might have some behaviors that are used in several of your Activities, and another set of behaviors for another group of Activities. Since Java doesn't support multi-inheritance, you have no choice but to put all of the behaviors into a single base class if these groups overlap. That means reduced maintainability, and possibly some performance penalties.
It's easy to see why we like to do this. Code reuse is a good thing, right? And much of our common logic needs to happen at specific points in the Activity lifecycle. Application.ActivityLifecycleCallbacks can be a pain to work with (they're passed Activities rather than living in them) and likely need to be registered in Application.onCreate() which we try to avoid.
This is where headless Fragments come in. While a lot of Android developers think of Fragments as UI components, they're really more lifecycle components. So what do I mean by "headless"? Just that onCreateView() either isn't overridden or returns null. Essentially, these are Fragments that implement some process or control that doesn't have a UI itself.
To differentiate my headless Fragments from my View oriented Fragments, I've taken to suffixing my headless Fragments with "Helper" and other Fragments with "Fragment". For example, AnalyticsHelper would be a headless Fragment for attaching my analytics logic, while HeaderFragment shows a header View for something. This is totally optional, but I've found it helpful.
Since there is no UI for these Fragments, there is no layout ID necessary to inflate into or animations to worry about, so your factory methods can be smarter and more controlled. For that matter, they can handle adding the Fragment themselves. I've created a gist  that shows how to do this. In Android Studio, you can add this to the "File and Code Templates" section in settings, and when you create a new class (New -> Java Class), select it in the "Kind" dropdown.
Adding FooHelper to its parent is as simple as calling FooHelper.attach(this). You'll get compiler errors telling you if the parent doesn't implement FooHelper's callback interface, and if attach() had already been called, it will return the preexisting fragment. The gist includes overloads for framework Fragments and Activities, but switching them to use support Fragments and FragmentActivity is pretty trivial. It also includes a getParent() that is a simplified version of my FragmentUtils.getParent() gist .
Obviously headless Fragments are more useful than just getting stuff out of your BaseActivity. They're also great for encapsulating processes that need lifecycle callbacks (or onActivityResult(), or a child FragmentManager...). The great thing about replacing BaseActivity, though, is that now you can split up the "common" logic onto single-purpose modular components, and decide for each Activity which modules you actually need. If most of your Activities need a lot of the same modules there's no reason you couldn't write a CommonComponentsHelper to pull them in, but now you're not forced to keep all your common dependencies in one base class.
- Goat Simulator
What is the DoD's Position on Backdoors in Security Systems? - Schneier ...
What is the DoD's Position on Backdoors in Security Systems? In May, Admiral James A. Winnefeld, Jr., vice-chairman of the Joint Chiefs of S
Operation Choke Point; or, We Know What's Best For You
Before I can really go into the things I want to talk about, I'll need to offer you, dear readers, a bit of back story. As many folks who've
Flailing from the elbows - What to do if you’re told you can’t vote
I helped antidisenfranchise a friend who was wrongly told that she couldn’t vote today. The people in charge at her polling station and the
Owen Jones: if the Tories get more seats than Labour, get ready for a Ve...
Don't let the right tell you that if Labour come second on seats, their government would be "illegitimate".
To keep a Boeing Dreamliner flying, reboot once every 248 days
The 787 Dreamliner has been plagued with battery woes since its early days, to the point where the Federal Aviation Administration kept it f
Great Moments in Peaceful Protest History — The Nib — Medium
The revolution WILL be given permission
Facebook Bans Disabled Trans Woman of Colour for Not Appearing Feminine ...
If you follow social justice activism, then you may be fortunate enough to already be familiar with Kylie Brooks. Brooks is an activist, who
Just when hope and courage are called for, Labour promises bean-counting...
Labour’s focus on cutting the deficit, means progressive voters will have to look elsewhere for inspiration
Regulation of UK estate agents handed over to Powys county council | Mon...
Closure of Office of Fair Trading leaves Welsh council to protect homebuyers and sellers from rogue agents
Very rich people declare support for party that supports very rich people
Several incredibly rich people have had their minions type a letter in which they have declared their wholehearted support for the party tha
Schneier on Security: The Democratization of Cyberattack
The Democratization of Cyberattack. The thing about infrastructure is that everyone uses it. If it's secure, it's secure for everyone. And i
“I’m scared” – what the Coalition have done to 84% of sick and disabled ...
The latest PIP, ESA and DLA news