Better HN
topnewbestaskshowjobs
Log inSign up

thinkloop

2,120 karma · joined Jun 5, 2012 (14y ago) · 1,112 submissions

Software, Engineer, Finance
Submissions

comment 6y ago · link · parent

Do you remember any cool examples of an algorithm bazooka?

comment 6y ago · link · parent

It looks a shade more detailed than google's recipe cards, they link back to the original source for the instructions, I would bet they didn't get permission, and that they count as a fair-use search engine. The law isn't (can't be) perfectly prescriptive here, there's some line that you have to sue about to know if it has been crossed.

comment 6y ago · link · parent

Any recommendations for a js lib that does all the "easy" scraping (microdata, og tags, jsonld, etc)?

comment 6y ago · link · parent

Scraping is LEGAL, all search engines scrape to some degree for example, there is a fair use component, so you can't "scrape" 100% of a site and stick it on your domain, but you can still scrape more than zero. In general it is leaning more acceptable than less.

comment 6y ago · link · parent

For many sites this is an endorsement not to close tags.

comment 6y ago · link · parent

> <meta name=viewport content="width=device-width, initial-scale=1">

> This snippet is copy and pasted a whole lot around the web. Most people don't explain how it actually functions though. "width" sets the initial width to the mobile's physical display width in 100% pixels.

I still don't get this - if the browser is the width of the device, why doesn't the site flow to 100% of the browser?

comment 6y ago · link · parent

A hello world react app with everything you would typically need (redux, router, etc.) starts at 100K+. Svelte is a couple K.

A react app has massive abstraction to render on every frame, Svelte compiles out the framework to render instant straight vanilla js (wins all perf tests).

Pre-compiling allows for beautiful syntax and more flexible app structure, since you aren't limited to the runtime.

SSR and code-splitting are significantly easier and more straightforward.

React is designed for a billion-user site and it shows.

There really is zero cost to pre-compiling except mind-share, and only benefits. Of course an F100 company has many concerns above tech awesomeness, so no judgement on your selection criteria. But I assure you this movement is coming, react/vue/angular will adapt/change and/or people will move to Svelte-like solutions.

You can already see it happening in the article facebook released today [1]:

"By using rems, we can respect user-specified defaults and are able to provide controls for customizing font size without requiring changes to the stylesheet. Designs, however, are usually created using CSS pixel values. Manually converting to rems adds engineering overhead and the potential for bugs, so we have our build tool do this conversion for us."

[1] https://news.ycombinator.com/item?id=23116300

comment 6y ago · link · parent

When the article mentions costs they mean in terms of performance for the user. Faster sites and better battery have been objectively shown to be material. Users don't know to vocalize it, but they bounce from fat slow sites.

comment 6y ago · link · parent

It's about a 4 hr learning curve from react - but I'm not shilling svelte, just showing that there are already superior models. Pre-compiling is really objectively better in every way except popularity, and that will change because of its betterness.

comment 6y ago · link · parent

Wait another year or two and your stakeholders will smarten up - users are noticing. Svelte JS, for example, has everything you listed minus the costs. React is very far from the end of the road.

comment 6y ago · link · parent

I completely agree, especially when we redefine AI to mean roombas and lane assist.

312.

Ask HN: How does outline.com load sites behind paywalls?

1 points · by thinkloop · 6y ago · discuss

comment 6y ago · link · parent

It doesn't answer the title? Why won't they take over? I thought he was going to discuss the exponential difficulty of AI as it approaches human parity.

314.

Show HN: Flipilizer: is it worth buying, renovating and selling that realestate?(flipilizer.com ↗)

2 points · by thinkloop · 6y ago · discuss

comment 6y ago · link · parent

The article says the issue is Corona not Canada?

comment 6y ago · link · parent

I would guess skyscrapers vs. 4 stories. West/East Village in Manhattan are generally considered the most pleasant and they are skyscraper-free.

317.

Show HN: Flipilizer, is it worth buying, renovating and selling that realestate?(flipilizer.com ↗)

1 points · by thinkloop · 6y ago · discuss

comment 6y ago · link · parent

This touches on apps vs. web a little. Fundamentally what's the difference between mobile apps and the web? Is one naturally faster? Smoother? More cross-platform? Better at sensors? Offline mode? Not at all, not fundamentally at least. They are both just code on a machine. Either of them can make their runtimes do whatever they like whenever they like. If the web dedicated all it's resources to performance they would be smooth as native - there is no physical law prohibiting that. And vice versa for cross-platform compatibility. The fundamental difference is philosophical. The web consortium starts with consensus and cross-platform compatibility as a core tenant, while native pumps out proprietary features. They both strive for the same point but approach from opposite ends of the spectrum. As time goes on they might converge on the same point - which philosophy will win?

comment 6y ago · link · parent

Probably similar to using dreamweaver visual editor vs. writing code to make a website.

comment 6y ago · link · parent

Flight is EXACTLY like swimming except in air and without any component of floating. You're welcome.

comment 6y ago · link · parent

The missing piece is "refusing" permission should instead give dummy data: an empty address book, a random location, etc. Better would be profiles: Full, Basic, Public, Anonymous, etc

comment 6y ago · link · parent

And the problem is gigantic, programs in general are completely broken - why does my entire system have to be compromised because I decided to play Catan. We need the iOS/Android model for permissions on desktop.

comment 6y ago · link · parent

Any idea what they are measuring against? For example avg. income or accolades of graduates.

comment 6y ago · link · parent

I should've said "rendering engine" rather than "front-end library", to still be able to use things like redux, css processors, etc. But your comment made me realize that may not actually make sense. I'm still generally hesitant when a single framework takes over the entire chain.

comment 6y ago · link · parent

> The approach of using a compiler instead of a framework makes a lot of sense

I agree, I wish it wasn't an entire framework though and more of a front-end library like react. I've learnt long ago not to invest too much into a single tool.

comment 6y ago · link · parent

Imagine a table of numbers, the xml would be 90% repeated header names and structure. Now multiply that by hundreds of little Ajax requests, it added up.

comment 6y ago · link · parent

It's a common story: monolith or microservices? Linux do one thing well or holistic cohesion? Mega repo or many small ones? There are pros and cons. Nothing in the universe is currently more fragile than a modern js toolchain tho.

comment 6y ago · link · parent

> XML could have remained popular and we would not have had jason

One of the selling points of json is file size, xml started dying when people realized that more than half their bandwidth was going to xml structure rather than actual data

1
101112
38