Better HN
topnewbestaskshowjobs
Log inSign up

never_inline

897 karma · joined Aug 26, 2022 (4y ago) · 561 submissions

Submissions

comment 1y ago · link · parent

For CLI scripts, PicoCLI with Graalvm seems to be a good option now.

comment 1y ago · link · parent

Leetcode mediums do not count as skill in this context.

comment 1y ago · link · parent

Hibernate documentation covers 3 strategies.

https://docs.jboss.org/hibernate/orm/6.6/introduction/html_s...

Technically most people I have seen just use a variant of 3, with @MappedSuperclass.

comment 1y ago · link · parent

How is it much different from RFCs?

comment 1y ago · link · parent

Why does it run in the context of base branch though?

comment 1y ago · link · parent

> true rust developers

true rust developers will program with magnetic needle

comment 1y ago · link · parent

> Again, Maven doesn’t make it easy to show the classpath used to call javac ourselves.

Wait, I was under the impression that maven dependency plugin has a command for exactly that (dependency:build-classpath or something like that)?

comment 1y ago · link · parent

Sir, for thought leaders and CTOs they have a home page.

This is for DevOps minions.

comment 1y ago · link · parent

I am curious to hear from people on this forum, at what point will people practically cross the limits of prometheus, and straightforward division (eg, different prometheus across clusters and environments) does not work?

comment 1y ago · link · parent

> Native Histograms are still experimental and not yet enabled by default, and can be turned on by passing --enable-feature=native-histograms. Some aspects of Native Histograms, like the text format and accessor functions / operators are still under active design.

Ah, slightly disappointed :). Looking at major version I thought it was going to be all about Native histograms.

comment 1y ago · link · parent

Average Haskell programmer.

comment 1y ago · link · parent

The approach I have found to work is isolate the logic which deals with ORM models, and convert them to/from typed models (eg pydantic) at the function boundary.

with sqlalchemy mapped_column, its less of an issue. django, otoh, seems too much magic for static type. (happy to be proven wrong).

comment 1y ago · link · parent

I am grug

I use type hint press dot button get auto completes

https://grugbrain.dev/

comment 1y ago · link · parent

> for more complex data structures (think a json response from an api), dict (or typing.Dict) work fine

One of the reason I use typing is IDE completion and error highlighting. For that purpose - I make sure to annotate even the obvious primitive types and for API responses, I find that defining a Pydantic model works very well.

comment 2y ago · link · parent

There's a python tool called `pre-commit` which may be helpful. Its used very much in python ecosystem.

comment 2y ago · link · parent

yep easy to guess

comment 2y ago · link · parent

Where I live there will be pedestrians on left side of asphalt roads and street food stalls on footpaths if the footpaths exist at all.

comment 2y ago · link · parent

The larger point is that by keeping non-strategic part of your tech stack boring, you can focus on core innovative technology. In this guy's case it's LLM.

Which is same point that the original post "choose boring technology" makes. I don't see the contradiction.

comment 2y ago · link · parent

Ashtanga means lot of things apart from Asana and Pranayama. How strict was your lifestyle?

comment 2y ago · link · parent

What does this mean for `pip` wheel? I only see source files in the wheel.

comment 2y ago · link · parent

Almost everything these days is installed like that.

comment 2y ago · link · parent

It just has to be popular and common boilerplate like the example I gave.

It's hard with less popular APIs. It will almost always get something wrong. In such cases, I read docs, search sourcegraph / GitHub, and finally check the source code.

comment 2y ago · link · parent

100%. Useful cases include

* figuring out how to X in an API - eg "write method dl_file(url, file) to download file from url using requests in a streaming manner"

* Brainstorming which libraries / tools / approaches exist to do a given task. Google can miss some. AI is a nice complement for Google.

comment 2y ago · link · parent

> by sheer persona behind the language in this specific niche.

"Persona oriented development" (POP) when?

385.

Hávamál: The Words of Odin the High One(sites.pitt.edu ↗)

2 points · by never_inline · 2y ago · discuss

comment 2y ago · link · parent

Those people haven't used Java 11+ or Python with types.

Python with types is a double edged sword. If you can enforce other collaborators and SDKs use strict typing, it's a very pleasant experience to write, coupled with Pydantic for defining POJO-like structs. For CLI tools Click + Poetry build system.

Java17+ type system is pretty good. Way better than Go in terms of dev experience. you may need a POJO generation tool (Lombok, Autovalue) and preferably validation libraries. I'd still write java over Go if efficiency and single binary is not a concern.

comment 2y ago · link · parent

One reason I see hardly mentioned is change of tech stacks.

Most modern developers do web development with a highly abstracted stack (including yours truly).

So nobody is much familiar with C / Perl / OS level APIs. Closest they get is adhoc shell scripting in form of devops tools.

Since people are so much abstracted from the stack, they don't feel much need to contribute to it or improve it to scratch their own itch.

That's why new stuff like CNCF gets many contributions, old ones like Debian don't.

comment 2y ago · link · parent

Read it as "closing a ticket" that makes sense. They don't care if the code explodes after the sprint.
1
121314
19