ENGINEERING 92 upvotes 2012

How I built a Hacker News mobile web app, Part 2

92 pts
Hacker News Signal
2012 · Shared by @cheeaun
How I built a Hacker News mobile web app, Part 2 by @cheeaun

Retrospective Overview & Key Insights

Distilled reflections, business mechanics, and tactical takeaways:

In this technical retrospective (2012), @cheeaun shares practical architectural lessons learned from running, scaling, or migrating production software under lean constraints.

Core Principles for Independent Builders:
1
Defaulting to simpler architectures (such as monolithic frameworks, SQLite, or managed VPS) prevents early engineering bankruptcy.
2
Evaluating true compute and egress costs reveals that high cloud bills can often be slashed by 80%+ through judicious re-platforming.
3
Code you write at 2 AM as a solo engineer must be easy to debug six months later without complex microservice dependencies.
Community Debate Themes:

HN engineers debated the tradeoffs between cloud convenience and raw server economics, database indexing strategies, and resisting premature architectural complexity.

Community Discussions & Critical Reviews

Key perspectives, counter-arguments, and peer founder insights debated on Hacker News (21 total discussions):

PE @peng Peer Contributor

Looks great. I love the amount of effort you spent in CSS to make it look native. A couple feedback notes:

1. You might want to add the following to remove the Mobile Safari UI chrome when users add the app to the Home Screen:

2. On the iPad, the clickable regions are a bit awkward. The external link takes up a good 95% of the menu item. The view comments link is (logically) the button, but it's too small relative to the importance of the discussion on HN.

TF @tferris Peer Contributor
PA @pao Peer Contributor
SH @shutton Peer Contributor

Thanks again for another great post.

I agree entirely about HNmobile being a non-standalone app. I've being working on something similar and after considering deploying it as a standalone webapp or even wrapping it with PhoneGap and submitting it to the app store I've gone with a non-standalone web app. Basically if a substantial part of your 'app' is opening links in mobile safari then keeping the app in a traditional browser environment (with back button etc) gives the best user experience.

SY @sylvinus Peer Contributor

"As long as there's no way for me to simulate a built-in browser in a web app, HNmobile will remain being a non-standalone app."

I'm not sure if you had a look at it yet but there is a PhoneGap/Cordova plugin called ChildBrowser that may do what you want here. I can help you getting setup with a PhoneGap project for your app if you want!

"Since it's hosted on another domain, the API supports CORS so that HNmobile can do cross-domain XMLHttpRequests."

Why don't you use JSONP?

HISTORICAL ERA Web 2.0 Genesis (2007–2013)
COMMUNITY SCORE 92 points
TOTAL DISCUSSIONS 21 comments
TOPICS & TECH STACK: