Better HN
topnewbestaskshowjobs
Log inSign up

mdarens

44 karma · joined Feb 5, 2012 (14y ago) · 30 submissions

Submissions

comment 5d ago · link · parent

this echoes my own frustrations with the user hostility of chamberlain/myq. an added bonus is that in the app they force you to use to control the door instead of integrating with home automation standards, the video banner ads will force whatever audio you might have playing on your device to pause. they're testing the limits of hanlon's razor over there.

i've been meaning set up a dedicated domain/website just to collect complaints about this company's behavior, alternatives, workarounds for their failures like the one posted here recently [1], and importantly, laws. we need laws.

mentioned already in these comments: granular control over notifications between marketing & functional, and no circumvention by intermingling the two. home automation devices may be allowed to traverse wans to offer remote control for non-vpn/sd-wan users, but should not have their core functionality _or_ initial setup depend on an internet connection.

finally, locked devices produced by companies over a some market cap or another and their subsidiaries should be required to offer a bootloader for user/open firmware after some reasonable period of time to mitigate some of the mountains of ewaste we are producing with this stuff.

1. https://news.ycombinator.com/item?id=50525260

comment 8mo ago · link · parent

check out the branch. if the changes are that risky, the web ui for your repository host is not suitable for reviewing them.

the rest of your issues sound architectural.

if changes are breaking contracts in calling code, that heavily implies that type declarations are not in use, or enumerable values which drive conditional behavior are mistyped as a primitive supertype.

if unit tests are not catching things, that implies the unit tests are asserting trivial things, being written after the implementation to just make cases that pass based on it, or are mocking modules they don't need to. outside of pathological cases the only thing you should be mocking is i/o, and even then that is the textbook use for dependency injection.

comment 1y ago · link · parent

This looks really cool, but heads up, there were no up front descriptions or links I could follow to find out what Gleam is (a programming language that runs on the Erlang VM).

comment 1y ago · link · parent

One of the most exciting features of Zig, but am I correct that this doesn’t apply to types themselves like comptime generics in Zig? I find that to be one of the most powerful ideas: type level mappings that have the same syntax as the runtime code where you can just set an iteration limit. This would be a great way to get around the “too large union” problem in TS, for example.

comment 1y ago · link · parent

this is almost in "not even wrong" territory, but for the fact that autotrophs are definitionally the entry point for abiotic energy into edible calories for animals, and the observation that the largest terrestrial megafauna are herbivorous.

bamboo is not calorie dense to humans, because we've lost the ability to digest most of it, but pecans are absolutely more calorie dense than even fatty beef.

all else being equal, an ideal carbohydrate source is more calorically dense than an equivalent ideal lean protein source due to the balance in the thermic effect of food between the two. most mammals outside the obligate carnivores are really well optimized for getting calories from plants— this is why we have amylase in our saliva.

comment 1y ago · link · parent

This isn't really meant to replace such things an environment where you have a rendering engine that supports CSS— I think demoing it on the page is more for showing off how portable it is with WASM. Off the top of my head, a few uses for this:

- Mapping components or structured document data with something like MDX or slate on to Clay components to render in different contexts outside the browser reasonably closely to what shows up in a browser preview, for example content for HUDs, in-world display panels or documents in games, or batch rendering printed documents

- Layout for UI where something like Electron or React Native would be overkill, or isn't supported

comment 2y ago · link · parent

He's not insisting that people already familiar with functional programming concepts not use the terminology they have historically used, he's using concrete metaphors as a teaching strategy.

comment 3y ago · link · parent

I was facing consistent multi-hour outages during the workday and looked into business internet options with my ISP (Cox) and from what I could gather they _did't even offer_ any plans with an SLA in my market.

comment 5y ago · link · parent

Anecdotally, I remember multiple instances of coworkers walking out in the middle of a shift when I worked as a cook in a chain restaurant due to the combination of high stress (including abuse from customers and management) and low wages.

comment 6y ago · link · parent

I also prefer hooks. They give you the flexibility of mixins with a better composition story. And reusing hooks in my experience is more like a lightweight OOP style, compared to the somewhat clunky FP ceremony of higher order components, as the API makes it feel like I'm passing around instances of little state objects. The refactoring flow is also dead simple. I prototype behavior inline at the top of a render function, then just cut all that out to a reusable hook which I can then choose to move to props or context above the now dumb component, and factor out into smaller hooks as I wish. Slicing the behavioral model of a component up to jam into the class lifecycle methods was painful to me in comparison. The static analysis tooling also finds and allows auto-fixing of scores of dumb mistakes that used to catch me at runtime when using classes or HOCs. My experience with hooks actually got me more interested in learning ReasonML & Elm!

comment 6y ago · link · parent

ok, i think you're being intentionally obtuse here. thanks for your time.

comment 6y ago · link · parent

and what effect has that had on drug prices in the us compared to other countries?

comment 6y ago · link · parent

clinton's slashing of the welfare state is a matter of degree, not the only instance of purported beneficiaries losing benefits. medicare part d doesn't allow the government to negotiate prices and thus functions more as a subsidy for the pharmaceutical industry than people for whom it is ostensibly intended to prescription access. lots of games can be played with budgets (such as block grants, one notorious example being the 1981 repeal of the mental health systems act) so the raw dollars of entitlement spending can grow without representing a true shift in resources. when cost of living (eg rents, healthcare) outpaces spending, all while units of public housing are destroyed without being replaced, and the terms of occupation have grown ever more stringent (for example, requiring maintenance come out of tenants' rent while lowering the maximum eligible income for tenants), the mere dollar amount of spending becomes a less definitive measure, i think.

comment 6y ago · link · parent

the welfare state expanded dramatically after the new deal, but that reversed with the turn toward austerity in the late 70s. "the government" is an overly broad way of speaking about this, as it places budgeting for defense contracts & bailing out finance capital, or monetary policy geared toward preventing the labor market from getting tight (as opposed to full employment) under the same umbrella as tanf & snap.

comment 7y ago · link · parent

can be circumvented by binding the header row & the styles to the same data, but gets complicated when you have cells in the header or body which span rows or columns, or have row-scoped headers.

comment 8y ago · link · parent

this may seem like a coherent view of history if you view it as a series of decisions made by great men based solely on their personal beliefs, as opposed to protracted contests over resources & power by organized groups, like the radical abolitionists who waged a generational liberation struggle on every front to force concessions from the institutions of the day.

comment 8y ago · link · parent

this is a hollow charge of hypocrisy, as i am not currently in 1865 arguing against the 13th amendment by saying the emancipation proclamation was enough. neither does the insufficiency of reconstruction absolve the butchers of the confederacy of their crimes.

comment 8y ago · link · parent

in 1861 more than 1/10th of what would later become the army of northern virginia owned slaves— 1 in 12 enlisted men and over half of the officers.

"only" 1 in 20 white southerners in the confederacy personally owned slaves on paper, but this is like making an org chart of the institution of slavery & only counting senior management.

if you look at the 1860 us census & expand the analysis to slave owning households of the confederacy, the rate was closer to 1 in 3.

comment 8y ago · link · parent

yeah, it's not limited to social sciences, but it gets more media attention when it is because it feeds the narrative that the humanities are useless: https://www.nature.com/news/publishers-withdraw-more-than-12...

comment 8y ago · link · parent

I'm old enough to remember when Web 3.0 was another name for The Semantic Web[1]. I'm sure Gavin Wood is a clever person but the opening of this article made him come off as a dotcom boom era huckster.

[1] https://archive.fo/jUSh#selection-627.0-627.56

comment 8y ago · link · parent

The claim made in the article is regarding saturated fats, not cholesterol, as dietary cholesterol is not obtained from plant sources like coconut oil. Plants do produce phytosterols, which compete with cholesterol for absorption & may lower serum cholesterol.

https://www.ncbi.nlm.nih.gov/pubmed/15166807 https://www.ncbi.nlm.nih.gov/pmc/articles/PMC2793103/

comment 8y ago · link · parent

There are community groups organizing to oppose the expansion of the security state in New Orleans, including but not limited to MaCCNO: https://maccno.com/join-the-opposition-to-new-orleans-40-mil...

comment 8y ago · link · parent

the irony is that the subcultural current with which damore sympathizes is generally pretty anti-union as well, but being represented by one probably would've provided him some protection.

comment 8y ago · link · parent

ironically if he had a union he likely would've had the protection of a grievance process and not been subject to summary termination, regardless of how sexist his views were

comment 8y ago · link · parent

seeing as how veganism is not the default choice in most of the industrialized world, this is a misleading frame. it's also incorrect that it's more efficient to "eat animals" to produce muscle if we're being pedantic (as a vegetarian, however, this is not a meaningless distinction to me)— amino acids in dairy & eggs have a measurably higher bioavailability than those in meat, whether ranked by the PDCAAS or DIAAS https://web.archive.org/web/20151010170125/http://www.idf-is....

comment 9y ago · link · parent

The State Department implemented new layers of bureaucracy at the start of 2011 which acted as a de facto impediment/delay to applicants in the Iraqi refugee program, and were rightly criticized at the time. [1]

This differs substantially from an affirmative ban which stranded people at airports.

[1] http://www.nytimes.com/2011/07/13/world/middleeast/13baghdad...

comment 10y ago · link · parent

This is an interesting (made up) definition of totalitarianism. When I buy fair trade beans from the local coffee shop so I can feel better about my yuppie lifestyle, is my resulting denial of business to Folgers totalitarian?

comment 13y ago · link · parent

You can do this with build layers. There's an example project showing how: https://github.com/requirejs/example-multipage

comment 13y ago · link · parent

They don't fade away in Chrome because he's using a pseudo-element in the form of content: attr(title). Gecko supports transitions on generated content and WebKit does not.

Also, looking at the ::selection example, it should mentioned that it's not safe to group vendor prefixes in the selector portion of a declaration block, as, unlike with properties, the whole block will be skipped if an unrecognized selector is encountered by a UA's CSS parser.

comment 14y ago · link · parent

You don't need a higher sample rate to capture or play back infrasonic pressure waves, but most recordings are mastered to remove DC offset and rumble <20Hz, as reproducing those components requires specialized equipment, such as a rotary subwoofer.