HNHacker News
TopNewBestAskShowJobs

stupidcar

8,592 karma · joined March 30, 2014

submissionscomments
stupidcar··on Air pollution causes ‘huge’ reduction in intelligence: study
What's really amazing to me is when you realise that the UK executive and legislative branches are based in London. MPs, Lords, and often their partners and children are all living and working in an extremely polluted environment for years on end. Even so, with the knowledge that they are seriously harming their own health and the health of their closest relatives, they persist in resisting and blocking attempts at actions to improve air quality in London.

Whenever somebody defends the quality of democratic representation in the UK, I just remind myself that these are people who would rather they and their own children suffered illness and premature death than take action that might piss off business and motorist lobbying groups.

stupidcar··on Javascript Fundamentals: ‘this’ keyword
I think the main reason "this" is considered confusing is that many programmers learning JS have already spent years coding in Java or C#. They expect it to work the same, then get frustrated when it doesn't. But the reason it doesn't is due to the fact that functions in JS are first-class, and don't intrinsically belong to a particular class and object instance they way they do in those languages. As such, the context represented by "this" has to be more fluid in JS.

That's not to say that the design of "this" is perfect. And it doesn't help that JS' syntax was designed to resemble C-family languages that it differs from significantly. But nor it is some entirely arbitrary and illogical flaw. If you take the time, it's possible to gain an intuitive grasp of how functions and "this" work in JS. But instead, learners are too often told that "JS is quirky" by others who also have come to it from Java / C#, and never move past memorizing to a list of these "quirks" to genuine proficiency. They then grumble whenever they need to work on a JS codebase, because their incomplete understanding makes it feel like they're standing on quicksand.

Soon such devs fall into a circular trap: They don't like coding in JS because it feels weird and unintuitive. And they don't take the time to learn about it more deeply because they don't like coding with it, and don't want to waste time learning about something they dislike. But since they have to code with it, because it's part of their job, they just stumble along, hacking away and getting frustrated when things don't work, then come onto Hacker News and blow off steam about what a garbage language JS is.

stupidcar··on Venezuela devalues the bolivar by 95% and pegs it to ‘oil-linked’ cryptocurrency
Chavez/Maduro style democratic populism was based on expensive social welfare programmes targeted at the poor, funded by oil revenues.

Some would call this well-intentioned socialism, others clientist bribery. But it doesn't really matter. What matters is that these programmes were affordable only when the price of oil was sky-high. When the price of oil collapsed a few years ago, they became unaffordable.

At this point, the government needed to make substantial cuts to the size of the state and its welfare programmes to stabilise its finances. However, such cuts are just not really possible for this kind of government: The entire basis of its power is a huge web of political patronage and self-enrichment, sitting on top of a mass of impoverished supporters. Money is the only thing that makes the system work.

Thus, the government attempted to maintain its spending through borrowing and enlargement of the money supply. Their hope was that, eventually, oil prices would rebound enough to restore the lost revenue and stabilise the economy. As they waited, their domestic and foreign opponents saw an opportunity to make the situation worse for them through measures like sanctions. However, the debt and printing of money would have lead to financial crisis sooner or later.

stupidcar··on I’m Sorry I Criticized You, Apple. You Win
Because some people judge companies by metrics other than just the quality of the software they write? It's perfectly possible for Apple to create software of a poor or deteriorating quality while having a more sensible business model than their competitors. The one has little to do with the other.
stupidcar··on I’m Sorry I Criticized You, Apple. You Win
> (But I won’t buy a $1,000 phone; sorry, Mr. Cook.)

Strange that the author correctly dissects the problem with Apple's competitors, i.e. that their products are subsidised by violating their users' privacy and selling their data, but then ends with the conclusion that they still won't pay what Apple is charging. I wish they'd elaborated: Are they arguing that it'd better not to have a smartphone, or better to accept selling your privacy to get a cheaper phone?

stupidcar··on Overnight Brain Stimulation Improves Memory
How do you know it's "definitely" having an effect, and it's not a placebo?
stupidcar··on What happens if you mistakenly apply for British citizenship?
This isn't "realist", it's the usual clichés and lies that are always propagated by people trying to justify anti-immigrant sentiment.

It perpetuates the falsehood that immigrants stress social programmes. In fact, social programmes in Western countries are stressed by the shifting demographics of their indigenous populations, and require immigrants to prop them up.

Social programmes like state pensions and healthcare were created in an age when Western countries had large working-age populations, and relatively small numbers of older, non-working people. However, the decrease in fertility and increase in life expectancy across the West has flipped this. There are too many older people, and not enough indigenous tax-paying citizens to support them.

Politicians in Western countries saw this problem coming in the 1990s. Since cutting social programmes that affect the elderly is politically impossible, they realised the only solution was to liberalise their immigration policies. Immigrants are statistically younger, healthier, harder-working, and pay more taxes than the average indigenous citizen. As a bonus, many of them return to their home country when they get older, so you don't need to pay for their pensions / healthcare.

Ironically, old people in these countries then decided, or were persuaded, that they disliked immigration. So they started supporting parties with anti-immigrant policies, even though this was totally against their economic self-interest. The result is a political paradox that no Western politician has been able to unravel, although populists have made hay exploiting it.

stupidcar··on Products Are Functions
"A fat guy, a watermelon, and a stack of magazines? That's a function!"
stupidcar··on Ask HN: How to learn to sleep on your back?
Get into BDSM and have your partner tie your down on your back?
stupidcar··on It’s Amazon’s Swamp Now
I think the major concern perhaps isn't the particulars of the spec, or even that maybe only Amazon can fully meet some of them, but that they are so clearly based on Amazon's exact capabilities that it raises the question of whether another provider will even get a fair hearing.

As an analogy, imagine that there's a new senior job opening in your organisation, and both you and a colleague are considering applying. You're both pretty skilled, with resumes that are quite similar, albeit not identical. You hear through the grapevine that you co-worker plays golf with a couple of the people who'll be on the interview panel, but you trust them to be impartial.

Then the official job description gets published, and it's identical to your colleague's resume. It's as if somebody has gone through it line by line and translated that into the job's desirables. In some cases, the requirements are verbatim copies of some experience your colleague mentions.

Now, you're convinced that you could still do the job. And perhaps if you really knock it out of the park during the interview, and make a deliberately lowballed salary demand, you've got a chance. But, at this point, would you believe that the process is impartial? Or would you conclude that, at the very least, it is so stacked heavily in favour of your colleague that your chances of swaying the interviewers over to your side are slim, and perhaps nonexistent?

stupidcar··on Energy Saved, Sleep Lost: The Unintended Consequences of LED Lighting
"We can’t easily call for our cities to go back to a less intense light. The switch has already been made, and cash-strapped cities need the savings."

Yes we can, and we should. Where does this learned helplessness come from? Cities are always cash-strapped. "It'll cost extra," should not be some trump card to shut down discussion of doing something that is provably better for the populace. There should standards devised for the idea color temperature and brightness of street lighting, and government should be required to stick to them.

stupidcar··on The Bullshit Web
Saleforce's problem is that its presentation layer is a giant pile of legacy code, which can be fundamentally changed, because there's a gazillion extensions and customisations that rely on it working the way it currently does. Having worked a bit with it, there's absolutely nothing about it that "benefits" developers, anymore than having to maintain a VB6 app "benefits" developers.

Done right, a modern web app should be better for both developers and users. The one benefit of the crazy shit described in the article is that if you don't weigh down your page with a multiple MB of ad-network and analytics scripts, then it can be incredibly fast.

stupidcar··on Thank You, Robert Voit, Creator of Paint Shop Pro
While Paint Shop Pro 6 is the most beloved version, PSP 7 and (particularly) 8, took the software in a very interesting direction. I remain convinced that this directly lead to Corel acquiring it with the unstated but definite intention of crippling it.

See, 6 and below were fairly traditional raster-based editors. But starting in 7, and with substantial improvements in 8, PSP introduced the concept of raster and vector editing capabilities, in the same document. You could create raster layers, and do traditional drawing and filtering, and you could also create vector layers, where you could draw shapes and paths which would remain editable and would be rasterised on the fly.

It took a while to get your head around this capability, but once you did, it was incredibly powerful, especially for the time period we're talking about. Coupled with the rate at which its general raster editing capabilities were improving, I suspect Corel feared not just that PSP was becoming a more serious competitor in the raster space, but that it would undermine the market for CorelDraw, and threaten the whole model of selling separate vector and raster editors.

In the past few years, mixed paradigm vector/raster editors like Sketch have become more common. But download a copy of PSP 8 and you'll see that Jasc got there years before the rest of the industry, to such an extent it meant PSP had to be killed.

stupidcar··on A new security header: Feature Policy
What utter nonsense.

Do you give every user and process on your machine root access? After all, if you trust them, then why restrict them? And if you don't trust them, why let them login / execute at all?

In reality, trust can only ever be partial, and even honest actors can cause damage accidentally, or can be compromised by 3rd parties through no fault of their own. Permissions are how you overcome partial trust: You grant actors only those permissions to act in ways related to the task you want them to do. That way, if even if they are dishonest or compromised, the damage they can do is limited. This principle is the cornerstone of modern security. It's the only way that most systems can interact at all.

It is isn't "apathetic" for apps or websites to restrict the permissions of ads. It's apathetic not to. It's the same apathy that causes users to click through warning screens and grant apps whatever permissions they want, even when a Sudoku game is requesting access to their microphone and camera.

stupidcar··on Announcing TypeScript 3.0
I don't see that as much of an issue though. You wouldn't get any type-checking if you weren't using TypeScript, so it's still a net gain even if a few packages are `any`.
stupidcar··on Announcing TypeScript 3.0
They're talking about all the releases they've done since 2.0. Await/async support was added in v2.1: https://github.com/Microsoft/TypeScript/wiki/Roadmap#21-dece...
stupidcar··on Men Beware: The Abercrombie and Fitch Effect
For the next Apple keynote, Tim Cook is gonna be shirtless and ripped.
stupidcar··on Venezuela's Inflation to Reach 1M Percent
Right, but there are 31m living in Venezuela. Even presuming a couple of million have fled, there's still a lot of people there. If nobody can afford bread and rice, how are coffee shops still operating? The linked video shows people still looking reasonably well fed and well clothed and walking around. Shouldn't they be literally lying in the streets starving?

We often read about these cases of runaway inflation and market collapse, and from the way they're described, it seems logical that the result would be completely antithetical to human survival. And yet, somehow, these societies do seem to stagger along. The question is: how? What is the day-to-day reality for people in these places? How do they get the food and water necessary to stay alive?

stupidcar··on 2018 MacBook Pro Review
It's almost as if Apple aren't even basing their hardware strategy on what developers are complaining about on Hacker News.
stupidcar··on Vue.js: the good, the meh, and the ugly
If plain, idiomatic React so great, why does every semi-complex React app end up bringing in a separate state management framework like Redux or MobX?

The reason is that while you may be able to break up your HTML into a composable hierarchy of purely-functional components, the actual data and state you need to distribute to them has a structure that is completely unrelated to how its laid out in the DOM. In a complex web app, a component nested twenty levels deep may need to display pieces of information, like the user's date of birth and the current temperature on Mars, that none of its parent controls cares about.

At that point, you can either bite the bullet and pass state through layer upon layer of props, completely eliminating any semblance of separation of concerns in your component layering, or inject state into your components via some other mechanism, like Redux/MobX/Context. At which point, JSX is basically just another fancy HTML templating library.

"Idiomatic" React is a fun game to play when doing basic examples, using something like a todo manager, but as soon as you're in the real world, you hit its limitations very quickly.

stupidcar··on Excel Unusual – home of the most unique Microsoft Excel animated spreadsheets
You can find the date each article was published from the metadata Wordpress puts into the HTML header. The very latest article is from Jan 2017. The ones prior immediately prior to that are from 2012.
stupidcar··on Lost in Math
It seems like there may be a more general takeaway from what Hossenfelder is saying, which is that fields that should be driven principally by empiricism can be led astray by the development of a set of shared aesthetic preferences that is used as a barometer of a theory or technique's attractiveness.

Such ideas of "beauty" may begin as a useful shorthand, in that they initially incorporate experienced practitioners' intuition of what theories are more reasonable, based on the history of their field and their collective knowledge. But they are only useful for so long as they remain subordinate to actual empirical evidence in the ultimate judgement of a theory or technique's truthfulness.

But when the actual application of strong empiricism is difficult or expensive (or becomes so, as has been the case in theoretical physics over the past half-century), or just impossible, the aesthetic barometer can gradually supplant evidence entirely. This may be the true measure of a science's softness or hardness.

In the field of software engineering, there are concepts of "clean" and "beautiful" code and languages. But how rigorously are such terms defined? How closely does our subjective impression of a codebase's aesthetics mirror its actual quality on those metrics that should matter most, such as its performance, maintainability, quantity of defects, etc.?

stupidcar··on Our Vision for Rust and WebAssembly
Eventually there will be direct binding between WebAssembly and web APIs like that the DOM that will allow you to write performant web apps that circumvent JS entirely. There are already tools that https://webassembly.studio/ that making writing wasm-based apps a reality, albeit still with a binding layer that goes through JS.

However, such applications will still have the same constraints that drive the current JS ecosystem. As such, there's little reason to believe that frameworks like React, Angular, Vue.js, etc. won't have their wasm-based equivalents. And, if anything, I except more churn for quite a few years, as people use the freedom provided by wasm to build a new generation of frameworks in completely different languages. We may look back on the current era of web development as a relatively stable one compared to what's to come.

So if the current churn is what turns you off web development, I wouldn't bet on wasm being a salve.

stupidcar··on Why developers need to be able to identify technologies with staying power
Stuff like this is what puts me off React:

https://reactjs.org/blog/2018/03/29/react-v-16-3.html https://reactjs.org/blog/2018/06/07/you-probably-dont-need-d...

It's at v16, and they're still making major changes to the basic component lifecycle, deprecating things, and then almost immediately having to write articles to teach against anti-patterns that already arisen in the new APIs!

A programming model that is so unintuitive people still cannot use it right, even after so many years, does not seem like a great bet to me.

stupidcar··on You Can’t Hide from the Corporate Cops
It's an opinion column. Such things frequently cover multiple topics under different subheadings. It's not a "mishmash brain dump", it's just regular journalism, as has been practiced for decades.
stupidcar··on Twitter ‘smytes’ customers
I never said Twitter cares about startups' customers panicking, but it cares about being able to make strategically useful acquisitions, like Smyte. And acting like this makes it harder.

This isn't about people typing furiously on internet forums. This is about business risk, as weighed up by people whose job it is to care. Acquisitions take time and negotiation. Just because a startup is talking to Twitter, doesn't mean the acquisition will definitely happen. But if customers get wind of it, then they may start looking to move elsewhere, anyway, instead of waking up to find services they rely on have been shutdown without warning. If you're the customer of a startup Twitter is negotiating to acquire, then you're negligent not to reduce your reliance on them. And if you're the CEO of that startup, then you have to consider the risk of customer flight (and your own comfort with the thought of screwing them over) vs. the likelihood of the acquisition happening.

stupidcar··on Twitter ‘smytes’ customers
All companies have suppliers and partners, including Twitter. Getting a reputation for this kind of toxic behaviour harms their ability to build relationships with them, as nobody will feel they can trust them.

It could also hamper their ability to make further acquisitions. In future, a startup being linked with a possible Twitter acquisition is going to cause its customers to panic and start moving elsewhere. That'll make startups more reluctant to engage, and may turn some off entirely, if they're not comfortable with the prospect of totally screwing over the customers who've supported them during their early stages.

stupidcar··on Studies find evidence that meditation is demotivating
This experimental design is... weird. The participants were assigned tasks that "were similar to everyday workplace jobs", and asked about their concomitant motivation level to complete them. But why would they either group have any intrinsic motivation to do a purposeless simulation of busywork, except because it was part of the study?
stupidcar··on On the Sad State of Macintosh Hardware
Companies aren't people. They don't ever "lose interest" or "ignore" things, and nor did I make such a nonsensical claim. They make decisions on what and where to invest based on rational analysis of the financial math, and the potential risk vs. reward.

Everything I said was related the original article's complaint that Apple have reduced the cadence and regularity of spec-bumps and component upgrades. Their occasional revamp of individual product lines with attempts at competitor-differentiating features is entirely different, and is in fact exactly what you'd expect from a company thinking along the lines I suggested: Trying to reduce supplier power, and optimise their efforts in a market that has not rewarded them in terms of share for being concerned with specs.

But really I suspect you just wanted to moan about the touch bar and keyboards and latched onto a random comment to do so. Great job.

stupidcar··on On the Sad State of Macintosh Hardware
I think the Apple leadership's thinking is as follows:

- The revenues and market share of Apple's Mac unit has been stable for years[1]. No big gain, declines or spikes, regardless of how frequently they update, or how close their hardware is to the bleeding edge. Therefore, it makes sense to reduce their expenditure on the Mac until they see a drop in either revenue, market share or profit share, or some other genuine sign of danger beyond the griping of some professionals.

- The personal computer market overall is declining. Spending more for a slightly bigger slice of a shrinking pie isn't worth it, because there's no real opportunity for long-term growth that will please shareholders and analysts.

- Reducing the cadence of Mac hardware updates gradually closes the gap between the performance profiles of the iOS and macOS hardware, which moves them closer to the eventual goal of unifying the mobile and desktop software market.

- More frequent and more regular updates give more power to Apple's suppliers, as they become dependent on them for the components necessary to provide the updates expected by the market. Supply change management is Cook's area of expertise, and by delaying Mac hardware updates, and doing them on an irregular schedule, Apple can reduce supplier leverage, and walk away from deals it considers to be too expensive.

The most important supplier is, of course, Intel, and I think Apple would love to break the industry out of the idea that the supplier tail wags the dog in terms of CPU adoption. E.g. Intel can't just produce a new microarchitecture on their own schedule and assume all manufacturers will rush to adopt it, but instead have to accept a somewhat more subordinate role, whereby the big vendors like Apple can say "this is what we want, this is when we want it, and this is what we'll pay for it."

[1] https://www.macrumors.com/2017/11/02/earnings-4q-2017/

← PreviousPage 11 of 26Next →