Better HN
topnewbestaskshowjobs
Log inSign up

code_biologist

1,562 karma · joined Aug 24, 2019 (7y ago) · 536 submissions

Submissions

comment 6y ago · link · parent

Can you speak briefly to the change? What motivated it? How's it been working out?

For context, I'm an engineer that uses Postgres heavily, with some basic BigQuery + Redshift. I don't understand what the benefit of something like Clickhouse are over a standard warehouse.

comment 6y ago · link · parent

They're furloughed, not laid off. I doubt they'll lose anyone who wasn't intending to leave.

I get that John is down, and I definitely don't have whatever insight led him to say "even if I'm lucky enough to return someday, other people won't be". From my understanding though, a huge portion of corporate around the stores and parks was furloughed because there's not much for them to do at home. Their healthcare is covered and kindness aside it doesn't make much sense for Disney to bleed money. But this wasn't a covert layoff — when things get back to speed Disney wants people back.

Edit: And furloughing the employees allows them to claim unemployment, so that the US government can absorb the impact rather than Disney. Not pretty, but rational in a time of stimulus.

comment 6y ago · link · parent

Not sure if it's quality, but I found this: https://github.com/TkTech/pysimdjson

comment 6y ago · link · parent

Haven't actually used simdjson, but the love and care put into the API is evident. Looks great!

comment 6y ago · link · parent

I love that book. If you want those thoughts in a highly condensed manner, the author Ryan Singer has done a number of interviews discussing the high level concepts of Shape Up. I particularly like the Software Engineering Radio interview: https://www.se-radio.net/2019/11/episode-389-ryan-singer-on-...

comment 6y ago · link · parent

I agree with you, but I am being serious that there are developers stumbling into poor microservice architectures based on "microservices are best practice", ie. fashion.

comment 6y ago · link · parent

> The ultimate question though is, why are these services even separate if they're mutating the same data? Just merge the services (or at least the operation in question) instead of rewriting the entire app.

Because if you did that you'd have a monolith, and microservices are really fashionable right now.

comment 6y ago · link · parent

Care to elaborate?

comment 6y ago · link · parent

Unshortened URL: https://news.ycombinator.com/item?id=22376468

"The Wetware Crisis: The Dead Sea Effect"

comment 6y ago · link · parent

I would also say that I've had "conflict between what a designer wants and what the user/business wants", which is a pain.

comment 6y ago · link · parent

I found this interview very frustrating to listen to. Lex keeps asking questions about magic, consciousness, AI, and all that stuff... and Jim's a chip designer. Beyond that, Jim doesn't seem very forthcoming about his thoughts on novel architectural improvements other than that Moore's law will hold.

For those interested, a low level technology interview that I scratched the itch I hope'd the Jim Keller one would: https://oxide.computer/blog/on-the-metal-1-jeff-rothschild/

On this episode of On the Metal, we interview Jeff Rothschild. Jeff has had a fascinating journey solving all sorts of fun problems at various levels of the stack. He is most widely known as being a co-founder of Veritas Software and the first VP of Engineering at Facebook, but his story does not start there. Join us as we hear Jeff’s stories from his impressive technical endeavors including disassembling MS-DOS, editing machine code in an octal editor, trolling coworkers in error messages, the origin story of ftruncate, and more.

comment 6y ago · link · parent

I recently built an AMD hackintosh and although I love it — this build guide is exactly what I'd do if I did it again.

comment 6y ago · link · parent

Chiming in as someone who experiences an inner monologue, but does not subvocalize while either thinking or reading. I don't think one implies the other.

I was taught to read without subvocalizing and I think I am a faster reader for it. I visually process "chunks" of text and hop from chunk to chunk. My SO subvocalizes and is a noticeably slower reader.

comment 6y ago · link · parent

Yeah. Coming from a Django world it's about avoiding surprises for application programmers. I suspect it's the same in Rails. Historically Django has almost entirely had logic at the application level rather than pushing it into the DB: scheduled jobs, data validation, trigger-ish logic (via `post_save` signals and such).

Part of the power of OP's technique is that it looks exactly like a standard Django/Rails data model with a tiny sprinkle of magic -- no surprises. It's surprising for a Django programmer to hear "all periodic tasks are handled via celery, except these table refreshes" or "signals are responsible all work in response to model changes, except these triggers".

Obviously in some cases you need a trigger for correctness, but in general I try to stick to the conventions of the ecosystem.

comment 6y ago · link · parent

Presumably if you're materializing a view, you have to have a cache for speed — it's either this or ElasticSearch or Redis. For me, where possible, it's nice to have a correct cache a `REFRESH MATERIALIZED VIEW` away instead of needing to make sure your cache book-keeping is perfect with other solutions.

But yes, you're right that this is caching, with all associated pitfalls.

comment 6y ago · link · parent

Overall, I love this approach, but the big pain for me is the lack of incremental view refreshes. I end up needing to recreate giant tables each refresh even though the underlying changes are small. Sure I could implement that myself, but that sacrifices the correctness guarantees that materialized views provide!

Two things that would help:

1. Getting Incremental View Maintenance (IVM) [1] into Postgres. It looks like work is beginning on this but it's been 7+ years coming. If there are any Postgres devs looking at this, I'm cheering for you!

2. There's a commercial group doing an implementation of this, Materialize [2], but they don't have any publicly released product yet. I mention it because their interview on Data Engineering Podcast is really good [3] and I really like their focus on correctness by working from replication logs.

[1] https://wiki.postgresql.org/wiki/Incremental_View_Maintenanc...

[2] https://materialize.io/

[3] https://www.dataengineeringpodcast.com/materialize-streaming...

comment 6y ago · link · parent

This is exactly the sort of encoding issues that the python 2 to 3 transition has flushed out. People get frustrated with python 3, yet the actual failure was their mishandling of encoding issues -- papered over by python 2.

comment 6y ago · link · parent

What solution do you use for async Redux code?

comment 6y ago · link · parent

If we're being pedants, "Dennard scaling" is the term for the phenomena that allowed for increased clocks: https://en.wikipedia.org/wiki/Dennard_scaling

Dennard scaling was a nice side benefit of transistor shrinks.

comment 6y ago · link · parent

I think his take on databases is moronic with a dash of common sense:

He rails against a strawman where people put SQL everywhere, into views, into application logic ("mail merge" is one he mentions), and DBAs gatekeep everything.

The common sense part: no, your views shouldn't be composing SQL with string interpolation.

The moronic parts:

- He venerates application logic and regards the data model as a detail, but data models aren't details — they tend to outlive application logic.

- He holds up in-memory data structures as a platonic ideal, but doesn't address the things databases provide for you: schemas, constraints, transactional semantics and error recovery, a clear concurrency story.

comment 6y ago · link · parent

I think it's reasonable to ask with respect to HN policy. It's hard to have a meaningful discussion when only a small percentage of the people on HN can read the full article.

What percentage of HN visitors do you think can read the full text of this article? 1% seems like a high estimate.

comment 6y ago · link · parent

Great article. This hits close to home as a product developer. I'm certain this phenomena happens in "data driven" product decisions. Top of the funnel, we have the numbers to get statistically sound outcomes on A/B tests quickly. I work on a B2B product (high value, low volume sales cycle) and bottom of the funnel or internal sales process experimentation we try our best at is sketchy and hard to do. Experimental design is hard trying to get adequate power.

Any HNers have tips for working in low-data regimes (N=low hundreds)? Is there some magic Bayesian angle I don't know about?

We haven't systemically looked at effect sizes and this article is a good push for me to dig into that.

comment 7y ago · link · parent

Data modelling. The data model pervades any given piece of software, so it's hard to change. If there are mistakes in it, you will see workarounds all throughout a codebase.

comment 7y ago · link · parent

If you're into adhesives, the Applied Science (Ben Krasnow) youtube channel has a great video discussing his shortlist of adhesives to keep around and when/how to use them.

"Tools and Tips #1 from Applied Science": https://www.youtube.com/watch?v=YBQp04glQqc

comment 7y ago · link · parent

That approach is sound, but challenging, IMHO. The two major issues you run into are "how do we allocate resources between the boutique and the off-the-shelf version?" and "how do we manage the functional differences between the versions?"

Both can be overcome but require really good, disciplined people.

On resources, the "right" answer is to have your core team focused on the off-the-shelf version, and then have revenue from the boutique version fund its own additional labor. In my limited experience, software salespeople crumble on putting out the big price tag ask to make boutique development work in this way.

On functionality differences, there's a spectrum of customization. Extreme customization often comes at the detriment of the overall evolvability of the software. So for boutique customization you need judicious devs who build carefully, you need PMs who can push back on the customer delicately, and sales folks who don't overpromise. A good friend's uncle sold his otherwise thriving software company because his boutique product had fragmented into a dozen products (one for each client) and it was impossible to maintain.

If the boutique version is a coat of paint with a custom page or two, life is great! If they're completely different, you're essentially a consultancy working on your own product on the side. That's a grind and I've seen it burn people out.

comment 7y ago · link · parent

Catabolism is another aspect of thinking about code as an organic entity that I find useful. Anabolic (growth) processes and catabolic (teardown) processes always accompany each other in biological systems. Too often we neglect to continually tear down and remove unused aspects of our systems.

Both anabolism and catabolism are always operating, though at different rates depending on the environment and needs of the organism. The funny thing is that catabolic processes will happily tear down important parts of the system, forcing them to be anabolicly rebuilt. Things like bone and muscle mass. This seems wasted, but it has an extremely important purpose: uncontrolled anabolism is cancer.

I think the analogy to code is obvious. We've all seen codebases that have gotten out of hand (gotten cancer), and part of the reason they got that way is because the growth pressures had no countervailing teardown pressure. The market provides selective pressure in nasty ways: codebases and systems with cancer slow and die, and are replaced by younger codebases without uncontrolled growth.

How do we break that cycle? By encouraging catabolic activity culturally within our companies and codebases. Cleanup is incredibly valuable. Functionality that isn't being heavily used and is complicating implementation of new work should absolutely be on the chopping block. We don't have to be quite as aggressive as biological systems, but we shouldn't take their example lightly either.

This also provides insight into when cleanup doesn't matter: when the survival horizon of the organism is sufficiently short that cancer frankly doesn't matter. Startups shouldn't worry too much until they have product market fit. Once it's clear they'll be around for years more though, catabolic work will help ensure future health.

1
1415161718