Readit News logoReadit News
adrianratnapala commented on What's Coming in Python 3.8   lwn.net/SubscriberLink/79... · Posted by u/superwayne
ben509 · 6 years ago
One solution would be to borrow from Perl. You make a do block that executes once unless continued, and allow conditions on break and continue:

    do:
        thing()
        thing()
        continue if condition
And you can now express "skip ahead" with a `break if X` as well.

adrianratnapala · 6 years ago
Yes, although you don't have to be so perlish as to do the if in that order

    do:
        thing()
        thing()
        if condition:
            continue

adrianratnapala commented on To Save a Neighborhood, Ban a Dollar Store?   citylab.com/equity/2019/0... · Posted by u/pseudolus
Ancalagon · 6 years ago
At least in the US I think it’s an economy-of-scale thing. People get used to products at specific prices, because they’re used to shopping at the big box stores. Then when an independent or mom-and-pop store opens, their prices are a bit higher because they can’t survive on such small margins. Then there’s sticker shock by the customer, the independent store gets bought out or closes due to lack of money, and the cycle repeats or another big box retailer moves in.
adrianratnapala · 6 years ago
It is not always economically rational though. The US has a history of using eminent domain to grab neighbourhoods full of small businesses so that they can be turned over to a big development projects of nominally higher value. Then the big developer pulls out or goes bankrupt, and the result is a ruined, rat-infested empty lot.

Those cases involving eminent domain and rats are the most dramatic, but it works at a more pedestrian level too. Say a government wants to dispose of some disused rail-yard or something. A developer who says "I'm going build some big shiny shops and attractions here" has better optics than a developer who says "I'm going to lay down some infrastructure and parcel the land up to whoever wants to buy it, nature will decide what the land is used for".

The latter is actually quite likely to produce the higher economic value land use, but there is no good political narrative. And in a world of strict zoning rules, there might not even be a legal framework for it.

adrianratnapala commented on Why did we wait so long for the bicycle?   rootsofprogress.org/why-d... · Posted by u/exolymph
iguy · 6 years ago
Right, that's how you could plausibly have made one or two, as a palace amusement, or a circus act. It's a little surprising this didn't happen (as far as I know).

But efficient enough to go some distance, reliable enough not to need a full-time repair-man, and cheap enough to be sold to people who didn't already own a horse & carriage? That needed lots more technology.

adrianratnapala · 6 years ago
> Right, that's how you could plausibly have made one or two, as a palace amusement, or a circus act. It's a little surprising this didn't happen (as far as I know).

You also need people to ride it. It wouldn't fly as a palace amusement because the king (and more importantly the little prince) would keep falling off. They won't have an incentive to value the skill until there is a horde of middle-class, 19th century, hipsters showing him up.

A circus act is more plausible, but only if there's some continuum of other simpler circus equipment leading up to this rather sophisticated bit of engineering.

adrianratnapala commented on Why did we wait so long for the bicycle?   rootsofprogress.org/why-d... · Posted by u/exolymph
tlear · 6 years ago
That does not sound like a good argument at all. Metal for vast majority of human history gave you massive edge in weapon technology. Some Mandarin just shut something like that down? Seems super unlikely

Vikings transported Crucible steel all the way from Afghanistan to make high end swords. Damascus steel(actually manufactured in India) and then forged into weapon in Damascus.. etc

There got to be other reasons. Better or equivalent to Crucible steel but en masss.. you can have forged plate for everyone, horse full armor, heat treated crossbow bolt heads etc.

adrianratnapala · 6 years ago
> That does not sound like a good argument at all. Metal for vast majority of human history gave you massive edge in weapon technology. Some Mandarin just shut something like that down? Seems super unlikely

The assumption here is that every thing works in a clear way so you can see the military or whatever advantages of a particular phenomenon. Now I don't know if AnimalMuppet is literally correct that the bureaucracy simply shut down the steel industry -- but if it happened it would be because all that cheep steel was not being used for obvious things, like the imperial army, but for other unexpected uses. Maybe arms and armour still had to be made the old fashioned way anyhow, so there was no immediate military advantage.

More likely, things were subtler. Things innovations can strangled long before their importance is clear. Imperial China had a vibrant merchant class, but it isn't the kind of place that is likely to tolerate the "disruptive innovation" which fuelled Britain's Industrial Revolution -- where a bunch of upstarts come and do things with unexpected things. Even modern China (or for that matter the modern United States) struggles with it.

adrianratnapala commented on You Only Need to Test with 5 Users (2000)   nngroup.com/articles/why-... · Posted by u/azhenley
bluGill · 6 years ago
The problem is QA tends to get to scripted. You need to exercise each corner of the product, thus you test A, B, C in that order - so you never find cases where testing C, A, B breaks, or any other permutation. (to be fair with any complexity it is impossible to test all permutations)
adrianratnapala · 6 years ago
That's one part of it.

Another part is hiring a breed of test engineers who like breaking stuff and have a knack for it.

adrianratnapala commented on Servants Without Masters   write.as/harold-lee/serva... · Posted by u/overwhelm
DoreenMichele · 6 years ago
Yeah, that had occured to me. It just didn't really seem pertinent to this particular discussion. It struck me as a tangent, so I opted to not get into it.
adrianratnapala · 6 years ago
Fair enough.
adrianratnapala commented on Servants Without Masters   write.as/harold-lee/serva... · Posted by u/overwhelm
DoreenMichele · 6 years ago
When I had a corporate job, the administrative assistant to the big boss in my department had real power as de facto gatekeeper and seemed to be quite well compensated.

It's a role that would have been called secretary at one time. The title change was intended to show more respect and try ditch some historical social baggage for such jobs.

adrianratnapala · 6 years ago
Which is an example of the the euphemism treadmill. Secretary means secret-keeper and has built into it connotations at least of trust and often of power. Which is why top officials of many great ministries ion are called secretaries.

https://www.youtube.com/watch?v=G7Xgd7Cjm98

adrianratnapala commented on You Only Need to Test with 5 Users (2000)   nngroup.com/articles/why-... · Posted by u/azhenley
cwyers · 6 years ago
Or, for an American developer, what are the odds that your 15-user sample will find usability problems having to do with your icons only making sense to someone in the US? There's more to localization than just translation. Or if you have a product that does voice recognition, what range of accents are you covering with those 15 users?
adrianratnapala · 6 years ago
That's OK, we nowadays use icons that don't make sense to anyone at all. I mean how would you know that three horizontal lines was a "Hamburger menu", and if you do know that, why would you want a Hamburger?
adrianratnapala commented on You Only Need to Test with 5 Users (2000)   nngroup.com/articles/why-... · Posted by u/azhenley
HeWhoLurksLate · 6 years ago
One of my friends was literally hired as an intern to try to break software last year. He loved it, and found a ton of bugs, which was really helpful to the company- they eventually paid him a $1,000 bonus for his help over the summer.
adrianratnapala · 6 years ago
It sounds like this guys employer has taken first step to inventing QA.

There's whole classes of highly paid engineers whose job is to do this. But they work for old fashioned, boring, companies.

adrianratnapala commented on Netlify Analytics   netlify.com/products/anal... · Posted by u/melzarei
jedberg · 6 years ago
Their marketing on this is brilliant. They're capitalizing on the growing adblock/jsblock trend to point out that server side analytics are more accurate.

To be fair, back in the day when you had a single web server, analytics was easy. I to miss the days of being able to do a 'tail -f web.log' and watch as your page hit Slashdot...

adrianratnapala · 6 years ago
> ... and watch as your page hit Slashdot...

And then fall over?

I miss the days of The Slashdot Effect[1]. Now it's the JS that makes my PC fall over.

[1] Come to think of it The Slashdot Effect would have been a good band name back in the '90s.

u/adrianratnapala

KarmaCake day3270March 14, 2016View Original