Better HN
topnewbestaskshowjobs
Log inSign up

code_biologist

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

Submissions

comment 4y ago · link · parent

The coordinate order is (X, Y) just like in math (and XYZ if you want to use a vertical coordinate) which differs from our colloquial (latitude, longitude). This is easier to remember if you remember PostGIS supports many non-lat/lon non-WGS84 coordinate systems.

comment 4y ago · link · parent

What? Nobody is advocating for integration tests to the exclusion of unit tests.

but apart from the fact that nobody can agree on what an "integration test" is

Not being precise doesn't invalidate a guideline. The ideas that "stubbing less is better" and "testing functionality end to end is good bang-for-buck" aren't crappy because people don't agree on the details.

it just becomes immediately apparent in a code base of sufficient size that "just use integration tests for everything" is only possible if you severely under-test

Your parent comment said "If we're building a rocket ship, you need both granular testing and coarse testing." Nobody is advocating for integration tests to the exclusion of unit tests. If you write a hash table or a CSV parser, yes you should unit test it.

But for most application-ish functionality you should reach for integration tests first. For example, testing direct message functionality in an app, checking that after a send there's a notification email queued and the recipient inbox endpoint says there's 1 unread will get you really far in 20 lines of code. Is it exhaustive? Of course not. But the simplicity is a huge virtue.

if you severely under-test (which usually includes thing like not properly testing for error conditions etc.)

I advocate "default to integration testing for application functionality". Those focused on unit tests often mock exactly the things most likely to break: integration points between systems. "Unit" tests of systems are often really verbose, prescriptive about internal state, and worst of all don't catch the bits that actually break.

comment 4y ago · link · parent

That's wild. I've always wanted to see what projects managed with all the leadership buying into ToC or Reinertsen's Principles of Product Development Flow would look like.

As an engineer I've experienced dumb deadlines, but I've equally seen wasteful decisions by engineers that are at best resume padding and often legitimately harmful to product and code quality ("let's make this a microservice" lol).

My favorite is when leadership wants something dumb or contrary to reality and engineering teams are happy to build it because they can use fancy technology. Then when the product is delivered late, a little buggy, and users don't actually use it anyway — everyone can shrug, point to someone else as at fault, then rinse and repeat the game. Incentivizing honesty is hard.

comment 4y ago · link · parent

Really good video and channel!

comment 4y ago · link · parent

Your reply looks carefully written but "is there any truth to that statement?" "Yes." confuses me. Maybe the parent's question is not well formed. Would the best direct answer be?

I have met so many people that think their semiconductor manufacturing needs are exempt from the supply chain issue or backlog. [because they are not on a leading node]

Their semiconductor manufacturing needs are not exempt from the supply chain issue or backlog. [for the reasons you explained]

comment 4y ago · link · parent

The Youtube channel Asianometry has a great 18min video "China’s ASML is Years and Years Behind" analyzing the challenges of building fabs and lithography tools: https://youtu.be/DtOyW-JpJjM

The channel's older videos have a lot lot of information about fab economics, though I dunno if there's one that has a general cost breakdown.

comment 4y ago · link · parent

Great answer. It prompts a bunch of followup questions!

most DS/ML scientists use ML models that typically don't provide an easy way to estimate uncertainty intervals

Not an DS/ML scientist but a data engineer. The models I've used have been pretty much "slap it into XGBoost with k-fold CV, call it done" — an easy black box. Is there any model or approach you like to estimate uncertainty with similar ease?

I've seen uncertainty interval / quantile regression done using XGBoost, but it isn't out of the box. I've also been trying to learn some Bayesian modeling, but definitely don't feel handy enough to apply it to random problems needing quick answers at work.

comment 4y ago · link · parent

Disclaimer: not a cosmologist. We can see back further with other instruments, just there's less to see.

The universe's history: https://en.wikipedia.org/wiki/Chronology_of_the_universe#/me...

- We can see the cosmic microwave background (CMB), the earliest photons after the big bang still observable. This is ~14 minutes into Jan 1 if the whole age of the universe is a year. Satellites like the WMAP have done a great job of that.

- The dark ages that follow had few photon sources.

- JWST will be observing the earliest stars following that era.

There's a proposed radio telescope (that would have to be on the far side of the moon!) to observe neutral hydrogen photon emissions from the dark ages: https://en.wikipedia.org/wiki/Dark_Ages_Radio_Explorer

comment 4y ago · link · parent

Exactly. If it's really better than deep learning, he can publish a library implementing it. Plenty of us are hungry for high performance, stable, explainable ML and the place for ART's approach would quickly be recognized.

comment 4y ago · link · parent

I've found the Product Design Online's "Learn Autodesk Fusion 360 in 30 Days for Complete Beginners!" youtube playlist quite helpful -- though skip the intro videos to Day #1 if you already have experience: https://www.youtube.com/playlist?list=PLrZ2zKOtC_-DR2ZkMaK3Y...

I use Fusion 360 exactly how you say you want to. Just slap some shit on there and then use dimensions and constraints to actually precisely position everything to match my measurements.

comment 4y ago · link · parent

70% of games big asterisk

The giant youtube channel Linus Tech Tips has done a recent series of videos on gaming on linux. On Jan 1 they published a 15 min summary video that covers that 70% claim in a much more nuanced way: https://youtu.be/Rlg4K16ujFw

Punchline: it's kinda true, but there's plenty of struggle for new and multiplayer games still.

comment 4y ago · link · parent

The book Viral suggests that the wildlife trade, especially the intermediate species under consideration, is significantly more prevalent in southern China. Further, wildlife trade is seasonal and Oct/Nov (when the virus emerged) is the beginning of the winter slow season, with most trade occurring in summer months.

Again, if it's zoonotic it's surprising that it would emerge in a city with much less animal trade than somewhere like Guangdong, and in the slow months of that trade.

comment 4y ago · link · parent

Not affiliated, but for anyone looking to do searches on data stored primarily in Postgres via Elastic, ZomboDB is pretty slick.

ZomboDB is a Postgres extension that enables efficient full-text searching via the use of indexes backed by Elasticsearch. https://github.com/zombodb/zombodb#readme

comment 4y ago · link · parent

How do you set up and feed the warehouse? Temporal-ish tables have been an obvious, simple, and mostly foolproof solution for many of our historical analytics and reporting needs.

Bitemporal stuff (enabling edited versions of history) is where things get hairy and I definitely question the utility outside of a dedicated use case.

comment 4y ago · link · parent

Would love to see wider support for temporal tables, but application level approaches like https://github.com/jazzband/django-simple-history have worked for the business issues I have.

comment 4y ago · link · parent

There's a mention of injection considerations in both the article and code snippet. The article is definitely a sketch of a cute approach and doesn't claim to be a full production solution.

comment 4y ago · link · parent

Curious how you'd do bitmap indexes at a user level in postgres? An extension like pg_roaringbitmap [1] or am I missing something native?

[1] https://pgxn.org/dist/pg_roaringbitmap/

comment 4y ago · link · parent

That only scales up to a certain degree. There are some really good examples of holacracy failing to live up to hype in the software world:

• HN discussion of holacracy at Valve: https://news.ycombinator.com/item?id=9512866

• Holacracy and the mirage of the boss-less workplace: Lessons from the failures at Github, Medium & Buffer: https://medium.com/battle-room/holacracy-and-the-mirage-of-t...

There's also a classic essay, "The Tyranny of Structurelessness", that is about parts of the feminist movement but directly applies to holacracy at companies.

If you're anti-manager, a small or single person company or consultancy can be great.

comment 4y ago · link · parent

Are you and I reading the same comment? PragmaticPulp talked about measuring people by their true deliverables — not on whether they act like cogs or "give it their all".

comment 4y ago · link · parent

The linked presentation deck "High Performance Managed Languages" is great!

Deck PDF: https://qconlondon.com/london-2017/system/files/presentation...

Video: https://www.youtube.com/watch?v=Pz-4co8IaI8

comment 4y ago · link · parent

To add some others:

Physics Explained is great physics channel that doesn't shy away from math, with derivations of many fundamental equations. His most recent one deriving the Chandrasekhar limit on white dwarf stars from relatively basic physics is great!

The Efficient Engineer is a really good one for clear concise explanations of mechanical engineering principles.

comment 4y ago · link · parent

For those who are interested in data from the analytics side, I'll note that DBT's Coalesce conference [1] just concluded. Their site has full videos and transcripts!

[1] https://coalesce.getdbt.com/

[2] https://www.getdbt.com/coalesce-2021/

comment 4y ago · link · parent

I always hate that aliases thing — after seeing query builders do it I've taken to using column numbers (eg. GROUP BY 1, 2, 3) in my own code if I'm grouping on a lot of computed columns. More foolproof.

SQL is not a great language. Serviceable, but not great.

comment 4y ago · link · parent

I hadn't heard of them before. They are neat. If papers aren't your style here's some videos I've found:

What is polyhedral compilation? [about six minutes]: https://www.youtube.com/watch?v=iAF-orse4hE

Polyhedral Compilation as a Design Pattern for Compilers - Albert Cohen - PLISS 2019 [about an hour and a half]: https://www.youtube.com/watch?v=mt6pIpt5Wk0

comment 4y ago · link · parent

For my vote, I don't think it was rude, I think it was making a point.

comment 5y ago · link · parent

Refactoring UI's videos and book are great:

https://www.youtube.com/c/SteveSchoger/videos

https://www.refactoringui.com/book

comment 5y ago · link · parent

The point made in other threads is that it's way cheaper to just pay token amounts when security breaches happen, rather than pay market rates. They don't want expensive talent.

comment 5y ago · link · parent

Thank you for the heads up! Been sad to see the site list that youtube-dl works on slowly degrade and shrink.

comment 5y ago · link · parent

To add a contrary voice, I completely disagree. Data accessibility, organization and access to analyst time remain the biggest hurdles to corporate data literacy.

No business user is going to write notebook code, on the other hand I've seen some great exploration, analysis, and dashboarding work done by business users with the right self-serve setup in Looker. dbt + Metabase or Superset seems like a great cheaper / more open alternative stack.

From what I've seen, ML and programmatic stuff is flashy, but enabling business users to easily get tables and bar charts is how you get everyone making more sound decisions.

comment 5y ago · link · parent

The GUI library that demo uses is pretty slick: https://github.com/pmndrs/leva
1
1415161718