Better HN
topnewbestaskshowjobs
Log inSign up

geowa4

10 karma · joined Aug 26, 2011 (15y ago) · 4 submissions

[ my public key: https://keybase.io/geowa4; my proof: https://keybase.io/geowa4/sigs/fIxy2EI3YuCZrba3Dd3GXPYDGTXPuAtdFIiWVBKGDt8 ]
Submissions

comment 9y ago · link · parent

I agree, and I live in the US. I couldn't care less about seeing the original URL and have never run into a broken page.

comment 11y ago · link · parent

I've never liked the comparison of Flux to functional reactive programming. It's really just good ol' object-oriented design. Actions are akin to the Command pattern and the Dispatcher feels like a Mediator. Passing callbacks instead of objects and making a mostly directed graph does not yield FRP.

In my latest project, I used React with rx-react (https://github.com/fdecampredon/rx-react) and RxJS. That combination definitely made for some FRP fun.

comment 11y ago · link · parent

Since Postgres added a JSON type and Docker made running it simple in development, I haven't had a need for anything else. Call me old school, but I prefer starting with a relational database and changing when it's no longer appropriate.

comment 15y ago · link · parent

I agree that it is important that you keep your application small. However, using the application cache like the author suggests means that you will never have to download the specified content, like jQuery, again. Additionally, since you have 5MB of storage, I really don't think the 31KB of jQuery really matters.

I agree that client-side rendering is not optimal, but for different reasons. This isn't 2006 anymore, phones are more powerful now. Unless I absolutely have to, I'm not going to care about your Nokia from back in the Stone Age. My problem with client-side rendering is that it chokes on large data-sets. You also have to pay the penalty to download the dynamic content after you download the static content, but this can be mitigated by only updating the content, rather than using AJAX to load it all to begin with. That also kills the author's use of the plug-in that stores AJAX data locally, but that's a separate issue.

My advice: Use jQuery, jQuery Mobile, and AppCache. When combined, jQuery and jQuery Mobile (including CSS) take up 58KB of space. Oh, and since you're storing it all locally from now on, there's no need to cry about the time (less than 1s on 3g) it takes to download all those fancy JS files.