Better HN
topnewbestaskshowjobs
Log inSign up

marknutter

6,558 karma · joined Oct 7, 2009 (17y ago) · 2,641 submissions

Submissions

comment 12y ago · link · parent

Slower in some respects and faster in others. Suppose I cache the data I get back from the server for page 1 and page 2 of content. Now, if the user switches between page 1 and page 2 they don't needlessly ask the server for the HTML every time like they do when relying on the server to render templates.

And I'm not sure where you're getting that it's "easier to program" single page apps than it is to simply rely on the server to render html on the server. The fact that it's not easy is the very reason we have so many competing front-end frameworks to solve the problem elegantly.

comment 12y ago · link · parent

It doesn't have to be heavy, even for mobile devices. Decrease your dependency on large libraries, minify and cache everything, and only load what they need. Once they load it the first time and cache it then all they ever need is a bit of JSON here and there.

comment 12y ago · link · parent

The lifting ain't that heavy. And besides, wouldn't you want your server spending its precious cycles on things the clients absolutely cannot handle?

comment 12y ago · link · parent

I'm fairly sure the web has not been the web that Tim Berners-Lee envisioned for a long time now.

comment 12y ago · link · parent

This is how you share slides!

comment 12y ago · link · parent

I spent 30 years of my life living in a Townhouse with an HOA, so I understand the restrictions they can apply. I now own a single family home and trust me, freedom is a relative term - I'm drunk with the notion I can do nearly anything I want to do to or around my house within the limit of the law.

comment 12y ago · link · parent

Do you take Econ 101 in England or Econs 101?

comment 12y ago · link · parent

If you buy, you can do whatever the heck you want to with the house or your yard. That's true freedom and to some people - myself included - worth every penny.

comment 12y ago · link · parent

UK 'in denial' over pluralization of the word 'math'.

comment 12y ago · link · parent

Well, I suppose the silver lining is that you're publishing your journey :)

comment 12y ago · link · parent

Well, that's the classic argument for yak shaving. Most if not all of the frameworks you analyzed will be more than adequate for the app you're going to build. What it should come down to is what you're comfortable with. Focus on the product you want to build, not the tools you are using to build the product.

comment 12y ago · link · parent

Goodness, just pick a framework and start building. There's no way you're going to make the right choice so just choose whichever language you're most comfortable coding in and start building. Creating 12 prototypes to narrow down 12 frameworks? Does this strike anyone else as an insane waste of time?

comment 12y ago · link · parent

That's what I meant by "I will often search within the context of content aggregators like hacker news, reddit, stackexchange, and other various forums before I rely on a naked Google search". I add site:reddit.com or site:stackexchange.com to my google search query.

comment 12y ago · link · parent

You used to be able to change your search settings to ban certain domains. They removed this feature and instead offloaded that functionality to a chrome extension called Personal Blocklist. It's not an ideal solution:

* It only works on chrome, obviously, because it's a chrome extension. That means you will continue to get crappy results on all your other browsers and devices.

* It modifies the links after you load the page so you see them disappear which can be disorienting. I really don't want those search results even making it into the DOM.

* As of now I'm not able to even edit my list (the options menu item is grayed out) and I have no idea why. The quality of the extension is poor at best.

* It has zero intelligence. What would be ideal is that I could subscribe to a blocklist of well known content farms and allow crowdsourcing to maintain and add to that list.

The clear message from Google is that it doesn't really want to support or encourage wholesale blocking of any domains. Google would prefer to be the entity that makes that decision for you, and since these content farms make Google a lot of money don't hold your breath that they're going to start cracking down in a serious way anytime soon.

comment 12y ago · link · parent

Google search is an enigma to me. I oscillate from being blown away by its intelligence and accuracy to being gobsmacked by its stupidity and inefficiency. For all tech related related search terms I usually have no issues with Google, but that is in large part thanks to stackoverflow. As soon as I venture out of anything having to do with tech I find myself lost in a wilderness of content farms a million miles wide and only an inch deep. I'm pretty internet savvy so I can eventually navigate my way to half-way decent answers, but I can only imagine how frustratingly useless google must seem to people who can't recognize the tell-tale signs of junk content.

I find the most effective way to search is to already know where the most knowledgeable people gather around a specific topic and use google to search those sites specifically. I will often search within the context of content aggregators like hacker news, reddit, stackexchange, and other various forums before I rely on a naked Google search but it's a kludge at best and not something less tech savvy people are going to know how to do. And if I'm completely new to a topic it's often a chore just to even find the place where the experts actually hang out.

I think the approach that Stackexchange is taking is going to be far more valuable in terms of search over the long run than Google. Time should be spent on figuring out how to reward domain knowledge experts and making sure they stay untainted and motivated to share their knowledge rather than tweaking a search algorithm in an endless cat-and-mouse game played with content farms.

comment 12y ago · link · parent

"Whoops! Right now this demo doesn't handle resizing or browsers less than 1000px wide. Reload this page or get on a laptop!"

comment 12y ago · link · parent

This solves a major headache for me. I have a production app built using Angular and Firebase and I was up until this point using Amazon S3 hosting to host my static assets. It was a beautiful thing - I don't have to maintain any server side code. But it was annoying having to deal with Amazon and their stale, obtuse documentation. I will definitely be moving my static files over to Firebase. It's one less service I have to worry about.

comment 12y ago · link · parent

I've used both Parse and Firebase extensively and I love them both. Parse is far more mature. Not only has it been around for longer but it's owned by Facebook so it has the resources to continue adding amazing stuff, like Cloud Code. Cloud Code is a huge differentiator in my opinion because it takes care of the last mile for BAAS' (back-end(s) as a service) - custom server-side data validation and manipulation.

However, Parse's SDK follows a very Backbone-like syntax with setters and getters which I'm not all that thrilled with (as an Angular developer) and has no real-time functionality to speak of (outside of push notifications). That's where Firebase shines. Firebase is newer but is maturing very quickly. Their system is solid and pretty much "solves" realtime for all intents and purposes. They don't have a Cloud Code equivalent and search is pretty much non-existent at this point but those are solvable problems I'm sure they will tackle in the not-so-distant future.

What it comes down to is what type of app you're building. And by the way, there's no reason you can combine them to get the best of both worlds :)

comment 12y ago · link · parent

That raises the question - why bother taking those people's money in the first place?

comment 12y ago · link · parent

Well, the proof is in the pudding. If what you're saying is true Basecamp's ratings would be a lot lower, wouldn't they?

comment 12y ago · link · parent

Except that you can get a native feel, as Basecamp has clearly demonstrated, if you utilize native SDK's where needed. Did you even read the article or try out their apps?

comment 12y ago · link · parent

Cool, so that covers iOS and Android (with its own long tail I'm sure). You still have Web and Windows mobile to worry about assuming that platform continues to gain popularity.

comment 12y ago · link · parent

> Native development appears to be linear and straightforward because there is one language and one API - "one thing" to reason about.

No. There are X languages and X API's to reason about when doing native development, X being the device OS's you want to target. If you're only targeting iOS and nothing else, then I would agree with you. This is a point that's also glossed over by native app proponents.

comment 12y ago · link · parent

> The user experience problem is a real one.

Not in my experience. Without fail the only people I've ever heard complain about UX of hybrid apps are other developers who know which signs to look for. Most people won't notice or won't care to notice so long as the app does what it's supposed to do.

After all, I've been hearing developers complain about Craiglist's poor UX for years and it hasn't seemed to affect them.

comment 12y ago · link · parent

I'm glad to see an organization as prominent as 37 Signals coming out in favor of the hybrid mobile development approach. Everything DHH mentions in this post is spot on as far as my experiences developing hybrid apps goes. I was on a project that was resource constrained but needed good mobile presence as well called kona.com that's in the same problem space as Basecamp. We tried both the full native and full HTML5 routes but neither option worked for us. We didn't have enough developers for our native apps to keep up with the web app and the HTML5 app (powered by Sencha) simply didn't perform well enough on phones back in 2012.

After scrapping both those attempts I suggested we go with a hybrid app. We would lean heavily on javascript (angular.js in our case) and rely on native for access to native APIs and for UI elements that required better performance like the Facebook style drawer, slide up animations, the top and bottom nav bars, etc. It was the right mix between developer efficiency and app performance and allowed us to target not only Android and iOS with 90% of the same codebase, but also a native desktop app as well using Chrome packaged apps. We had written the main web app in JavascriptMVC but when I left the project we were just starting to port over the angular app to the main site, so eventually the same angular app would be powering the website, desktop app, iOS app, and Android app.

It only took one developer (myself) to manage the native code on Android and iOS and the logic was very similar in both places so it ended up being pretty simple to maintain. And as DHH mentions, setting up communication between your native code and your web code is easier than you'd think, although I am interested in hearing more about how they did it.

At any rate, DHH is totally right about the fact that most apps would be suited just fine by hybrid mobile apps as most apps are data heavy like Basecamp. Don't tell that to native developers though because you will catch an earful about poor user experiences and maintenance hell, which in my experience is a bunch of FUD. The proof is in the numbers, and the Basecamp apps are well received (as were ours). The FUD around mobile apps and user experience reminds me of this post that showed up on HN last week: https://medium.com/design-founders/f59c964513ef, which examines the failure of the assumption that meticulous, cutting edge design will guarantee success. In my experience, if you can get close to native but you solve the user's actual problems (which is very rarely related to a lack of unique swipe gestures and translucent backgrounds) you are usually good to go. Why continue to deal with the pain and cost of having dedicated teams working on the exact same app for Android, iOS, Windows Phone, the Web, native desktop apps and god knows what else?

comment 12y ago · link · parent

Somebody needs to make an Oculus Rift demo of the Euthanasia Coaster.

comment 12y ago · link · parent

function renderApplication(tweets) { return(document.dom.ul( { class: 'tweets' }, tweets .sort(compareTweetsByScore) .slice(0, 5) .map(function(tweet) { return(document.dom.li({ class: 'tweet' }, tweet.text); }) )); }

What I like best about Ember and Angular.js is that you don't have any hint of the DOM in your controllers. I don't like how the above example mixes concerns.

comment 12y ago · link · parent

I found something very interesting in Minneapolis (where I live); it's a path that you wouldn't be able to find using google maps or probably even any bike-specific route finder.

Here's the area in google maps:

https://www.google.com/maps/@44.9837242,-93.3338652,1914a,35...

and here's the same location in the Strava heatmap:

http://labs.strava.com/heatmap/#16/-93.33287/44.98897/gray/b...

I'll have to check it out in person but I'm guessing it's a mountain bike trail or something, which is what this heatmap would be great for helping people find.

comment 12y ago · link · parent

It sounds a bit like you don't like learning new interfaces. That's not the same thing as dealing with bad design.

comment 12y ago · link · parent

It always has.
1
313233
89