TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: Spar - Single Page Application Rocketship

29 pointsby mhodgsonover 12 years ago

7 comments

whalesaladover 12 years ago
The outerspace background is totally the killing the 'rocketship' paradigm. It kills scrolling performance and uses quite a bit of CPU. Then again a rocketship uses tons and tons of fuel so perhaps this is intentional? =)
评论 #4583259 未加载
brian_cover 12 years ago
I really want to like this, but I can't get behind Sprockets when RequireJS and Browserify exist. Code in comments, obtuse file extensions, `require_tree`, etc. make code modularization an inelegant kludge.
mpobrienover 12 years ago
The stars animation behind that logo seems to be using quite a bit of CPU...
评论 #4584560 未加载
评论 #4583205 未加载
评论 #4583204 未加载
dmixover 12 years ago
I currently use <a href="http://middlemanapp.com/" rel="nofollow">http://middlemanapp.com/</a> to accomplish this. It works really well.
评论 #4581508 未加载
vineetover 12 years ago
Some of the story behind Spar: <a href="http://www.slideshare.net/wyrmwood/ultramodern-frontend-dev-introducing-spar" rel="nofollow">http://www.slideshare.net/wyrmwood/ultramodern-frontend-dev-...</a>
doublerebelover 12 years ago
The concept is great. I use Spine.app for this myself.<p>A nodejs stack makes more sense to me because the app itself is powered by JavaScript, not Ruby, and then I am truly decoupled from other languages. However, I can see why someone coming from Ruby would prefer Spar -- even Spine.app includes Sprockets support for Ruby devs.
评论 #4582108 未加载
ajacksifiedover 12 years ago
This is a ridiculous concept and the opposite of "modern" web development, as it purports to be. Maybe I'm using a different definition of "modern" - it seems here that it means "using new shiny things" rather than "using accumulated knowledge of web development patterns to build the best user experience." But, I digress.<p>There is a massive gap here, and with any framework that is purely client-side. Here's what you get if you serve html from the server:<p>* SEO. You can't crawl a page that loads purely over Javascript. Google has an API to allow access to ajaxed-in pages, but that means modifying you code to fit exactly what each crawler needs. Not going to happen.<p>* Better accessibility. Yes, some screen readers handle Javascript now, but many don't.<p>* Page performance. Time-to-usability on a page served by a server is several orders of magnitude faster than when you load javascript, then load data, then render the page. If the server can serve html, you can start using the page while the scripts load and initialize in the background.<p>If performance isn't a big deal, you want to make awkward hacks to force SEO to work, and you don't care about reaching all possible people? Build a single-page-app and nothing else.<p>I'm not saying don't make a single-page app; I'm saying be smart about it.<p>You've got two steps out of three - building an API and a single-page app. The missing middle step is building a second server side app that reads from that API (RESTful, right?) and bootstraps the page, which is built using language-agnostic templates like Mustache. Then, you load your Backbone/whatever JS on top, which takes over, and points at your api. It's easy to do with something like Node that can even share the same code to build pages.
评论 #4582286 未加载
评论 #4584555 未加载
评论 #4584548 未加载
评论 #4582657 未加载
评论 #4582258 未加载