HNHacker News
TopNewBestAskShowJobs

elijahmanor

567 karma · joined October 7, 2010

submissionscomments
elijahmanor··on Natively Format JavaScript Numbers
NOTE: This post is a sibling post to... Natively Format JavaScript Dates and Times https://elijahmanor.com/format-js-dates-and-times
elijahmanor··on Super Productivity – To-do list and time tracker for programmers
Nice, I'm always on the lookout for a new todo app
elijahmanor··on What's the Difference Between Icenium and PhoneGap Build?
Nice, Icenium looks like a good option
elijahmanor··on Show HN: QR Codify, The Most Useful Snippet I've Ever Written
Yeah, I was about to add that too. Sad, but fun to play with until it is gone ;)
elijahmanor··on JQuery implicit loops
You are correct in that jQuery doesn't re-query the DOM for elements on each call, but what it does do is re-loop through it's internal cached collection to apply these CSS rules. The perf hit isn't noticeable when jQuery's selection (internal collection) is small. Imagine a webpage with lots of elements you want to select and then want to interact with... that is what I am trying to bring attention to.
elijahmanor··on JQuery implicit loops
Nice point about the object loop. I would image though that the object would have relatively few properties whereas the number of DOM elements in the jQuery collection could vary dramatically based on the UI (think a long list of list items).
elijahmanor··on TypeScript Modules
I find TypeScript to be an exciting new take on the language. I look forward to using it more this year. Thanks for your post and your PluralSight course
elijahmanor··on The 5 Emotional Stages of a jQuery Upgrade
yeah, and the feelings often are true no matter how many times you've upgraded in the past... especially the fear and possibly the anger, but hopefully happy ;)
elijahmanor··on Hacker News new logo concept
That really rocks! The Hacker News site could really use a make over
elijahmanor··on Mocking jQuery AJAX with AmplifyJS Request
No problem. Aaron Powell is a great guy and a smart dude. Yeah, check out his posts ;)
elijahmanor··on Mocking jQuery AJAX with AmplifyJS Request
Yeah mockjax is a great library as well. I usually recommend people added mockjax to existing projects, but if it is a new project recommend using amplify.request. The amplify.request piece enables you to do some things you can't easily with mockjax. For example, amplify.request allows you to change the caching strategy in the define statements and not where the request is being made. Also if the data from the server changes you can add a decoder to the define statement to map the data to what your code expects. Or if the data going out changes you can add a dataMap to the define statement to so your main application code doesn't have to change. You can also create a custom request type other than jQuery AJAX (think maybe websockets or Dojo's ajax). I sometimes use mockjax also in a jsFiddle or demo code where I don't want to get into amplify.request and just want to use out of the box jQuery.ajax. Thanks for your comment.
elijahmanor··on Pure HTML Templates with Cartographer
I like how clean the template markup is compared to many others I've tried
elijahmanor··on Find the jQuery Bug #8: Suspicious Selectors
Are there other languages other than JavaServer Faces that puts weird characters inside the id attribute of elements?
elijahmanor··on TextMate-like ⌘T & ⇧⌘T in Google Chrome Dev Tools & Other New Features
Ohh yeah, the find symbol feature is very helpful. I primarily use Sublime Text 2 these days (which has a similar feature)
elijahmanor··on TextMate-like ⌘T & ⇧⌘T in Google Chrome Dev Tools & Other New Features
You have a good point. There is a huge TextMate community from the Mac world and for those that aren't as familiar should hopefully be intrigued by the title. I was trying to go for a short title, but it is already quite long as it is. I may consider changing it... thanks for the suggestion
elijahmanor··on TextMate-like ⌘T & ⇧⌘T in Google Chrome Dev Tools & Other New Features
You are in luck! There is an autosave Chrome extension that will save any changes you've made to the JavaScript or CSS from Dev tools to your local file system... http://addyosmani.com/blog/autosave-changes-chrome-dev-tools...
elijahmanor··on Help write a recipe for the jQuery Mobile Cookbook
I'm looking forward to helping out with this. Thanks Mike for kicking off this project!
elijahmanor··on Regular Expressions in CoffeeScript are Awesome
The example was to show how you could do it, not necessarily that it was needed for that case. However, you might be surprised how many developers aren't familiar with that example regex.
elijahmanor··on Regular Expressions in CoffeeScript are Awesome
Yeah, my guess is that CoffeeScript took direction from those languages for this feature.

Nice function to convert annotated string to a regex. I wonder if this is being considered in the next versions of JavaScript? Or better yet... native annotation?

I like the CoffeeScript approach since that logic is done at compile time and not when it is being executed.

elijahmanor··on Regular Expressions in CoffeeScript are Awesome
Nice! I like it ;)
elijahmanor··on Regular Expressions in CoffeeScript are Awesome
Ohh nice, maybe there is where CoffeeScript got inspiration from? The syntax looks very similar.
elijahmanor··on Regular Expressions in CoffeeScript are Awesome
True, but then you have the overhead of string concatenation... although in the large scheme of things that is probably very small, unless you are doing it in a huge loop, but then you'd cache that RegExp anyway.
elijahmanor··on FilterByData jQuery Plugin: Select by HTML5 Data Attr Value
Thanks... yeah I'm also working on a selector filter to do partial matches on html5 data attribute names.

So if you have data-mytype & data-mytyphoon you can match both of them with one selector doing a starts with type syntax.

The idea is similar to the attribute selectors native in jQuery. I should be posting it soon.

elijahmanor··on Evaluating jQuery Plugins for Use in your Projects
Yeah, it is hard sometimes to find a good quality jQuery Plugin. These are some nice tips.

Other things to look for are Unit Test coverage and to make sure it is a up-to-date plugin.

What else do you all look for?