Posts

Showing posts with the label look

What Is Wrong About 17259 Lines Of Code

Is the most popular, somehow pointless, and often funny gist of these days. It's about Dart , the JavaScript alternative proposed by Google. Why So Many Lines Of Code The reason a simple "Hello World" contains such amount of code is because: the whole library core is included and not minified/optimized but on real world we should use the proper flag in order to generate files where only necessary parts of the library is included whoever created such core library did not think about optimizing his code What am I saying, is that common techniques as code reusability do not seem to be in place at all: // first 15 lines of Dart core function native_ArrayFactory__new(typeToken, length) { return RTT.setTypeInfo( new Array(length), Array.$lookupRTT(RTT.getTypeInfo(typeToken).typeArgs)); } function native_ListFactory__new(typeToken, length) { return RTT.setTypeInfo( new Array(length), Array.$lookupRTT(RTT.getTypeInfo(typeToken).typeArgs)); } ListFact...