New Posts  All Forums:

Posts by hajile

If you want to check out a cool language with the best object system ever (meta-object protocol), take a look at dylan (http://opendylan.org/). It was designed by Apple (and a couple other companies) in the 90s, but got dropped when Jobs returned and started dropping divisions. It's got relatively little syntax, but is very powerful. Because dylan uses M-expression syntax (it was originally a lisp, but was converted to infix), it should be easier to build a compiler for...
Why the drop in size? The extra inch doesn't affect portability, but for affect usability. The extra inch of my nexus 10 is very noticeable compared to my 8.9 that I use for testing (especially for the readability of web pages.
That's what I get for not actually running the code (I had something come up just as I was finishing, so I just threw together what I had)The apply error was because of __slice.apply(arguments, 0) instead of __slice.call(arguments, 0). The former requires an array while the latter takes individual arguments.n.floor() works in most of the other languages I work in, but it's supposed to be Math.floor(n) because of poor design choices in JS.I never assured that opts was...
NEVER, NEVER, NEVER use 'new Array()' !!! It has tons of issues and is a javascript anti-pattern. Also avoid new Object(), new String(), new Number(), new Function(), etc. Use literals instead. The only possible exception is 'new Error()'In general, Object.create() is better than 'new' anyway. [[SPOILER]] Here's a version that uses a variant of the revealing module pattern. I haven't tested the code, but it should point you in the correct direction. [[SPOILER]]
My advice
I'm working on a legacy application in knockout that requires a deeply nested (and irregular) object to be bound, but the date coming over the wire is basically a database dump (back end devs with no front end experience). I need the knockout bindings done lazily, so I'm wrapping the nested parts in a computed property that queries a taffydb instance, mapreduces the date, applies the necessary knockout bindings which include a nested computed of their own, and defer...
In Chattanooga, $69.99 will net you a full gigabit connection (and that's 1Gbs both up and down).The cost for EPB to install a last mile fiber network for around a dozen counties was 300M. That comes out to a couple thousand per household. When you consider that their standard internet + television packages run from $100 to $145 (business plans being more expensive), then a household pays for all their installation expenses in 14-20 months (and given their install base, I...
If qwerty was designed for efficiency, then why is J (almost unused) located at the most prominent finger position while E (the most used by far) is off the home row completely? Even in the 1800 (and long before) key frequency was well known. There are huge efficiency increases simply by swapping R/F and E/J. This either indicates that efficiency was not the primary goal of that it was the goal and failed.
The block model of html is fundamentally broken in that it wraps to page width, but not to page height. This is the reason that centering horizontally is doable (via the nasty margin auto hack), but vertical simply doesn't work (display table cell doesn't count). At least part of this problem is solved with flex boxes.As to ECMAScript 6, the worst part is adding "block scoping" via let. Mixing dynamic scoping, functional scoping, and block scoping in the same language is...
Qwerty was arranged to prevent keys from jamming in mechanical typewriters. Speed of the typist wasn't a huge concern (not was movement efficiency).@OPI switched to Colmak a few months ago. I think it's better for typical use than Dvorak because the special characters don't change (not do the common ctrl- v, c, x, z, q, w, or a). In truth, my typing speed is about the same, but I can type for longer without my hands bothering me. I dropped qwerty completely when I took up...
New Posts  All Forums: