Hacker Newsnew | past | comments | ask | show | jobs | submit | john-foley's commentslogin

Hard to believe that const arr4 = [1, 2, , 4, 5]; is valid.


Seems perfectly logical to me: an array of length 5 with four populated elements and one empty one (3). Though I did double-check my understanding that the length property would report 5 rather than 4 (it does).

What looks out of place to you in that example?

Would it make more sense to you with a very slightly less arbitrary example, perhaps arr = ['Value for 0', 'Value for 1', , 'Value for 3', 'Value for 4']; instead of simple mapping ints to ints?

Because array contents are mutable [even if the array variable itself is declared const] that third index may be populated at a later point in the code.


> What looks out of place to you in that example?

Most languages don't have sparse arrays so it's really weird.

> Would it make more sense to you with a very slightly less arbitrary example, perhaps arr = ['Value for 0', 'Value for 1', , 'Value for 3', 'Value for 4']; instead of simple mapping ints to ints?

You'd usually put an explicit `null` there, especially as HOFs skip "empty" array cells so

    ['Value for 0', 'Value for 1', , 'Value for 3', 'Value for 4'].map(_=>1)
returns

    [1, 1, , 1, 1]
which is rarely expected or desirable.


They could be lying about the 30 mile range. That was my first (cynical) thought.


Or it is under ideal conditions/weight, if you use a smaller example rider but users tend to be heavier (maybe scooter riders don't like walking as much?) then that would lead to reduced mileage, pure speculation of course.


Not related to the article but the show stopper for me trying to install/test this email reader is that it won't work with just a generic IMAP server. I've got to be using Outlook or Office365 or whatever.


IMAP is on the way (I'm using it now) but not quite ready for showtime. If you'd like access to the upcoming beta email dave (at)hiri(dot)com.


That's very unusual, normally IMAP is the easy one and Outlook is horrendous. What does it use under the hood?


You're right. It is unusual. We went with Exchange Web Services first instead of IMAP. Our initial target market were larger companies and we wanted to have deep integration with their Exchange servers (Calendars, Contacts, etc).


This tutorial is 459 pages long. What's it take to get an in-depth understanding of the program?


I wouldn't bet against Toyota's engineers.


Why? They cant even make a sport car anymore, last one was 100% Subaru, and the new one will be BMW.


No.



I'm with you on AppCode. Waaay better editing/completion/navigation than XCode.


What a mess. It would take eons to opt out of each of those.


Exactly.

But it would have taken you even longer--or more likely would have been impossible for you--if we hadn't collected this information and put all it one place.


Kedit. The 'all' command is unbeatable for looking at large log files and quickly moving around a file. Many editors have a similar feature but none do it better or nearly as fast as Kedit.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: