Better HN
topnewbestaskshowjobs
Log inSign up

nathan_long

4,485 karma · joined Jun 1, 2012 (14y ago) · 1,146 submissions

Submissions

comment 7y ago · link · parent

> you expect us web developers to cater to every different device out there? i am sorry, but the whole promise of the web is that i don't have to do that.

A basic HTML document with CSS styling will adapt beautifully to any screen and requires very little CPU or memory. Write once, view on every device with a browser. Publishing content is also part of the original vision of the web, and luckily HTML forms are also accessible to any device.

Yes, you want to write apps, and perhaps that requires more from a device, and maybe you don't want to cater to poor Indians. But lots of sites are sending down 3 megabytes of JS to display an article and run 48 ad trackers. That's a crappy experience even on my smartphone and decent WiFi.

I'd also wager that there are many, many "apps" you could write which could be 100% server-side rendering and simple markup, and which would be super useful in the developing world. Think Craiglist and Ebay - the kind of applications that help people share their location and agree on prices of goods.

The "use anywhere" promise of the web is easier to keep if you lean on the web's fundamentals instead of writing a browser to run in the browser and shipping it to every user.

comment 7y ago · link · parent

Sounds right, but she wasn't purely mercenary like her friend Charlotte, who admitted to marrying Mr. Collins for his money, which filled Elizabeth with horror.

comment 7y ago · link · parent

Depends highly on the employee's value to the company.

Also, if the employee has very marketable skills, they may be happy to leave a job whose hourly rate has suddenly dropped.

34.

Phoenix Phrenzy: Build Demos Using Phoenix LiveView(phoenixphrenzy.com ↗)

5 points · by nathan_long · 7y ago · discuss

comment 7y ago · link · parent

> Unfortunately for us front end engineers we can't rely on the user having any internet connection let alone a good one.

Surely some web apps need to work offline. But most web pages do not, and I don't want most sites I visit to store a bunch of data on my machine on the off chance that I'll use them offline.

"Offline first" seems really misguided to me as a rallying cry for all things on the web.

comment 7y ago · link · parent

> I agree that JSON could lead to less data being transferred over the wire

I haven't benchmarked the difference, but I bet HTTP compression removes most of the difference

> but that assumes your client already has cached the megabytes of JavaScript needed for you SPA

A cache that will need to be busted every time you deploy new code. You do deploy often, right?

comment 7y ago · link · parent

> It seems to be a fast and responsive site when it works, though.

LOL.

Y'all, I love speed as much as anyone, but your development priorities should be 1) it works and 2) it's fast.

Using HTML links where 1) is never in doubt and all focus can be placed on 2) seems like good engineering to me.

Reinventing browser navigation is like building a rocket. You should be really, really sure that you need to do it before you try.

comment 7y ago · link · parent

I probably wouldn't migrate a project, but I switched my default db to PostgreSQL after seeing the many ways MySQL can silently screw up data. Truncating strings, truncating numbers, allowing NULLs in a NOT NULL, etc. Much (all?) of this can be fixed with settings these days: https://dev.mysql.com/doc/refman/5.7/en/constraint-invalid-d...

PostgreSQL has a hard bias toward correctness. If you give it invalid data, it will blow up loudly every time.

PostgreSQL also has a boatload of useful features. Need full-text search? It has it, and it's good enough for lots of stuff: http://rachbelaid.com/postgres-full-text-search-is-good-enou...

Need to search for locations with coordinates < N kilometers from a coastline? PostGIS does it.

Need to store and query JSON? Partition tables by a date range? Index only the rows matching a WHERE condition? Use a CHECK constraint? Prevent race conditions from creating reservation rows with overlapping datetime ranges (exclusion constraints)? Run a query periodically and cache the results as a queryable table (materialized views)? The list goes on and on.

More correct data + fewer reasons to add another tool to the stack - especially when that would mean having to keep data in sync - is pretty compelling to me.

comment 7y ago · link · parent

> My search for a bookcase starts on ikea.com, where I navigate to the bookcase section, in the hope to get an overview of the different series. I find instead a listing of all 257 bookcase products, including accesories, such as hinges and extra shelves.

This is a very common frustration I have. Eg, go search Amazon for "bike" and sort by price "low to high". None of the top hits are bicycles; they are all accessories.

ML seems to be about guessing what the user wants based on lots of data analysis. But I think there are lots of cases where letting the user tell you want they want, by providing a hierarchical menu or explicit filters, would get much better results.

One "low tech" thing I wish someone would build: an online grocery store with every product categorized by food restrictions (gluten-free, peanut-free, sugar-free, low-sodium, etc, as well as kosher, halal, vegan, etc). Check the boxes you care about in your profile and you'll only see things that match. This would be AMAZING for folks with food allergies. The implementation would be 99.9% up-front research and data entry; the actual filtering would be as simple as WHERE clauses. But I don't know of a site that does this.

comment 7y ago · link · parent

How many people can you have in a single meeting?

41.

UX Testing for Code(medium.com ↗)

1 points · by nathan_long · 7y ago · discuss

comment 7y ago · link · parent

> A great example is when Henry Moore saw Michelangelo and started to cry and confessed the only reason he makes such statues is because he knows "he will never be able to create anything as beautiful as that"

Interesting. Citation?

I personally love this epic ownage: Normal Rockwell painted a Jackson Pollack inside of his own realistic painting. https://triviahappy.com/articles/norman-rockwell-made-fun-of...

comment 7y ago · link · parent

CDs that you burned chemically with a laser at home were much less durable than those physically pressed in a factory from a glass master.

comment 7y ago · link · parent

This assumes an unbroken chain of people devoting time and resources to migrating the data. Any gap would mean that data is lost or requires much more expense to recover.

Find a 3.5" floppy disk from 1995 with WordPerfect files on it and see how much effort it takes you to get the documents back. Now imagine 100 years have passed.

comment 7y ago · link · parent

Fred Hebert was on the ElixirTalk podcast and mentioned speed of deploys as one advantage - no need to rebuild a bunch of VMs.

> From experience, we could deploy to a 70-node cluster in something like under 5 seconds by doing it in parallel. If you want to rotate your infrastructure... your deploy could be taking from 5 minutes to an hour depending on how fast the connection draining can be done.

https://soundcloud.com/elixirtalk/episode-145-feat-fred-hebe...

comment 7y ago · link · parent

I share your concern about how Youtube influences society, and it's likely that content I consider good will be taken down by Youtube in the future. I don't like that.

But it still sounds to me like you're demanding that, after removing illegal videos, a site should either be 100% curated or 0% curated.

https://www.tubefilter.com/2019/05/07/number-hours-video-upl... says:

> The platform’s users upload more than 500 hours of fresh video per minute, YouTube revealed at recent press events.

100% curation is unrealistic in that case. They could crowd source the work, but it's hard to see how they can be legally accountable for what users mark as OK.

But 0% curation would mean that they're forced to host videos they consider repugnant. Imagine starting a video sharing platform, having your business grow, and one day being told "well now you're big enough that you no longer get any say in what your site hosts."

comment 7y ago · link · parent

> If a private developer were to take over most residential areas in a section of town

There is a finite amount of land in a town, so a monopoly can exclude people. This is not true of video hosting - there can be as many video hosts as people care to build, and they are all equally usable from anywhere on the internet.

> Since YouTube has a monopoly on video content on the internet

They don't.

Now, if ISPs started censoring particular political viewpoints, that would be different IMO. It's much harder to get a different ISP (at least where I live) than it is to browse to a different web site.

comment 7y ago · link · parent

> If they don't want the government forcing them to host content and uphold free speech then they have to take responsibility for the content in the eyes of the law. Currently they're having it both ways, free to ban ideas they don't like and control the content they deliver without being responsible for libel/slander.

It sounds like you're saying that they either have to host absolutely any video anyone uploads, or else stand behind every video as if they made it themselves.

I don't see how a video platform could exist on those terms.

comment 7y ago · link · parent

Somewhat tangential, but unless you have a goal of using a product as much as possible, any algo that optimizes engagement is not your friend. It's like a waiter who always wants you to order more food.

comment 7y ago · link · parent

> If bees can do this, how smart are we really?

Well, bees don't invent controlled experiments to test our symbolic reasoning, think through the results, form philosophical questions using arbitrarily complex language structures, and post them on the own worldwide information-sharing networks they invented. So I'd say there's a pretty big gap.

> Compared to generally intelligent AI or extraterrestrials, the difference between our intelligence and a bees might not be much.

Assuming that intelligence can be quantified, and that extremely higher values are physically possible, yes, the orders-of-magnitude difference between bees and humans might theoretically be dwarfed by some other comparison. Just like the size difference between a grain of sand and a mountain is not significant compared with the difference between the mountain and the Milky Way. But it's still a massive (get it?) difference.

comment 7y ago · link · parent

I think the "abstract" part here was the concept of "three-ness" or "two-ness" - that the bees could see something that represents 3 and correctly choose the path with three shapes, regardless of what the shapes were.

comment 7y ago · link · parent

Established car makers have established themselves so well by not paying for the health and environmental damage their products cause. We have all subsidized them by paying to deal with their mess (in cash and in consequences).

To frame this as if GM has paid own its way and made its fortune without help, and now is benevolently helping Tesla, is misleading.

comment 7y ago · link · parent

A dictatorship is just more extreme than a democracy because the whole society moves in sync by necessity - they do or die. Whether it's a smart industrial move or a dumb one, a benevolent program or a genocidal one, if the leaders call for it, it gets done.

No single decision should be taken as proof that dictatorship is good.

comment 7y ago · link · parent

Competing restaurants and whoever is in charge of the park cleanup budget would disagree with you quite strongly

comment 7y ago · link · parent

Yes. If an email is bigger than 102KB (excluding attachments), there's a 99% that I don't want it.

comment 7y ago · link · parent

LOL

comment 7y ago · link · parent

Exactly. Evangelical Christians have also denounced this kind of con many times.

Eg via a documentary: https://www.thegospelcoalition.org/article/american-gospel-b...

A sermon clip with more than a million views: https://www.youtube.com/watch?v=PTc_FoELt8s

A rap which drew a lot of attention when published: https://www.youtube.com/watch?v=pl4WevY-GPU

An explainer article: https://www.thegospelcoalition.org/article/what-you-should-k...

A church journal issue dedicated to the subject: https://www.9marks.org/journal/prosperity-gospel/

An article by the nephew of one of these con artists, explaining why he left the racket: https://www.christianitytoday.com/ct/2017/october/benny-hinn...

And the list goes on and on. There are many ongoing efforts to combat this kind of false teaching.

Jesus' own teaching and that of his first followers were quite clear on the point that greed is sinful and dangerous, and that love and generosity to the needy, not wealth and success, should characterize Christians.

[Luk 12:15, 33-34 ESV] 15 And he said to them, "Take care, and be on your guard against all covetousness, for one's life does not consist in the abundance of his possessions." ... 33 Sell your possessions, and give to the needy. Provide yourselves with moneybags that do not grow old, with a treasure in the heavens that does not fail, where no thief approaches and no moth destroys. 34 For where your treasure is, there will your heart be also.

[1Ti 6:9-10 ESV] But those who desire to be rich fall into temptation, into a snare, into many senseless and harmful desires that plunge people into ruin and destruction. For the love of money is a root of all kinds of evils. It is through this craving that some have wandered away from the faith and pierced themselves with many pangs.

[Eph 4:28 ESV] 28 Let the thief no longer steal, but rather let him labor, doing honest work with his own hands, so that he may have something to share with anyone in need.

[Phl 2:3-4 ESV] 3 Do nothing from selfish ambition or conceit, but in humility count others more significant than yourselves. 4 Let each of you look not only to his own interests, but also to the interests of others.

[Jas 1:27 ESV] 27 Religion that is pure and undefiled before God, the Father, is this: to visit orphans and widows in their affliction, and to keep oneself unstained from the world.

[1Jo 3:16-18 ESV] 16 By this we know love, that he laid down his life for us, and we ought to lay down our lives for the brothers. 17 But if anyone has the world's goods and sees his brother in need, yet closes his heart against him, how does God's love abide in him? 18 Little children, let us not love in word or talk but in deed and in truth.

Prosperity teaching sells a parody of Christianity. It preys on those whose faith and knowledge of scripture is too shallow to tell the difference.

comment 7y ago · link · parent

If a town allowed a restaurant to dump their trash in a public park for free, would you consider that a subsidy?

comment 7y ago · link · parent

depesz has a nice series of posts about new features: https://www.depesz.com/tag/pg12/

"Generated columns" and "foreign keys to partitioned tables" are two that caught my eye.

comment 7y ago · link · parent

The company making these self-driving trucks - enormously complex products which could kill people if they go wrong - is called "TuSimple"?

Really?

12345
39