22 karma · joined April 27, 2012
https://github.com/generateui/VerkiezingsProgrammaPiratenPar...
> You always need a class
Nope. That's the whole point which I am trying to communicate: you do not need a reference to a class to get the instance of the interface from, as you confirm later on:
> As to the calling code needing to know about that one concrete implementation:
My personal feeling of liberation comes from the fact that the code is simpler and more clear. The non-coupling is nice, but can be achieved with dependency injection too: the point is the transfer of characters into a mental model which is more efficient with the named constructors/factory constructors.
This completely depends on your implementation. It's possible to implement it as instance method, or static method.
> Uh no it does not, it just needs a class.
Whether it be a static factory method or an instance method, fact is you need a reference to an implementation (class). In dart, you can do
List someListInstance = new List();
where List is an interface. There is none class needed in your consuming code, none. In C# or Java, this is impossible: You need _some_ class (whether it be a static method on it, or an instance method) to get a new instance of the interface.Named constructors felt very liberating when working with Dart.
new List.from([instance1, instance1]);
delivers a lot of clarity, while offering the promised decoupling by the GoF:> Define an interface for creating an object, but let the classes which implement the interface decide which class to instantiate. The Factory method lets a class defer instantiation to subclasses.
A classical, say Java or C# way will still need coupling to such a class. In dart, there is real decoupling going on.
It's pretty hopefull the law passed senate unanimously.
We already have what you want, it's called a scrollbar ;).
Take an example as implementing a 3D renderer. A computer scientist might argue that underlaying 3D calculations should be correct. A software engineer might optimize for speed, and simply allow incorrect/imprecise calculations, as long as the rendered result does not look very different.
A solution might be to change the scrollbar hinting from absolute to relative. A simple ∞ added below the "scroll down button" on the scrollbar might just fix this.
Please add a warning that when a serif font < 24px is used for the main text, readability is degraded on most screens (new iPad being a notable exception).
Sincerely,
The internet.
This of course is not yet the case, but soon it will be.
> But then governments will replace VPNs
>> Then governments will be replaced
This is already becoming the true in Germany. ~10% vote Pirate Party in Berlin, more states have similar voting numbers. PPDE is now the third largest party in Germany by member count.
I see a lot of potential in a "drop": a personal cloud server installed at home, with the same user friendliness as e.g. google docs. Public data/services in the cloud, personal stuff at home. There still is enough opportunity to integrate mmoc? (massively multiple online collaboration?) into those apps. An example of this might be diaspora.
Many drops make a cloud, too.
> I removed comments from JSON because I saw people were using them to hold parsing directives, a practice which would have destroyed interoperability.
I do not read something on the lines of "you can also use a comment as a property". I wonder how you read that in the first sentence?