Hacker Newsnew | past | comments | ask | show | jobs | submit | subv3rsion's commentslogin

Mostly for bookmarking.



Maybe a combination of custom URL schemes and iCloud?


Assuming you have the coordinates for the each online user, iterate that collection, create a CLLocation object from the coordinate data, and check that object against CLLocation method distanceFromLocation with a radius value.

https://developer.apple.com/library/ios/documentation/CoreLo...:


Yes. When the user opens the app I will get their current location and add it to a column in the database 'currentLocation' Then I will query the database like so: select * from users where userOnlineStatus = 'online' and currentLocation = ""; <- That is what I would want to do. Its just calculating the distance so that not all random users are showing up.


Also as @mtmail mentions, the better path for this is probably not on the device itself. It would get expensive where N number of users is really high. Perhaps at the service layer, send the device location to the service, and have the service return the nearby users.


At least you made your SQL public.


It's a passion.


An HTMLCollection in the HTML DOM is live; it is automatically updated when the underlying document is changed.


A good example of a "dead collection" is the NodeList returned by `querySelectorAll` http://jsfiddle.net/4jyv99o6/14/


Using jQuery is a good example of comparing the behavior of HTMLCollection to a jQuery object http://jsfiddle.net/m3xzdg71/.



I have worked with Ext JS for quite some time. Started with Ext JS 3.x and more recently Ext JS 5. Mostly large financial applications. Full disclosure that I am a proponent of Backbone, and Angular too. Right fit for the project.

Ext JS 3.x did what we needed it to do and did them well; grids. Lots of grids. Other than that it was kind of difficult to build a single page application without routing since Ext JS 3.x didn't have anything built-in, so we had to make our own. We used Ext JS 3.x less like a framework and more like a utility. There were some pain points around the REST aspects as well. Remote data with Ext JS can be difficult.

We found that after moving to Ext JS 4.x everything was more polished. The ability to theme with SASS, mixins, etc. The MVC pattern was a big plus. Performance was faster, and the integrated builds Sencha introduced with Sencha Command were excellent for automation. We still ran into problems with internationalization, which Ext JS 4.x does support in its own controls, but you have to roll your own for content. There were also some pain points again with remote data. Still much better than previous versions. Ext JS 5.x is building on the MVVM pattern and adding a number of great features. Migrating and upgrading to new versions is actually much more streamlined and automated.

One topic I want to point out that throughout any of the projects I worked on with Ext JS the remote data was always the pain point. Every single, time. On a large scale project usually teams are split up, UI, middleware, etc. We found that you had to design the REST endpoints carefully with the middleware team so that they worked well with what the Ext JS proxy expected. Like pagination for a simple example. You can customize and extend Ext JS of course, it is just we found bending Ext JS to meet another teams interpretation of how a REST endpoint worked was really difficult. Granted that comes down to communication, but even then I still saw problems. There are plenty of others on the Sencha forums.

I like Ext JS, I think Sencha has a mature product. Excellent support and a great community. Like any framework, it has pros and cons. I can't speak to Sencha Touch as I do native iOS, but I am sure it is similar as they share a lot of the same concepts.

Other frameworks like Angular, and Backbone I usually lean towards though as they are the groundwork, a foundation. They allow me or a team to build an application without getting in the way too much or dictating how.


I didn't use that many server side components, but I noticed they followed a pattern I liked, a filter component, a selection and the url. I think that's pretty adequate for the great majority of use cases.

The sass I found was horrible. I remember the grid had an 800 line sass file.. What??! I made my own grid and styled it in like 50 lines or so. Too bad the app I designed it for died, and no one at the company kept the source.


> I think Sencha has a mature product. Excellent support and a great community

You mean the one or two people on the forums that answers 90% of the questions...that community?

Granted its been about 6 months since I looked...but thats how it was last I saw.



Portsmouth, NH (Seacoast area) - Full Time

PixelMEDIA (http://www.pixelmedia.com/)

Full Time Positions: - Front-End Developer http://www.pixelmedia.com/careers/front-end-developer

- Full Stack Web Developer http://www.pixelmedia.com/careers/full-stack-web-developer

- Senior Application Developer http://www.pixelmedia.com/careers/senior-application-develop...

- .NET CMS Developer http://www.pixelmedia.com/careers/net-cms-developer

Also many other openings http://www.pixelmedia.com/careers/


Great to see another Seacoaster! I grew up in Kittery. :) I'm in college now so not very involved in startup scene in seacoast... how is it?


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

Search: