News for hackers. Stuff that matters.

korynunn

There's heaps I want to add to it, including view distance, landmarks in views, etc.

It's Australia only for now, which has no crime :P

This is something I made for myself, I've been on the lookout for a house or land to build on in Brisbane with specific orientation and grade (land angle both parallel and perpendicular to the road)

It was useful to me so I figured I'd see if it was useful to others.

Pretty fun little project to build.

Re:Show HN: How should I buy my next phone on Tuesday November 13, 2018 @10:39AM (#18441739)
Made another little calculator, this time for deciding the best way to pay for a new phone.

Here's what I got to for my own usage: https://howshouldyoupayforyournextphone.now.sh/#eyJlcnJvcnMi...

Re:Why Angular Made Me Quit Web Dev on Monday November 05, 2018 @08:39AM (#18382205)
I forgot to add: Horrible to test.
Re:Why Angular Made Me Quit Web Dev on Monday November 05, 2018 @08:37AM (#18382190)
Have used it for a bit over a year now. Hate it. Horrible for productivity, horrible to debug, horrible performance, horrible bundle sizes.
Re:Why Angular Made Me Quit Web Dev on Monday November 05, 2018 @08:35AM (#18382178)
No this is my module that I've used to build enterprise apps with.

I've used both for years, feel free to critique fastn when you've tried it for a week.

Re:Why Angular Made Me Quit Web Dev on Monday November 05, 2018 @07:55AM (#18381904)
I associate with this so much it hurts. I have wasted thousands of my employers dollars just waiting for this pile of shit to compile or run.

If you like light, fast, opinion free UI tools, maybe give my module fastn a go: https://GitHub.com/korynunn/fastn

Re:Show HN: How much is my life costing now on Sunday October 28, 2018 @06:16PM (#18323570)
This is a great bit of insight that most don't get. I'll be making a total cost of ownership site soon to show how all of these details affect true cost of a car.
Re:Show HN: How much is my life costing now on Sunday October 28, 2018 @06:04PM (#18323513)
This site isn't, but everything it's built on is MIT, have a look, there's not a lot to or.
Re:Show HN: How much is my life costing now on Sunday October 28, 2018 @05:57PM (#18323477)
Re:Show HN: How much is my life costing now on Sunday October 28, 2018 @05:33PM (#18323356)
Source is open by the way: howmuchismylifecosting.now.sh/_src
Re:Show HN: How much is my life costing now on Sunday October 28, 2018 @05:29PM (#18323332)
You already know what your life costs (per year). What your life is costing in real time is the interesting bit.

PS: I'm the most Anglo-Saxon Aussie you've seen, I just wanted to make use of the 'now.sh' domain.

Re:Show HN: How much is my life costing now on Sunday October 28, 2018 @05:25PM (#18323304)
No, the day wasn't over when I posted that.
Re:Show HN: How much is my life costing now on Sunday October 28, 2018 @03:10AM (#18319485)
My car has cost me $29 today sitting in the garage :|
Re:A Simple JavaScript change to reduce your build size on Wednesday August 31, 2016 @01:44AM (#12396261)
Another effective change:

npm un --save lodash

Re:RE:DOM – Tiny DOM library on Sunday August 28, 2016 @10:39PM (#12379638)
Re:RE:DOM – Tiny DOM library on Sunday August 28, 2016 @10:37PM (#12379630)
Using crel as a comparison:

var input = crel('input', {type:'email'});

vs:

var wrapper = document.createElement('div'); wrapper.innerHTML = '<input type="email">'; var input = wrapper.children[0];

Modules used:

righto crel cpjax sea-lion dion keysdown badwords

- Most screen readers handle DOM updates just fine.

- I'm defining a web-app as something that feels like an application, not a website. If you are making a news site, fastn probably isn't the way to render everything. You can however just use fastn enhanced functionality, since it isn't a framework, just a tool to make chunks of UI.

- on average, 99% of users have JavaScript installed. As above, if your target audience is `literally everyone`, sure, fastn probably isn't the way to go. Having been a library developer for nearly a decade now, I am intimately aware that different browsers have differences. Fastn should work the same on all modern browsers, and if you find any bugs, let me know and I'll fix them :).

- Delays from loading additional files will be negligible. Not sure how to back that statement up tho ¯\_(ツ)_/¯

- As mentioned, rendering a fastn app on the client is very fast, faster than serving an equivalent page from ASP.net for example, even in a 1:1 race. The issue with server-side templating is that there is one server rendering N requests, whereas with client-side rendering, the N clients are doing the heavy (actually pretty light) lifting.

- I spend an enormous chunk of my time doing performance analysis and improvements. Have a look at recent commits to fastn or enti (the databinding module) and you will see quite a few commits with "performance" in them. We have non-trivial applications using fastn that perform at extremely acceptable speed (hundreds of fields, with live validation, across multiple tabs, renders in around 150ms)

- My work PC is only a few times faster than my Nexus 5. Btw, the homepage renders in 1.2s(~500ms JS) on my phone.

I hope you do give it a go. Fastn isn't a tool for every job, that's the point, it's just a tool. It's up to the developer to decide if it is appropriate.

It has been developed mostly with cordova apps in mind (and yes, they have been made with it, and are quite snappy), where abandoning HTML is actually really nice. It makes writing apps more like how you would do it native, in code, not a markup language.

Also, the next issue people usually have is SEO. Here is the google result for the fastn homepage, which has absolutely no HTML in the body: http://imgur.com/tZBSau8
Accessibility: Screen readers read DOM, not HTML. As long as you produce good DOM, screen readers will work fine.

Privacy (JS off): You can't make a complex web-app without JavaScript, and statistically speaking, everyone has it on always.

Performance: This can be measured in may ways.

- Server time: fastn is just static files, so server time is negligible.

- Transport time: fastn apps are often smaller than the DOM they produce, so server-side rendering the content first would only slow down load times. The trivial example app is 31KB, a large AWS-like application at work is about 40KB.

- Initialisation time: fastn is very fast. On my old slow work PC, the homepage loads 165ms after page ready, and its about a 700ms wait from hitting the refresh button, to everything being shown.

But then, judging by your "paper to cardboard" comment, you aren't here to discuss pros 'n cons :)

Older »