generateui | 14 years ago | on: The Art Of The iOS Icon
generateui's comments
generateui | 14 years ago | on: Responsive Typography
generateui | 14 years ago | on: Github: United States Code
https://github.com/generateui/VerkiezingsProgrammaPiratenPar...
generateui | 14 years ago | on: A core Python committer's (very shallow) thoughts on Dart
> 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.
generateui | 14 years ago | on: A core Python committer's (very shallow) thoughts on Dart
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.
generateui | 14 years ago | on: A core Python committer's (very shallow) thoughts on Dart
A classical, say Java or C# way will still need coupling to such a class. In dart, there is real decoupling going on.
generateui | 14 years ago | on: On Diaspora's Social Network, You Own Your Data
generateui | 14 years ago | on: Netherlands first country in Europe with net neutrality
It's pretty hopefull the law passed senate unanimously.
generateui | 14 years ago | on: An Effort To Bury A Throwaway Culture One Repair At A Time
generateui | 14 years ago | on: CodeNow.Com Lets You Build And Test Code In Real Time, In Your Browser
generateui | 14 years ago | on: Jury in Oracle v. Google has reached a verdict on all questions but one
generateui | 14 years ago | on: FBI pushing for surveillance backdoors on websites
generateui | 14 years ago | on: LinkedIn IPhone App's Infinite, Swipe-Able View Implementation
We already have what you want, it's called a scrollbar ;).
generateui | 14 years ago | on: Computer Science is Not Math
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.
generateui | 14 years ago | on: LinkedIn IPhone App's Infinite, Swipe-Able View Implementation
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.
generateui | 14 years ago | on: Google Updates Google Docs With 450 New Fonts, 60 New Templates And More
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.
generateui | 14 years ago | on: Firefox Australis: One browser interface to rule them all
generateui | 14 years ago | on: Firefox Australis: One browser interface to rule them all
generateui | 14 years ago | on: Firefox Australis: One browser interface to rule them all
generateui | 14 years ago | on: Firefox Australis: One browser interface to rule them all